From 72f2428cd8ffba6928d306d157634e1412701814 Mon Sep 17 00:00:00 2001 From: WilliamKoza Date: Mon, 14 Jan 2019 15:33:18 +0100 Subject: [PATCH] fix(docs-infra): change style of `deprecated` markers (#28111) PR Close #28111 --- aio/tools/transforms/templates/cli/lib/cli.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index 7928206873..a190956c74 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -56,7 +56,14 @@ {$ renderOption(option.name, option.type, option.default, option.enum) $} - {% if option.deprecated !== undefined and option.deprecated !== false %} {% if option.deprecated !== true %} {$ option.deprecated | marked $} {% endif %}{% endif %} + {% if option.deprecated %} + {% if option.deprecated !== true %} + {$ ('**Deprecated:** ' + option.deprecated) | marked $} + {% endif %} + {% if option.deprecated === true %} + {$ ('**Deprecated**') | marked $} + {% endif %} + {% endif %} {$ option.description | marked $} {% if option.default !== undefined %}

Default: {$ option.default $}

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

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

{% endif %}