Logo智流GEO
核心优势技术产品解决方案价格方案服务中心
快速入门
2025/03/28

快速入门

Fumadocs 入门指南

Introduction

Fumadocs (Foo-ma docs) is a documentation framework based on Next.js, designed to be fast, flexible, and composes seamlessly into Next.js App Router.

Fumadocs has different parts:

Fumadocs Core

Handles most of the logic, including document search, content source adapters, and Markdown extensions.

Fumadocs UI

The default theme of Fumadocs offers a beautiful look for documentation sites and interactive components.

Content Source

The source of your content, can be a CMS or local data layers like Content Collections and Fumadocs MDX, the official content source.

Fumadocs CLI

A command line tool to install UI components and automate things, useful for customizing layouts.

Want to learn more?

Read our in-depth What is Fumadocs introduction.

Terminology

Markdown/MDX: Markdown is a markup language for creating formatted text. Fumadocs supports Markdown and MDX (superset of Markdown) out-of-the-box.

Although not required, some basic knowledge of Next.js App Router would be useful for further customisations.

Automatic Installation

A minimum version of Node.js 18 required, note that Node.js 23.1 might have problems with Next.js production build.

npm create fumadocs-app
pnpm create fumadocs-app
yarn create fumadocs-app
bun create fumadocs-app

It will ask you the framework and content source to use, a new fumadocs app should be initialized. Now you can start hacking!

From Existing Codebase?

You can follow the Manual Installation guide to get started.

Enjoy!

Create your first MDX file in the docs folder.

content/docs/index.mdx
---
title: Hello World
---

## Yo what's up

Run the app in development mode and see http://localhost:3000/docs.

npm run dev

Explore

In the project, you can see:

  • lib/source.ts: Code for content source adapter, loader() provides an interface to interact with your content source, and assigns URL to your pages.
  • app/layout.config.tsx: Shared options for layouts, optional but preferred to keep.
RouteDescription
app/(home)The route group for your landing page and other pages.
app/docsThe documentation layout and pages.
app/api/search/route.tsThe Route Handler for search.

Writing Content

For authoring docs, make sure to read:

Markdown

Fumadocs has some additional features for authoring content too.

Navigation

Learn how to customise navigation links/sidebar items.

Content Source

Content source handles all your content, like compiling Markdown files and validating frontmatter.

Read the Introduction to learn how it handles your content.

A source.config.ts config file has been included, you can customise different options like frontmatter schema.

Fumadocs is not Markdown-exclusive. For other sources like Sanity, you can build a custom content source.

Customise UI

See Customisation Guide.

FAQ

Some common questions you may encounter.

Learn More

New to here? Don't worry, we are welcome for your questions.

If you find anything confusing, please give your feedback on Github Discussion!

Configure Static Export

Learn how to enable static export on your docs

Customise Search

Learn how to customise document search

Theming

Add themes to Fumadocs UI

Components

See all available components to enhance your docs

全部文章

分类

  • 公司
  • 新闻
IntroductionTerminologyAutomatic InstallationEnjoy!ExploreWriting ContentContent SourceCustomise UIFAQLearn More

更多文章

什么是 Fumadocs
公司产品

什么是 Fumadocs

介绍 Fumadocs,一个可以打破常规的文档框架

avatar for Fox
Fox
2025/04/01
搜索
公司新闻

搜索

在您的文档中实现文档搜索

2025/02/15
对比
公司新闻

对比

Fumadocs 与其他现有框架有何不同?

avatar for Fox
Fox
2025/03/22

订阅通讯

加入社区

订阅我们的通讯,获取最新资讯与更新

为什么选择智流AI

智流GEO是专注于人工智能搜索生态优化服务解决方案,我们作为AI搜索时代的先试者,致力于为合作伙伴提供专业高效的GEO数据分析监测及策略服务。

智流GEO希望通过全域数据洞察,帮助合作伙伴明晰品牌当前AI可见度现状,驱动正确营销策略,实现AI营销决策升级。

二维码待甲方提供
小红书
二维码待甲方提供
微信
关于我们
  • 公司介绍
  • 加入我们
  • 帮助中心
  • 合作加盟
产品服务
  • 核心优势
  • 解决方案
  • 价格体系
  • 数据分析
新闻资讯
  • 暂无新闻
© 2026 智流GEO. All Rights Reserved. 沪ICP备2026003151号  网ICP备2026003XXX号
隐私政策服务条款友情链接智流GEO v1.0.0