Skip to content

Commit 3ee7798

Browse files
committed
Install RTD docs into RTD's expected venv path
Without UV_PROJECT_ENVIRONMENT, uv creates .venv/ inside the project and RTD's sphinx step (which calls $READTHEDOCS_VIRTUALENV_PATH/bin/python directly) fails with 'python: not found'. Point uv at RTD's venv so the install lands where the runner looks for it.
1 parent 0ef85dc commit 3ee7798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414
- asdf install uv latest
1515
- asdf global uv latest
1616
install:
17-
- uv sync --group docs --frozen
17+
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --group docs --frozen
1818

1919
sphinx:
2020
configuration: docs/conf.py

0 commit comments

Comments
 (0)