summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-12-25 14:12:00 -0500
committerMichael DeHaan <michael@ansibleworks.com>2013-12-25 14:12:00 -0500
commitf4aa6c53bd364408e58d1c5c7cfee90b21a066b2 (patch)
tree4924411be3e234d723812a4b830048134f7c132d /hacking
parenteb0509fce7a2d0c657cbb7d394baaff6f7379b54 (diff)
downloadansible-f4aa6c53bd364408e58d1c5c7cfee90b21a066b2.tar.gz
Format module requirements as notes in Sphinx
Diffstat (limited to 'hacking')
-rw-r--r--hacking/templates/rst.j210
1 files changed, 3 insertions, 7 deletions
diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2
index 8d279676cb..13cdd435c9 100644
--- a/hacking/templates/rst.j2
+++ b/hacking/templates/rst.j2
@@ -47,15 +47,11 @@
{% endif %}
{% if requirements %}
-.. raw:: html
+{% for req in requirements %}
- <p>
- <b>Requirements:</b>
- {% for req in requirements %}
- @{ req | html_ify }@
- {% endfor %}
- </p>
+.. note:: Requires @{ req | html_ify }@
+{% endfor %}
{% endif %}
{% if not plainexamples %}