File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 1
- # Read the Docs configuration file
2
- # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
-
4
1
version : 2
5
2
6
3
build :
7
- os : ubuntu-20.04
4
+ os : ubuntu-lts-latest
8
5
tools :
9
- python : " 3.8"
10
-
11
- sphinx :
12
- configuration : docs/conf.py
6
+ python : latest
13
7
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
You can’t perform that action at this time.
0 commit comments