From 090e7aef458dea536d789ac438265c653b77a782 Mon Sep 17 00:00:00 2001 From: teutoburg Date: Fri, 30 Aug 2024 13:36:01 +0200 Subject: [PATCH 1/2] Attempt to fix RTD --- .readthedocs.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8944c3f..991ed35 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,19 +5,20 @@ version: 2 build: - os: ubuntu-20.04 + os: "ubuntu-22.04" tools: - python: "3.9" + python: "3.11" + jobs: + post_create_environment: + # Install poetry + # https://python-poetry.org/docs/#installing-manually + - pip install poetry + post_install: + # Install dependencies with 'docs' dependency group + # https://python-poetry.org/docs/managing-dependencies/#dependency-groups + # VIRTUAL_ENV needs to be set manually for now. + # See https://github.com/readthedocs/readthedocs.org/pull/11152/ + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs sphinx: - configuration: docs/conf.py - -python: - install: - - method: pip - path: . - extra_requirements: - - docs - -# If using Sphinx, optionally build your docs in additional formats such as PDF -# formats: [] # ignore htmlzip. html is always run + configuration: docs/source/conf.py From 7699b579b577aa43047e4630b3ec847b227de749 Mon Sep 17 00:00:00 2001 From: teutoburg Date: Fri, 25 Oct 2024 15:28:50 +0200 Subject: [PATCH 2/2] Different projects use different paths for conf.py :) --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 991ed35..5193a45 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -21,4 +21,4 @@ build: - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs sphinx: - configuration: docs/source/conf.py + configuration: docs/conf.py