Skip to content

Docs link checker: skip protocol-relative URLs - #8182

Open
danzig666 wants to merge 1 commit into
ItsNotRexed:mainfrom
danzig666:fix/docs-link-check-protocol-relative
Open

danzig666 wants to merge 1 commit into
ItsNotRexed:mainfrom
danzig666:fix/docs-link-check-protocol-relative

Conversation

@danzig666

Copy link
Copy Markdown

Change

Treat URLs that start with // as external when validating Markdown links and HTML attributes. Add a regression test that also verifies a missing relative file is still reported.

Coordination claim

Verification

AI-assisted: yes (Codex).

@morodirule

Copy link
Copy Markdown

Tested a6108ff on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. test_docs_links 8/8 incl. new protocol-relative test (also OK in isolation). Negative control: base broken_links reports //example.invalid URLs as missing files → new test fails on base; restored, green again. AI-assisted.

@morodirule

Copy link
Copy Markdown

Correction to my check above: the tally is 7/8, not 8/8 — the remaining failure is the pre-existing links failure (dev-tools anchor + gpu-results file, proven on merge-base, files untouched by this PR). The new protocol-relative test itself passes, and the negative control holds. AI-assisted.

@danzig666
danzig666 marked this pull request as ready for review November 23, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants