-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
20 lines (16 loc) · 738 Bytes
/
Copy pathbuild.sh
File metadata and controls
20 lines (16 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -euo pipefail
# Some pages include files from amberassist. Update it when it is available,
# but allow the documentation build to continue when it is not checked out.
if [[ -d "_external/amberassist/.git" ]]; then
git -C _external/amberassist pull
else
printf '%s\n' \
"Optional dependency _external/amberassist is missing; skipping its update." \
"Pages that include files from amberassist may produce build warnings."
fi
# Local build: generate the HTML site in _build/html.
sphinx-build ./ _build/html
# Deploy: replace the gh-pages branch with the build and push it to GitHub.
printf '%s\n' "Deploying _build/html to GitHub Pages with ghp-import..."
ghp-import -n -p -f _build/html