diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6bed403..d3f0449 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,20 +7,18 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: "3.9" jobs: post_create_environment: # Install poetry # https://python-poetry.org/docs/#installing-manually - - pip install poetry - # Tell poetry to not use a virtual environment - - poetry config virtualenvs.create false + - python -m pip install poetry post_install: # Install only dependencies including docs # https://python-poetry.org/docs/managing-dependencies/#dependency-groups - - poetry install --with docs + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/source/conf.py