Skip to content

Commit 6fe6d83

Browse files
committed
Update readthedocs config
1 parent 4cad5a2 commit 6fe6d83

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

docs/.readthedocs.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
# Read the Docs configuration file for Sphinx projects
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
23
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
34

45
# Required
56
version: 2
67

78
# Set the OS, Python version and other tools you might need
89
build:
9-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1011
tools:
1112
python: "3.12"
13+
jobs:
14+
pre_create_environment:
15+
- asdf plugin add uv
16+
- asdf install uv latest
17+
- asdf global uv latest
18+
create_environment:
19+
- UV_PROJECT=docs/ uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
20+
install:
21+
- UV_PROJECT=docs/ UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen
1222

13-
# Build documentation in the "docs/" directory with Sphinx
23+
# Build documentation in the docs/ directory with Sphinx
1424
sphinx:
1525
configuration: docs/conf.py
1626

17-
# Optionally build your docs in additional formats such as PDF and ePub
18-
# formats:
19-
# - pdf
20-
# - epub
21-
22-
# Optional but recommended, declare the Python requirements required
23-
# to build your documentation
24-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
25-
python:
26-
install:
27-
- requirements: docs/requirements.txt
27+
# Optionally build your docs in additional formats such as PDF
28+
formats:
29+
- pdf
30+
- epub

0 commit comments

Comments
 (0)