UNPKG

suh-dgeni-ngdocs

Version:

A package to generate ng-docs similar to what is used on AngularJS website.

32 lines (25 loc) 817 B
{% include "lib/macros.html" %} {% extends "api/api.template.html" %} {% block additional %} {% if doc.params or doc.returns or doc.this or doc.kind == 'function' -%} <h2 id="usage">Usage</h2> {% if doc.usage %} {$ doc.usage | code $} {% else %} {$ functionSyntax(doc) $} {% endif %} {% include "lib/params.template.html" %} {% include "lib/this.template.html" %} {% include "lib/returns.template.html" %} {%- endif %} {% include "lib/implements.template.html" %} {% include "lib/methods.template.html" %} {% include "lib/events.template.html" %} {% include "lib/properties.template.html" %} {% if doc.todos %} {$ todosList('Todos',doc.todos) $} {% endif %} {% if doc.notes %} {$ todosList('Notes',doc.notes) $} {% endif %} {% endblock %}