1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

include short_description in the module page's title

This commit is contained in:
Mikhail Sobolev 2013-12-26 01:06:55 +02:00 committed by Michael DeHaan
parent 8b7327a2f6
commit 84948292f3

View file

@ -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 %}