A Jupyter Book shamelessly copying off of https://github.com/naturalistic-data-analysis/naturalistic_data_analysis.
This book uses Jupyter Book 1 (Sphinx, _config.yml / _toc.yml). Build with the hyphenated command:
jupyter-book build .
Do not use jupyter book … (with a space). That invokes Jupyter Book 2 / MyST, which expects a different project layout and will fail on this repository.
If you already installed a 2.x release, reinstall with pip install -r requirements.txt (which pins Jupyter Book 1.x).
The site is built locally; the HTML under docs/ on main is what GitHub Pages serves.
- Create a virtual environment, then install dependencies:
pip install -r requirements.txt. - Build the book and copy
_build/htmlintodocs/:make site-publish(or runmake bookfollowed bymake sync-docs). - Commit the updated
docs/tree and pushmain.
In the GitHub repository settings, set Pages to Deploy from a branch, choose branch main, folder /docs. If the site was previously deployed with GitHub Actions, switch away from that source so Pages reads the committed docs/ folder.
Deployment no longer uses GitHub Actions; repository secrets such as CONFIG_EMAIL and CONFIG_NAME are not required for publishing.