File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ The project uses **Next.js (App Router)** and **Fumadocs**.
1313
1414### File Structure
1515- ** English Documentation** : ` content/docs/**/*.mdx ` (The source of truth)
16- - ** Chinese Documentation** : ` content/docs-zh/**/*.mdx ` (Translation)
1716- ** Navigation** : ` meta.json ` in each directory defines the sidebar structure.
1817
1918### Frontmatter
@@ -48,22 +47,18 @@ description: Short summary for search engines and preview cards
4847
4948### Internationalization (i18n)
5049- ` content/docs ` is for English (default).
51- - ` content/docs-zh-CN ` is for Chinese.
52- - Structure in ` content/docs-zh-CN ` must mirror ` content/docs ` .
5350
5451## Task Specific Instructions
5552
5653- ** Translation Workflow** :
5754 - Always write the English documentation in ` content/docs/ ` first.
58- - The CI workflow will automatically generate Chinese translations in ` content/docs-zh-CN/ ` .
5955
6056- ** When creating a new page** :
6157 1 . Create ` filename.mdx ` in ` content/docs/ ` .
6258 2 . Add the filename (without extension) to ` meta.json ` .
6359
6460- ** When editing content** :
6561 - Edit the file in ` content/docs/ ` .
66- - Do not manually edit files in ` content/docs-zh-CN/ ` unless fixing a bad translation.
6762
6863- ** When explaining code** :
6964 - Provide context about where the code belongs (e.g., "In ` source.config.ts ` ...").
You can’t perform that action at this time.
0 commit comments