@@ -54,6 +54,7 @@ def setup(app):
5454 "sphinx.ext.autosummary" ,
5555 "sphinx.ext.napoleon" , # parameters look better than with numpydoc only
5656 "numpydoc" ,
57+ "sphinx_gallery.gen_gallery" ,
5758]
5859
5960# autosummaries from source-files
@@ -242,3 +243,30 @@ def setup(app):
242243 "NumPy" : ("http://docs.scipy.org/doc/numpy/" , None ),
243244 "SciPy" : ("http://docs.scipy.org/doc/scipy/reference" , None ),
244245}
246+
247+ # -- Sphinx Gallery Options
248+ from sphinx_gallery .sorting import FileNameSortKey
249+
250+ sphinx_gallery_conf = {
251+ # only show "print" output as output
252+ "capture_repr" : (),
253+ # path to your examples scripts
254+ "examples_dirs" : ["../../examples" ],
255+ # path where to save gallery generated examples
256+ "gallery_dirs" : ["examples" ],
257+ # Pattern to search for example files
258+ "filename_pattern" : "/.*.py" ,
259+ # "ignore_pattern": "",
260+ # Remove the "Download all examples" button from the top level gallery
261+ "download_all_examples" : False ,
262+ # Sort gallery example by file name instead of number of lines (default)
263+ "within_subsection_order" : FileNameSortKey ,
264+ # directory where function granular galleries are stored
265+ "backreferences_dir" : None ,
266+ # Modules for which function level galleries are created. In
267+ "doc_module" : "AnaFlow" ,
268+ # "image_scrapers": ('pyvista', 'matplotlib'),
269+ # "first_notebook_cell": ("%matplotlib inline\n"
270+ # "from pyvista import set_plot_theme\n"
271+ # "set_plot_theme('document')"),
272+ }
0 commit comments