Skip to content

Commit a684134

Browse files
mgeierfs446
authored andcommitted
DOC: turn examples into a thumbnail gallery
1 parent 8d7990a commit a684134

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
181 KB
Loading
834 KB
Loading

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"--InlineBackend.rc={'figure.dpi': 96}",
2525
]
2626

27+
nbsphinx_thumbnails = {
28+
'example-python-scripts': '_static/thumbnails/soundfigure_level.png',
29+
'examples/animations-pulsating-sphere': '_static/thumbnails/pulsating_sphere.gif',
30+
}
31+
2732
# Tell autodoc that the documentation is being generated
2833
sphinx.SFS_DOCS_ARE_BEING_BUILT = True
2934

doc/examples.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Examples
1010
:target: https://mybinder.org/v2/gh/sfstoolbox/sfs-python/master?
1111
filepath=doc/examples
1212

13-
.. toctree::
14-
:maxdepth: 1
13+
.. nbgallery::
1514

1615
examples/sound-field-synthesis
1716
examples/modal-room-acoustics

0 commit comments

Comments
 (0)