diff --git a/.readthedocs.yaml b/.readthedocs.yaml index bc03d9581..f8aa43ab1 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,19 +10,12 @@ build: os: ubuntu-22.04 tools: python: "3.11" - # You can also specify other tool versions: - # nodejs: "19" - # rust: "1.64" - # golang: "1.19" jobs: + # according to https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-1992286540 post_create_environment: - # Install poetry: - - asdf plugin add poetry - - asdf install poetry latest - - asdf global poetry latest - - poetry config virtualenvs.create false + - python -m pip install poetry post_install: - - . "$READTHEDOCS_VIRTUALENV_PATH/bin/activate" && poetry install + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs # Build documentation in the "docs/" directory with Sphinx sphinx: