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|length + object.type|length + 1) }}
.. dn:{{ object.ref_type }}:: {{ object.name }}
{% endblock %}
{% block toc %}
@ -24,19 +22,15 @@
{% block table %}
.. dn:{{ object.ref_type }}:: {{ object.name }}
{% if object.children %}
.. list-table:: Members
:widths: 20, 80
:header-rows: 1
* - Class
- Description
{%- for item in object.children|sort %}
{% macro render() %}{{ item.summary }}{% endmacro %}
* - :dn:{{ item.ref_directive }}:`{{ item.id }}`
- {{ render()|indent(7) }}
{% endfor %}
{%- for item in object.children|sort %}
{% macro render() %}{{ item.summary }}{% endmacro %}
{{ item.type }} :dn:{{ item.ref_directive }}:`{{ item.short_name }}`
{{ render()|indent(8) }}
{% endfor %}
{% endif %}

Loading…
Cancel
Save