Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ce33dd

Browse filesBrowse files
committed
adding show inheritance to autosummary template
1 parent fe6ee82 commit 2ce33dd
Copy full SHA for 2ce33dd

File tree

Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed

‎doc/_templates/autosummary.rst

Copy file name to clipboardExpand all lines: doc/_templates/autosummary.rst
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@
33

44
.. currentmodule:: {{ module }}
55

6+
7+
{% if objtype in ['class'] %}
8+
.. auto{{ objtype }}:: {{ objname }}
9+
:show-inheritance:
10+
11+
{% else %}
612
.. auto{{ objtype }}:: {{ objname }}
713
14+
{% endif %}
15+
816
{% if objtype in ['class', 'method', 'function'] %}
917
{% if objname in ['AxesGrid', 'Scalable', 'HostAxes', 'FloatingAxes',
1018
'ParasiteAxesAuxTrans', 'ParasiteAxes'] %}
1119
.. Filter out the above aliases to other classes, as sphinx gallery
1220
creates no example file for those (sphinx-gallery/sphinx-gallery#365)
13-
21+
1422
{% else %}
1523
.. include:: {{module}}.{{objname}}.examples
1624

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.