Files
materials/knowledge/linux/tools/metrics.config.json
huanghaosheng 2354b3d704 docs(linux): 17 章按编写规范完成 P0–P4 改造
- 新增 Linux 专属规范 tools/SPEC.md v1:分档指标(原理 3.5 / 操作 4.5 / 速查不设),
  另加发行版锚定、输出保真、危险命令、跨章一致性四条事实纪律,附整章 HTML 模板
- 新增 tools/check-metrics.js、metrics.config.json、check-svg.js:把密度、take、
  章骨架、图、易错点、<mark> 从"人工约定"变成可执行红线;assets/doc.css 补
  .tag/.figure/.figcaption/p.take 样式
- P1:17 章补齐章骨架(30 秒直答 / 术语速查 / 怎么读 / chN-sum + 症状表),
  126 节各补 1 条 take(机制节写结论复述,排障节写判据句)
- P2:密度均值 5.03 → 3.63,参数枚举改为"命令 / 看什么 / 典型误读 / 给错了会怎样"
  四列表且未删任何命令;"段落含 ≥5 个 code" 232 处 → 4 处;超长句 130 → 4 章各 1–2 句
- P3:新增 19 张内联 SVG(图号"章号-序号",几何由 check-svg 校验)、45 处四要素
  易错点、30 处可跳过;95 处 <mark> 清零
- P4:修正 49 条会误导读者的技术错误与 8 条跨章矛盾(容器 kill 1、ext4 缩容、
  -maxdepth 位置效应、ss -tnp 语义、tcp_tw_recycle 已移除、/dev/sda2 容量、
  /data 归属、systemd cgroup 版本)
- 新增 linux-文档审查报告.md:量化体检、7 类系统性问题、分章问题清单与全过程记录
2026-10-27 22:05:47 +08:00

30 lines
1.1 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$comment": "Linux 专题指标配置。阈值来源:tools/SPEC.md §2。改阈值只改这里,不要改脚本。",
"types": {
"A": { "label": "原理/机制型", "density": 3.5, "figures": 2, "sections": [5, 9], "chars": [3500, 6500] },
"B": { "label": "操作/排障型", "density": 4.5, "figures": 1, "sections": [5, 9], "chars": [3500, 6500] },
"C": { "label": "速查/题库型", "density": null, "figures": 0, "sections": [5, 8], "chars": [1200, 4000], "maxLooseParagraphs": 20 }
},
"chapters": {
"01": "A", "02": "B", "03": "B", "04": "B", "05": "B", "06": "B", "07": "B", "08": "B",
"09": "B", "10": "B", "11": "B", "12": "A", "13": "B", "14": "B", "15": "B", "16": "C", "17": "C"
},
"rules": {
"avgDensity": 4.0,
"paragraphMax": 200,
"paragraphHardMax": 250,
"paragraphAvg": 72,
"codePerParagraph": 4,
"codePerIdentifier": 2,
"sentenceMax": 60,
"sentenceOver": 80,
"sentenceOverPerChapter": 3,
"listItems": 3,
"takeMax": 50,
"mistakes": [3, 5],
"skippable": [2, 4],
"mark": 0,
"symptomRows": 8
}
}