Skip to content

Commit fea803b

Browse files
authored
Merge pull request #69 from BrainLesion/fix/broken-rtd
- fix config
2 parents bd75325 + 6100517 commit fea803b

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.readthedocs.yaml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
1-
# .readthedocs.yaml
2-
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4-
5-
# Required
61
version: 2
72

8-
# Set the version of Python and other tools you might need
93
build:
10-
os: ubuntu-22.04
4+
os: "ubuntu-22.04"
115
tools:
126
python: "3.10"
137
jobs:
148
post_create_environment:
159
# Install poetry
1610
# https://python-poetry.org/docs/#installing-manually
1711
- pip install poetry
18-
# Tell poetry to not use a virtual environment
19-
- poetry config virtualenvs.create false
2012
post_install:
2113
# Install dependencies with 'docs' dependency group
2214
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
23-
- poetry install --with docs
15+
# VIRTUAL_ENV needs to be set manually for now.
16+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
17+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
2418

25-
# Build documentation in the docs/ directory with Sphinx
2619
sphinx:
27-
configuration: docs/source/conf.py
28-
# If using Sphinx, optionally build your docs in additional formats such as PDF
29-
# formats:
30-
# - pdf
31-
32-
# Optionally declare the Python requirements required to build your docs
20+
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)