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 %}
|
||||
{% endblock %}
|
||||
|
||||
{% if doc.constructorDoc or doc.members.length -%}
|
||||
.l-main-section
|
||||
h2 Members
|
||||
|
||||
{%- if doc.constructorDoc and not doc.constructorDoc.internal %}
|
||||
.l-main-section
|
||||
h2 Constructor
|
||||
.l-sub-section
|
||||
h3#{$ doc.constructorDoc.name | toId $}
|
||||
pre.prettyprint
|
||||
|
@ -52,8 +51,11 @@ p.location-badge.
|
|||
{% else %}
|
||||
{$ doc.constructorDoc.description | indentForMarkdown(6) | replace('## Example', '') | replace('# Example', '') | trimBlankLines $}
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
{% endif %}
|
||||
|
||||
{% if doc.members.length -%}
|
||||
.l-main-section
|
||||
h2 Members
|
||||
{%- for member in doc.members %}{% if not member.internal %}
|
||||
.l-sub-section
|
||||
h3#{$ member.name | toId $}
|
||||
|
|
Loading…
Reference in New Issue