Skip to content

Commit 68b428a

Browse files
committed
Use sphinx-gallery for making the example plots
1 parent 0b1d2f2 commit 68b428a

20 files changed

+97
-196
lines changed

docs/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
_build
1+
_build/
2+
examples/
-1.03 MB
Binary file not shown.
-313 KB
Binary file not shown.

docs/_static/images/kgari-path.png

-64.7 KB
Binary file not shown.
-30.2 KB
Binary file not shown.
-127 KB
Binary file not shown.
-212 KB
Binary file not shown.

docs/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'sphinx.ext.intersphinx',
4141
'sphinx.ext.napoleon',
4242
'sphinxcontrib.video',
43+
'sphinx_gallery.gen_gallery',
4344
'roles'
4445
]
4546

@@ -65,6 +66,10 @@
6566
html_static_path = ['_static']
6667

6768

69+
def setup(app):
70+
app.add_css_file("hide_links.css")
71+
72+
6873
# Options for generated documentation
6974
add_module_names = True
7075

@@ -99,3 +104,13 @@
99104
'shapely': ('https://shapely.readthedocs.io/en/stable/', None),
100105
'xarray': ('https://docs.xarray.dev/en/stable/', None),
101106
}
107+
108+
109+
# Sphinx gallery configuration
110+
sphinx_gallery_conf = {
111+
'examples_dirs': '../examples',
112+
'gallery_dirs': './examples',
113+
'filename_pattern': '/plot-',
114+
'matplotlib_animations': True,
115+
'backreferences_dir': './examples/backreferences',
116+
}

docs/examples/animated-plot.rst

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/examples/index.rst

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)