Getting Started
Getting Started with Fumadocs
Fumadocs UI is the built-in user interface integration for Fumadocs, built on the top of Radix UI.
Automatic Installation
Create a new app with create-fumadocs-app
.
Manual Installation
Create a new Next.js application with create-next-app
, and install required packages.
Configuration
Fumadocs UI is unopinionated and doesn't include content management features by default. You can choose a source you prefer, such as Contentlayer and Fumadocs MDX.
There is a list of supported sources:
You have to configure the library correctly following their setup guide before continuing.
Styles
You can import the pre-built stylesheet in the root layout.
For Tailwind CSS projects, you may use the official plugin instead.
It doesn't come with a default font, you may choose one from next/font
.
Root Layout
Wrap the entire application inside Root Provider.
Layout
Create a new catch-all route for our docs, and give it a proper layout.
tree
refers to Page Tree, which should be provided by your data source.
Page
For the page.tsx
, it may vary depending on your source. You should manually configure static rendering with generateStaticParams
and metadata with generateMetadata
.
Make sure to wrap your content in the Page component, this will also configure typography styles.
Search
By default, it uses the built-in document search based on Flexsearch. Learn to configure Document Search for your data source.
Enjoy!
Now, Create your first mdx file in the docs folder.
Run the app in development mode and see http://localhost:3000/docs.
FAQ
Demo
Open in CodeSandbox.
Learn More
Last updated on