Fumadocs

快速开始

开始使用 Fumadocs

介绍

🌐 Introduction

Fumadocs (Foo-ma 文档) 是一个文档框架,设计目标是快速、灵活,并能无缝整合到你的 React 框架中。

Fumadocs 有不同的部分:

🌐 Fumadocs has different parts:

想了解更多吗?

阅读我们深入的什么是Fumadocs介绍。

术语

🌐 Terminology

Markdown/MDX: Markdown 是一种用于创建格式化文本的标记语言。Fumadocs 原生支持 Markdown 和 MDX(Markdown 的超集)。

Bun 一个 JavaScript 运行时,我们用它来运行脚本。

具备一些 React.js 的基础知识对于进一步的自定义会很有帮助。

🌐 Some basic knowledge of React.js would be useful for further customisations.

自动安装

🌐 Automatic Installation

需要至少 Node.js 22 版本。

🌐 A minimum version of Node.js 22 required.

npm create fumadocs-app

它会询问你要使用的内置模板:

🌐 It will ask you the built-in template to use:

  • React.js框架:Next.js、Waku、React Router、Tanstack Start。
  • 内容来源:Fumadocs MDX。

新的fumadocs应用应该被初始化。现在你可以开始黑客操作了!

🌐 A new fumadocs app should be initialized. Now you can start hacking!

从现有代码库?

你可以按照手动安装指南开始使用。

享受吧!

🌐 Enjoy!

在 docs 文件夹中创建你的第一个 MDX 文件。

🌐 Create your first MDX file in the docs folder.

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

## Yo what's up

在开发模式下运行应用,并查看 http://localhost:3000/docs。

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

npm run dev

常见问题

🌐 FAQ

你可能会遇到的一些常见问题。

🌐 Some common questions you may encounter.

适用于 Vite

🌐 For Vite

适用于 Next.js

🌐 For Next.js

了解更多

🌐 Learn More

新来的吗?别担心,我们欢迎你的提问。

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

如果你发现任何令人困惑的地方,请在 Github 讨论 上提供你的反馈!

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

撰写内容

🌐 Writing Content

在撰写文档时,请务必阅读:

🌐 For authoring docs, make sure to read:

特殊需求

🌐 Special Needs

Last updated on

On this page