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.

Updating the Docs

FASTSim’s documentation is built using Jupyter Book v2, which is built upon the MyST Document Engine.

Setup

Install the doc build dependencies:

Local Development

Launch Jupyter Book with live reload and notebook execution.

The site will be available at http://localhost:3000

Building Static HTML

jupyter book build --strict --html --execute

Output 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 contents

Adding or Modifying Pages

  1. Add .md and/or .ipynb files to docs/content/

  2. Edit the table of contents docs/myst.yml to reflect the updated doc structure

  3. Check 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.