Fumadocs
Fumadocs is a composable documentation framework supporting Next.js, React Router, TanStack Start, and Waku. It consists of Fumadocs Core (headless library), Fumadocs UI (default theme), Fumadocs MDX (official content source), and Fumadocs CLI.
Research Process
To answer questions about Fumadocs, spawn a sub-agent to conduct thorough documentation research.
Launch a Research Sub-Agent
Use the Task tool to spawn a sub-agent dedicated to Fumadocs documentation research. Do NOT specify a model (use the default model for comprehensive research quality).
Critical: Provide the sub-agent with a highly detailed prompt that includes:
- Goal - What you are ultimately trying to accomplish
- Context - Why you need this information and how it fits into the larger task
- Specific Questions - Exactly what information you need answered
- Output Requirements - The format and level of detail needed in the response
Task Tool Configuration
Task tool parameters:
- description: "Research Fumadocs docs"
- subagent_type: "generalPurpose"
- model: (DO NOT SPECIFY - use default for thorough research)
- readonly: true
- prompt: (see template below)
Prompt Template for Sub-Agent
Structure your prompt to the research sub-agent as follows:
You are researching Fumadocs documentation to help with a specific task.
## Your Research Goal
[Describe exactly what you need to accomplish with this information]
## Context
[Explain why you need this information and how it will be used]
## Specific Questions to Answer
[List the specific questions that need to be answered]
## Research Process
1. First, fetch the documentation index to see all available pages:
URL: https://www.fumadocs.dev/llms.txt
This index lists every documentation page organized by package.
Doc pages can be fetched by appending .md to the path, e.g.:
https://www.fumadocs.dev/docs/search.md
2. Based on the questions above, identify and fetch the most relevant documentation. The docs are organized by package:
**Framework (core docs framework):**
Getting Started:
- /docs - Quick start guide
- /docs/what-is-fumadocs - Introduction and overview
- /docs/comparisons - Comparisons with other frameworks
Manual Installation (per-framework):
- /docs/manual-installation - Overview
- /docs/manual-installation/next - Next.js setup
- /docs/manual-installation/react-router - React Router setup
- /docs/manual-installation/tanstack-start - TanStack Start setup
- /docs/manual-installation/waku - Waku setup
Writing:
- /docs/page-conventions - Page slugs and page tree
- /docs/markdown - Writing documents in MDX
- /docs/markdown/math - Math equations
- /docs/markdown/mermaid - Mermaid diagrams
- /docs/markdown/twoslash - TypeScript Twoslash
Configuration:
- /docs/navigation - Navigation configuration
- /docs/deploying - Deployment guide
- /docs/deploying/static - Static site output
- /docs/internationalization - i18n overview
- /docs/internationalization/next - i18n with Next.js
- /docs/internationalization/react-router - i18n with React Router
- /docs/internationalization/tanstack-start - i18n with TanStack Start
Search:
- /docs/search - Search overview
- /docs/search/orama - Orama (default search)
- /docs/search/algolia - Algolia integration
- /docs/search/flexsearch - FlexSearch
- /docs/search/mixedbread - Mixedbread
- /docs/search/orama-cloud - Orama Cloud
- /docs/search/typesense - Typesense
- /docs/search/custom - Custom search solutions
Integrations:
- /docs/integrations/feedback - User feedback
- /docs/integrations/llms - AI & LLM integration
- /docs/integrations/validate-links - Link validation
- /docs/integrations/obsidian - Obsidian vault rendering
- /docs/integrations/python - Python doc generation
- /docs/integrations/typescript - TypeScript doc generation
- /docs/integrations/content - Content source integration
- /docs/integrations/content/custom - Custom content sources
- /docs/integrations/content/mdx-remote - MDX Remote
- /docs/integrations/og - OG image generation
- /docs/integrations/og/next - OG with Next.js
- /docs/integrations/og/takumi - OG with Takumi
- /docs/integrations/openapi - OpenAPI docs generation
- /docs/integrations/openapi/api-page - OpenAPI page component
- /docs/integrations/openapi/generate-files - generateFiles()
- /docs/integrations/openapi/server - createOpenAPI() server
- /docs/integrations/story - Story component display
- /docs/integrations/story/next - Story with Next.js
- /docs/integrations/story/vite - Story with Vite
Guides:
- /docs/guides - Guides overview
- /docs/guides/access-control - Access control
- /docs/guides/export-epub - EPUB export
- /docs/guides/export-pdf - PDF export
- /docs/guides/rss - RSS feed generation
**Fumadocs UI (default theme):**
- /docs/ui - UI overview
- /docs/ui/component-library - Headless component library
- /docs/ui/theme - Theming
Search UI:
- /docs/ui/search - Search UI component
Components:
- /docs/ui/components - Component overview
- /docs/ui/components/accordion - Accordion
- /docs/ui/components/auto-type-table - Auto type table
- /docs/ui/components/banner - Banner
- /docs/ui/components/codeblock - Code block (Shiki)
- /docs/ui/components/dynamic-codeblock - Dynamic code block
- /docs/ui/components/files - File structure display
- /docs/ui/components/github-info - GitHub info
- /docs/ui/components/graph-view - Graph view
- /docs/ui/components/image-zoom - Zoomable image
- /docs/ui/components/inline-toc - Inline TOC
- /docs/ui/components/steps - Steps
- /docs/ui/components/tabs - Tabs
- /docs/ui/components/type-table - Type table
Layouts:
- /docs/ui/layouts - Layout overview
- /docs/ui/layouts/links - Layout links/navigation
- /docs/ui/layouts/nav - Navbar configuration
- /docs/ui/layouts/docs - Docs layout
- /docs/ui/layouts/flux - Flux (minimal) layout
- /docs/ui/layouts/home-layout - Home layout
- /docs/ui/layouts/notebook - Notebook layout
- /docs/ui/layouts/page - Docs page component
- /docs/ui/layouts/root-provider - Root provider
**Fumadocs Core (headless library):**
- /docs/headless - Introduction
Search (headless):
- /docs/headless/search - Search configuration
- /docs/headless/search/algolia - Algolia
- /docs/headless/search/flexsearch - FlexSearch
- /docs/headless/search/mixedbread - Mixedbread
- /docs/headless/search/orama - Built-in Orama search
- /docs/headless/search/orama-cloud - Orama Cloud
- /docs/headless/search/trieve - Trieve
- /docs/headless/search/typesense - Typesense
API References:
- /docs/headless/page-tree - Page tree structure
- /docs/headless/internationalization/config - i18n configuration
- /docs/headless/internationalization/middleware - i18n middleware
- /docs/headless/components - Headless components
- /docs/headless/components/breadcrumb - Breadcrumb
- /docs/headless/components/link - Link
- /docs/headless/components/toc - Table of Contents
- /docs/headless/utils - Utilities
- /docs/headless/utils/get-toc - Get TOC from content
- /docs/headless/utils/git-last-edit - Last modified time
- /docs/headless/utils/page-tree - Page tree utilities
- /docs/headless/utils/shiki - Shiki management
MDX Plugins:
- /docs/headless/mdx - MDX plugins overview
- /docs/headless/mdx/headings - Heading processing
- /docs/headless/mdx/install - Package install code blocks
- /docs/headless/mdx/rehype-code - Rehype code highlighter
- /docs/headless/mdx/remark-admonition - Admonitions
- /docs/headless/mdx/remark-image - Image sizing
- /docs/headless/mdx/remark-llms - LLM markdown generation
- /docs/headless/mdx/remark-mdx-files - File generation from codeblocks
- /docs/headless/mdx/remark-npm - Package manager code blocks
- /docs/headless/mdx/remark-ts2js - TS to JS conversion
- /docs/headless/mdx/structure - Document structure extraction
Sources:
- /docs/headless/source-api - Loader API
- /docs/headless/source-api/plugins - Loader plugins
- /docs/headless/source-api/source - Source setup
- /docs/headless/page-conventions - Page slug conventions
- /docs/headless/content-collections - Content Collections
**Fumadocs MDX (official content source):**
- /docs/mdx - Getting started
- /docs/mdx/performance - Performance
Accessing Collections:
- /docs/mdx/entry - Entry files
- /docs/mdx/entry/browser - Browser entry
- /docs/mdx/entry/dynamic - Dynamic entry
- /docs/mdx/entry/import - Import MDX files
- /docs/mdx/entry/server - Server entry
Framework Integration:
- /docs/mdx/next - Next.js integration
- /docs/mdx/vite - Vite integration
Runtime Loader:
- /docs/mdx/loader - Loader overview
- /docs/mdx/loader/bun - Bun runtime
- /docs/mdx/loader/node - Node.js runtime
Configuration:
- /docs/mdx/collections - Collections definition
- /docs/mdx/global - Global options
- /docs/mdx/mdx - MDX processor presets
Features:
- /docs/mdx/include - Content reuse
- /docs/mdx/last-modified - Last modified time
- /docs/mdx/async - Lazy loading
- /docs/mdx/typegen - Type generation
- /docs/mdx/workspace - Monorepo workspace
**Fumadocs CLI:**
- /docs/cli - CLI user guide
- /docs/cli/create-fumadocs-app - Create new app
- /docs/cli/press - Fumapress (Markdown viewer)
3. Fetch multiple relevant pages in parallel using WebFetch.
## Required Output
[Specify exactly what format and content you need returned]
Provide a comprehensive response with all findings, including relevant code examples, configuration snippets, and step-by-step instructions where applicable.
Example Usage
If you need to help a user set up Fumadocs with Next.js:
Task tool prompt:
You are researching Fumadocs documentation to help with a specific task.
## Your Research Goal
Find complete instructions for setting up a Fumadocs documentation site with Next.js, including MDX content source, navigation, and search.
## Context
A user wants to create a documentation site using Fumadocs on Next.js with the default Fumadocs UI theme, MDX content, and built-in search.
## Specific Questions to Answer
1. How do you create a new Fumadocs project or add it to an existing Next.js app?
2. How do you configure Fumadocs MDX as the content source?
3. How do you set up navigation and page tree?
4. How do you configure the Docs layout and page components?
5. How do you enable built-in Orama search?
## Research Process
1. First fetch https://www.fumadocs.dev/llms.txt for the documentation index
2. Then fetch /docs.md, /docs/manual-installation/next.md, /docs/mdx.md, /docs/mdx/next.md
3. Also fetch /docs/navigation.md, /docs/ui/layouts/docs.md, /docs/search/orama.md
## Required Output
Provide step-by-step setup instructions with all code examples. Include project structure, configuration, and layout setup.
Example: OpenAPI Integration
Task tool prompt:
You are researching Fumadocs documentation to help with a specific task.
## Your Research Goal
Understand how to generate API documentation from an OpenAPI schema using Fumadocs, including page generation and the API playground component.
## Context
A user has an OpenAPI spec and wants to auto-generate interactive API documentation within their Fumadocs site.
## Specific Questions to Answer
1. How do you set up the OpenAPI integration?
2. How do you generate pages from an OpenAPI schema with generateFiles()?
3. How do you use createOpenAPI() for the server instance?
4. How do you render the API page component?
5. How do you customize the generated API docs?
## Research Process
1. First fetch https://www.fumadocs.dev/llms.txt for the index
2. Fetch /docs/integrations/openapi.md, /docs/integrations/openapi/generate-files.md, /docs/integrations/openapi/server.md, /docs/integrations/openapi/api-page.md
## Required Output
Provide a complete guide to OpenAPI integration with configuration and code examples.
Example: Theming and UI Customization
Task tool prompt:
You are researching Fumadocs documentation to help with a specific task.
## Your Research Goal
Learn how to customize the Fumadocs UI theme, layouts, and components to match a brand's visual identity.
## Context
A user wants to customize colors, fonts, layout structure, and add custom components to their Fumadocs site.
## Specific Questions to Answer
1. How do you configure theming and colors?
2. What layout options are available (Docs, Flux, Notebook, Home)?
3. How do you customize the navbar and navigation links?
4. What built-in UI components are available?
5. How do you add custom components?
## Research Process
1. First fetch https://www.fumadocs.dev/llms.txt for the index
2. Fetch /docs/ui.md, /docs/ui/theme.md, /docs/ui/layouts.md, /docs/ui/layouts/docs.md, /docs/ui/layouts/nav.md
3. Fetch /docs/ui/components.md for component overview
## Required Output
Provide a comprehensive theming and customization guide with configuration examples.
After Receiving Sub-Agent Results
The sub-agent will return comprehensive documentation findings. Use this information to:
- Answer the user's question accurately
- Implement the required functionality
- Provide code examples and configuration directly from official docs
Quick Reference: Common Topics
| Topic |
Key Docs |
| Getting Started |
/docs, /docs/what-is-fumadocs |
| Next.js Setup |
/docs/manual-installation/next, /docs/mdx/next |
| React Router Setup |
/docs/manual-installation/react-router |
| TanStack Start Setup |
/docs/manual-installation/tanstack-start |
| MDX Content Source |
/docs/mdx, /docs/mdx/collections |
| Page Tree & Slugs |
/docs/page-conventions, /docs/headless/page-tree |
| Navigation |
/docs/navigation, /docs/ui/layouts/links |
| Search |
/docs/search, /docs/search/orama |
| Fumadocs UI |
/docs/ui, /docs/ui/theme, /docs/ui/layouts |
| Components |
/docs/ui/components (accordion, tabs, steps, code block, etc.) |
| Layouts |
/docs/ui/layouts/docs, /docs/ui/layouts/flux, /docs/ui/layouts/notebook |
| OpenAPI |
/docs/integrations/openapi, /docs/integrations/openapi/generate-files |
| i18n |
/docs/internationalization, framework-specific pages |
| Deployment |
/docs/deploying, /docs/deploying/static |
| MDX Plugins |
/docs/headless/mdx (rehype-code, remark-admonition, etc.) |
| Headless Core |
/docs/headless, /docs/headless/source-api |
| CLI |
/docs/cli, /docs/cli/create-fumadocs-app |
| AI & LLMs |
/docs/integrations/llms |
Package Overview
| Package |
Purpose |
| Fumadocs Core |
Headless library: page tree, search, components, MDX plugins, utilities |
| Fumadocs UI |
Default theme: layouts (Docs, Flux, Notebook, Home), UI components, search UI |
| Fumadocs MDX |
Official content source: MDX collections, entries, loader, type generation |
| Fumadocs CLI |
CLI tools: project scaffolding, component installation, Fumapress |
Documentation URL
Main documentation index: https://www.fumadocs.dev/llms.txt
1---2name: fumadocs3description: Fumadocs documentation framework guidance. Use when working with Fumadocs - a flexible docs framework for Next.js, React Router, TanStack Start, and Waku. Triggers on questions about Fumadocs setup, page tree, MDX content source, Fumadocs UI, Fumadocs Core, search integration, OpenAPI docs, internationalization, layouts, components, navigation, deploying, or ANY Fumadocs-related development tasks.4---56# Fumadocs78Fumadocs is a composable documentation framework supporting Next.js, React Router, TanStack Start, and Waku. It consists of Fumadocs Core (headless library), Fumadocs UI (default theme), Fumadocs MDX (official content source), and Fumadocs CLI.910## Research Process1112To answer questions about Fumadocs, spawn a sub-agent to conduct thorough documentation research.1314### Launch a Research Sub-Agent1516Use the **Task tool** to spawn a sub-agent dedicated to Fumadocs documentation research. Do NOT specify a model (use the default model for comprehensive research quality).1718**Critical**: Provide the sub-agent with a highly detailed prompt that includes:19201. **Goal** - What you are ultimately trying to accomplish212. **Context** - Why you need this information and how it fits into the larger task223. **Specific Questions** - Exactly what information you need answered234. **Output Requirements** - The format and level of detail needed in the response2425### Task Tool Configuration2627```28Task tool parameters:29- description: "Research Fumadocs docs"30- subagent_type: "generalPurpose"31- model: (DO NOT SPECIFY - use default for thorough research)32- readonly: true33- prompt: (see template below)34```3536### Prompt Template for Sub-Agent3738Structure your prompt to the research sub-agent as follows:3940```41You are researching Fumadocs documentation to help with a specific task.4243## Your Research Goal44[Describe exactly what you need to accomplish with this information]4546## Context47[Explain why you need this information and how it will be used]4849## Specific Questions to Answer50[List the specific questions that need to be answered]5152## Research Process53541. First, fetch the documentation index to see all available pages:55 URL: https://www.fumadocs.dev/llms.txt5657 This index lists every documentation page organized by package.58 Doc pages can be fetched by appending .md to the path, e.g.:59 https://www.fumadocs.dev/docs/search.md60612. Based on the questions above, identify and fetch the most relevant documentation. The docs are organized by package:6263 **Framework (core docs framework):**6465 Getting Started:66 - /docs - Quick start guide67 - /docs/what-is-fumadocs - Introduction and overview68 - /docs/comparisons - Comparisons with other frameworks6970 Manual Installation (per-framework):71 - /docs/manual-installation - Overview72 - /docs/manual-installation/next - Next.js setup73 - /docs/manual-installation/react-router - React Router setup74 - /docs/manual-installation/tanstack-start - TanStack Start setup75 - /docs/manual-installation/waku - Waku setup7677 Writing:78 - /docs/page-conventions - Page slugs and page tree79 - /docs/markdown - Writing documents in MDX80 - /docs/markdown/math - Math equations81 - /docs/markdown/mermaid - Mermaid diagrams82 - /docs/markdown/twoslash - TypeScript Twoslash8384 Configuration:85 - /docs/navigation - Navigation configuration86 - /docs/deploying - Deployment guide87 - /docs/deploying/static - Static site output88 - /docs/internationalization - i18n overview89 - /docs/internationalization/next - i18n with Next.js90 - /docs/internationalization/react-router - i18n with React Router91 - /docs/internationalization/tanstack-start - i18n with TanStack Start9293 Search:94 - /docs/search - Search overview95 - /docs/search/orama - Orama (default search)96 - /docs/search/algolia - Algolia integration97 - /docs/search/flexsearch - FlexSearch98 - /docs/search/mixedbread - Mixedbread99 - /docs/search/orama-cloud - Orama Cloud100 - /docs/search/typesense - Typesense101 - /docs/search/custom - Custom search solutions102103 Integrations:104 - /docs/integrations/feedback - User feedback105 - /docs/integrations/llms - AI & LLM integration106 - /docs/integrations/validate-links - Link validation107 - /docs/integrations/obsidian - Obsidian vault rendering108 - /docs/integrations/python - Python doc generation109 - /docs/integrations/typescript - TypeScript doc generation110 - /docs/integrations/content - Content source integration111 - /docs/integrations/content/custom - Custom content sources112 - /docs/integrations/content/mdx-remote - MDX Remote113 - /docs/integrations/og - OG image generation114 - /docs/integrations/og/next - OG with Next.js115 - /docs/integrations/og/takumi - OG with Takumi116 - /docs/integrations/openapi - OpenAPI docs generation117 - /docs/integrations/openapi/api-page - OpenAPI page component118 - /docs/integrations/openapi/generate-files - generateFiles()119 - /docs/integrations/openapi/server - createOpenAPI() server120 - /docs/integrations/story - Story component display121 - /docs/integrations/story/next - Story with Next.js122 - /docs/integrations/story/vite - Story with Vite123124 Guides:125 - /docs/guides - Guides overview126 - /docs/guides/access-control - Access control127 - /docs/guides/export-epub - EPUB export128 - /docs/guides/export-pdf - PDF export129 - /docs/guides/rss - RSS feed generation130131 **Fumadocs UI (default theme):**132133 - /docs/ui - UI overview134 - /docs/ui/component-library - Headless component library135 - /docs/ui/theme - Theming136137 Search UI:138 - /docs/ui/search - Search UI component139140 Components:141 - /docs/ui/components - Component overview142 - /docs/ui/components/accordion - Accordion143 - /docs/ui/components/auto-type-table - Auto type table144 - /docs/ui/components/banner - Banner145 - /docs/ui/components/codeblock - Code block (Shiki)146 - /docs/ui/components/dynamic-codeblock - Dynamic code block147 - /docs/ui/components/files - File structure display148 - /docs/ui/components/github-info - GitHub info149 - /docs/ui/components/graph-view - Graph view150 - /docs/ui/components/image-zoom - Zoomable image151 - /docs/ui/components/inline-toc - Inline TOC152 - /docs/ui/components/steps - Steps153 - /docs/ui/components/tabs - Tabs154 - /docs/ui/components/type-table - Type table155156 Layouts:157 - /docs/ui/layouts - Layout overview158 - /docs/ui/layouts/links - Layout links/navigation159 - /docs/ui/layouts/nav - Navbar configuration160 - /docs/ui/layouts/docs - Docs layout161 - /docs/ui/layouts/flux - Flux (minimal) layout162 - /docs/ui/layouts/home-layout - Home layout163 - /docs/ui/layouts/notebook - Notebook layout164 - /docs/ui/layouts/page - Docs page component165 - /docs/ui/layouts/root-provider - Root provider166167 **Fumadocs Core (headless library):**168169 - /docs/headless - Introduction170171 Search (headless):172 - /docs/headless/search - Search configuration173 - /docs/headless/search/algolia - Algolia174 - /docs/headless/search/flexsearch - FlexSearch175 - /docs/headless/search/mixedbread - Mixedbread176 - /docs/headless/search/orama - Built-in Orama search177 - /docs/headless/search/orama-cloud - Orama Cloud178 - /docs/headless/search/trieve - Trieve179 - /docs/headless/search/typesense - Typesense180181 API References:182 - /docs/headless/page-tree - Page tree structure183 - /docs/headless/internationalization/config - i18n configuration184 - /docs/headless/internationalization/middleware - i18n middleware185 - /docs/headless/components - Headless components186 - /docs/headless/components/breadcrumb - Breadcrumb187 - /docs/headless/components/link - Link188 - /docs/headless/components/toc - Table of Contents189 - /docs/headless/utils - Utilities190 - /docs/headless/utils/get-toc - Get TOC from content191 - /docs/headless/utils/git-last-edit - Last modified time192 - /docs/headless/utils/page-tree - Page tree utilities193 - /docs/headless/utils/shiki - Shiki management194195 MDX Plugins:196 - /docs/headless/mdx - MDX plugins overview197 - /docs/headless/mdx/headings - Heading processing198 - /docs/headless/mdx/install - Package install code blocks199 - /docs/headless/mdx/rehype-code - Rehype code highlighter200 - /docs/headless/mdx/remark-admonition - Admonitions201 - /docs/headless/mdx/remark-image - Image sizing202 - /docs/headless/mdx/remark-llms - LLM markdown generation203 - /docs/headless/mdx/remark-mdx-files - File generation from codeblocks204 - /docs/headless/mdx/remark-npm - Package manager code blocks205 - /docs/headless/mdx/remark-ts2js - TS to JS conversion206 - /docs/headless/mdx/structure - Document structure extraction207208 Sources:209 - /docs/headless/source-api - Loader API210 - /docs/headless/source-api/plugins - Loader plugins211 - /docs/headless/source-api/source - Source setup212 - /docs/headless/page-conventions - Page slug conventions213 - /docs/headless/content-collections - Content Collections214215 **Fumadocs MDX (official content source):**216217 - /docs/mdx - Getting started218 - /docs/mdx/performance - Performance219220 Accessing Collections:221 - /docs/mdx/entry - Entry files222 - /docs/mdx/entry/browser - Browser entry223 - /docs/mdx/entry/dynamic - Dynamic entry224 - /docs/mdx/entry/import - Import MDX files225 - /docs/mdx/entry/server - Server entry226227 Framework Integration:228 - /docs/mdx/next - Next.js integration229 - /docs/mdx/vite - Vite integration230231 Runtime Loader:232 - /docs/mdx/loader - Loader overview233 - /docs/mdx/loader/bun - Bun runtime234 - /docs/mdx/loader/node - Node.js runtime235236 Configuration:237 - /docs/mdx/collections - Collections definition238 - /docs/mdx/global - Global options239 - /docs/mdx/mdx - MDX processor presets240241 Features:242 - /docs/mdx/include - Content reuse243 - /docs/mdx/last-modified - Last modified time244 - /docs/mdx/async - Lazy loading245 - /docs/mdx/typegen - Type generation246 - /docs/mdx/workspace - Monorepo workspace247248 **Fumadocs CLI:**249250 - /docs/cli - CLI user guide251 - /docs/cli/create-fumadocs-app - Create new app252 - /docs/cli/press - Fumapress (Markdown viewer)2532543. Fetch multiple relevant pages in parallel using WebFetch.255256## Required Output257[Specify exactly what format and content you need returned]258259Provide a comprehensive response with all findings, including relevant code examples, configuration snippets, and step-by-step instructions where applicable.260```261262### Example Usage263264If you need to help a user set up Fumadocs with Next.js:265266```267Task tool prompt:268269You are researching Fumadocs documentation to help with a specific task.270271## Your Research Goal272Find complete instructions for setting up a Fumadocs documentation site with Next.js, including MDX content source, navigation, and search.273274## Context275A user wants to create a documentation site using Fumadocs on Next.js with the default Fumadocs UI theme, MDX content, and built-in search.276277## Specific Questions to Answer2781. How do you create a new Fumadocs project or add it to an existing Next.js app?2792. How do you configure Fumadocs MDX as the content source?2803. How do you set up navigation and page tree?2814. How do you configure the Docs layout and page components?2825. How do you enable built-in Orama search?283284## Research Process2851. First fetch https://www.fumadocs.dev/llms.txt for the documentation index2862. Then fetch /docs.md, /docs/manual-installation/next.md, /docs/mdx.md, /docs/mdx/next.md2873. Also fetch /docs/navigation.md, /docs/ui/layouts/docs.md, /docs/search/orama.md288289## Required Output290Provide step-by-step setup instructions with all code examples. Include project structure, configuration, and layout setup.291```292293### Example: OpenAPI Integration294295```296Task tool prompt:297298You are researching Fumadocs documentation to help with a specific task.299300## Your Research Goal301Understand how to generate API documentation from an OpenAPI schema using Fumadocs, including page generation and the API playground component.302303## Context304A user has an OpenAPI spec and wants to auto-generate interactive API documentation within their Fumadocs site.305306## Specific Questions to Answer3071. How do you set up the OpenAPI integration?3082. How do you generate pages from an OpenAPI schema with generateFiles()?3093. How do you use createOpenAPI() for the server instance?3104. How do you render the API page component?3115. How do you customize the generated API docs?312313## Research Process3141. First fetch https://www.fumadocs.dev/llms.txt for the index3152. Fetch /docs/integrations/openapi.md, /docs/integrations/openapi/generate-files.md, /docs/integrations/openapi/server.md, /docs/integrations/openapi/api-page.md316317## Required Output318Provide a complete guide to OpenAPI integration with configuration and code examples.319```320321### Example: Theming and UI Customization322323```324Task tool prompt:325326You are researching Fumadocs documentation to help with a specific task.327328## Your Research Goal329Learn how to customize the Fumadocs UI theme, layouts, and components to match a brand's visual identity.330331## Context332A user wants to customize colors, fonts, layout structure, and add custom components to their Fumadocs site.333334## Specific Questions to Answer3351. How do you configure theming and colors?3362. What layout options are available (Docs, Flux, Notebook, Home)?3373. How do you customize the navbar and navigation links?3384. What built-in UI components are available?3395. How do you add custom components?340341## Research Process3421. First fetch https://www.fumadocs.dev/llms.txt for the index3432. Fetch /docs/ui.md, /docs/ui/theme.md, /docs/ui/layouts.md, /docs/ui/layouts/docs.md, /docs/ui/layouts/nav.md3443. Fetch /docs/ui/components.md for component overview345346## Required Output347Provide a comprehensive theming and customization guide with configuration examples.348```349350### After Receiving Sub-Agent Results351352The sub-agent will return comprehensive documentation findings. Use this information to:353- Answer the user's question accurately354- Implement the required functionality355- Provide code examples and configuration directly from official docs356357## Quick Reference: Common Topics358359| Topic | Key Docs |360|-------|----------|361| Getting Started | `/docs`, `/docs/what-is-fumadocs` |362| Next.js Setup | `/docs/manual-installation/next`, `/docs/mdx/next` |363| React Router Setup | `/docs/manual-installation/react-router` |364| TanStack Start Setup | `/docs/manual-installation/tanstack-start` |365| MDX Content Source | `/docs/mdx`, `/docs/mdx/collections` |366| Page Tree & Slugs | `/docs/page-conventions`, `/docs/headless/page-tree` |367| Navigation | `/docs/navigation`, `/docs/ui/layouts/links` |368| Search | `/docs/search`, `/docs/search/orama` |369| Fumadocs UI | `/docs/ui`, `/docs/ui/theme`, `/docs/ui/layouts` |370| Components | `/docs/ui/components` (accordion, tabs, steps, code block, etc.) |371| Layouts | `/docs/ui/layouts/docs`, `/docs/ui/layouts/flux`, `/docs/ui/layouts/notebook` |372| OpenAPI | `/docs/integrations/openapi`, `/docs/integrations/openapi/generate-files` |373| i18n | `/docs/internationalization`, framework-specific pages |374| Deployment | `/docs/deploying`, `/docs/deploying/static` |375| MDX Plugins | `/docs/headless/mdx` (rehype-code, remark-admonition, etc.) |376| Headless Core | `/docs/headless`, `/docs/headless/source-api` |377| CLI | `/docs/cli`, `/docs/cli/create-fumadocs-app` |378| AI & LLMs | `/docs/integrations/llms` |379380## Package Overview381382| Package | Purpose |383|---------|---------|384| Fumadocs Core | Headless library: page tree, search, components, MDX plugins, utilities |385| Fumadocs UI | Default theme: layouts (Docs, Flux, Notebook, Home), UI components, search UI |386| Fumadocs MDX | Official content source: MDX collections, entries, loader, type generation |387| Fumadocs CLI | CLI tools: project scaffolding, component installation, Fumapress |388389## Documentation URL390391Main documentation index: `https://www.fumadocs.dev/llms.txt`