-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.readthedocs.yaml
49 lines (45 loc) · 1.32 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 2
build:
os: ubuntu-lts-latest
tools:
python: miniconda-latest
apt_packages:
- libgsl-dev
- libfftw3-dev
- graphviz
jobs:
post_checkout:
# Fetch tags for doc versioning.
- git fetch --unshallow || true
- git fetch --all --tags || true
pre_create_environment:
- conda update --yes --quiet --name=base --channel=defaults conda
post_create_environment:
# Check version solver outcome.
- conda list
pre_install:
# RTD modifies these files.
- git update-index --assume-unchanged docs/environment.yml docs/source/conf.py
pre_build:
- cp deploy/pkg/pyproject/.pyproject.toml pyproject.toml
- pip install --editable . -vvv
- bash deploy/doc/autogen_docs.sh
post_build:
- rm docs/source/Doxyfile
- >
mv
${READTHEDOCS_OUTPUT}/html/_static/apiref_doxy/
${READTHEDOCS_OUTPUT}/html/
- mkdir -p ${READTHEDOCS_OUTPUT}/html/apiref_doxy/docs/source/_static/
- >
find docs/source/_static/ -maxdepth 1 -type d -exec cp -r
{} ${READTHEDOCS_OUTPUT}/html/apiref_doxy/docs/source/_static/ \;
sphinx:
configuration: docs/source/conf.py
conda:
environment: docs/environment.yml
# python:
# install:
# - requirements: docs/dependencies.txt
# - method: pip
# path: .