Template for converting Jupyter notebooks to an asciidoc book.
-
Put the notebooks in the notebooks folder.
-
Install
nbmake
andfastdoc
https://semaphoreci.com/blog/test-jupyter-notebooks-with-pytest-and-nbmake https://fastai.github.io/fastdoc/
pip install nbmake
pip install fastdoc
-
cd
intofd
andgit clone
your Atlas repo. -
Review
prep_notebooks.py
andpost_process.py
to see if there's anything you need to adjust. -
Run
sh build.sh
to copy over the notebooks, run the notebooks using nbmake, prep the notebooks, convert them, postprocess the asciidoc, and copy the files into the Atlas repo.
Note that utils.py
configures Matplotlib to generate figures with high enough resolution for print. You can also configure it to generate other formats, etc.