MuseMVP Docs
Documentation

Documentation Configuration

Configure docs alias, sidebar structure, and page tree source.

The docs module renders MDX from content/docs and builds sidebar navigation, powered by Fumadocs and Fumadocs MDX. This guide covers scope, entry points, and common config.

Fast Edit Path

Docs alias

/** packages/config/src/i18n.ts */
i18n: {
  locales: {
    en: {
      docsAlias: "Docs",
    },
    zh: {
      docsAlias: "文档",
    },
  },
}

Docs links live in SwitchHeader; template labels live in default.json and derivative overlays in mvp.json, not in a headerMenuMap.

content/docs/meta.en.json:

{
  "title": "MuseMVP Docs",
  "icon": "BookOpen",
  "pages": ["index", "tech-stack", "development", "quick-build", "cms"]
}

pages Order

The pages array defines left sidebar order. Sub-categories (e.g. cms) need a matching content/docs/cms/meta.{locale}.json.

Doc Organization Rules

cms-docs.en.mdx
meta.en.json
index.en.mdx
meta.en.json
TypePathDescription
Doc contentcontent/docs/**/*.mdxSupports *.zh.mdx, *.en.mdx for i18n
Category metacontent/docs/<category>/meta.{locale}.jsonSub-category pages and title
Root metacontent/docs/meta.{locale}.jsonRoot sidebar order and groups
Iconsfrontmatter iconMapped by source.icon() to icon components

Config Reference

ConfigLocationDefaultEffect
config.i18n.locales.*.docsAliaspackages/config"Docs" / "文档"Docs site title and page title suffix
Header Docs labelSwitchHeader + mvp.json (derivative)"Docs" / "文档"Nav link text
content/docs/meta.{locale}.jsoncontent/docs—Left sidebar order and groups
source.icon()src/lib/source.ts—Maps frontmatter icon to icon component

Adding a New Doc

Create both *.zh.mdx and *.en.mdx under content/docs or a subdirectory.

Add frontmatter: title, description, icon.

Register the page path in the pages array of the relevant meta.{locale}.json.

On this page