UNPKG

suh-dgeni-ngdocs

Version:

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

48 lines (45 loc) 1.14 kB
{% block content %} <div class="uk-block uk-block-primary uk-contrast doc-type-{$ doc.docType $}"> <div class="uk-container"> <h1> {%- if doc.title -%} {$ doc.title | marked $} {%- elif doc.moduleName -%} {$ doc.groupType | title $} components in {$ doc.moduleName $} {%- else -%} Pages {%- endif -%} </h1> <div class="uk-grid" data-uk-grid-margin> <div class="uk-width-1-1"> {$ doc.briefdesc | marked $} </div> </div> </div> </div> <p> {$ doc.description | marked $} </p> <div class="component-breakdown"> <div> <table class="uk-table definition-table"> <tr> <th class="uk-width-2-10">Name</th> <th class="uk-width-7-10">Description</th> </tr> {% for page in doc.components %} <tr> <td>{$ page.id | link(page.name, page) $}</td> <td> {% if page.briefdesc %} {$ page.briefdesc | marked $} {% else %} {$ page.description | firstParagraph | marked $} {% endif %} </td> </tr> {% endfor %} </table> </div> </div> {% endblock %}