build-docs.sh 585 Bytes
Newer Older
1
2
#!/bin/bash

3
4
set -e -E -u -o pipefail

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
rm -f ./_FIRST_RUN.flag

export PATH="${CONDA}/bin:${PATH}"

curl \
    -sL \
    -o ${HOME}/miniforge.sh \
    https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh

/bin/bash ${HOME}/miniforge.sh -b -p ${CONDA}

conda config --set always_yes yes --set changeps1 no
conda update -q -y conda

conda env create \
    --name docs-env \
21
    --file env.yml || exit 1
22
23

source activate docs-env
24
make clean html || exit 1
25
26

echo "Done building docs. Open docs/_build/html/index.html in a web browser to view them."