2018-08-08 15:15:56 +08:00

41 lines
1.2 KiB
HTML

{% extends 'base.template.html' -%}
{% macro listItems(items, title) %}
{% if items.length %}
<section class="export-list">
<h3>{$ title $}</h3>
<table class="is-full-width list-table">
{% for item in items %}
<tr>
<td><code class="code-anchor">
<a href="{$ item.path $}">{$ item.name $}</a></code></td>
<td>{% if item.shortDescription %}{$ item.shortDescription | marked $}{% endif %}</td>
</tr>
{% endfor %}
</table>
</section>
{% endif %}
{% endmacro %}
{% block body -%}
{% include "includes/deprecation.html" %}
{$ doc.shortDescription | marked $}
{% if doc.description %}{$ doc.description | marked $}{% endif %}
{% include "includes/see-also.html" %}
<h2 id="entry-points">入口点</h2>
{$ listItems([doc.packageInfo.primary], '主要') $}
{$ listItems(doc.packageInfo.secondary, '次要') $}
<h2 id="exports">导出列表</h2>
{$ listItems(doc.classes, '类') $}
{$ listItems(doc.decorators, '装饰器') $}
{$ listItems(doc.functions, '函数') $}
{$ listItems(doc.structures, '结构') $}
{$ listItems(doc.directives, '指令') $}
{$ listItems(doc.pipes, '管道') $}
{$ listItems(doc.types, '类型') $}
{%- endblock %}