Skip to content

Commit dd297f0

Browse files
committed
allow specifying docs pages as full width if their content requires it
1 parent 281635f commit dd297f0

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
@@ -89,4 +89,8 @@ export interface FrontMatter {
8989
* @example ['v7.119.0', 'next']
9090
*/
9191
versions?: string[];
92+
/**
93+
* Set this to true to take all the available width for the page content.
94+
*/
95+
fullWidth?: boolean;
9296
}

0 commit comments

Comments
 (0)