David Horstmann | 633a081 | 2023-03-14 16:38:36 +0000 | [diff] [blame] | 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-20.04 |
| 11 | tools: |
| 12 | python: "3.9" |
| 13 | jobs: |
| 14 | pre_build: |
David Horstmann | 84fccd4 | 2023-06-13 10:27:42 +0100 | [diff] [blame] | 15 | - ./scripts/apidoc_full.sh |
Bence Szépkúti | 7ce8fba | 2023-04-14 16:36:19 +0200 | [diff] [blame] | 16 | - breathe-apidoc -o docs/api apidoc/xml |
| 17 | post_build: |
Bence Szépkúti | 6a89a04 | 2023-05-09 20:11:51 +0200 | [diff] [blame] | 18 | - | |
Bence Szépkúti | 71f41de | 2023-05-09 20:11:51 +0200 | [diff] [blame] | 19 | # Work around Readthedocs bug: Command parsing fails if the 'if' statement is on the first line |
Bence Szépkúti | 6a89a04 | 2023-05-09 20:11:51 +0200 | [diff] [blame] | 20 | if [ "$READTHEDOCS_VERSION" = "development" ]; then |
| 21 | "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml |
| 22 | fi |
David Horstmann | 633a081 | 2023-03-14 16:38:36 +0000 | [diff] [blame] | 23 | |
| 24 | # Build documentation in the docs/ directory with Sphinx |
| 25 | sphinx: |
| 26 | builder: dirhtml |
| 27 | configuration: docs/conf.py |
| 28 | |
| 29 | # Optionally declare the Python requirements required to build your docs |
| 30 | python: |
| 31 | install: |
| 32 | - requirements: docs/requirements.txt |