Docusaurus builds the reference in docs/docu and the worked examples in docs/tutorial. The sidebars follow the directory structure. Images and other downloadable files are served from static.
Use Node.js 22 and the committed lockfile.
npm ci
npm startBefore submitting a change, run the production build and check internal links, images and fragments against the generated HTML.
npm run build
python3 scripts/check_links.py buildThe pull-request workflow runs both checks. A successful push build on main publishes the checked output to the Pages branch. The KaTeX styles and fonts are bundled from the same package as the equation renderer.
Record the Ocelot revision used to generate the example (git rev-parse HEAD). Edit the notebook in demos/ipython_tutorials or demos/docs in that checkout. From a temporary copy of its directory, including its companion lattice and data files, execute and export it:
jupyter nbconvert --execute --to notebook example.ipynb --output example.executed.ipynb
jupyter nbconvert --to markdown example.executed.ipynbUpdate the affected inputs, outputs and figures in the website. Retain the page's front matter, figure URLs, heading targets, explanatory text and link to the source notebook. Label release-specific calls. Distinguish numeric agreement with a stated reference from a notebook that completes successfully. The site build renders the checked-in Markdown. Execute the Python examples separately.