File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11import { baseOptions } from "@/lib/layout.shared" ;
2- import { source } from "@/lib/source" ;
32import { DocsLayout } from "fumadocs-ui/layouts/docs" ;
43
54export default function Layout ( { children } : LayoutProps < "/" > ) {
6- return (
7- < DocsLayout tree = { source . pageTree } { ...baseOptions ( ) } >
8- { children }
9- </ DocsLayout >
10- ) ;
5+ return < DocsLayout { ...baseOptions ( ) } > { children } </ DocsLayout > ;
116}
Original file line number Diff line number Diff line change 1+ import { source } from "@/lib/source" ;
2+ import { DocsLayoutProps } from "fumadocs-ui/layouts/docs" ;
13import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared" ;
24
3- export function baseOptions ( ) : BaseLayoutProps {
5+ export function baseOptions ( ) : BaseLayoutProps & DocsLayoutProps {
46 return {
57 nav : {
68 title : "Fire" ,
79 } ,
10+ sidebar : {
11+ defaultOpenLevel : 99 ,
12+ } ,
13+ tree : source . pageTree ,
814 } ;
915}
You can’t perform that action at this time.
0 commit comments