-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuildDocs.sh
executable file
·44 lines (36 loc) · 1.21 KB
/
buildDocs.sh
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
#!/bin/bash
set -x
set -e
################################################################################
# File: buildDocs.sh
# Purpose: Script that builds our documentation using sphinx and updates GitHub
# Pages. This script is executed by:
# .github/workflows/docs_pages.yml
#
# Authors: Michael Altfield <[email protected]>
# Created: 2020-07-17
# Updated: 2022-01-07
# Version: 0.1.1
################################################################################
###################
# INSTALL DEPENDS #
###################
sudo apt-get update
sudo apt-get -y install git make rsync wget pkg-config libhdf5-serial-dev python3-numpy python3-h5py python3-mpi4py python3-pip python3-git
python3 -m pip install -U "cython<3" numpy mpi4py
python3 -m pip install -r requirements.txt
python3 -m pip install -r docs/docs_requirements.txt
python3 -m pip install .
######################
# GET TAGS FOR BUILD #
######################
git fetch --all --tags
##############
# BUILD DOCS #
##############
# build our documentation with sphinx (see docs/conf.py)
# * https://www.sphinx-doc.org/en/master/usage/quickstart.html#running-the-build
make -C docs clean
make -C docs html
# exit cleanly
exit 0