Skip to content

ci: validate docs on pull requests (build, links, version scan) (#365) - #377

Merged
scttfrdmn merged 2 commits into
mainfrom
ci/365-docs-validation
Jul 26, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
ci/365-docs-validation

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

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 advertised v0.68.0 while the repo was at v0.75.0, #363).

New Docs CI workflow (on PRs touching docs/ or README.md)

  • VitePress production build — fails on broken build or dead internal refs.
  • Markdown link check — with a config that ignores localhost/S3-example URLs and tolerates 429s from GitHub.
  • Stale-version scan — scripts/check-doc-versions.sh (also make docs-versions) fails on a bare vX.Y.Z in prose outside URLs/tags/CHANGELOG. Tested both ways (passes clean today; fails when a pinned version is injected).

Coverage vs. the issue checklist

Verified locally: docs build clean, no missing relative links, version scan passes.

Closes #365. Part of v0.76.0.

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

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

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.
@scttfrdmn
scttfrdmn merged commit 0c285e4 into main Jul 26, 2026
15 checks passed
@scttfrdmn
scttfrdmn deleted the ci/365-docs-validation branch July 26, 2026 06:34
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.

ci: validate docs on pull requests (build, links, snippet-compile, version + reference drift, spelling)

1 participant