Skip to content

Commit

Permalink
RTD: Update Custom Build Process
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jan 7, 2025
1 parent 4100696 commit a28750a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ build:
tools:
python: "3.13"

# custom build process
# https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
commands:
# dependencies
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv sync --extra docs --frozen
- uv pip sync docs/requirements.txt
# build
- myst build --html
# deploy
- mv _build/html $READTHEDOCS_OUTPUT/html

# Optionally, but recommended,
# declare the Python requirements required to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: requirements.txt

0 comments on commit a28750a

Please sign in to comment.