summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 %}