-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
35 lines (31 loc) · 989 Bytes
/
Copy path.readthedocs.yaml
File metadata and controls
35 lines (31 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-License-Identifier: MIT
# Read the Docs configuration — https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2
build:
os: ubuntu-24.04
tools:
python: "3.12"
apt_packages:
- doxygen
- graphviz
commands:
# Generate Doxygen XML for Breathe before Sphinx runs.
# Create a concrete Doxyfile from the Meson template by replacing
# the @PLACEHOLDER@ tokens with values suitable for the RTD build.
- >-
sed
-e 's|@VERSION@|0.1.0|g'
-e "s|@SOURCE_ROOT@|$READTHEDOCS_REPOSITORY_PATH|g"
-e "s|@OUTPUT_DIR@|$READTHEDOCS_REPOSITORY_PATH/_doxygen|g"
-e 's|@HAVE_DOT@|YES|g'
Doxyfile.in > Doxyfile
# Enable XML output for Breathe (the template has GENERATE_XML = NO).
- echo "GENERATE_XML = YES" >> Doxyfile
- echo "XML_OUTPUT = xml" >> Doxyfile
- doxygen Doxyfile
sphinx:
configuration: docs/conf.py
fail_on_warning: false
python:
install:
- requirements: docs/requirements.txt