forked from fusion-energy/neutronics-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_docs.sh
More file actions
22 lines (22 loc) · 756 Bytes
/
build_docs.sh
File metadata and controls
22 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pip install jupyter-book[plotly]
pip install ghp-import
jupyter-book build .
# Delete the remote gh-pages branch
git push origin --delete gh-pages
# Import and force push (this creates a fresh branch each time)
ghp-import -n -p -f _build/
git checkout gh-pages
echo '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://fusion-energy.github.io/neutronics-workshop/html/docs/index.html">
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected automatically, follow this <a href="https://fusion-energy.github.io/neutronics-workshop/html/docs/index.html">link</a>.</p>
</body>
</html>' > index.html
git add index.html
git commit -m 'added redirect index'
git push