Skip to content

Documentation site

The independent Hedgehogs site publishes this repository's guides and API references through GitHub Pages. Nordic documentation remains separate.

Source ownership

Edit docs/. The source preparation step maps home.md to the homepage and the documentation index to overview.md. It serves SVGs with content-hash revisions and points source links to GitHub. The Sources page records the build commit when Git metadata is available; archive builds explicitly report its absence.

others/assets/icon.svg is the canonical transparent symbol used by the header and favicon. The README and homepage use banner_light.svg and banner_dark.svg from the same directory, selecting one for the active theme. Check both themes after artwork changes. Header, favicon and site artwork URLs are versioned automatically by content hash. The site's warm colours are independent of scientific plot palettes.

Build and publish

Use a documentation environment containing requirements-docs.txt:

python tools/docs/build.py --workspace /path/to/build/work --site-dir /path/to/output/site

Zensical renders the prepared sources; MkDocs core supplies the file adapter. The build replaces only output directories marked as generated by this tool.

The Documentation workflow builds and deploys relevant pushes to main. Builds serve committed previews without executing notebooks.

The site reads tutorial code and saved output from tutorials/. To refresh the plots with the checked-out source, run:

python tools/docs/gallery.py --workspace /path/to/scratch

The runner executes the plotting cells in order using the inline backend. It writes the same previews to the notebook and docs/assets/gallery/. Inspect the images and update the gallery captions if the plot order changes.

Portable Markdown

Repository pages use standard Markdown and HTML details. Installation option groups use hidden tabs comments; source preparation converts them to MkDocs tabs. Check both ordinary Markdown and the built site after editing shared pages.