build(docs-infra): break long CLI options onto two lines (#26272)
PR Close #26272
This commit is contained in:
parent
3f89aeb80a
commit
b9bd95b3b2
|
@ -72,7 +72,8 @@
|
|||
{%- endmacro %}
|
||||
|
||||
{%- macro renderValues(values, default) -%}
|
||||
{$ values.join('|') $}
|
||||
{%- set valString = values.join('|') -%}
|
||||
{%- if valString.length > 15 %}<br> {% endif %}{$ valString $}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro renderOption(name, type, default, values) -%}
|
||||
|
@ -81,7 +82,7 @@
|
|||
{%- elif values.length -%}
|
||||
{$ prefix $}{$ name $}={$ renderValues(values, default) $}
|
||||
{%- elif type === 'string' -%}
|
||||
<var>{$ name $}</var>
|
||||
{$ prefix $}{$ name $}={% if name.length > 15 %}<br> {% endif %}<var>{$ name $}</var>
|
||||
{%- else -%}
|
||||
{$ prefix $}{$ name $}
|
||||
{%- endif -%}
|
||||
|
|
Loading…
Reference in New Issue