mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Add support for additional EXAMPLES string in Ansible modules
return DOC and EXAMPLES as a list add moduledev explanation more
This commit is contained in:
parent
093935ede1
commit
396a07bcc7
7 changed files with 50 additions and 7 deletions
|
@ -56,6 +56,13 @@
|
|||
.fi
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
." ------ PLAINEXAMPLES
|
||||
{% if plainexamples is defined %}
|
||||
.nf
|
||||
@{ plainexamples }@
|
||||
.fi
|
||||
{% endif %}
|
||||
|
||||
." ------- AUTHOR
|
||||
{% if author is defined %}
|
||||
.SH AUTHOR
|
||||
|
|
|
@ -44,7 +44,11 @@ New in version @{ version_added }@.
|
|||
@{ example['code'] }@
|
||||
```
|
||||
{% endfor %}
|
||||
|
||||
{% if plainexamples -%}
|
||||
```
|
||||
@{ plainexamples }@
|
||||
```
|
||||
{% endif %}
|
||||
|
||||
{% if notes %}
|
||||
#### Notes
|
||||
|
|
|
@ -54,6 +54,14 @@
|
|||
{% endfor %}
|
||||
<br/>
|
||||
|
||||
{% if plainexamples %}
|
||||
.. raw:: html
|
||||
|
||||
<pre>
|
||||
@{ plainexamples | escape | indent(4, True) }@
|
||||
</pre>
|
||||
{% endif %}
|
||||
|
||||
{% if notes %}
|
||||
.. raw:: html
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue