summaryrefslogtreecommitdiffstats
path: root/hacking/templates
diff options
context:
space:
mode:
authorMikhail Sobolev <mss@mawhrin.net>2013-12-26 00:06:55 +0100
committerMichael DeHaan <michael@ansibleworks.com>2013-12-26 20:35:57 +0100
commit84948292f33b15d05c462fee6765309df2812a35 (patch)
treea250bfa3f547c99c03955f3c468d7aa6ca8ca92e /hacking/templates
parentmake examples/DOCUMENTATION.yml a link (diff)
downloadansible-84948292f33b15d05c462fee6765309df2812a35.tar.xz
ansible-84948292f33b15d05c462fee6765309df2812a35.zip
include short_description in the module page's title
Diffstat (limited to 'hacking/templates')
-rw-r--r--hacking/templates/rst.j212
1 files changed, 10 insertions, 2 deletions
diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2
index 91b3967520..2fa4348846 100644
--- a/hacking/templates/rst.j2
+++ b/hacking/templates/rst.j2
@@ -1,7 +1,15 @@
.. _@{ module }@:
-@{ module }@
-++++++++++++++++++++++++++++++++++++++
+{% if short_description %}
+{% set title = module + ' - ' + short_description|convert_symbols_to_format %}
+{% else %}
+{% set title = module %}
+{% endif %}
+{% set title_len = title|length %}
+
+@{ title }@
+@{ '+' * title_len }@
+
{% if author %}
:Author: @{ author }@
{% endif %}