Validation rules#

This page covers the two checks run on the documentation and how to fix what they report. The documentation standard requires the build to treat warnings as errors, so a page left out of the contents or a broken cross-reference fails it.

The build#

uv run sphinx-build -W --keep-going -b html docs docs/_build/html

-W turns each warning into an error and --keep-going reports all of them in one run. The build passes when its exit code is 0.

Report

Cause

Fix

document isn't included in any toctree

A page no toctree lists

Add the page to a toctree, or delete it

image file not readable

The image path is wrong or the file is missing

Correct the path or add the file

Problems with "include" directive

The included file does not exist

Correct the path

cross-reference target not found or local id not found

A link names a file or heading that does not exist

Correct the path or the anchor

A MyST warning

A directive is malformed

Check the colons or backticks, the indentation and the closing fence