Skip to content

Commit d491a58

Browse files
authored
Merge pull request #2551 from jsl12/readthedocs-fix
Readthedocs fix
2 parents 85f3765 + 72721f8 commit d491a58

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.readthedocs.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
version: 2
22

3-
build:
4-
os: "ubuntu-22.04"
5-
tools:
6-
python: "3.11"
7-
8-
# Build from the docs/ directory with Sphinx
93
sphinx:
10-
configuration: docs/conf.py
4+
configuration: docs/conf.py
115

12-
# Install the requirements needed to build the documentation from the appropriate requirements.txt file
13-
python:
14-
install:
15-
- requirements: doc-requirements.txt
6+
# https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-uv
7+
build:
8+
os: ubuntu-24.04
9+
tools:
10+
python: "3.13"
11+
jobs:
12+
pre_create_environment:
13+
- asdf plugin add uv
14+
- asdf install uv latest
15+
- asdf global uv latest
16+
create_environment:
17+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
18+
install:
19+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group doc

0 commit comments

Comments
 (0)