build(aio): do not render comments in decorators

Closes #18873
This commit is contained in:
Peter Bacon Darwin 2017-09-11 13:57:19 +01:00 committed by Matias Niemelä
parent ca5aebaa6b
commit 39386eadea
4 changed files with 8 additions and 8 deletions

View File

@ -82,7 +82,7 @@
"concurrently": "^3.4.0", "concurrently": "^3.4.0",
"cross-spawn": "^5.1.0", "cross-spawn": "^5.1.0",
"dgeni": "^0.4.7", "dgeni": "^0.4.7",
"dgeni-packages": "^0.21.1", "dgeni-packages": "^0.21.2",
"entities": "^1.1.1", "entities": "^1.1.1",
"eslint": "^3.19.0", "eslint": "^3.19.0",
"eslint-plugin-jasmine": "^2.2.0", "eslint-plugin-jasmine": "^2.2.0",

View File

@ -2,7 +2,7 @@
<section class="annotations"> <section class="annotations">
<h2>Annotations</h2> <h2>Annotations</h2>
{%- for decorator in doc.decorators %} {%- for decorator in doc.decorators %}
<code-example hideCopy="true" class="no-box api-heading">@{$ decorator.name $}{$ params.paramList(decorator.arguments) $}</code-example> <code-example hideCopy="true" class="no-box api-heading">@{$ decorator.name $}({$ decorator.arguments $})</code-example>
{% if not decorator.notYetDocumented %}{$ decorator.description | marked $}{% endif %} {% if not decorator.notYetDocumented %}{$ decorator.description | marked $}{% endif %}
{% endfor %} {% endfor %}
</section> </section>

View File

@ -3,7 +3,7 @@
<section class="{$ doc.docType $}-overview"> <section class="{$ doc.docType $}-overview">
<h2>Overview</h2> <h2>Overview</h2>
<code-example language="ts" hideCopy="true">{% for decorator in doc.decorators %} <code-example language="ts" hideCopy="true">{% for decorator in doc.decorators %}
<a href="#annotations">@{$ decorator.name $}{$ params.paramList(decorator.arguments) $}</a>{% endfor %} @{$ decorator.name $}({$ decorator.arguments $}){% endfor %}
class {$ doc.name $}{$ doc.typeParams | escape $}{$ memberHelper.renderHeritage(doc) $} { class {$ doc.name $}{$ doc.typeParams | escape $}{$ memberHelper.renderHeritage(doc) $} {
{%- if doc.statics.length %}{% for member in doc.statics %}{% if not member.internal %} {%- if doc.statics.length %}{% for member in doc.statics %}{% if not member.internal %}
<a class="code-anchor" href="#{$ member.anchor $}">{$ memberHelper.renderMember(member, 1) $}</a>{% endif %}{% endfor %}{% endif -%} <a class="code-anchor" href="#{$ member.anchor $}">{$ memberHelper.renderMember(member, 1) $}</a>{% endif %}{% endfor %}{% endif -%}

View File

@ -2002,9 +2002,9 @@ devtools-timeline-model@1.1.6:
chrome-devtools-frontend "1.0.401423" chrome-devtools-frontend "1.0.401423"
resolve "1.1.7" resolve "1.1.7"
dgeni-packages@^0.21.1: dgeni-packages@^0.21.2:
version "0.21.1" version "0.21.2"
resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.21.1.tgz#9ac24733e9bc7ae1a17172a107ede67ea370ada7" resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.21.2.tgz#b031194176507b7c7d1c9735ea14664970763866"
dependencies: dependencies:
canonical-path "0.0.2" canonical-path "0.0.2"
catharsis "^0.8.1" catharsis "^0.8.1"
@ -2026,7 +2026,7 @@ dgeni-packages@^0.21.1:
source-map-support "^0.4.15" source-map-support "^0.4.15"
spdx-license-list "^2.1.0" spdx-license-list "^2.1.0"
stringmap "^0.2.2" stringmap "^0.2.2"
typescript "^2.3.4" typescript "2.4"
dgeni@^0.4.7: dgeni@^0.4.7:
version "0.4.7" version "0.4.7"
@ -7619,7 +7619,7 @@ typescript@2.3.2, "typescript@>=2.0.0 <2.5.0":
version "2.3.2" version "2.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.2.tgz#f0f045e196f69a72f06b25fd3bd39d01c3ce9984"
typescript@^2.3.3, typescript@^2.3.4: typescript@2.4, typescript@^2.3.3:
version "2.4.1" version "2.4.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc"