Skip to content

Commit

Permalink
ci: try using build commands
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed May 10, 2024
1 parent 7848c92 commit 4815174
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.12"
jobs:
post_create_environment:
- curl -LsSf https://astral.sh/uv/install.sh | sh
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH $HOME/.cargo/bin/uv pip install --upgrade pip setuptools
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH $HOME/.cargo/bin/uv pip install --upgrade sphinx readthedocs-sphinx-ext
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH $HOME/.cargo/bin/uv pip install .[docs]

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv venv
- uv pip install .[docs]
- .venv/bin/python -m sphinx -T -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html

0 comments on commit 4815174

Please sign in to comment.