[PR #2200] docs checks: validate destinations used by Markdown reference links #2205

Open
opened 2026-11-26 21:20:24 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 2a2cc22 tests: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2200 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/docs-reference-links` --- ### 📝 Commits (1) - [`2a2cc22`](https://github.com/ubiquitarianism/leonida/commit/2a2cc220c146753a55fa7717564e4d9af913b9bc) tests: check rendered Markdown reference links (TEST-DOCS-REFERENCE-LINKS) ### 📊 Changes **1 file changed** (+83 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_docs_links.py` (+83 -1) </details> ### 📄 Description Claimed in the coordination issue as: TEST-DOCS-REFERENCE-LINKS ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7183419722)) 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
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
starred/leonida#2205
No description provided.