Generate title lines based on length

With warnings treated as errors in the docs build, when the cycle name
size varies it results in an error with the RST title line length not
matching the text length.

Change-Id: Ic5da3fd11c98c1da869fe9cd9d7d285a36222236
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-03-25 17:40:40 -05:00 committed by Mohammed Naser
parent 8259c8fc59
commit ebc5590769

View File

@ -1,12 +1,12 @@
{{ election.capitalize() }} TC Candidates
======================
{{ '=' * (election|length) }}==============
{% for candidate in candidates['TC'] %}
* `{{ candidate['fullname'] }} {% if candidate['ircname'] is not none %}({{ candidate['ircname'] }}){% endif %} <{{ candidate['url'] }}>`__
{% endfor %}
{{ election.capitalize() }} PTL Candidates
======================
{{ '=' * (election|length) }}===============
{% for project in projects|sort %}{% if project != 'TC' %}
* {{ project.replace('_', ' ') }}