File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,20 @@ build:
1010 tools :
1111 python : " 3.11"
1212 jobs :
13- post_create_environment :
14- # Install poetry
15- - python -m pip install poetry==1.8.3
16- post_install :
17- # Install dependencies
18- - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
13+ # 1️⃣ Install uv once before we create the virtual-env
14+ pre_create_environment :
15+ - asdf plugin add uv || true # ← idempotent on rebuilds
16+ - asdf install uv latest
17+ - asdf global uv latest
18+
19+ # 2️⃣ Create the virtual-env with uv (faster than venv + pip)
20+ create_environment :
21+ - uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
22+
23+ # 3️⃣ Sync dependencies; pull the “docs” group so theme / plugins are present
24+ install :
25+ - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" \
26+ uv sync --frozen --group docs # add --extra <name> if you need extras
1927
2028# Build documentation in the "docs/" directory with Sphinx
2129sphinx :
You can’t perform that action at this time.
0 commit comments