Skip to content

Commit

Permalink
Fix readthedocs build to work with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
jab committed Oct 5, 2024
1 parent 3288007 commit ea9245b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ build:
os: "ubuntu-24.04"
tools:
python: "3.12"

python:
install:
- requirements: dev-deps/docs.txt
- method: pip
path: .

sphinx:
configuration: docs/conf.py
fail_on_warning: true
# https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --extra=docs
- .venv/bin/python -m sphinx -TWn --keep-going -b html -d docs/_build/doctrees docs $READTHEDOCS_OUTPUT/html
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ commands =

[testenv:docs]
extras = docs
commands = sphinx-build -Wn --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
commands = sphinx-build -TWn --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html

[testenv:lint]
deps =
Expand Down

0 comments on commit ea9245b

Please sign in to comment.