Skip to content

ci: guard docs drift — mkdocs --strict as a PR check + link/anchor validation#92

Merged
lesnik512 merged 1 commit into
mainfrom
chore/docs-ci-drift-guard
Jul 5, 2026
Merged

ci: guard docs drift — mkdocs --strict as a PR check + link/anchor validation#92
lesnik512 merged 1 commit into
mainfrom
chore/docs-ci-drift-guard

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Ports the docs CI drift guard (from faststream-outbox) to this repo.

  • mkdocs.yml — add a validation: block (omitted_files/absolute_links/unrecognized_links/anchors: warn); under --strict these become errors, so broken internal links, broken #anchor fragments, and orphaned pages fail the build.
  • .github/workflows/_checks.yml — new parallel docs job running just docs-build (same command as the deploy build), so docs breakage is caught on PRs instead of only at deploy.
  • docs/requirements.txt — pin mkdocs>=1.6,<2, mkdocs-material>=9,<10 for a reproducible, MkDocs-2.0-proof build.

Verified: clean strict build passes; a broken anchor aborts the build (negative test).

🤖 Generated with Claude Code

…lidation

Adds a parallel docs job running mkdocs --strict on PRs (matching the deploy
build), a validation block so broken internal links/anchors and orphaned pages
fail the build, and upper-bound pins on the docs toolchain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 0689c0f into main Jul 5, 2026
6 checks passed
@lesnik512 lesnik512 deleted the chore/docs-ci-drift-guard branch July 5, 2026 15:57
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