-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs build process #461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once linters pass, I am happy to merge this.
FYI I realised Ruff has been pinned to an old version for a while - I upgraded it and fixed the raised issues (some of which are present in this PR) in #461 |
Thanks @Thomas-Christie. I merged that PR, so you can probably just rebase from that @frazane |
Type of changes
Description
This PR brings changes to the doc build process, specifically to how the example notebooks are handled. In short, we stop using some mkdocs plugins and instead use
jupytext
andnbcovert
directly, which is more robust and only adds an extra command to the building process. Here's a summary of the changes:docs/examples
toexamples
under the top level of the directory, which gives them more visibility and separates them for the doc building process (i.e. from the corresponding markdown files).py
notebooks to markdown files is added (docs/scripts/gen_examples.py
), which stores the generated markdown files underdocs/_examples
. Includes CLI parameters to optionally execute notebooks, to specify the number of notebooks to be processed in parallel and whether to only process notebooks that have been updated.With these changes, the documentation can now be generated with: