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

@@ -1,8 +1,8 @@
## 14.4 联合文件系统
## 11.4 联合文件系统
联合文件系统 (UnionFS) Docker 镜像分层存储的基础它允许将多个目录挂载为同一个虚拟文件系统
### 什么是联合文件系统
### 11.4.1 什么是联合文件系统
联合文件系统 (UnionFS) 是一种 **分层轻量级** 的文件系统它将多个目录 联合 挂载到同一个虚拟目录形成一个统一的文件系统视图
@@ -24,7 +24,7 @@ flowchart TD
---
### 为什么 Docker 使用联合文件系统
### 11.4.2 为什么 Docker 使用联合文件系统
Docker 选择联合文件系统作为其存储驱动主要基于以下几个核心优势
@@ -62,7 +62,7 @@ COPY . . # 层4应用代码
---
### Copy-on-Write (写时复制)
### 11.4.3 Copy-on-Write (写时复制)
当容器修改只读层中的文件时
@@ -92,7 +92,7 @@ flowchart LR
---
### Docker 支持的存储驱动
### 11.4.4 Docker 支持的存储驱动
Docker 可使用多种联合文件系统实现
@@ -128,7 +128,7 @@ Storage Driver: overlay2
---
### overlay2 工作原理
### 11.4.5 overlay2 工作原理
overlay2 是目前最推荐的存储驱动
@@ -169,7 +169,7 @@ flowchart TD
---
### 查看镜像层
### 11.4.6 查看镜像层
运行以下命令
@@ -198,7 +198,7 @@ $ docker inspect nginx:alpine --format '{{json .GraphDriver.Data}}' | jq
---
### 最佳实践
### 11.4.7 最佳实践
为了构建高效轻量的镜像我们在使用联合文件系统时应注意以下几点