Accepte les resets d'ancres du glossaire par préfixe
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}` +
|
||||
|
||||
Reference in New Issue
Block a user