forked from authomatic/authomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
33 lines (28 loc) · 932 Bytes
/
bootstrap.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
# Update git submodules
git submodule init
git submodule update
# Create and activate virtual environment "./venv"
python bootstrap/makebootstrap.py
python bootstrap/bootstrap.py venv
. venv/bin/activate
# Install requirements
pip install -r requirements.txt
# Prepare github pages branch
# https://github.com/daler/sphinxdoc-test
# https://gist.github.com/brantfaircloth/791759
# Remove the build directory just for sure
rm -rf ./doc/build/
# Clone origin remote of this repository
git clone "`git config --get remote.origin.url`" ./doc/build/html
# Create the gh-pages branch
git -C ./doc/build/html branch gh-pages
# Set head to gh-pages branch
git -C ./doc/build/html symbolic-ref HEAD refs/heads/gh-pages
# Remove the git index
rm ./doc/build/html/.git/index
# Remove everything in the directory
git -C ./doc/build/html clean -fdx
# Compile documentation
make html -C doc/
# Deactivate virtual environment
deactivate