Conversation
… configuration, and update README with installation instructions
Greptile SummaryThis PR integrates Fumadocs as the documentation framework for the c-ui component registry. The original homepage content was migrated to a structured documentation site with individual component pages featuring installation instructions, live interactive examples, usage code, and configuration tables. Key changes:
The implementation is well-structured and properly configured for Next.js static export with the existing Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| package.json | Added fumadocs dependencies (fumadocs-core, fumadocs-ui, fumadocs-mdx) for documentation framework |
| source.config.ts | Created fumadocs configuration pointing to content/docs directory |
| lib/source.ts | Created fumadocs loader for MDX content with /docs base URL |
| app/layout.tsx | Wrapped app with RootProvider and added suppressHydrationWarning for theme support |
| app/page.tsx | Simplified to redirect to /docs, moving registry showcase to documentation |
| app/docs/[[...slug]]/page.tsx | Dynamic route handler with generateStaticParams for static export compatibility |
| next.config.mjs | Integrated fumadocs MDX plugin with existing static export configuration |
| tsconfig.json | Added fumadocs-mdx:collections path mapping to .source directory |
| content/docs/index.mdx | Getting started documentation with installation instructions and component overview |
| components/docs/interactive-examples.tsx | Moved from app/ and enhanced with Dialog examples for MDX documentation |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Root /] --> B[app/page.tsx]
B --> C[redirect to /docs]
C --> D[app/docs/layout.tsx]
D --> E[DocsLayout with pageTree]
D --> F[Dynamic slug page]
F --> G{getPage from source}
G -->|found| H[Render MDX with DocsPage]
G -->|not found| I[notFound]
J[content/docs MDX files] --> K[fumadocs-mdx]
K --> L[.source directory]
L --> M[lib/source.ts loader]
M --> G
N[source.config.ts] --> K
O[tsconfig.json paths] --> L
H --> P[Interactive Examples]
P --> Q[components/docs]
Q --> R[registry/radix-nova components]
style C fill:#e1f5ff
style H fill:#d4edda
style K fill:#fff3cd
style R fill:#f8d7da
Last reviewed commit: 6d747fb
…kage.json; enhance README with build and start instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.