Skip to content

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

Closed

Description

@scttfrdmn

Docs currently build only on push to main (.github/workflows/docs.yml); nothing validates them on PRs, so drift lands before anyone notices.

Ask — run on every PR touching docs/README/snippets

  • VitePress production build (fail on broken build)
  • Markdown link check + internal anchor check
  • Documented Go snippets compile (and short ones run) — extract fenced ```go blocks into a build-tagged test package, or maintain the canonical snippets as example tests and inject them into docs. This is what would have caught the package-rename and TestServer API breakage.
  • Generated service-reference drift check (from the sibling issue)
  • Stale-version scan (no hard-coded vX.Y.Z in prose except the changelog)
  • Spelling check on docs prose

Acceptance criteria

  • A PR that breaks a doc snippet, link, version, or the service reference fails CI.
  • The existing deploy-on-main workflow is unchanged (or reuses the same build step).

Part of v0.76.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions