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
40
docs/templates/includes/_class-overview.html
vendored
Normal file
40
docs/templates/includes/_class-overview.html
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<section class="class-overview">
|
||||
<h2>Class Overview</h2>
|
||||
<div class="api-doc-code">
|
||||
|
||||
<code class="no-bg openParens">class {$ doc.name $} {</code>
|
||||
|
||||
{% if doc.statics.length %}
|
||||
<div class="statics">
|
||||
{% for member in doc.statics %}{% if not member.internal %}
|
||||
<pre class="prettyprint no-bg-with-indent"><code>static
|
||||
<a class="code-anchor" href="#{$ member.name $}-anchor">{$ member.name | indent(6, false) | trim $}</a>
|
||||
{$ params.paramList(member.parameters) | indent(8, false) | trim $}{$ params.returnType(member.returnType) $}
|
||||
</code></pre>
|
||||
{% endif %}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if doc.constructorDoc.name %}
|
||||
<div class="constructor">
|
||||
<pre class="prettyprint no-bg-with-indent"><code>
|
||||
<a class="code-anchor" href="#constructor">{$ doc.constructorDoc.name $}</a>
|
||||
{$ params.paramList(doc.constructorDoc.parameters) | indent(8, false) | trim $}
|
||||
</code></pre>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if doc.members.length %}
|
||||
<div class="members">
|
||||
{% for member in doc.members %}{% if not member.internal %}
|
||||
<pre class="prettyprint no-bg-with-indent"><code>
|
||||
<a class="code-anchor" href="#{$ member.name $}-anchor">{$ member.name | indent(6, false) | trim $}</a>
|
||||
{$ params.paramList(member.parameters) | indent(8, false) | trim $}{$ params.returnType(member.returnType) $}
|
||||
</code></pre>
|
||||
{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<code class="endParens api-doc-code no-bg">}</code>
|
||||
</div>
|
||||
</section>
|
Reference in New Issue
Block a user