Skip to content

Commit 3a02c8c

Browse files
authored
🩹 make sure to activate the venv in RtD build (#717)
## Description This PR makes sure that the virtual environment in the RtD build is activated so that the installed console-scripts become available. ## Checklist: <!--- This checklist serves as a reminder of a couple of things that ensure your pull request will be merged swiftly. --> - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines.
2 parents 0c2857e + 7e7ac68 commit 3a02c8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ build:
2525
# Install the project and its documentation dependencies
2626
- uv pip install .[docs] readthedocs-sphinx-ext
2727
# Run the html builder
28-
- .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
28+
- . .venv/bin/activate && .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
2929
# Run the htmlzip builder and create a zip file
30-
- .venv/bin/python -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
30+
- . .venv/bin/activate && .venv/bin/python -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
3131
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip
3232
- zip -r $READTHEDOCS_OUTPUT/htmlzip/html.zip docs/_build/dirhtml/*
3333
# Run the latex builder and create a pdf file
34-
- .venv/bin/python -m sphinx -T -b latex -d docs/_build/doctrees -D language=en docs docs/_build/latex
34+
- . .venv/bin/activate && .venv/bin/python -m sphinx -T -b latex -d docs/_build/doctrees -D language=en docs docs/_build/latex
3535
- cd docs/_build/latex && latexmk -pdf -f -dvi- -ps- -interaction=nonstopmode -jobname=$READTHEDOCS_PROJECT
3636
- mkdir -p $READTHEDOCS_OUTPUT/pdf
3737
- cp docs/_build/latex/$READTHEDOCS_PROJECT.pdf $READTHEDOCS_OUTPUT/pdf/$READTHEDOCS_PROJECT.pdf

0 commit comments

Comments
 (0)