diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 639c8ee4e..eb9e72cc8 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,15 +1,19 @@ version: 2 -build: - os: "ubuntu-22.04" - tools: - python: "3.11" - -# Build from the docs/ directory with Sphinx sphinx: - configuration: docs/conf.py + configuration: docs/conf.py -# Install the requirements needed to build the documentation from the appropriate requirements.txt file -python: - install: - - requirements: doc-requirements.txt +# https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-uv +build: + os: ubuntu-24.04 + tools: + python: "3.13" + jobs: + 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 --frozen --group doc