File tree Expand file tree Collapse file tree 1 file changed +53
-2
lines changed
Expand file tree Collapse file tree 1 file changed +53
-2
lines changed Original file line number Diff line number Diff line change 1+ import type { LinkItemType } from "fumadocs-ui/layouts/links" ;
12import type { ReactNode } from "react" ;
2- import { baseOptions } from "#/app/layout.config" ;
33
4+ import { baseOptions } from "#/app/layout.config" ;
45import { HomeLayout } from "fumadocs-ui/layouts/home" ;
56
7+ const links = [
8+ {
9+ active : "nested-url" ,
10+ text : "Getting Started" ,
11+ url : "/docs/getting-started" ,
12+ } ,
13+ {
14+ active : "nested-url" ,
15+ text : "Rules" ,
16+ url : "/docs/rules" ,
17+ } ,
18+ {
19+ active : "nested-url" ,
20+ text : "Presets" ,
21+ url : "/docs/presets" ,
22+ } ,
23+ {
24+ active : "nested-url" ,
25+ text : "Contributing" ,
26+ url : "/docs/contributing" ,
27+ } ,
28+ {
29+ active : "nested-url" ,
30+ text : "Community" ,
31+ url : "/docs/community" ,
32+ } ,
33+ {
34+ active : "nested-url" ,
35+ text : "Changelog" ,
36+ url : "/docs/changelog" ,
37+ } ,
38+ {
39+ active : "nested-url" ,
40+ text : "Roadmap" ,
41+ url : "/docs/roadmap" ,
42+ } ,
43+ {
44+ active : "nested-url" ,
45+ text : "FAQ" ,
46+ url : "/FAQ" ,
47+ } ,
48+ ] as const satisfies LinkItemType [ ] ;
49+
650export default function Layout ( { children } : { children : ReactNode } ) {
7- return < HomeLayout { ...baseOptions } > { children } </ HomeLayout > ;
51+ return (
52+ < HomeLayout
53+ { ...baseOptions }
54+ links = { links }
55+ >
56+ { children }
57+ </ HomeLayout >
58+ ) ;
859}
You can’t perform that action at this time.
0 commit comments