mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-19 15:25:31 +00:00
Fix hierarchy, and include object itself in it.
This commit is contained in:
parent
c79a0f3cee
commit
6410bee011
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
|
|
||||||
{{ obj.short_name }} {{ obj.type.title()}}
|
{{ obj.short_name }} {{ obj.type.title()}}
|
||||||
@ -13,7 +11,8 @@
|
|||||||
:local:
|
:local:
|
||||||
|
|
||||||
{% block summary %}
|
{% block summary %}
|
||||||
{%- if obj.summary %}
|
{%- if obj.summary %}
|
||||||
|
|
||||||
Summary
|
Summary
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@ -23,15 +22,18 @@ Summary
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block inheritance %}
|
{% block inheritance %}
|
||||||
{%- if obj.inheritance %}
|
|
||||||
|
{%- if obj.inheritance %}
|
||||||
|
|
||||||
Inheritance Hierarchy
|
Inheritance Hierarchy
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
{%- for item in inheritance %}
|
{%- for item in obj.inheritance %}
|
||||||
* :dn:{{ item.ref_directive }}:`{{ item.id }}`
|
* :dn:{{ item.ref_directive }}:`{{ item.id }}`
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
* :dn:{{ obj.ref_directive }}:`{{ obj.id}}`
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block syntax %}
|
{% block syntax %}
|
||||||
|
Loading…
Reference in New Issue
Block a user