Skip to content

Commit 9d9185d

Browse files
committed
refactor(website): switch back to docs layout
1 parent f83aef2 commit 9d9185d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

apps/website/app/docs/layout.tsx

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
// Docs layout
2-
// import type { ReactNode } from "react";
3-
// import { baseOptions } from "#/app/layout.config";
4-
5-
// import { source } from "#/lib/source";
6-
// import { DocsLayout } from "fumadocs-ui/layouts/docs";
7-
8-
// export default function Layout({ children }: { children: ReactNode }) {
9-
// return (
10-
// <DocsLayout tree={source.pageTree} {...baseOptions}>
11-
// {children}
12-
// </DocsLayout>
13-
// );
14-
// }
15-
16-
// Notebook layout
172
import type { ReactNode } from "react";
183
import { baseOptions } from "#/app/layout.config";
4+
195
import { source } from "#/lib/source";
20-
import { DocsLayout } from "fumadocs-ui/layouts/notebook";
6+
import { DocsLayout } from "fumadocs-ui/layouts/docs";
217

228
export default function Layout({ children }: { children: ReactNode }) {
239
return (
24-
<DocsLayout
25-
{...baseOptions}
26-
// the position of navbar
27-
nav={{ ...baseOptions.nav, mode: "top" }}
28-
// the position of Sidebar Tabs
29-
tabMode="navbar"
30-
tree={source.pageTree}
31-
>
10+
<DocsLayout tree={source.pageTree} {...baseOptions}>
3211
{children}
3312
</DocsLayout>
3413
);
3514
}
15+
16+
// Notebook layout
17+
// import type { ReactNode } from "react";
18+
// import { baseOptions } from "#/app/layout.config";
19+
// import { source } from "#/lib/source";
20+
// import { DocsLayout } from "fumadocs-ui/layouts/notebook";
21+
22+
// export default function Layout({ children }: { children: ReactNode }) {
23+
// return (
24+
// <DocsLayout
25+
// {...baseOptions}
26+
// // the position of navbar
27+
// nav={{ ...baseOptions.nav, mode: "top" }}
28+
// // the position of Sidebar Tabs
29+
// tabMode="navbar"
30+
// tree={source.pageTree}
31+
// >
32+
// {children}
33+
// </DocsLayout>
34+
// );
35+
// }

0 commit comments

Comments
 (0)