Skip to content

Commit 3f75605

Browse files
committed
fix: exclude full demo from sidebar
1 parent 10ac41c commit 3f75605

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/src/app/[[...mdxPath]]/layout.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ const navbar = (
2020
/>
2121
)
2222

23+
const EXCLUDED_PAGES = [
24+
'/full'
25+
]
26+
2327
export default async function RootLayout ({ children }) {
28+
const pageMap = (await getPageMap()).filter(page => !EXCLUDED_PAGES.includes(page.route))
2429
return (
2530
<html
2631
// Not required, but good for SEO
@@ -43,7 +48,7 @@ export default async function RootLayout ({ children }) {
4348
editLink='Edit this page on GitHub'
4449
footer={<Footer>MIT {year} © Textea, Inc.</Footer>}
4550
navbar={navbar}
46-
pageMap={await getPageMap()}
51+
pageMap={pageMap}
4752
>
4853
{children}
4954
</Layout>

0 commit comments

Comments
 (0)