- Add _config.yml to the root of the repo
- Update
title:
andauthor:
fields in _config.yaml
- Update
- Add _toc.yml to the root of the repo
- Update
caption:
andchapters:
fields with the path of each file you want to include on the navigation panel.
- Update
- Run
pip install -U jupyter-book
in cli interface jupyter-book build <repo_name> .
(this creates all necessary Jupyter Book files and stores them in_build/html
)
At this point, you have created your Jupyter Book! The next steps are to publish your book as a GitHub pages site on GitHub. Note: to use your repo within the Meteor project, only steps 1 and 2 are necessary.
- Run
pip install ghp-import
in cli interface - Delete the
_build/html/_sources
as these are just copies of the repo files that were converted to html. (optional) - Add
_build
folder to.gitignore
so that its files are not tracked while pushing to master. (optional) - Run
ghp-import -n -p -f _build/html
- Build site by going to repo settings-->pages and set source to branch:gh-pages and directory:root/
Within a few minutes, you should see your GitHub pages environment populate with your JupyterBook content.