| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
version: 2 |
| 7 |
|
| 8 |
|
| 9 |
submodules: |
| 10 |
include: |
| 11 |
- framework |
| 12 |
|
| 13 |
|
| 14 |
build: |
| 15 |
os: ubuntu-20.04 |
| 16 |
tools: |
| 17 |
python: "3.9" |
| 18 |
jobs: |
| 19 |
pre_build: |
| 20 |
- ./framework/scripts/apidoc_full.sh |
| 21 |
- breathe-apidoc -o docs/api apidoc/xml |
| 22 |
post_build: |
| 23 |
- | |
| 24 |
# Work around Readthedocs bug: Command parsing fails if the 'if' statement is on the first line |
| 25 |
if [ "$READTHEDOCS_VERSION" = "development" ]; then |
| 26 |
"$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml |
| 27 |
fi |
| 28 |
|
| 29 |
|
| 30 |
sphinx: |
| 31 |
builder: dirhtml |
| 32 |
configuration: docs/conf.py |
| 33 |
|
| 34 |
|
| 35 |
python: |
| 36 |
install: |
| 37 |
- requirements: docs/requirements.txt |