mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-10 01:10:27 +00:00
a4f798183c
Also fixed whitespace issues in templates.
33 lines
545 B
ReStructuredText
33 lines
545 B
ReStructuredText
.. go:package:: {{ obj.name }}
|
|
|
|
{{ obj.name }}
|
|
{{ "=" * obj.name|length }}
|
|
|
|
{% block toc %}
|
|
{% if obj.children %}
|
|
|
|
{# TODO Make this work
|
|
.. toctree::
|
|
:maxdepth: 4
|
|
|
|
{% for item in obj.children|sort %}
|
|
/autoapi/{{ item.id.split('.')|join('/') }}/index
|
|
{% endfor %}
|
|
#}
|
|
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% if obj.docstring %}
|
|
{{ obj.docstring }}
|
|
{% endif %}
|
|
|
|
{% block content %}
|
|
{% for obj_item in obj.children|sort %}
|
|
|
|
{% macro render() %}{{ obj_item.render() }}{% endmacro %}
|
|
{{ render()|indent(0) }}
|
|
|
|
{% endfor %}
|
|
{% endblock %}
|