Skip to content

Commit 2eb2d50

Browse files
committed
docs: add .readthedocs.yaml
This should hopefully fix docs build bustage.
1 parent 3aa6222 commit 2eb2d50

File tree

5 files changed

+326
-5
lines changed

5 files changed

+326
-5
lines changed

.github/workflows/sphinx.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
env:
2020
PIP_CONSTRAINT: 'ci/constraints.txt'
2121
run: |
22-
uv venv --python 3.12 venv
23-
source venv/bin/activate
24-
uv pip install -r ci/requirements.txt
22+
uv venv --python 3.13 venv
23+
uv pip install -r ci/requirements.docs.txt
2524
uv pip install --config-settings=--build-option=--no-c-backend .
26-
uv pip install Sphinx==5.3.0
25+
source venv/bin/activate
2726
make -C docs html

.readthedocs.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
formats:
3+
- htmlzip
4+
- pdf
5+
- epub
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3.13"
10+
jobs:
11+
create_environment:
12+
- python3 -m venv venv
13+
- venv/bin/python3 -m pip install -c ci/constraints.txt -r ci/requirements.docs.txt
14+
- venv/bin/python3 -m pip install --config-settings=--build-option=--no-c-backend .
15+
build:
16+
htmlzip:
17+
- make -C docs html SPHINXBUILD=$(pwd)/venv/bin/sphinx-build BUILDDIR=$READTHEDOCS_OUTPUT
18+
pdf:
19+
- make -C docs pdf SPHINXBUILD=$(pwd)/venv/bin/sphinx-build BUILDDIR=$READTHEDOCS_OUTPUT
20+
epub:
21+
- make -C docs epub SPHINXBUILD=$(pwd)/venv/bin/sphinx-build BUILDDIR=$READTHEDOCS_OUTPUT

ci/requirements.docs.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cffi
2+
Sphinx

0 commit comments

Comments
 (0)