Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/thinkbayes2
Path: blob/master/jb/build.sh
1901 views
1
# pip install jupyter-book ghp-import
2
3
# Build the Jupyter book version
4
5
# make the asciidoc version of the preface
6
pandoc -t asciidoc --wrap none --markdown-headings=atx preface.md > preface.asciidoc
7
8
# if adding chapters, update _toc.yml
9
10
# copy notebooks
11
cp ../soln/chap[0-2]*.ipynb .
12
cp ../soln/redline.ipynb .
13
cp ../examples/redline_pymc.ipynb .
14
cp ../examples/vaccine2.ipynb .
15
cp ../examples/usb.ipynb .
16
cp ../examples/sister.ipynb .
17
cp ../examples/bayes_dice.ipynb .
18
cp ../examples/radiation.ipynb .
19
cp ../examples/hospital.ipynb .
20
cp ../examples/hospital_birth_rate.ipynb .
21
cp ../examples/ok.ipynb .
22
cp ../examples/bookstore.ipynb .
23
cp ../examples/beta_binomial.ipynb .
24
cp ../soln/utils.py .
25
26
# add tags to hide the solutions
27
python prep_notebooks.py
28
29
# build the HTML version
30
jb build .
31
32
# push it to GitHub
33
ghp-import -n -p -f _build/html
34
35