
Includes: * display ToC for API docs * update dgeni-packages to 0.24.1 * add floating sidebar in API docs * add breadcrumbs and structured data for Google crawler * improved rendering of method overloads * properties rendered in a table * params rendered with docs * removal of outdated "infobox" from all API docs PR Close #21874
22 lines
744 B
HTML
22 lines
744 B
HTML
{% macro renderDescendantList(descendants, docType, recursed) %}
|
|
{% if descendants.length %}
|
|
<ul>
|
|
{% for descendant in descendants %}
|
|
<li>
|
|
<code>{$ descendant.name $}</code>
|
|
{$ renderDescendantList(descendant.descendants | filterByPropertyValue('docType', docType), docType, recursed) $}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endmacro -%}
|
|
|
|
{%- macro renderDescendants(doc, docType, title='', recursed=true) %}
|
|
{% set descendants = doc.descendants | filterByPropertyValue('docType', docType) %}
|
|
{% if descendants.length %}
|
|
<div class="descendants {$ docType $}">
|
|
{% if title %}<h2>{$ title $}</h2>{% endif %}
|
|
{$ renderDescendantList(descendants, docType, recursed) $}
|
|
</div>
|
|
{% endif %}
|
|
{% endmacro %} |