Quickstart
Start building awesome documentation in under 5 minutes
Setup your development environment
A minimum version of Node.js 18 is required. Note that Node.js 23.1 might have issues with the Next.js production build.
The Fumadocs template should now be initialized. You can start development!
Start the development server
Run the app in development mode and open http://localhost:3000/docs/ui in your browser.
Add your content
Fumadocs uses MDX for documentation, allowing you to write Markdown combined with React components. Add your content inside the content/docs
directory. The structure is similar to a standard Next.js app, making it easy to navigate and manage your files. To learn more about MDX, check out the MDX page.
Create your first MDX file in the docs
folder:
The app organizes content by concerns, e.g., content/docs/api-reference
, content/docs/ui
, content/docs/changelog
, etc.
Deploy your changes
This template works out-of-the-box with Vercel or Netlify. You can deploy your documentation site with a single click.
Docker Deployment
If you want to deploy your Fumadocs app using Docker with Fumadocs MDX configured, make sure to add the source.config.ts
file to the WORKDIR
in the Dockerfile.
The following snippet is taken from the official Next.js Dockerfile Example:
This ensures Fumadocs MDX can access your configuration file during builds.
Update your docs
Add content directly in your files using MDX syntax and React components. You can use built-in components or create your own.