Skip to content

Commit

Permalink
ci: fix readthedocs builds
Browse files Browse the repository at this point in the history
This was regressed by the switch to uv. The fix was copy/pasted directly
from the readthedocs documentation:
https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
  • Loading branch information
ahal committed Oct 17, 2024
1 parent 4d35bca commit e8640e7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
version: 2
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
python:
install:
- requirements: requirements/docs.txt
- method: pip
path: .
python: "3.12"
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --only-dev
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
sphinx:
configuration: docs/conf.py

0 comments on commit e8640e7

Please sign in to comment.