chore(docs): keep all docs clean + green with a timestamp CI gate #4080
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/51
Why
"All docs need to be clean and Green at all times." This makes that automatic and enforced, not aspirational.
What
scripts/check-docs.ts— scans every tracked*.md(excludesnode_modules, build dirs, and the GitHub PR template) and fails if any doc lacks a validLast updated: YYYY-MM-DD HH:MM UTCstamp.--fixadds a footer stamp or normalizes an existing one.package.json—docs:checkanddocs:fixscripts..github/workflows/docs.yml— runsdocs:checkon every push + PR. This is the always-green gate: a new or edited doc without a proper stamp turns the check red.Design note
The gate checks presence + format, not "stamp must be today" — a hard "today" rule would falsely fail every PR that doesn't touch docs. Freshness stays a human rule (stamp-on-edit, daily cadence); the CI guarantees no doc is ever unstamped or malformed. That's what keeps it green at all times.
https://claude.ai/code/session_01McgJLnTbZG9mwhfwd5iAX3
Generated by Claude Code