blob: 104ef7674a4fb9df35f509d8a389080641e6219e [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:
18 - '[ "$READTHEDOCS_VERSION" != "development" ] || "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml'
19
David Horstmann633a0812023-03-14 16:38:36 +000020
21# Build documentation in the docs/ directory with Sphinx
22sphinx:
23 builder: dirhtml
24 configuration: docs/conf.py
25
26# Optionally declare the Python requirements required to build your docs
27python:
28 install:
29 - requirements: docs/requirements.txt