blob: 3cc34740bd0040edb0ff923965d58d022cd6cb6c [file] [log] [blame]
David Horstmann633a0812023-03-14 16:38:36 +00001# .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
6version: 2
7
Ronald Cron44914182024-12-16 09:20:10 +01008# Include all submodules in the build
David Horstmann8cbbc5f2024-03-04 14:52:06 +00009submodules:
Ronald Cron44914182024-12-16 09:20:10 +010010 include: all
11 recursive: true
David Horstmann8cbbc5f2024-03-04 14:52:06 +000012
David Horstmann633a0812023-03-14 16:38:36 +000013# Set the version of Python and other tools you might need
14build:
15 os: ubuntu-20.04
Ronald Crone5eb2632025-09-09 15:19:48 +020016 apt_packages:
17 - cmake
David Horstmann633a0812023-03-14 16:38:36 +000018 tools:
19 python: "3.9"
20 jobs:
21 pre_build:
Valerio Setti976b53f2024-12-10 10:49:14 +010022 - ./framework/scripts/apidoc_full.sh
Bence Szépkúti7ce8fba2023-04-14 16:36:19 +020023 - breathe-apidoc -o docs/api apidoc/xml
24 post_build:
Bence Szépkúti6a89a042023-05-09 20:11:51 +020025 - |
Bence Szépkúti71f41de2023-05-09 20:11:51 +020026 # Work around Readthedocs bug: Command parsing fails if the 'if' statement is on the first line
Bence Szépkúti6a89a042023-05-09 20:11:51 +020027 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 Horstmann633a0812023-03-14 16:38:36 +000030
31# Build documentation in the docs/ directory with Sphinx
32sphinx:
33 builder: dirhtml
34 configuration: docs/conf.py
35
36# Optionally declare the Python requirements required to build your docs
37python:
38 install:
39 - requirements: docs/requirements.txt