diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index b11b2bc07e5..0fb1ac6712f 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -46,12 +46,16 @@ Synopsis {% if description %} +{% if description is string -%} +* @{ description | convert_symbols_to_format }@ +{% else %} {% for desc in description -%} * @{ desc | convert_symbols_to_format }@ {% endfor %} - +{% endif %} {% endif %} + {% if aliases is defined -%} Aliases: @{ ','.join(aliases) }@ @@ -151,9 +155,13 @@ Options {% endif %} +{% if v.description is string %} +
@{ v.description | replace('\n', '\n ') | html_ify }@
+{% else %} {% for desc in v.description %}
@{ desc | replace('\n', '\n ') | html_ify }@
{% endfor %} +{% endif %} {% if 'aliases' in v and v.aliases %}
aliases: @{ v.aliases|join(', ') }@
{% endif %}