From 84948292f33b15d05c462fee6765309df2812a35 Mon Sep 17 00:00:00 2001 From: Mikhail Sobolev Date: Thu, 26 Dec 2013 01:06:55 +0200 Subject: [PATCH] include short_description in the module page's title --- hacking/templates/rst.j2 | 12 ++++++++++-- 1 file 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 %}