Skip to content

Commit 6f63d7e

Browse files
committed
update
1 parent 14b5128 commit 6f63d7e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.readthedocs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Read the Docs configuration file for Sphinx projects
22
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
# If build fails check https://docs.readthedocs.io/en/latest/build-customization.html#install-dependencies-with-poetry for updates
34

45
# Required
56
version: 2
@@ -11,10 +12,15 @@ build:
1112
python: "3.10"
1213
jobs:
1314
post_create_environment:
15+
# Install poetry
16+
# https://python-poetry.org/docs/#installing-manually
1417
- pip install poetry
15-
- poetry config virtualenvs.create false
1618
post_install:
17-
- poetry install --with docs
19+
# Install dependencies with 'docs' dependency group
20+
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
21+
# VIRTUAL_ENV needs to be set manually for now.
22+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
23+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
1824

1925
# Build documentation in the "docs/" directory with Sphinx
2026
sphinx:

0 commit comments

Comments
 (0)