From 813cb3afc958252dbf7573424ce762fed989d4d4 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 13 Oct 2026 20:34:23 +0800 Subject: [PATCH] fix(docs): honor home layout in all-page route verification --- scripts/verify-documentation-routes.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/verify-documentation-routes.mjs b/scripts/verify-documentation-routes.mjs index a3d3dfc13..ab4aa402b 100644 --- a/scripts/verify-documentation-routes.mjs +++ b/scripts/verify-documentation-routes.mjs @@ -52,7 +52,9 @@ while (directories.length > 0) { for (const page of htmlPages.sort()) { const route = page.slice(output.length + 1).split(sep).join("/"); const html = await readFile(page, "utf8"); - if (route !== "404.html") { + // The configured home layout and generated 404 render no edit action. + // Their outgoing links still participate in the same all-page scan. + if (route !== "404.html" && route !== "index.html") { const source = physicalEditSource(html, route); assert.ok((await stat(source)).isFile(), route + ": edit link source is missing"); sourceLinks++;