FASTSim’s documentation is built using Jupyter Book v2, which is built upon the MyST Document Engine.
Setup¶
Install the doc build dependencies:
Using Pixi:
pixi install -e docsManually:
pip install --group docs
Local Development¶
Launch Jupyter Book with live reload and notebook execution.
Using Pixi:
pixi run docsManually:
Change to the
docs/directorycd docsStart the dev server with live reload:
jupyter book start --executeThe
--executeflag runs the demo notebooks and populates their outputs, allowing plots to appear in the rendered pages
The site will be available at http://localhost:3000
Building Static HTML¶
jupyter book build --strict --html --executeOutput is written to docs/_build/html/.
The --strict flag checks for broken internal references.
Directory Layout¶
docs/
content/ Markdown pages and notebooks
old/ Outdated demo notebooks (still executed via pytest for additional coverage)
...
assets/ Images and icons
myst.yml Jupyter Book configuration and table of contentsAdding or Modifying Pages¶
Add
.mdand/or.ipynbfiles todocs/content/Edit the table of contents
docs/myst.ymlto reflect the updated doc structureCheck that a strict docs build runs cleanly:
jupyter book build --strict --html --execute
Publishing¶
Pushing to the fastsim-3 branch triggers a GitHub Actions workflow
(deploy_docs.yaml) that builds and deploys the book to GitHub Pages.