Skip to content

Add notebook rendering to docs - #130

Merged
JaroCamphuijsen merged 2 commits into
mainfrom
add_notebook_rendering
Jun 21, 2026
Merged

JaroCamphuijsen merged 2 commits into
mainfrom
add_notebook_rendering

Conversation

@raar1

@raar1 raar1 commented Mar 2, 2026 •

Copy link
Copy Markdown
Collaborator

This adds notebook rendering to the documentation page under an Examples heading. I found errors in the existing Griftpark notebooks so I didn't add them for now. All the Amersfoort notebooks should be there and seem to render ok.

Note that it is not possible to render notebooks from examples/ directly in a portable fashion (see MiBiPreT/mibitrans#141) so currently there is a separate /docs/examples directory that you must copy notebooks to if you want them to be included in the docs. In future there may be a better solution. If it's really annoying, we could think about a script to automatically copy notebooks over, but this is likely to confuse people so deliberately and explicitly choosing to copy certain notebooks still seems like a better option.

You can test the rendering locally by running pip install .[doc] to get the new docs dependencies down, and then mkdocs serve

Fixes #127

@sonarqubecloud

sonarqubecloud Bot commented Mar 2, 2026

Copy link
Copy Markdown

@JaroCamphuijsen JaroCamphuijsen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Can you maybe add a distinction between the "ordination" notebooks in the original example folder already. Currently they get rendered with exactly the same title in the documentation, which makes it confusing.

@sonarqubecloud

Copy link
Copy Markdown

@JaroCamphuijsen
JaroCamphuijsen merged commit 4856fb6 into main Jun 21, 2026
10 checks passed
@JaroCamphuijsen
JaroCamphuijsen deleted the add_notebook_rendering branch June 21, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Render example notebooks in the documentation

2 participants