Overview
Use Fumadocs to build a docs site from local MDX files. This recipe focuses on a clean file structure, MDX components, and fast content iteration.
Ingredients
fumadocs-corefumadocs-mdx- A
content/docsfolder
Steps
- Install Fumadocs packages.
- Create
content/docsand add your first MDX file. - Register MDX components (callouts, tabs, previews).
- Add the docs route and layout.
Suggested Structure
content/
docs/
(root)/index.mdx
components/
cookbook/Example MDX Frontmatter
---
title: Getting Started
description: Quickstart guide for your docs.
---Tips
- Use a dedicated
mdx-components.tsxto register custom components. - Keep docs headings short so auto-generated anchors are clean.