-
Notifications
You must be signed in to change notification settings - Fork 75
/
.readthedocs.yaml
33 lines (29 loc) · 1.05 KB
/
.readthedocs.yaml
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
28
29
30
31
32
33
# .readthedocs.yaml
# Read the Docs configuration file (https://docs.readthedocs.io/en/stable/config-file/v2.html)
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
apt_packages:
- gcc-10
- g++-10
jobs:
pre_create_environment:
- echo "Getting test data"
- cd docs && wget -q http://star.ucl.ac.uk/~app/testdata.tar.gz && tar --exclude="._*" -xzvf testdata.tar.gz
- cd docs && wget -q https://zenodo.org/records/10825178/files/tutorial_gadget4.tar.gz?download=1 -O tutorial_gadget4.tar.gz && tar -xvzf tutorial_gadget4.tar.gz
post_build:
- mkdir $READTHEDOCS_OUTPUT/html/tutorials/plots/
- cp -r docs/*.png $READTHEDOCS_OUTPUT/html/tutorials/plots/
# totally unclear why the above should be necessary - in my own setup, sphinx puts everything in sensible places
- find $READTHEDOCS_OUTPUT/html # for debugging
- find docs/ # for debugging
sphinx:
configuration: docs/conf.py
python:
install:
- method: pip
path: .
extra_requirements:
- all