Skip to content

Commit

Permalink
Use uv for readthedocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 19, 2024
1 parent 3586d7c commit dc33946
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# .readthedocs.yml
---
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
Expand All @@ -11,12 +10,14 @@ sphinx:

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs
build:
os: ubuntu-22.04
tools:
python: '3.11'
commands:
- asdf plugin add uv
- asdf install uv 0.1.44
- asdf global uv 0.1.44
- uv venv
- uv pip install .[docs]
- .venv/bin/python -m sphinx -W --keep-going -d _build/doctrees -D language=en -b html docs/source $READTHEDOCS_OUTPUT/html

0 comments on commit dc33946

Please sign in to comment.