mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix indentation of requirements (#36813)
Just discovered that the requirements were indented, whereas all other lists were not. This makes them stand out for no good reason.
This commit is contained in:
parent
38abda544f
commit
3b27d723fb
1 changed files with 5 additions and 6 deletions
11
docs/templates/plugin.rst.j2
vendored
11
docs/templates/plugin.rst.j2
vendored
|
@ -65,16 +65,15 @@ Aliases: @{ ','.join(aliases) }@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if requirements %}
|
{% if requirements %}
|
||||||
{% set req = 'Requirements' %}
|
{% set req_title = 'Requirements' %}
|
||||||
{% if plugin_type == 'module' %}
|
{% if plugin_type == 'module' %}
|
||||||
{% set req = req + ' (on host that executes module)' %}
|
{% set req_title = req_title + ' (on host that executes module)' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set req_len = req|length %}
|
@{ req_title }@
|
||||||
@{ req }@
|
@{ '-' * req_title|length }@
|
||||||
@{ '-' * req_len }@
|
|
||||||
|
|
||||||
{% for req in requirements %}
|
{% for req in requirements %}
|
||||||
* @{ req | convert_symbols_to_format }@
|
* @{ req | convert_symbols_to_format }@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue