Skip to content

Commit dea8ae9

Browse files
frederikprijckNarretz
authored andcommitted
chore(doc-gen): show arguments as a subsection of the usage section
Previously, on the docs of directives which include the `animation` section, `arguments` are shown as an `h3` element below the `animation` `h2` element, making it look like it's a subsection of `animations`. This commit ensures that the àrgument` `h3`element is rendered correctly after the `usage` `h2` element. Fixes angular#15645 Closes angular#15646
1 parent 39a90a9 commit dea8ae9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/config/templates/ngdoc/api/directive.template.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ <h2 id="usage">Usage</h2>
6161
</div>
6262
{% endblock -%}
6363

64+
{% include "lib/params.template.html" %}
65+
{% include "lib/events.template.html" %}
66+
6467
{%- if doc.animations %}
6568
<h2 id="animations">Animations</h2>
6669
{$ doc.animations | marked $}
6770
{$ 'module:ngAnimate.$animate' | link('Click here', doc) $} to learn more about the steps involved in the animation.
6871
{%- endif -%}
69-
70-
{% include "lib/params.template.html" %}
71-
{% include "lib/events.template.html" %}
7272
{% endblock %}

0 commit comments

Comments
 (0)