Skip to content

Commit

Permalink
update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwolf committed Aug 25, 2022
1 parent e1f40ac commit 0dcaf0a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ lablocal:

sync:
jupytext --sync ./notebooks/*.ipynb

rerun:
echo "import matplotlib.pyplot as plt\nplt.rcParams['figure.dpi']=300" \
> ~/.ipython/profile_default/startup/00.py
jupyter nbconvert --to notebook\
--execute \
--output-dir=build \
--ExecutePreprocessor.timeout=600 \
--ExecutePreprocessor.ipython_hist_file='' \
notebooks/*ipynb
mv build/*ipynb ./notebooks/
make sync
rm ~/.ipython/profile_default/startup/00.py


html: sync
echo "Cleaning up existing tmp_book folder..."
Expand Down Expand Up @@ -70,7 +84,7 @@ test:

rm -rf tests
echo "########\n\nAll blocks passed\n\n########"

pack_site: html
rm -f gdsbook_site.zip
cd docs && zip -r ../gdsbook_site.zip ./
Expand Down

0 comments on commit 0dcaf0a

Please sign in to comment.