Skip to content

Add Fumadocs and update docs#3

Merged
davidlu1001 merged 5 commits intomainfrom
claude/tailwind-v4-migration-njihX
Jan 8, 2026
Merged

Add Fumadocs and update docs#3
davidlu1001 merged 5 commits intomainfrom
claude/tailwind-v4-migration-njihX

Conversation

@davidlu1001
Copy link
Contributor

No description provided.

claude and others added 3 commits January 8, 2026 22:35
- Install fumadocs-ui, fumadocs-core, fumadocs-mdx, @types/mdx
- Configure MDX processing in source.config.ts and next.config.ts
- Add @source directives in globals.css for Tailwind v4 content scanning
- Map Fumadocs CSS variables (--fd-*) to Shadcn variables
- Create docs layout with RootProvider and DocsLayout
- Add sample documentation pages (intro, installation, quick-start)
- Use local Geist fonts for build stability
- Add .source/ to .gitignore (auto-generated)
- Add ThemeProvider component with forced dark theme
- Wrap root layout with ThemeProvider (forcedTheme="dark")
- Disable Fumadocs theme management to prevent overriding
- Hide theme switch button in docs layout
- Add suppressHydrationWarning to prevent hydration mismatch

Fixes issue where navigating from /docs back to main site would
show light mode due to Fumadocs default theme state.
@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
replimap-frontend Ready Ready Preview, Comment Jan 8, 2026 11:43pm

@davidlu1001 davidlu1001 changed the title Claude/tailwind v4 migration njih x Add Fumadocs and update docs Jan 8, 2026
- Add type declaration file for @/.source module (generated at build time)
- Fix type casting with 'as unknown as' for ExtendedPageData
- Include proper fumadocs types (DocMethods, FileInfo, Root from mdast)
@davidlu1001 davidlu1001 merged commit 427722f into main Jan 8, 2026
3 checks passed
@davidlu1001 davidlu1001 deleted the claude/tailwind-v4-migration-njihX branch January 9, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants