feat(kubernetes): S5 三章与全站断言附录上线(第 23-25 章),26 章全部完成

This commit is contained in:
2026-11-11 22:20:47 +08:00
parent bd712b09a8
commit 8b22159d27
33 changed files with 2304 additions and 63 deletions

View File

@@ -44,7 +44,15 @@ for (const file of targets) {
const meta = byFile.get(file);
console.log(`\n${file}${meta ? ` (第 ${meta.num} 章 · ${meta.stage})` : ""}`);
if (!meta) soft(file, "不在 tools/chapters.json 清单里");
if (!meta) {
// 附录页(appendix-*.html、index.html 等)不是章节,13 模块与字数/图/折叠那套规则不适用。
const isChapterLike = /^\d\d-.*\.html$/.test(file);
if (!isChapterLike) {
console.log(` · 非章节页(不在 chapters.json),跳过章节规则检查`);
continue;
}
soft(file, "不在 tools/chapters.json 清单里");
}
/* --- 1. 四个占位块 --- */
for (const [re, name] of [