How it works
Every documentation project in 通用文档站点 follows the same path from draft to live site. Start by writing your pages in MDX, arrange them into a logical structure usingdocs.json, then publish with a single deployment step.
Write
Create pages using Markdown and MDX components to communicate clearly with your users.
Organize
Structure your pages into groups and tabs so users can find what they need quickly.
Publish
Deploy your documentation site and make it available to the world.
The docs.json file
docs.json is the central configuration file for your documentation site. It controls your site’s navigation structure, visual theme, brand colors, and metadata — everything that shapes how your site looks and behaves. You place this file at the root of your docs folder and update it whenever you add pages or change your site’s appearance.
Here is a minimal docs.json to get you started:
docs.json
File structure
A typical 通用文档站点 project follows a straightforward folder layout. Yourdocs.json lives at the root alongside your top-level pages, and subdirectories group related content together.
.mdx file corresponds to one page on your site. The file path maps directly to the page URL, so guides/overview.mdx becomes /guides/overview on your live site.