Repository navigation
ci: validate docs on pull requests (build, links, version scan) (#365) - #377
Merged
Merged
Conversation
The deploy workflow (docs.yml) only builds on main, so doc drift landed before anyone noticed — this is what let the docs advertise v0.68.0 while the repo was at v0.75.0 (#363). New 'Docs CI' workflow runs on PRs touching docs/ or README: - VitePress production build (fails on broken build/refs) - Markdown link check (github-action-markdown-link-check + config that ignores localhost/s3 example URLs and tolerates 429s) - stale-pinned-version scan (scripts/check-doc-versions.sh; make docs-versions) that fails on a bare vX.Y.Z in prose outside URLs/CHANGELOG Service-reference drift is already guarded by docs-reference-check (#364). The Go-snippet compile guard is deferred to the examples work (#367), which turns the canonical snippets into real compiled example programs. Closes #365.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The raw-markdown link checker can't resolve VitePress absolute routes like /scope or /services (they 404 as filesystem paths), but they are valid routes that the VitePress build already validates. Add a replacementPattern mapping /foo -> foo.md so the checker verifies the real target file exists instead of false-flagging valid links.
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.
Fourth PR of v0.76.0 — the last prevention-tier piece. The docs deploy workflow only builds on
main, so drift landed before anyone noticed (this is exactly how the docs advertisedv0.68.0while the repo was at v0.75.0, #363).New
Docs CIworkflow (on PRs touchingdocs/orREADME.md)localhost/S3-example URLs and tolerates 429s from GitHub.scripts/check-doc-versions.sh(alsomake docs-versions) fails on a barevX.Y.Zin prose outside URLs/tags/CHANGELOG. Tested both ways (passes clean today; fails when a pinned version is injected).Coverage vs. the issue checklist
docs-reference-check)Verified locally: docs build clean, no missing relative links, version scan passes.
Closes #365. Part of v0.76.0.