parent
72f2428cd8
commit
4c0104c846
|
@ -7,9 +7,3 @@
|
||||||
.cli-option-syntax {
|
.cli-option-syntax {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cli-deprecated {
|
|
||||||
background-color: $brightred;;
|
|
||||||
padding: 2px 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
|
@ -53,15 +53,14 @@
|
||||||
{% for option in options %}
|
{% for option in options %}
|
||||||
<tr class="cli-option">
|
<tr class="cli-option">
|
||||||
<td>
|
<td>
|
||||||
<code class="cli-option-syntax no-auto-link">{$ renderOption(option.name, option.type, option.default, option.enum) $}</code>
|
<code class="cli-option-syntax no-auto-link{% if option.deprecated %} deprecated-api-item{% endif %}">{$ renderOption(option.name, option.type, option.default, option.enum) $}</code>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if option.deprecated %}
|
{% if option.deprecated %}
|
||||||
{% if option.deprecated !== true %}
|
|
||||||
{$ ('**Deprecated:** ' + option.deprecated) | marked $}
|
|
||||||
{% endif %}
|
|
||||||
{% if option.deprecated === true %}
|
{% if option.deprecated === true %}
|
||||||
{$ ('**Deprecated**') | marked $}
|
<p><strong>Deprecated</strong></p>
|
||||||
|
{% else %}
|
||||||
|
{$ ('**Deprecated:** ' + option.deprecated) | marked $}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{$ option.description | marked $}
|
{$ option.description | marked $}
|
||||||
|
|
Loading…
Reference in New Issue