fix(docs-infra): change style of `deprecated` markers (#28111)
PR Close #28111
This commit is contained in:
parent
d577b8df75
commit
72f2428cd8
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue