From 26b4ce6ed9294e959d047ea328a630a73279ed7e Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Sun, 14 May 2023 11:10:38 +0200 Subject: [PATCH] docs(doc-infra): Add a deprecated label This add a deprecated label next to the other label on the API pages for methods & properties. Fixes #44265 --- aio/tools/transforms/templates/api/lib/memberHelpers.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio/tools/transforms/templates/api/lib/memberHelpers.html b/aio/tools/transforms/templates/api/lib/memberHelpers.html index b416644ccca40e..848471e88dbf1a 100644 --- a/aio/tools/transforms/templates/api/lib/memberHelpers.html +++ b/aio/tools/transforms/templates/api/lib/memberHelpers.html @@ -94,6 +94,9 @@

developer preview {% endif %} + {%- if method.deprecated %} + + {% endif %} {$ github.githubLinks(method, versionInfo) $} @@ -231,6 +234,9 @@

{$ headingText $}

developer preview {% endif %} + {%- if property.deprecated %} + + {% endif %} {%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %} Read-Only{% endif %}