Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Documentation with Jupyter Book

Jupyter Book builds a website from Markdown (MyST) files and Jupyter notebooks.

This template uses Jupyter Book 2. The configuration is docs/myst.yml.

Write

Preview locally

uv sync --extra docs           # or: pip install -e ".[docs]"
cd docs && jupyter book start  # serves the book at http://localhost:3000 and reloads on save

Jupyter Book needs Node.js 18 or later. If it is not installed, the first run offers to install a private copy.

Publish

.github/workflows/docs.yml builds the book on every pull request, so a broken page fails the check. On every push to main, it also publishes the book to GitHub Pages, at https://<organisation>.github.io/<repository>/.

Before the first publication, enable Pages once: in the repository’s Settings → Pages, set Source to GitHub Actions. See GitHub’s Pages documentation and Jupyter Book’s deployment guide.

Like the other workflows, it only runs on public repositories.

Learn more