@@ -4,47 +4,49 @@ import { RootToggle } from "fumadocs-ui/components/layout/root-toggle";
44import { DocsLayout } from "fumadocs-ui/layouts/docs" ;
55import { TerminalIcon , UserIcon } from "lucide-react" ;
66import type { ReactNode } from "react" ;
7+ import "../../../core/styles/docs.scss" ;
78
89export default function Layout ( { children } : { children : ReactNode } ) {
9- return (
10- < DocsLayout
11- tree = { docsSource . pageTree }
12- { ...baseOptions }
13- containerProps = { {
14- className :
15- "relative [&_#nd-sidebar]:md:sticky [&_#nd-sidebar]:top-0 [&_#nd-sidebar]:bg-background [&_#nd-sidebar_div[data-fdid]]:w-full bg-background text-foreground [&_#nd-toc]:min-w-[200px] [&_#nd-toc_a[data-active]]:text-foreground/80 hover:[&_#nd-toc_a[data-active]]:text-foreground" ,
16- } }
17- sidebar = { {
18- banner : (
19- < RootToggle
20- className = "bg-background"
21- options = { [
22- {
23- title : "User" ,
24- description : "User Documentation" ,
25- url : "/docs/user" ,
26- props : {
27- className :
28- "bg-popover hover:bg-muted/80 transition-colors duration-150" ,
29- } ,
30- icon : < UserIcon /> ,
31- } ,
32- {
33- title : "Developer" ,
34- description : "Developer Documentation" ,
35- url : "/docs/developer" ,
36- props : {
37- className :
38- "bg-popover hover:bg-muted/80 transition-colors duration-150" ,
39- } ,
40- icon : < TerminalIcon /> ,
41- } ,
42- ] }
43- />
44- ) ,
45- } }
46- >
47- { children }
48- </ DocsLayout >
49- ) ;
10+ return (
11+ < DocsLayout
12+ tree = { docsSource . pageTree }
13+ { ...baseOptions }
14+ containerProps = { {
15+ className : "[&_#nd-sidebar>div[data-fdid]]:w-full" ,
16+ /* className: */
17+ /* "relative [&_#nd-sidebar]:md:sticky [&_#nd-sidebar]:top-0 [&_#nd-sidebar]:bg-background [&_#nd-sidebar_div[data-fdid]]:w-full bg-background text-foreground [&_#nd-toc]:min-w-[200px] [&_#nd-toc_a[data-active]]:text-foreground/80 hover:[&_#nd-toc_a[data-active]]:text-foreground", */
18+ } }
19+ sidebar = { {
20+ banner : (
21+ < RootToggle
22+ className = "bg-background"
23+ options = { [
24+ {
25+ title : "User" ,
26+ description : "User Documentation" ,
27+ url : "/docs/user" ,
28+ props : {
29+ className :
30+ "bg-popover hover:bg-muted/80 transition-colors duration-150" ,
31+ } ,
32+ icon : < UserIcon /> ,
33+ } ,
34+ {
35+ title : "Developer" ,
36+ description : "Developer Documentation" ,
37+ url : "/docs/developer" ,
38+ props : {
39+ className :
40+ "bg-popover hover:bg-muted/80 transition-colors duration-150" ,
41+ } ,
42+ icon : < TerminalIcon /> ,
43+ } ,
44+ ] }
45+ />
46+ ) ,
47+ } }
48+ >
49+ { children }
50+ </ DocsLayout >
51+ ) ;
5052}
0 commit comments