-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.readthedocs.yml
More file actions
27 lines (25 loc) · 795 Bytes
/
Copy path.readthedocs.yml
File metadata and controls
27 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
sphinx:
configuration: docs/source/conf.py
fail_on_warning: true
builder: dirhtml
build:
os: ubuntu-lts-latest
tools:
python: latest
jobs:
pre_create_environment:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
create_environment:
- uv venv $READTHEDOCS_VIRTUALENV_PATH
install:
# Use a cache dir in the same mount to halve the install time
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv sync --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache --group docs
build:
html:
- uv run sphinx-build -T -b dirhtml docs/source $READTHEDOCS_OUTPUT/html