docs: prune obsolete docs and enforce declarative doc hygiene

This commit is contained in:
Nwflower committed 2026-12-01 09:24:18 -07:00
1 parent bc11fd8ac6
commit 53627e5e1a
18 files changed
+414 -1359

No files matched your search

+7
View File
@@ -139,6 +139,13 @@ test('checkDebugHygiene: rejects stray .debug entries and concrete debug citatio
fs.writeFileSync(path.join(sandbox, 'README.md'), 'See .debug/work/20261129-sample-task for details.\n')
const docRes = checkDebugHygiene(sandbox)
assert.ok(docRes.problems.some((p) => p.includes('durable documents never reference concrete .debug/ instances')))
// Broken local relative link and "- **Title**: description" slogan bullet must fail.
fs.writeFileSync(path.join(sandbox, 'README.md'), '# Title\n\n- **Slogan**: prose after colon.\n\nSee [missing](./docs/nope.md) and [bad anchor](#missing).\n')
const rotRes = checkDebugHygiene(sandbox)
assert.ok(rotRes.problems.some((p) => p.includes('plain declarative sentence')))
assert.ok(rotRes.problems.some((p) => p.includes('broken relative link "./docs/nope.md"')))
assert.ok(rotRes.problems.some((p) => p.includes('broken heading anchor "#missing"')))
})
})