Skip to content

Commit dbb63d3

Browse files
committed
Fix RTD
1 parent b61f66c commit dbb63d3

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.readthedocs.yaml

+15-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,23 @@ build:
1313
post_create_environment:
1414
# Install poetry
1515
# https://python-poetry.org/docs/#installing-manually
16-
- pip install poetry==1.8.4
16+
# - pip install poetry==1.8.4
17+
- curl -sSL https://install.python-poetry.org | python3 - --version 1.8.4
18+
# - export PATH="$HOME/.local/bin:$PATH" && poetry config virtualenvs.create false
19+
- export PATH="$HOME/.local/bin:$PATH" && /home/docs/.local/bin/poetry config virtualenvs.create false
1720
# Tell poetry to not use a virtual environment
18-
- poetry config virtualenvs.create false
21+
# - poetry config virtualenvs.create false
1922
post_install:
20-
- poetry install -E "all" --with docs
23+
# - poetry install --with docs -E all
24+
- /home/docs/.local/bin/poetry install --with docs -E all
25+
commands:
26+
# Run your docs build using Poetry; this command will run instead of the default Sphinx build.
27+
- /home/docs/.local/bin/poetry run sphinx-build -b html docs docs/_build/html
28+
2129

2230
# Build documentation in the "docs/" directory with Sphinx
23-
sphinx:
24-
configuration: docs/conf.py
31+
# sphinx:
32+
# configuration: docs/conf.py
2533
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
2634
# builder: "dirhtml"
2735
# Fail on all warnings to avoid broken references
@@ -39,3 +47,5 @@ sphinx:
3947
# - method: pip
4048
# path: .
4149
# - requirements: docs/requirements.txt
50+
python:
51+
install: []

0 commit comments

Comments
 (0)