blob: a98bec72f6961519e7768234f40eb666a531bd9a [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
8# Set the version of Python and other tools you might need
9build:
10 os: ubuntu-20.04
11 tools:
12 python: "3.9"
13 jobs:
14 pre_build:
Bence Szépkúti7ce8fba2023-04-14 16:36:19 +020015 - make apidoc
16 - breathe-apidoc -o docs/api apidoc/xml
17 post_build:
Bence Szépkúti6a89a042023-05-09 20:11:51 +020018 - |
19 if [ "$READTHEDOCS_VERSION" = "development" ]; then
20 "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml
21 fi
David Horstmann633a0812023-03-14 16:38:36 +000022
23# Build documentation in the docs/ directory with Sphinx
24sphinx:
25 builder: dirhtml
26 configuration: docs/conf.py
27
28# Optionally declare the Python requirements required to build your docs
29python:
30 install:
31 - requirements: docs/requirements.txt