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.3 控制组
## 11.3 控制组
控制组 (Cgroups) Linux 内核提供的另一种关键机制主要用于资源的限制和审计
### 什么是控制组
### 11.3.1 什么是控制组
控制组 (Control Groups简称 cgroups) Linux 内核的一个特性用于 **限制记录和隔离** 进程组的资源使用 (CPU内存磁盘 I/O网络等)
@@ -31,7 +31,7 @@ flowchart LR
---
### cgroups 的历史
### 11.3.2 cgroups 的历史
相关信息如下表
@@ -44,7 +44,7 @@ flowchart LR
---
### cgroups 可以限制的资源
### 11.3.3 cgroups 可以限制的资源
相关信息如下表
@@ -58,7 +58,7 @@ flowchart LR
---
### Docker 中的资源限制
### 11.3.4 Docker 中的资源限制
Docker 提供了丰富的参数来配置容器的资源限制主要包括内存CPU磁盘 I/O
@@ -142,7 +142,7 @@ $ docker run --pids-limit=100 myapp
---
### 查看容器资源使用
### 11.3.5 查看容器资源使用
运行以下命令
@@ -165,7 +165,7 @@ $ docker inspect mycontainer --format '{{json .HostConfig}}' | jq
---
### 资源限制的效果
### 11.3.6 资源限制的效果
本节涵盖了相关内容与详细描述主要探讨以下几个方面
@@ -209,7 +209,7 @@ $ docker run --rm --cpus=1 stress --cpu 4
---
### cgroups v1 vs v2
### 11.3.7 cgroups v1 vs v2
相关信息如下表
@@ -245,7 +245,7 @@ nodev cgroup2
---
### Compose 中设置限制
### 11.3.8 Compose 中设置限制
Compose 中设置限制配置如下
@@ -265,7 +265,7 @@ services:
---
### 最佳实践
### 11.3.9 最佳实践
在使用 Cgroups 限制资源时遵循一些最佳实践可以避免潜在的问题