Template updates.

pull/78/head
Eric Holscher 8 years ago
parent 6025db45a7
commit 3aa1747795

@ -9,8 +9,10 @@ Below is a list of all items that are documented here.
:glob:
:maxdepth: 1
{%- for page in pages|sort %}
{% if page.top_level_object %}
/autoapi/{{ page.id.split('.')|join('/') }}/index
{% endif %}
{# Force whitespace #}
{%- for page in pages %}
{%- if page.top_level_object %}
{{ page.include_path }}
{%- endif %}
{%- endfor %}

@ -1,14 +1,12 @@
{% if not 'nested' in obj._human %}
{{ obj.short_name }}
{{ "-" * obj.short_name|length }}
Class {{ obj.short_name }}
~~~~~~{{ "~" * obj.short_name|length }}
{% endif %}
.. py:class:: {{ obj.short_name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
{%- if obj.docstring %}
.. rubric:: Summary
{{ obj.docstring|indent(3) }}
{% endif %}

@ -1,6 +1,6 @@
{%- if obj.display %}
.. function:: {{ obj.name.split('.')[-1] }}({{ obj.args|join(',') }})
.. function:: {{ obj.name }}({{ obj.args|join(',') }})
{% if obj.docstring %}
{{ obj.docstring.strip()|indent(3) }}

@ -1,9 +1,9 @@
{%- if obj.display %}
.. method:: {{ obj.name.split('.')[-1] }}({{ obj.args[1:]|join(',') }})
.. method:: {{ obj.name }}({{ obj.args[1:]|join(',') }})
{% if obj.docstring %}
{{ obj.docstring.strip()|indent(3) }}
{{ obj.docstring }}
{% endif %}
{% endif %}

@ -1,10 +1,8 @@
{{ obj.name }}
{{ "~" * obj.name|length }}
Module {{ obj.name }}
-------{{ "-" * obj.name|length }}
{%- if obj.docstring %}
.. rubric:: Summary
{{ obj.docstring }}
{% endif %}

@ -0,0 +1,19 @@
Package {{ obj.name }}
========{{ "=" * obj.name|length }}
{%- if obj.docstring %}
{{ obj.docstring }}
{% endif %}
.. py:module:: {{ obj.name }}
{% block content %}
{%- for obj_item in obj.children %}
{{ obj_item.rendered|indent(0) }}
{%- endfor %}
{% endblock %}
Loading…
Cancel
Save