Skip to content

Commit 5ae0e51

Browse files
authored
Fix readthedocs configuration (#3845)
- Rename readthedocs.yml to .readthedocs.yml, - update to Ubuntu 22.04 and Python 3.12, - add uv setup and Sphinx build commands.
1 parent 5edef21 commit 5ae0e51

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

readthedocs.yml renamed to .readthedocs.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-20.04
10+
os: ubuntu-22.04
1111
tools:
12-
python: "3.9"
12+
python: "3.12"
13+
commands:
14+
- asdf plugin add uv
15+
- asdf install uv latest
16+
- asdf global uv latest
17+
- uv sync --only-group docs --frozen
18+
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
1319

1420
# Build documentation in the docs/ directory with Sphinx
1521
sphinx:
@@ -19,8 +25,3 @@ sphinx:
1925
formats:
2026
- pdf
2127
- epub
22-
23-
# Optionally declare the Python requirements required to build your docs
24-
python:
25-
install:
26-
- requirements: requirements_dev.txt

0 commit comments

Comments
 (0)