diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1f49f26..a380227 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,9 +10,12 @@ build: jobs: post_create_environment: - pip install poetry - - poetry config virtualenvs.create false post_install: - - poetry install --with docs + # 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: builder: html diff --git a/docs/source/conf.py b/docs/source/conf.py index ab5f2dc..eefc29b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,7 +12,7 @@ from sphinx.ext.napoleon import GoogleDocstring -sys.path.insert(0, os.path.abspath("../..")) +sys.path.insert(0, os.path.abspath("../../src")) os.environ["SPHINX_BUILD"] = "1" _mod = importlib.import_module("pydiverse.transform")