feat(kubernetes): S5 三章与全站断言附录上线(第 23-25 章),26 章全部完成
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user