@@ -127,7 +127,7 @@ pnpm dev
127127
128128打开浏览器访问 [ http://localhost:3000 ] ( http://localhost:3000 ) 。
129129
130- 修改 ` docs/ ` 下的 ` .md ` 或 ` .mdx ` 文件,会自动热更新。
130+ 修改 ` docs/ ` 下的 ` .md ` 文件,会自动热更新。
131131
132132---
133133
@@ -155,7 +155,7 @@ pnpm postinstall # 同步必要的 Husky/Fumadocs 配置
155155docxA 引用了 imgA 图片, 那么他们的文档结构应该是 ` docxA.assets/imgA ` :
156156
157157``` md
158- docsA.mdx
158+ docsA.md
159159docsA.assets/
160160imgA
161161```
@@ -199,35 +199,35 @@ tags:
199199```
200200📂 docs/
201201├── 📂 computer-science/ # 计算机科学
202- │ ├── 📄 index.mdx # 概述
202+ │ ├── 📄 index.md # 概述
203203│ └── 📂 data-structures/ # 数据结构
204- │ ├── 📄 index.mdx # 概述
204+ │ ├── 📄 index.md # 概述
205205│ ├── 📂 array/ # 数组
206- │ │ ├── 📄 index.mdx # 概述
207- │ │ ├── 📄 01-static-array.mdx # 静态数组
208- │ │ └── 📄 02-dynamic-array.mdx # 动态数组
206+ │ │ ├── 📄 index.md # 概述
207+ │ │ ├── 📄 01-static-array.md # 静态数组
208+ │ │ └── 📄 02-dynamic-array.md # 动态数组
209209│ └── 📂 linked-list/ # 链表
210- │ ├── 📄 index.mdx # 概述
211- │ └── 📄 01-singly-linked-list.mdx # 单向链表
210+ │ ├── 📄 index.md # 概述
211+ │ └── 📄 01-singly-linked-list.md # 单向链表
212212```
213213
214214### URL 生成
215215
216216文件结构会自动生成简洁的 URL:
217217
218- - ` docs/computer-science/index.mdx ` → ` /computer-science `
219- - ` docs/computer-science/data-structures/array/01-static-array.mdx ` → ` /computer-science/data-structures/array/static-array `
218+ - ` docs/computer-science/index.md ` → ` /computer-science `
219+ - ` docs/computer-science/data-structures/array/01-static-array.md ` → ` /computer-science/data-structures/array/static-array `
220220
221221### 命名约定
222222
223223** 文件夹:**
224224
225225- 使用 ` kebab-case ` 命名: ` computer-science ` , ` data-structures `
226- - 每个主题文件夹应该有一个 ` index.mdx ` 文件作为概述
226+ - 每个主题文件夹应该有一个 ` index.md ` 文件作为概述
227227
228228** 文件:**
229229
230- - 使用 ` kebab-case ` 命名: ` static-array.mdx `
230+ - 使用 ` kebab-case ` 命名: ` static-array.md `
231231- 使用数字前缀排序: ` 01- ` , ` 02- `
232232- 前缀会自动从最终 URL 中移除
233233
0 commit comments