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

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

5
6
7
8
9
10
rm -f ./_FIRST_RUN.flag

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

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

14
/bin/bash "${HOME}/miniforge.sh" -b -p "${CONDA}"
15
16
17
18
19
20

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
# shellcheck disable=SC1091
24
source activate docs-env
25
make clean html || exit 1
26
27

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