Skip to content

Commit 5e0dc6d

Browse files
committed
Update RTD config
1 parent 9d494d9 commit 5e0dc6d

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.readthedocs.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# Read the Docs configuration file
2-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3-
41
version: 2
52

63
build:
7-
os: ubuntu-20.04
4+
os: ubuntu-lts-latest
85
tools:
9-
python: "3.8"
10-
11-
sphinx:
12-
configuration: docs/conf.py
6+
python: latest
137

14-
python:
15-
install:
16-
- path: .
17-
extra_requirements:
18-
- all
19-
- requirements: docs/requirements.txt
8+
jobs:
9+
pre_create_environment:
10+
- asdf plugin add uv
11+
- asdf install uv latest
12+
- asdf global uv latest
13+
# Turn `python -m virtualenv` into `python -c pass`
14+
- truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py
15+
post_create_environment:
16+
- uv venv $READTHEDOCS_VIRTUALENV_PATH
17+
# Turn `python -m pip` into `python -c pass`
18+
- truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py
19+
post_install:
20+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache .[niftiext]
21+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt

0 commit comments

Comments
 (0)