| 1 | # .readthedocs.yaml |
| 2 | # Read the Docs configuration file |
| 3 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details |
| 4 | |
| 5 | # Required |
| 6 | version: 2 |
| 7 | |
| 8 | # Set the version of Python and other tools you might need |
| 9 | build: |
| 10 | os: ubuntu-24.04 |
| 11 | tools: |
| 12 | python: "3.12" |
| 13 | |
| 14 | # Format htmlzip produces a single page. Instead, use zip as shown in: |
| 15 | # https://github.com/readthedocs/readthedocs.org/issues/3242#issuecomment-1410321534 |
| 16 | jobs: |
| 17 | post_build: |
| 18 | - mkdir --parents _readthedocs/htmlzip |
| 19 | - cp -r _readthedocs/html _readthedocs/$READTHEDOCS_PROJECT |
| 20 | - cd _readthedocs; zip -r --symlinks htmlzip/$READTHEDOCS_PROJECT.zip $READTHEDOCS_PROJECT |
| 21 | |
| 22 | # Build documentation in the docs/ directory with Sphinx |
| 23 | sphinx: |
| 24 | configuration: docs/conf.py |
| 25 | |
| 26 | # Optionally declare the Python requirements required to build your docs |
| 27 | python: |
| 28 | install: |
| 29 | - requirements: docs/requirements.txt |