Skip to content

Commit 27118bb

Browse files
authored
allow specifying docs pages as full width if their content requires it (#14375)
1 parent 281635f commit 27118bb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

app/[[...path]]/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ export const dynamic = 'force-static';
4747
const mdxComponentsWithWrapper = mdxComponents(
4848
{Include, PlatformContent},
4949
({children, frontMatter, nextPage, previousPage}) => (
50-
<DocPage frontMatter={frontMatter} nextPage={nextPage} previousPage={previousPage}>
50+
<DocPage
51+
frontMatter={frontMatter}
52+
nextPage={nextPage}
53+
previousPage={previousPage}
54+
fullWidth={frontMatter.fullWidth}
55+
>
5156
{children}
5257
</DocPage>
5358
)

docs/platforms/apple/common/user-feedback/configuration/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Configure User Feedback
33
sidebar_order: 6900
44
description: "Learn about general User Feedback configuration fields."
5+
fullWidth: true
56
---
67

78
<PlatformSection notSupported={["apple.macos", "apple.tvos", "apple.watchos", "apple.visionos"]}>

src/types/frontmatter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export interface FrontMatter {
2323
* Set this to true to mark this page as a draft, and hide it from various other components (such as the PageGrid).
2424
*/
2525
draft?: boolean;
26+
/**
27+
* Set this to true to take all the available width for the page content.
28+
*/
29+
fullWidth?: boolean;
2630
/**
2731
* A list of keywords for indexing with search.
2832
*/

0 commit comments

Comments
 (0)