{%- if description is defined %} {% endif %} {%- if author is defined %} {% endif %} {{ title }}
{% set manuals = [] %}

{{ title }}

{% macro generate_doc(api) %} {% for type, name, args, doc in api %} {% set doc = wiki(doc) %} {% if type == 'submodule' %} {{ name }} {% set rv = manuals.append(load_module(name)) %} {% set rv = keywords(api) %} {% elif type == 'module' %}

module {{ name }}

{{ doc }}
{% elif type == 'class' %}

class {{name}}

{{ doc }}
{% elif type == 'method' %}

{{ name }}{{ args }}

{{ doc }}
{% elif type == 'function' and name[0] != '_' %}

def {{ name }}{{ args }}

{{ doc }}
{% endif %} {% endfor %}

Variables

{% for type, name, args, doc in api %} {% set doc = wiki(doc) %} {% if type == 'variable' %}

{{ name }} = {{ args|truncate(70, end='...)')|e }}

{% endif %} {% endfor %} {%- endmacro %} {% if api is not defined %} {% set api = (('module', 'api variable is not defined', None, ''),) %} {% endif %} {{ keywords(api) }} {{ generate_doc(api) }} {% for n in range(100) %} {% if length(manuals) > 0 %} {{ generate_doc(manuals.pop()) }} {% endif %}{% endfor %}

Generate by Jinja24doc.