diff --git a/aio/tools/transforms/templates/api/export-base.template.html b/aio/tools/transforms/templates/api/export-base.template.html index 664d0ebfaa..51d8e3eebf 100644 --- a/aio/tools/transforms/templates/api/export-base.template.html +++ b/aio/tools/transforms/templates/api/export-base.template.html @@ -3,7 +3,7 @@ {% block body %}
{$ doc.shortDescription | marked $} - {% if doc.description %}

查看"说明"...

{% endif %} + {% if doc.description %}

查看"说明"...

{% endif %}
{% include "includes/security-notes.html" %} {% include "includes/deprecation.html" %} diff --git a/aio/tools/transforms/templates/api/includes/security-notes.html b/aio/tools/transforms/templates/api/includes/security-notes.html index 6a8ba71c5c..baae166cd4 100644 --- a/aio/tools/transforms/templates/api/includes/security-notes.html +++ b/aio/tools/transforms/templates/api/includes/security-notes.html @@ -1,6 +1,6 @@ {% if doc.security %}
-

安全风险

+

安全风险

{$ doc.security | marked $}
{% endif %} diff --git a/aio/tools/transforms/templates/api/lib/memberHelpers.html b/aio/tools/transforms/templates/api/lib/memberHelpers.html index 91dd64356b..7e3a0a6bb0 100644 --- a/aio/tools/transforms/templates/api/lib/memberHelpers.html +++ b/aio/tools/transforms/templates/api/lib/memberHelpers.html @@ -211,9 +211,9 @@ {%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %}只读{% endif %} - {%- if property.isSetAccessor and not property.isGetAccessor %}Write-only.{% endif %} - {% if property.constructorParamDoc %} Declared in constructor.{% endif %} - {% if property.shortDescription %}{$ property.shortDescription | marked $}{% endif %} + {%- if property.isSetAccessor and not property.isGetAccessor %}只写{% endif %} + {% if property.constructorParamDoc %} 声明在构造函数中{% endif %} + {% if property.shortDescription %}
{$ property.shortDescription | marked $}
{% endif %} {$ (property.description or property.constructorParamDoc.description) | marked $} {%- if property.see.length %}

参见:

diff --git a/aio/tools/transforms/templates/api/lib/paramList.html b/aio/tools/transforms/templates/api/lib/paramList.html index 24bf09d4be..8973e7727d 100644 --- a/aio/tools/transforms/templates/api/lib/paramList.html +++ b/aio/tools/transforms/templates/api/lib/paramList.html @@ -27,7 +27,7 @@ {% if (parameter.shortDescription | trim) or (parameter.description | trim) %}{$ parameter.shortDescription + '\n\n' + parameter.description $} {% endif %} - {% if parameter.isOptional or parameter.defaultValue !== undefined %}可选. 默认值是 `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.{% endif %} + {% if parameter.isOptional or parameter.defaultValue !== undefined %}
可选. 默认值是 `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.
{% endif %} {% endmarked %} {% endfor %} diff --git a/aio/tools/transforms/templates/api/ngmodule.template.html b/aio/tools/transforms/templates/api/ngmodule.template.html index c6f9691831..1bf726aad2 100644 --- a/aio/tools/transforms/templates/api/ngmodule.template.html +++ b/aio/tools/transforms/templates/api/ngmodule.template.html @@ -43,7 +43,7 @@ - {% if item.deprecated !== undefined %}{$ ('**已弃用:** ' + item.deprecated) | marked $}{% endif %} + {% if item.deprecated !== undefined %}
{$ ('**已弃用:** ' + item.deprecated) | marked $}
{% endif %} {$ item.shortDescription | marked $} diff --git a/aio/tools/transforms/templates/api/package.template.html b/aio/tools/transforms/templates/api/package.template.html index b3fa99054f..7c432b6ad9 100644 --- a/aio/tools/transforms/templates/api/package.template.html +++ b/aio/tools/transforms/templates/api/package.template.html @@ -10,7 +10,7 @@ {$ item.name $} - {% if item.deprecated !== undefined %}{$ ('**已废弃:** ' + item.deprecated) | marked $}{% endif %} + {% if item.deprecated !== undefined %}
{$ ('**已废弃:** ' + item.deprecated) | marked $}
{% endif %} {% if item.shortDescription %}{$ item.shortDescription | marked $}{% endif %} diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index e6fba39c1c..7a706834e6 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -64,8 +64,8 @@ {% endif %} {% endif %} {$ option.description | marked $} - {% if option.default !== undefined %}

默认值: {$ option.default $}

{% endif %} - {% if option.aliases.length %}

别名: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} + {% if option.default !== undefined %}

默认值: {$ option.default $}

{% endif %} + {% if option.aliases.length %}

别名: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} {% endfor %}