From ebc55907692c5e948f1b4662aa7d36f01dde2e0c Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 25 Mar 2020 17:40:40 -0500 Subject: [PATCH] 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 --- doc/source/_exts/combined.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/_exts/combined.jinja b/doc/source/_exts/combined.jinja index 3287e2e7..a0929dcb 100644 --- a/doc/source/_exts/combined.jinja +++ b/doc/source/_exts/combined.jinja @@ -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('_', ' ') }}