Skip to content

ci(docs): check every live page after the Pages deploy - #5

Merged
HaoZeke merged 1 commit into
mainfrom
ci/live-links
Nov 17, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
ci/live-links

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Adds a live-links job after the Pages deploy: every HTML page of the deployed github-pages artifact becomes a lychee input at its https://rust.dseams.info/ address, so relative links resolve per page, and a live 404 fails the run. Links to this repository's blob/main and tree/main resolve against the checkout, since GitHub answers bursts of those with 503.

The same command against the live site on linux-64: 0 errors.


Note

Low Risk
CI-only change that adds post-deploy link validation; no application or runtime code is modified.

Overview
Adds a live-links CI job that runs after GitHub Pages deploy and validates links the way readers see them on https://rust.dseams.info/.

The job downloads the deployed github-pages artifact, lists every HTML page as its live URL (skipping 404.html and rustdoc static.files), and runs lychee against that list so relative links resolve per page. Any live 404 fails the build. GitHub blob/main and tree/main links are remapped to the checked-out repo to avoid burst 503s; doi.org stays excluded.

This complements the existing pre-deploy lychee step in docs, which checks the local book before upload but deliberately excludes the live site URL.

Reviewed by Cursor Bugbot for commit 5ab963d. Bugbot is set up for automated code reviews on this repo. Configure here.

The link checks ran on the build. This job lists each page of the
deployed artifact at its https://rust.dseams.info address and runs
lychee on them, so a link that breaks only once published fails the run.
Links into this repository resolve against the checkout.
@HaoZeke
HaoZeke merged commit 8fc964d into main Nov 17, 2026
6 checks passed
@HaoZeke
HaoZeke deleted the ci/live-links branch November 17, 2026 21:45
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.

1 participant