Commit fc3fa74e authored by Mihai Baltac's avatar Mihai Baltac

small changes package/module documentation templates

parent dcdf8195
......@@ -7,6 +7,11 @@
({{ fullname }} module)
{% endif %}
{%- if doc %}
{{doc}}
{%- endif %}
.. currentmodule:: {{ fullname }}
.. automodule:: {{ fullname }}
......@@ -19,11 +24,6 @@
Summary
-------
{%- if doc:%}
Description:
{{doc}}
{%- endif %}
{%- if exceptions %}
Exceptions:
......
......@@ -2,13 +2,16 @@
{{ name }}
{% for item in range(8 + name|length) -%}={%- endfor %}
({{ fullname }} package)
{% else %}
{{ fullname }}
{% for item in range(8 + fullname|length) -%}={%- endfor %}
({{ fullname }} package)
{% endif %}
{%- if doc %}
{{doc}}
{%- endif %}
.. automodule:: {{ fullname }}
{% if members -%}
:members: {{ members|join(", ") }}
......@@ -17,8 +20,6 @@
{%- endif %}
{% if submodules %}
Submodules
----------
......@@ -45,13 +46,9 @@
{%- endif %}
{% if members or doc %}
{% if members %}
Summary
-------
{%- if doc:%}
Description:
{{doc}}
{%- endif %}
{%- if exceptions %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment