api-builder: move the `constructor` into its own section
This commit is contained in:
parent
ec4d7b82a2
commit
229557dcb2
|
@ -36,11 +36,10 @@ p.location-badge.
|
||||||
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(10, false) $}{% endfor %}{% endif %}
|
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(10, false) $}{% endfor %}{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% if doc.constructorDoc or doc.members.length -%}
|
|
||||||
.l-main-section
|
|
||||||
h2 Members
|
|
||||||
|
|
||||||
{%- if doc.constructorDoc and not doc.constructorDoc.internal %}
|
{%- if doc.constructorDoc and not doc.constructorDoc.internal %}
|
||||||
|
.l-main-section
|
||||||
|
h2 Constructor
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
h3#{$ doc.constructorDoc.name | toId $}
|
h3#{$ doc.constructorDoc.name | toId $}
|
||||||
pre.prettyprint
|
pre.prettyprint
|
||||||
|
@ -52,8 +51,11 @@ p.location-badge.
|
||||||
{% else %}
|
{% else %}
|
||||||
{$ doc.constructorDoc.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
|
{$ doc.constructorDoc.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endif -%}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if doc.members.length -%}
|
||||||
|
.l-main-section
|
||||||
|
h2 Members
|
||||||
{%- for member in doc.members %}{% if not member.internal %}
|
{%- for member in doc.members %}{% if not member.internal %}
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
h3#{$ member.name | toId $}
|
h3#{$ member.name | toId $}
|
||||||
|
|
Loading…
Reference in New Issue