style(docs): standardize heading formats and numbering

- Enforce Level 1-3 structural numbering based on SUMMARY.md hierarchy
- Remove structural numbering from Level 4+ headings
- Eliminate single child headings by converting to bold text
- Auto-inject summary text for headings with multiple children missing intro text
- Exclude Appendix chapters from structural numbering
- Avoid modifying code block contents
- Add script to detect non-standard English usage in headers
This commit is contained in:
Baohua Yang
2026-02-21 22:40:33 -08:00
parent 33af380be1
commit 175aaae48a
136 changed files with 1015 additions and 766 deletions

View File

@@ -2,7 +2,7 @@
本节涵盖了相关内容与详细描述主要探讨以下几个方面
### 基本语法
### 7.1.1 基本语法
如下代码块所示展示了相关示例
@@ -15,7 +15,7 @@ RUN ["executable", "param1", "param2"]
---
### 两种格式对比
### 7.1.2 两种格式对比
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -48,7 +48,7 @@ RUN ["apt-get", "update"]
---
### 常见最佳实践
### 7.1.3 常见最佳实践
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -108,7 +108,7 @@ RUN wget http://url | gzip -d > file
---
### 常见问题
### 7.1.4 常见问题
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -146,7 +146,7 @@ RUN echo $MY_VAR
---
### 高级技巧
### 7.1.5 高级技巧
本节涵盖了相关内容与详细描述主要探讨以下几个方面