-
Notifications
You must be signed in to change notification settings - Fork 2
/
.readthedocs.yaml
24 lines (24 loc) · 813 Bytes
/
.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
# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2
sphinx:
configuration: source/conf.py
build:
os: ubuntu-20.04
tools:
python: "mambaforge-4.10"
apt_packages:
- rsync
jobs:
post_install:
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ]; then
# This is a PR, so use the PR number
CACHE_BRANCH="_cookbook_data_PR${READTHEDOCS_VERSION_NAME}"
else
# This is not a PR, so use the Git reference
CACHE_BRANCH="_cookbook_data_${READTHEDOCS_GIT_IDENTIFIER}"
fi
git clone -v --depth=1 --single-branch --branch=${CACHE_BRANCH} -- https://github.com/openforcefield/openff-docs.git build/_cookbook_data
- rsync -a "build/_cookbook_data"/* ./
conda:
environment: devtools/conda-envs/rtd_env.yml