Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene Yurtsev
71450f2a7e x 2023-07-31 22:48:54 -04:00

View File

@@ -3,28 +3,44 @@
.. currentmodule:: {{ module }} .. currentmodule:: {{ module }}
{% if '_value2member_map_' in all_attributes %}
{% set classType = "enum" %}
{% else %}
{% set classType = "default" %}
{% endif %}
.. autoclass:: {{ objname }} .. autoclass:: {{ objname }}
{% block methods %} {% if classType == "enum" %}
{% if methods %} {% if attributes %}
.. rubric:: {{ _('Methods') }} .. rubric:: {{ _('Attributes') }}
{% endif %}
{% else %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}
{% endif %}
.. autosummary:: {% block methods %}
{% for item in methods %} {% if methods %}
~{{ name }}.{{ item }} .. rubric:: {{ _('Methods') }}
{%- endfor %}
{% endif %}
{% endblock %}
{% block attributes %} .. autosummary::
{% if attributes %} {% for item in methods %}
.. rubric:: {{ _('Attributes') }} ~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
.. autosummary:: {% block attributes %}
{% for item in attributes %} {% if attributes %}
~{{ name }}.{{ item }} .. rubric:: {{ _('Attributes') }}
{%- endfor %}
{% endif %} .. autosummary::
{% endblock %} {% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
{% endif %}
.. example_links:: {{ objname }} .. example_links:: {{ objname }}