mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #2200] docs checks: validate destinations used by Markdown reference links #2205
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2205
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2200
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:ubiq/docs-reference-links📝 Commits (1)
2a2cc22tests: check rendered Markdown reference links (TEST-DOCS-REFERENCE-LINKS)📊 Changes
1 file changed (+83 additions, -1 deletions)
View changed files
📝
tests/test_docs_links.py(+83 -1)📄 Description
Claimed in the coordination issue as: TEST-DOCS-REFERENCE-LINKS (claim)
The docs link check let a page pass when
[Guide][guide]pointed to a missing file via a separate definition. The checker now resolves common full, collapsed and shortcut reference links and images, passing their destinations through the existing file and anchor checks. It accounts for unused definitions, repeated labels and GFM footnotes.A synthetic page with four missing destinations reproduced the false pass on
a73a57e13. With the patch it reports all four. On macOS with Python 3.12.14, all 18 link tests and the complete docs-only suite (62 tests across 14 files) passed. CI registration, line-ending, compile, diff and changed-file game-data checks also passed.GPUs tested: n/a. All tests used synthetic inputs.
AI-assisted: yes. Created with gpt-6.2-astra in Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.