Skip to content

Fix docs cross-refs and fail the docs build on warnings - #379

Merged
stefanvanburen merged 1 commit into
mainfrom
svanburen/docs-strict
Oct 1, 2026
Merged

stefanvanburen merged 1 commit into
mainfrom
svanburen/docs-strict

Conversation

@stefanvanburen

Copy link
Copy Markdown
Member

poe docs-serve printed nine unresolved-autoref warnings, eight from connectrpc_grpcreflect docstrings pointing at a connectrpc.grpcreflect module that doesn't exist, and one from a bare [value()][] in ErrorDetail.

CI stayed green because zensical build exits 0 on warnings, and because the docs workflow never ran for changes under connectrpc-grpcreflect/ anyway. docs-build now uses --strict, and the workflow's path filters include both extension packages that api.md renders. With the docstring fixes reverted, uv run poe docs-build now aborts with RuntimeError: Aborted because --strict flag is set.

The `connectrpc_grpcreflect` docstrings linked to
`connectrpc.grpcreflect.*`, and `ErrorDetail.__init__` linked to a bare
`[value()][]`; neither resolved, so `zensical` emitted nine warnings.

CI missed them for two reasons:

1. `zensical build` exits 0 on warnings. `docs-build` now passes
   `--strict`; `docs-serve` stays lenient.
2. The docs workflow only ran on changes under `docs/` and `src/`, so
   edits to `connectrpc-grpcreflect` and `connectrpc-otel` never
   triggered it, even though `api.md` renders both.

Signed-off-by: Stefan VanBuren <stefan@vanburen.xyz>
Comment thread poe_tasks.toml
[tasks.docs-build]
help = "Build documentation"
cmd = "uv run --group docs zensical build"
cmd = "uv run --group docs zensical build --strict"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was non-functional for awhile, but seems to be working now.

@stefanvanburen
stefanvanburen marked this pull request as ready for review September 30, 2026 12:58
@stefanvanburen
stefanvanburen merged commit 0c3a49c into main Oct 1, 2026
24 checks passed
@stefanvanburen
stefanvanburen deleted the svanburen/docs-strict branch October 1, 2026 13:22
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.

2 participants