Repository navigation
ci(docs): check every live page after the Pages deploy - #5
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
live-linksjob after the Pages deploy: every HTML page of the deployedgithub-pagesartifact becomes a lychee input at itshttps://rust.dseams.info/address, so relative links resolve per page, and a live 404 fails the run. Links to this repository'sblob/mainandtree/mainresolve 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-linksCI job that runs after GitHub Pages deploy and validates links the way readers see them onhttps://rust.dseams.info/.The job downloads the deployed
github-pagesartifact, lists every HTML page as its live URL (skipping404.htmland rustdocstatic.files), and runs lychee against that list so relative links resolve per page. Any live 404 fails the build. GitHubblob/mainandtree/mainlinks are remapped to the checked-out repo to avoid burst 503s;doi.orgstays 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.