| 1 | --- |
| 2 | # .readthedocs.yaml |
| 3 | # Read the Docs configuration file |
| 4 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details |
| 5 | |
| 6 | # Required |
| 7 | version: 2 |
| 8 | |
| 9 | # Set the version of Python and other tools you might need |
| 10 | build: |
| 11 | os: ubuntu-22.04 |
| 12 | tools: |
| 13 | python: "3.11" |
| 14 | jobs: |
| 15 | # Un-shallow the clone to get the correct version |
| 16 | post_checkout: |
| 17 | - git fetch --unshallow || true |
| 18 | # Run a build to get the version.py created. |
| 19 | post_create_environment: |
| 20 | - pip install build |
| 21 | - python -m build |
| 22 | |
| 23 | |
| 24 | # Build documentation in the docs/ directory with Sphinx |
| 25 | sphinx: |
| 26 | configuration: doc/source/conf.py |
| 27 | |
| 28 | # Optionally build your docs in additional formats such as PDF and ePub |
| 29 | formats: |
| 30 | |
| 31 | - epub |
| 32 | |
| 33 | # We recommend specifying your dependencies to enable reproducible builds: |
| 34 | # https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html |
| 35 | python: |
| 36 | install: |
| 37 | - requirements: doc/requirements.txt |