build(aio): remove formatting and styles from dgeni templates
Much of the formatting was hardcoded and copied from the old anguar.io jade files. This gives us a clean start. Also, more use has been made of include files to make the templates easier to understand and manage.
This commit is contained in:

committed by
Igor Minar

parent
ec8e68ed56
commit
ef48ee0a0a
11
docs/templates/layout/_deprecated-notes.html
vendored
11
docs/templates/layout/_deprecated-notes.html
vendored
@ -1,11 +0,0 @@
|
||||
{% if doc.showDeprecatedNotes %}
|
||||
<div layout="row" layout-xs="column" class="row-margin ng-cloak">
|
||||
<div flex="20" flex-xs="100">
|
||||
<h2 class="h2-api-docs">Deprecation Notes</h2>
|
||||
</div>
|
||||
<div flex="80" flex-xs="100">
|
||||
{%- if doc.deprecated %}{$ doc.deprecated | marked $}
|
||||
{% else %}<em>Not yet documented</em>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
10
docs/templates/layout/_how-to-use.html
vendored
10
docs/templates/layout/_how-to-use.html
vendored
@ -1,10 +0,0 @@
|
||||
{%- if doc.howToUse %}
|
||||
<div layout="row" layout-xs="column" class="row-margin ng-cloak">
|
||||
<div flex="20" flex-xs="100">
|
||||
<h2 class="h2-api-docs">How to use</h2>
|
||||
</div>
|
||||
<div flex="80" flex-xs="100">
|
||||
{$ doc.howToUse | marked $}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
8
docs/templates/layout/_ng-module.html
vendored
8
docs/templates/layout/_ng-module.html
vendored
@ -1,8 +0,0 @@
|
||||
<div layout="row" layout-xs="column" class="row-margin ng-cloak">
|
||||
<div flex="20" flex-xs="100">
|
||||
<h2 class="h2-api-docs">NgModule</h2>
|
||||
</div>
|
||||
<div class="code-links" flex="80" flex-xs="100">
|
||||
{$ doc.ngModule $}
|
||||
</div>
|
||||
</div>
|
10
docs/templates/layout/_security-notes.html
vendored
10
docs/templates/layout/_security-notes.html
vendored
@ -1,10 +0,0 @@
|
||||
{% if doc.showSecurityNotes and doc.security %}
|
||||
<div layout="row" layout-xs="column" class="row-margin ng-cloak">
|
||||
<div flex="20" flex-xs="100">
|
||||
<h2 class="h2-api-docs">Security Risk</h2>
|
||||
</div>
|
||||
<div flex="80" flex-xs="100">
|
||||
{$ doc.security | marked $}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
10
docs/templates/layout/_what-it-does.html
vendored
10
docs/templates/layout/_what-it-does.html
vendored
@ -1,10 +0,0 @@
|
||||
{%- if doc.whatItDoes %}
|
||||
<div layout="row" layout-xs="column" class="row-margin ng-cloak">
|
||||
<div flex="20" flex-xs="100">
|
||||
<h2 class="h2-api-docs">What it does</h2>
|
||||
</div>
|
||||
<div flex="80" flex-xs="100">
|
||||
{$ doc.whatItDoes | marked $}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
11
docs/templates/layout/api-base.template.html
vendored
Normal file
11
docs/templates/layout/api-base.template.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends 'layout/base.template.html' -%}
|
||||
|
||||
{% block body %}
|
||||
<aio-jump-nav></aio-jump-nav>
|
||||
{% include "includes/_what-it-does.html" %}
|
||||
{% include "includes/_info-bar.html" %}
|
||||
{% include "includes/_security-notes.html" %}
|
||||
{% include "includes/_deprecated-notes.html" %}
|
||||
{% include "includes/_how-to-use.html" %}
|
||||
{% block details %}{% endblock %}
|
||||
{% endblock %}
|
5
docs/templates/layout/base.template.html
vendored
5
docs/templates/layout/base.template.html
vendored
@ -1 +1,4 @@
|
||||
{% block body %}{% endblock %}
|
||||
<article>
|
||||
{% include "includes/_title.html" %}
|
||||
{% block body %}{% endblock %}
|
||||
</article>
|
Reference in New Issue
Block a user