File size: 468 Bytes
1a79cb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash          

# delete previous gh-pages
git branch -D gh-pages
git push origin :gh-pages

git checkout -b gh-pages
git rebase master
git reset HEAD

# make docs
./scripts/make_docs.sh

# Add docs
mv docs/_build/html/*.html .
git add *.html
mv docs/_build/html/*.js .
git add *.js
mv docs/_build/html/_static/ _static
git add _static

touch .nojekyll
git add .nojekyll

# Publish to gh-pages
git commit -m "docs"
git push origin gh-pages

git checkout master