From dde3fc9a32eef013a27808ec81eeb6b802ef6be7 Mon Sep 17 00:00:00 2001 From: Archicratia Date: Mon, 27 Apr 2026 23:33:44 +0200 Subject: [PATCH] =?UTF-8?q?Accepte=20les=20resets=20d'ancres=20du=20glossa?= =?UTF-8?q?ire=20par=20pr=C3=A9fixe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/anchor-churn-allowlist.json | 3 +++ scripts/check-anchors.mjs | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/anchor-churn-allowlist.json b/config/anchor-churn-allowlist.json index c6445f1..b8b90be 100644 --- a/config/anchor-churn-allowlist.json +++ b/config/anchor-churn-allowlist.json @@ -7,5 +7,8 @@ "archicrat-ia/chapitre-4/index.html": "Reset intentionnel des ancres après réimport DOCX et stabilisation doctrinale substantielle du chapitre 4 depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver.", "archicrat-ia/chapitre-5/index.html": "Reset intentionnel des ancres après réimport DOCX et stabilisation doctrinale substantielle du chapitre 5 depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver.", "archicrat-ia/conclusion/index.html": "Reset intentionnel des ancres après réimport DOCX et révision substantielle de la conclusion depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver." + }, + "accepted_prefixes": { + "glossaire/": "Reset intentionnel des ancres après révision substantielle des fiches paradigmes et doctrines du glossaire. Site neuf, sans annotations ni compatibilité descendante à préserver." } } diff --git a/scripts/check-anchors.mjs b/scripts/check-anchors.mjs index 65f8e59..a75cb52 100644 --- a/scripts/check-anchors.mjs +++ b/scripts/check-anchors.mjs @@ -211,11 +211,7 @@ function diffPage(prevIds, curIds) { const prevN = prevIds.length || 1; const churn = (added.length + removed.length) / prevN; const removedRatio = removed.length / prevN; - const acceptedReason = - ACCEPTED_RESETS[p] || - (ACCEPT_GLOSSARY_RESETS && p.startsWith("glossaire/") - ? "Reset intentionnel des ancres du glossaire après refonte éditoriale substantielle." - : null); + const acceptedReason = acceptedResetReasonForPage(p); console.log( `~ ${p} prev=${prevIds.length} now=${curIds.length}` +