-
Notifications
You must be signed in to change notification settings - Fork 2
/
.readthedocs.yml
35 lines (30 loc) · 903 Bytes
/
.readthedocs.yml
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
version: 2
build:
os: ubuntu-20.04
tools:
python: mambaforge-4.10
jobs:
# Content here largely copied from Iris
# see : https://github.com/SciTools/iris/pull/4855
post_checkout:
# The SciTools/iris repository is shallow i.e., has a .git/shallow,
# therefore complete the repository with a full history in order
# to allow setuptools-scm to correctly auto-discover the version.
- git fetch --unshallow
- git fetch --all
# Need to stash the local changes that Read the Docs makes so that
# setuptools_scm can generate the correct Iris version.
pre_install:
- git stash
post_install:
- sphinx-apidoc -Mfe -o ./docs/api ./lib/ncdata
- git stash pop
conda:
environment: requirements/readthedocs.yml
sphinx:
configuration: docs/conf.py
fail_on_warning: false
python:
install:
- method: pip
path: .