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 @@
在下载了镜像后我们可以使用 `docker image ls` 命令列出本地主机上的镜像
### 基本用法
### 4.2.1 基本用法
查看本地已下载的镜像
@@ -19,7 +19,7 @@ ubuntu noble 329ed837d508 3 days ago 78MB
---
### 输出字段说明
### 4.2.2 输出字段说明
`docker image ls` 命令默认输出的列表包含仓库名标签镜像 ID创建时间和占用空间等信息
@@ -41,7 +41,7 @@ ubuntu noble 329ed837d508 3 days ago 78MB
---
### 理解镜像大小
### 4.2.3 理解镜像大小
Docker 镜像的大小可能与我们通常理解的文件大小有所不同这涉及到分层存储的概念
@@ -83,7 +83,7 @@ Build Cache 0 0 0B 0B
---
### 过滤镜像
### 4.2.4 过滤镜像
随着本地镜像数量的增加我们需要更有效的方式来查找特定的镜像Docker 提供了多种过滤方式
@@ -139,7 +139,7 @@ $ docker images -f label=maintainer=example@email.com
---
### 虚悬镜像
### 4.2.5 虚悬镜像
在镜像列表里你可能会看到一些仓库名和标签都为 `<none>` 的镜像这类镜像被称为虚悬镜像
@@ -174,7 +174,7 @@ $ docker image prune
---
### 中间层镜像
### 4.2.6 中间层镜像
除了虚悬镜像`docker image ls` 默认列出的只是顶层镜像还有一种镜像是为了加速镜像构建重复利用资源而存在的中间层镜像
@@ -196,7 +196,7 @@ $ docker images -a
---
### 格式化输出
### 4.2.7 格式化输出
为了配合脚本使用或展示更关注的信息我们可以使用 `--format` 参数来自定义输出格式
@@ -278,7 +278,7 @@ ubuntu 24.04 78MB
---
### 常用命令组合
### 4.2.8 常用命令组合
运行以下命令