Skip to content

Commit

Permalink
configure readthedocs to use uv
Browse files Browse the repository at this point in the history
Should speed up the readthedocs build. I can't test this configuration since I don't have access to the readthedocs account though.
  • Loading branch information
MitchellAcoustics committed Oct 29, 2024
1 parent 26605b0 commit 8ed40dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ version: "2"
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
python: "3.12"
apt_packages:
- graphviz

python:
install:
- requirements: docs/requirements.txt
# Install our python package before building the docs
- method: pip
path: .
commands:
# Following documentation at https://docs.readthedocs.io/en/latest/build-customization.html#install-dependencies-with-uv
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --extra docs --frozen
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html

sphinx:
configuration: docs/source/conf.py
Expand Down

0 comments on commit 8ed40dd

Please sign in to comment.