Skip to content

Commit

Permalink
docs(doc-infra): Add a deprecated label
Browse files Browse the repository at this point in the history
This add a deprecated label next to the other label on the API pages for methods & properties.

Fixes angular#44265
  • Loading branch information
JeanMeche committed May 14, 2023
1 parent 85b4941 commit 26b4ce6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aio/tools/transforms/templates/api/lib/memberHelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ <h3>
<a href="guide/releases#developer-preview">developer preview</a>
</label>
{% endif %}
{%- if method.deprecated %}
<label class="api-status-label deprecated" title="This API is in Developer Preview">Deprecated</label>
{% endif %}
{$ github.githubLinks(method, versionInfo) $}
</div>
</th></tr></thead>
Expand Down Expand Up @@ -231,6 +234,9 @@ <h2>{$ headingText $}</h2>
<a href="guide/releases#developer-preview">developer preview</a>
</label>
{% endif %}
{%- if property.deprecated %}
<label class="api-status-label deprecated" title="This API is in Developer Preview">Deprecated</label>
{% endif %}

{%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %}
<span class='read-only-property'>Read-Only</span>{% endif %}
Expand Down

0 comments on commit 26b4ce6

Please sign in to comment.