Skip to content

Commit 3613b19

Browse files
authored
Add mini-galleries for methods and functions (#648)
This PR updates the autosummary templates, to show mini-galleries of all methods and functions at the end of the documentation page.
1 parent 96a32b9 commit 3613b19

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/_templates/autosummary/function.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.. autofunction:: {{ objname }}
66

7+
.. include:: backreferences/{{ fullname }}.examples
78

89
.. raw:: html
910

doc/_templates/autosummary/method.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{ fullname | escape | underline }}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. automethod:: {{ objname }}
6+
7+
.. include:: backreferences/{{ fullname }}.examples
8+
9+
.. raw:: html
10+
11+
<div style='clear:both'></div>

0 commit comments

Comments
 (0)