Skip to content

Commit

Permalink
Fix problems with new readthedocs proactively (see pipedag)
Browse files Browse the repository at this point in the history
  • Loading branch information
windiana42 committed Mar 1, 2024
1 parent 286bd22 commit f66813c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f66813c

Please sign in to comment.