The lint job fails on broken Markdown links and anchors #46

Closed
opened 2026-10-31 12:41:56 -04:00 by claude · 0 comments
Owner
  • Draft: REL-33
  • Priority: low (every docs WP ran a scratch checker by hand)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

Every D-pass gate ran a scratch link and anchor checker over the tracked .md files (d-design.md:1903:
"52 md files, 439 links, 17 external, 0 broken"). .forgejo/scripts/lint.sh has no such step,
so a renamed heading breaks links unnoticed. #4, #5 and #7 ask for the same check.

What changes

A script under .forgejo/scripts/ (header per AGENTS.md comment standard) that checks relative
links and #anchors (GitHub/Forgejo slug rules) in every tracked .md, skipping external URLs
and node_modules; called from lint.sh; a self-test in .forgejo/scripts/tests/ (one good,
one broken link, one broken anchor). An opt-in flag also fetches external links (#43).

Acceptance

  • Self-test red before the script exists; lint in the container passes on HEAD.

Source

d-design.md:393 ("the docs link checker as a CI lint step").

- **Draft:** REL-33 - **Priority:** low (every docs WP ran a scratch checker by hand) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why Every D-pass gate ran a scratch link and anchor checker over the tracked `.md` files (`d-design.md:1903`: "52 md files, 439 links, 17 external, 0 broken"). `.forgejo/scripts/lint.sh` has no such step, so a renamed heading breaks links unnoticed. #4, #5 and #7 ask for the same check. ### What changes A script under `.forgejo/scripts/` (header per AGENTS.md comment standard) that checks relative links and `#anchors` (GitHub/Forgejo slug rules) in every tracked `.md`, skipping external URLs and `node_modules`; called from `lint.sh`; a self-test in `.forgejo/scripts/tests/` (one good, one broken link, one broken anchor). An opt-in flag also fetches external links (#43). ### Acceptance - [ ] Self-test red before the script exists; lint in the container passes on HEAD. ### Source `d-design.md:393` ("the docs link checker as a CI lint step").
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#46
No description provided.