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 | |
Ronald Cron | 4491418 | 2024-12-16 09:20:10 +0100 | [diff] [blame] | 8 | # Include all submodules in the build |
David Horstmann | 8cbbc5f | 2024-03-04 14:52:06 +0000 | [diff] [blame] | 9 | submodules: |
Ronald Cron | 4491418 | 2024-12-16 09:20:10 +0100 | [diff] [blame] | 10 | include: all |
| 11 | recursive: true |
David Horstmann | 8cbbc5f | 2024-03-04 14:52:06 +0000 | [diff] [blame] | 12 | |
David Horstmann | 633a081 | 2023-03-14 16:38:36 +0000 | [diff] [blame] | 13 | # Set the version of Python and other tools you might need |
| 14 | build: |
| 15 | os: ubuntu-20.04 |
Ronald Cron | e5eb263 | 2025-09-09 15:19:48 +0200 | [diff] [blame^] | 16 | apt_packages: |
| 17 | - cmake |
David Horstmann | 633a081 | 2023-03-14 16:38:36 +0000 | [diff] [blame] | 18 | tools: |
| 19 | python: "3.9" |
| 20 | jobs: |
| 21 | pre_build: |
Valerio Setti | 976b53f | 2024-12-10 10:49:14 +0100 | [diff] [blame] | 22 | - ./framework/scripts/apidoc_full.sh |
Bence Szépkúti | 7ce8fba | 2023-04-14 16:36:19 +0200 | [diff] [blame] | 23 | - breathe-apidoc -o docs/api apidoc/xml |
| 24 | post_build: |
Bence Szépkúti | 6a89a04 | 2023-05-09 20:11:51 +0200 | [diff] [blame] | 25 | - | |
Bence Szépkúti | 71f41de | 2023-05-09 20:11:51 +0200 | [diff] [blame] | 26 | # 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] | 27 | if [ "$READTHEDOCS_VERSION" = "development" ]; then |
| 28 | "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml |
| 29 | fi |
David Horstmann | 633a081 | 2023-03-14 16:38:36 +0000 | [diff] [blame] | 30 | |
| 31 | # Build documentation in the docs/ directory with Sphinx |
| 32 | sphinx: |
| 33 | builder: dirhtml |
| 34 | configuration: docs/conf.py |
| 35 | |
| 36 | # Optionally declare the Python requirements required to build your docs |
| 37 | python: |
| 38 | install: |
| 39 | - requirements: docs/requirements.txt |