Skip to content

Commit 3911242

Browse files
Copilothotlong
andcommitted
Redesign homepage with fumadocs HomeLayout including navbar, search, and theme toggle
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a446d4a commit 3911242

File tree

3 files changed

+82
-68
lines changed

3 files changed

+82
-68
lines changed

apps/site/app/docs/layout.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { source } from '@/lib/source';
22
import type { ReactNode } from 'react';
33
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
4-
import { RootProvider } from 'fumadocs-ui/provider';
54

65
export default function Layout({ children }: { children: ReactNode }) {
76
return (
8-
<RootProvider>
9-
<DocsLayout tree={source.pageTree} nav={{ title: 'Object UI' }}>
10-
{children}
11-
</DocsLayout>
12-
</RootProvider>
7+
<DocsLayout tree={source.pageTree} nav={{ title: 'Object UI' }}>
8+
{children}
9+
</DocsLayout>
1310
);
1411
}

apps/site/app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import './global.css';
2+
import { RootProvider } from 'fumadocs-ui/provider';
23
import type { ReactNode } from 'react';
34

45
export default function Layout({ children }: { children: ReactNode }) {
56
return (
67
<html lang="en" suppressHydrationWarning>
7-
<body>{children}</body>
8+
<body>
9+
<RootProvider>{children}</RootProvider>
10+
</body>
811
</html>
912
);
1013
}

0 commit comments

Comments
 (0)