fix(docs-infra): change style of `deprecated` markers (#28111)

PR Close #28111
This commit is contained in:
WilliamKoza 2019-01-14 15:33:18 +01:00 committed by Andrew Kushnir
parent d577b8df75
commit 72f2428cd8
1 changed files with 8 additions and 1 deletions

View File

@ -56,7 +56,14 @@
<code class="cli-option-syntax no-auto-link">{$ renderOption(option.name, option.type, option.default, option.enum) $}</code>
</td>
<td>
{% if option.deprecated !== undefined and option.deprecated !== false %}<label class="raised cli-deprecated">deprecated</label> {% 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 %}<p><span class="cli-default">Default:</span> <code class="no-auto-link">{$ option.default $}</code></p>{% endif %}
{% if option.aliases.length %}<p><span class="cli-aliases">Aliases:</span> {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endif %}