diff --git a/aio/package.json b/aio/package.json index 9240814d7b..5ef23379cb 100644 --- a/aio/package.json +++ b/aio/package.json @@ -82,7 +82,7 @@ "concurrently": "^3.4.0", "cross-spawn": "^5.1.0", "dgeni": "^0.4.7", - "dgeni-packages": "^0.21.0", + "dgeni-packages": "^0.21.1", "entities": "^1.1.1", "eslint": "^3.19.0", "eslint-plugin-jasmine": "^2.2.0", diff --git a/aio/tools/transforms/templates/api/class.template.html b/aio/tools/transforms/templates/api/class.template.html index cdfc8dd17c..7c6dc11963 100644 --- a/aio/tools/transforms/templates/api/class.template.html +++ b/aio/tools/transforms/templates/api/class.template.html @@ -7,7 +7,7 @@ {% block additional %}{% endblock %} {% include "includes/description.html" %} {$ memberHelpers.renderMemberDetails(doc.statics, 'static-members', 'static-member', 'Static Members') $} -{% include "includes/constructor.html" %} +{$ memberHelpers.renderMemberDetails([doc.constructorDoc], 'constructors', 'constructor', 'Constructor') $} {$ memberHelpers.renderMemberDetails(doc.members, 'instance-members', 'instance-member', 'Members') $} {% include "includes/annotations.html" %} diff --git a/aio/tools/transforms/templates/api/includes/class-overview.html b/aio/tools/transforms/templates/api/includes/class-overview.html index 1119ed48fb..f4b8ab0fd4 100644 --- a/aio/tools/transforms/templates/api/includes/class-overview.html +++ b/aio/tools/transforms/templates/api/includes/class-overview.html @@ -4,6 +4,8 @@

Overview

{$ doc.docType $} {$ doc.name $}{$ doc.typeParams | escape $}{$ memberHelper.renderHeritage(doc) $} { +{%- if doc.constructorDoc %}{% if not doc.constructorDoc.internal %} + {$ memberHelper.renderMember(doc.constructorDoc, 1) $}{% endif %}{% endif -%} {%- if doc.statics.length %}{% for member in doc.statics %}{% if not member.internal %} {$ memberHelper.renderMember(member, 1) $}{% endif %}{% endfor %}{% endif -%} {$ memberHelper.renderMembers(doc) $} diff --git a/aio/tools/transforms/templates/api/includes/constructor.html b/aio/tools/transforms/templates/api/includes/constructor.html deleted file mode 100644 index 85ea15082b..0000000000 --- a/aio/tools/transforms/templates/api/includes/constructor.html +++ /dev/null @@ -1,8 +0,0 @@ -{%- if doc.constructorDoc and not doc.constructorDoc.internal %} -
- -

Constructor

- {$ doc.constructorDoc.name $}{$ params.paramList(doc.constructorDoc.parameters) $} - {% if not doc.constructorDoc.notYetDocumented %}{$ doc.constructorDoc.description | marked $}{% endif %} -
-{% endif %} diff --git a/aio/yarn.lock b/aio/yarn.lock index b5d66446b5..6a4b6bc40c 100644 --- a/aio/yarn.lock +++ b/aio/yarn.lock @@ -2002,9 +2002,9 @@ devtools-timeline-model@1.1.6: chrome-devtools-frontend "1.0.401423" resolve "1.1.7" -dgeni-packages@^0.21.0: - version "0.21.0" - resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.21.0.tgz#5b62ec238fb12ae802e73fdd674f07a7cfd98925" +dgeni-packages@^0.21.1: + version "0.21.1" + resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.21.1.tgz#9ac24733e9bc7ae1a17172a107ede67ea370ada7" dependencies: canonical-path "0.0.2" catharsis "^0.8.1"