Add dl based listing of namespace objects with truncated names

This replaces a table that was constraining text area
go-templates
Anthony Johnson 9 years ago
parent e7be3b1804
commit 6aa8ced49f

@ -3,8 +3,6 @@
{{ object.short_name }} {{ object.type.title() }} {{ object.short_name }} {{ object.type.title() }}
{{ "=" * (object.short_name|length + object.type|length + 1) }} {{ "=" * (object.short_name|length + object.type|length + 1) }}
.. dn:{{ object.ref_type }}:: {{ object.name }}
{% endblock %} {% endblock %}
{% block toc %} {% block toc %}
@ -24,18 +22,14 @@
{% block table %} {% block table %}
{% if object.children %} .. dn:{{ object.ref_type }}:: {{ object.name }}
.. list-table:: Members {% if object.children %}
:widths: 20, 80
:header-rows: 1
* - Class
- Description
{%- for item in object.children|sort %} {%- for item in object.children|sort %}
{% macro render() %}{{ item.summary }}{% endmacro %} {% macro render() %}{{ item.summary }}{% endmacro %}
* - :dn:{{ item.ref_directive }}:`{{ item.id }}` {{ item.type }} :dn:{{ item.ref_directive }}:`{{ item.short_name }}`
- {{ render()|indent(7) }} {{ render()|indent(8) }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}

Loading…
Cancel
Save