diff --git a/.readthedocs.yml b/.readthedocs.yml index 7af745b..fd9fcf1 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,9 +6,14 @@ build: tools: python: "3.11" jobs: - post_install: - - pip install uv - - uv export --group docs --no-hashes | uv pip install -r - + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + create_environment: + - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" + install: + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --group docs # Build documentation in the docs/ directory with Sphinx sphinx: