We are slowly moving to MEP12 compliant examples.
sphinx-gallery was originally created from matplotlib's code to create a sphinx gallery but has since been packaged properly, and evolved to have more features and be more robust to sphinx build systems.
It has a couple of nice features that come out of the box including better formatting of gallery examples docstrings (see [1]), easy linking to documentation examples (specifically, deals with converting examples to rst and updating those, while our builds symlinks or copies stuff around, which makes moving to the Makefile system a bit more painful on our end).
Here are some steps to get our examples to build with sphinx-gallery:
- All gallery examples should be documented with a docstring that includes a title at the top of the file.
- All example folders containing plots should also contain a readme file
[1]_ http://scikit-learn.org/stable/auto_examples/plot_isotonic_regression.html#sphx-glr-auto-examples-plot-isotonic-regression-py
Examples of MEP12-compliant plots
Documentation:
List of elements that need to be updated:
Axes grid1
Event handling
misc
mplot3d
Pylab examples
Units
User interfaces
Widgets
Folders entirely finished
We are slowly moving to MEP12 compliant examples.
sphinx-gallerywas originally created from matplotlib's code to create a sphinx gallery but has since been packaged properly, and evolved to have more features and be more robust to sphinx build systems.It has a couple of nice features that come out of the box including better formatting of gallery examples docstrings (see [1]), easy linking to documentation examples (specifically, deals with converting examples to rst and updating those, while our builds symlinks or copies stuff around, which makes moving to the Makefile system a bit more painful on our end).
Here are some steps to get our examples to build with sphinx-gallery:
[1]_ http://scikit-learn.org/stable/auto_examples/plot_isotonic_regression.html#sphx-glr-auto-examples-plot-isotonic-regression-py
Examples of MEP12-compliant plots
Documentation:
List of elements that need to be updated:
Axes grid1
Event handling
misc
mplot3d
Pylab examples
Units
User interfaces
Widgets
Folders entirely finished