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 @@
本节将介绍如何终止一个运行中的容器以及几种不同的终止方式及其区别
### 终止方式概述
### 5.3.1 终止方式概述
终止容器有三种方式
@@ -14,7 +14,7 @@
---
### docker stop (推荐)
### 5.3.2 docker stop (推荐)
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -67,7 +67,7 @@ $ docker stop $(docker ps -q)
---
### docker kill
### 5.3.3 docker kill
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -104,7 +104,7 @@ $ docker kill -s TERM mycontainer
---
### 容器自动终止
### 5.3.4 容器自动终止
容器的生命周期与主进程绑定主进程退出时容器自动停止
@@ -121,7 +121,7 @@ $ docker run ubuntu echo "Hello" # echo 执行完 → 容器停止
---
### 查看已停止的容器
### 5.3.5 查看已停止的容器
运行以下命令
@@ -144,7 +144,7 @@ c5d3a5e8f7b2 nginx "nginx" Up 5 minutes mynginx
---
### 重新启动容器
### 5.3.6 重新启动容器
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -176,7 +176,7 @@ $ docker restart -t 30 容器名
---
### 生命周期状态图
### 5.3.7 生命周期状态图
具体内容如下
@@ -198,7 +198,7 @@ stateDiagram-v2
---
### 批量操作
### 5.3.8 批量操作
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -228,7 +228,7 @@ $ docker stop $(docker ps -q) && docker container prune -f
---
### 常见问题
### 5.3.9 常见问题
本节涵盖了相关内容与详细描述主要探讨以下几个方面