From f535eb57b7d8fb353109b1da6b0eb8ed36e9404b Mon Sep 17 00:00:00 2001 From: forcetrainer Date: Thu, 8 Jan 2026 00:20:24 -0500 Subject: [PATCH] fix: ignore underscore directories in link checker Update check-doc-links.js to skip _archive, _planning, and other underscore-prefixed directories when validating links. Co-Authored-By: Claude Opus 4.5 --- tools/check-doc-links.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/check-doc-links.js b/tools/check-doc-links.js index d89d6605..cd0d2152 100644 --- a/tools/check-doc-links.js +++ b/tools/check-doc-links.js @@ -196,7 +196,11 @@ function getAnchorsForFile(filePath) { async function main() { console.log(' → Scanning for broken links and anchors...'); - const files = await glob('**/*.{md,mdx}', { cwd: DOCS_DIR, absolute: true }); + const files = await glob('**/*.{md,mdx}', { + cwd: DOCS_DIR, + absolute: true, + ignore: ['**/_*/**'], // Ignore underscore directories (archive, planning, etc.) + }); const errors = []; // Track all resolved paths for duplicate detection