fix(docs-infra): add deprecated-api-item class to remaining deprecated items (#34192)
Fixes #31455 PR Close #34192
This commit is contained in:
parent
28ef1af376
commit
c0869ecfb3
|
@ -26,7 +26,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<code-example language="ts" hideCopy="true" class="no-box api-heading">
|
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if option.deprecated %} deprecated-api-item{% endif %}">
|
||||||
{$ option.name $}: {$ option.type | escape $}
|
{$ option.name $}: {$ option.type | escape $}
|
||||||
</code-example>
|
</code-example>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -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 language="ts" hideCopy="true" class="no-box api-heading">@{$ decorator.name $}({$ decorator.arguments $})</code-example>
|
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if decorator.deprecated %} deprecated-api-item{% endif %}">@{$ 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>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% import "lib/paramList.html" as params -%}
|
{% import "lib/paramList.html" as params -%}
|
||||||
|
|
||||||
<section class="{$ doc.docType $}-overview">
|
<section class="{$ doc.docType $}-overview">
|
||||||
<code-example hideCopy="true" class="no-box api-heading">{{ {$ doc.valueParam.name $}_expression | <span class="kwd nocode">{$ doc.pipeName $}</span>
|
<code-example hideCopy="true" class="no-box api-heading{% if doc.deprecated %} deprecated-api-item{% endif %}">{{ {$ doc.valueParam.name $}_expression | <span class="kwd nocode">{$ doc.pipeName $}</span>
|
||||||
{%- for param in doc.pipeParams %}
|
{%- for param in doc.pipeParams %}
|
||||||
{%- if param.isOptional or param.defaultValue !== undefined %} [{% endif %} : {$ param.name $}
|
{%- if param.isOptional or param.defaultValue !== undefined %} [{% endif %} : {$ param.name $}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
{$ overload.shortDescription | marked $}
|
{$ overload.shortDescription | marked $}
|
||||||
</div>{% endif %}
|
</div>{% endif %}
|
||||||
|
|
||||||
<code-example language="ts" hideCopy="true" class="no-box api-heading">{$ renderMemberSyntax(overload) $}</code-example>
|
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if overload.deprecated %} deprecated-api-item{% endif %}">{$ renderMemberSyntax(overload) $}</code-example>
|
||||||
|
|
||||||
{% if overload.deprecated !== undefined %}
|
{% if overload.deprecated !== undefined %}
|
||||||
<div class="deprecated">
|
<div class="deprecated">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<table class="is-full-width list-table">
|
<table class="is-full-width list-table">
|
||||||
{% for item in filteredItems %}
|
{% for item in filteredItems %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><code class="code-anchor"><a href="{$ overridePath or item.path $}"{%- if item.deprecated != undefined %} class="deprecated-api-item"{% endif %}>{$ item.name $}</a></code></td>
|
<td><code class="code-anchor{% if item.deprecated %} deprecated-api-item{% endif %}"><a href="{$ overridePath or item.path $}"{%- if item.deprecated != undefined %} class="deprecated-api-item"{% endif %}>{$ item.name $}</a></code></td>
|
||||||
<td>
|
<td>
|
||||||
{% if item.deprecated !== undefined %}{$ ('**Deprecated:** ' + item.deprecated) | marked $}{% endif %}
|
{% if item.deprecated !== undefined %}{$ ('**Deprecated:** ' + item.deprecated) | marked $}{% endif %}
|
||||||
{% if item.shortDescription %}{$ item.shortDescription | marked $}{% endif %}
|
{% if item.shortDescription %}{$ item.shortDescription | marked $}{% endif %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'export-base.template.html' %}
|
{% extends 'export-base.template.html' %}
|
||||||
|
|
||||||
{% block overview %}
|
{% block overview %}
|
||||||
<code-example language="ts" hideCopy="true" class="no-box api-heading">
|
<code-example language="ts" hideCopy="true" class="no-box api-heading{% if doc.deprecated %} deprecated-api-item{% endif %}">
|
||||||
const {$ doc.name $}: {$ (doc.type | escape) or 'any' $};
|
const {$ doc.name $}: {$ (doc.type | escape) or 'any' $};
|
||||||
</code-example>
|
</code-example>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% macro renderSyntax(container, prefix) -%}
|
{% macro renderSyntax(container, prefix) -%}
|
||||||
{% for name in container.names %}
|
{% for name in container.names %}
|
||||||
<code-example hideCopy="true" class="no-box api-heading no-auto-link">ng {%if prefix %}{$ prefix $} {% endif %}<span class="cli-name">{$ name $}</span>
|
<code-example hideCopy="true" class="no-box api-heading no-auto-link{% if container.deprecated %} deprecated-api-item{% endif %}">ng {%if prefix %}{$ prefix $} {% endif %}<span class="cli-name">{$ name $}</span>
|
||||||
{%- for arg in container.positionalOptions %} <<var>{$ arg.name $}</var>>{% endfor %}
|
{%- for arg in container.positionalOptions %} <<var>{$ arg.name $}</var>>{% endfor %}
|
||||||
{%- if container.namedOptions.length %} [<var>options</var>]{% endif -%}
|
{%- if container.namedOptions.length %} [<var>options</var>]{% endif -%}
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
Loading…
Reference in New Issue