基于 Fumadocs(Next.js App Router)构建的 Ark 文档网站。
npm install
npm run dev # http://localhost:3000
npm run build && npm startDocker 独立镜像:docker build -t ark-docs:local .(详见 deployment 文档)
- 内容:
content/docs/**/*.mdx,frontmatter 支持title(必填)/description/full/icon - 侧边栏顺序:各目录的
meta.json(pages数组) - 图片:放
public/images/,正文用/images/xxx.png引用 - 内部链接:使用路由路径(如
/docs/tutorial/data-sync) - 组件:
Cards/Card/Callout/Tabs/Steps/TypeTable等可直接在 MDX 中使用 - 搜索:Orama 全文 + 中文分词(
@orama/tokenizers/mandarin) - LLM 友好输出:
/llms.txt、/llms-full.txt、/llms.mdx/docs/<path>/content.md
