diff --git a/aio/tools/transforms/templates/api/package.template.html b/aio/tools/transforms/templates/api/package.template.html index 3583ee6a0b..568125c505 100644 --- a/aio/tools/transforms/templates/api/package.template.html +++ b/aio/tools/transforms/templates/api/package.template.html @@ -1,6 +1,6 @@ {% extends 'base.template.html' -%} -{% macro listItems(items, title) %} +{% macro listItems(items, title, overridePath) %} {% if items.length %}

{$ title $}

@@ -8,7 +8,7 @@ {% for item in items %} - {$ item.name $} + {$ item.name $} {% if item.shortDescription %}{$ item.shortDescription | marked $}{% endif %} {% endfor %} @@ -24,12 +24,13 @@ {% include "includes/see-also.html" %} + {% if doc.isPrimaryPackage %}

Entry points

- {$ listItems([doc.packageInfo.primary], 'Primary') $} + {$ listItems([doc.packageInfo.primary], 'Primary', '#primary-entry-point-exports') $} {$ listItems(doc.packageInfo.secondary, 'Secondary') $} + {% endif %} - -

Exports

+

{% if doc.isPrimaryPackage %}Primary entry{% else %}Entry{% endif %} point exports

{$ listItems(doc.classes, 'Classes') $} {$ listItems(doc.decorators, 'Decorators') $} {$ listItems(doc.functions, 'Functions') $}