| 1 |
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details |
| 2 |
|
| 3 |
version: 2 |
| 4 |
|
| 5 |
sphinx: |
| 6 |
configuration: doc/conf.py |
| 7 |
fail_on_warning: true |
| 8 |
|
| 9 |
build: |
| 10 |
# Read the Docs builds every pull request and is a required check, so this is |
| 11 |
# what enforces `fail_on_warning` above. Keep the interpreter recent enough to |
| 12 |
# parse the syntax the documentation shows: the examples for PEP 695 type |
| 13 |
# parameters need 3.12, and those for template strings need 3.14. |
| 14 |
os: ubuntu-24.04 |
| 15 |
tools: |
| 16 |
python: "3.14" |
| 17 |
jobs: |
| 18 |
post_build: |
| 19 |
# Run the `>>>` examples too, so the same required check covers both a |
| 20 |
# reference that does not resolve and an example that is no longer true. |
| 21 |
- python -m sphinx -E -W -b doctest doc doc/build/doctest |
| 22 |
|
| 23 |
python: |
| 24 |
install: |
| 25 |
- requirements: doc/requirements.txt |