Skip to content

Commit f369a23

Browse files
update config
1 parent 15482ff commit f369a23

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.readthedocs.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
1+
# .readthedocs.yaml
12
# Read the Docs configuration file
23
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
34

4-
# Required
55
version: 2
66

7-
# Set the OS, Python version, and other tools you might need
87
build:
98
os: ubuntu-24.04
109
tools:
1110
python: "3.11"
11+
1212
jobs:
1313
# 1️⃣ Install uv once before we create the virtual-env
1414
pre_create_environment:
15-
- asdf plugin add uv || true # ← idempotent on rebuilds
16-
- asdf install uv latest
17-
- asdf global uv latest
15+
- |
16+
# Install uv via the official installer with curl
17+
curl -Ls https://astral.sh/uv/install.sh | bash
1818
19-
# 2️⃣ Create the virtual-env with uv (faster than venv + pip)
19+
# 2️⃣ Create the virtual-env with uv
2020
create_environment:
21-
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
21+
- ~/.local/bin/uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
2222

23-
# 3️⃣ Sync dependencies; pull the “docs” group so theme / plugins are present
23+
# 3️⃣ Sync docs dependencies (uses uv.lock if present)
2424
install:
25-
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" \
26-
uv sync --frozen --group docs # add --extra <name> if you need extras
25+
- |
26+
UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" \
27+
~/.local/bin/uv sync --frozen --group docs
2728
2829
# Build documentation in the "docs/" directory with Sphinx
2930
sphinx:
30-
configuration: docs/conf.py
31+
configuration: docs/conf.py
3132

3233
formats:
3334
- pdf

0 commit comments

Comments
 (0)