Skip to content

Commit 2dad903

Browse files
committed
fix docs building, see example on rtd docs
1 parent 86ec9c2 commit 2dad903

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.readthedocs.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ build:
1111
tools:
1212
python: "3.13"
1313
jobs:
14-
post_create_environment:
15-
- pip install poetry
16-
- poetry config virtualenvs.create false
1714
post_install:
18-
- poetry install --with docs
15+
# Install poetry
16+
# https://python-poetry.org/docs/#installing-manually
17+
- pip install poetry
18+
# Install dependencies with 'docs' dependency group
19+
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
20+
# VIRTUAL_ENV needs to be set manually for now.
21+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
22+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
1923

2024
# Build documentation in the "docs/" directory with Sphinx
2125
sphinx:

0 commit comments

Comments
 (0)