From 229557dcb29019c41cc723c747beb2c81fd8750b Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 13 Nov 2015 12:05:16 +0000 Subject: [PATCH] api-builder: move the `constructor` into its own section --- .../angular.io-package/templates/class.template.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/api-builder/angular.io-package/templates/class.template.html b/tools/api-builder/angular.io-package/templates/class.template.html index 6ec5e2d19a..2db46a1fc4 100644 --- a/tools/api-builder/angular.io-package/templates/class.template.html +++ b/tools/api-builder/angular.io-package/templates/class.template.html @@ -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 $}