From 1fbae320779ff68c4cebec1f1676208e9f9fb6d1 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Fri, 11 Sep 2015 10:59:51 -0400 Subject: [PATCH] Make sure candidate names are properly capitalized Change-Id: I3f7ef0571f0b598739dea22d9a9bfd37603bd7af --- doc/source/_exts/ptl.jinja | 2 +- doc/source/_exts/tc.jinja | 2 +- tools/render-wiki-list.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/_exts/ptl.jinja b/doc/source/_exts/ptl.jinja index 2142f07a..8aa55b79 100644 --- a/doc/source/_exts/ptl.jinja +++ b/doc/source/_exts/ptl.jinja @@ -4,7 +4,7 @@ * `{{ project.replace('_', ' ') }} `_ {% for candidate in candidates[project] %} - * `{{ candidate.split('/')[-1][:-4].replace('_', ' ') }} `_ + * `{{ candidate.split('/')[-1][:-4].replace('_', ' ').title() }} `_ {% endfor %} {% endif %}{% endfor %} diff --git a/doc/source/_exts/tc.jinja b/doc/source/_exts/tc.jinja index 9e2b441c..3a95d476 100644 --- a/doc/source/_exts/tc.jinja +++ b/doc/source/_exts/tc.jinja @@ -2,5 +2,5 @@ ====================== {% for candidate in candidates['TC'] %} - * `{{ candidate.split('/')[-1][:-4].replace('_', ' ') }} `_ + * `{{ candidate.split('/')[-1][:-4].replace('_', ' ').title() }} `_ {% endfor %} diff --git a/tools/render-wiki-list.py b/tools/render-wiki-list.py index 3ed4620a..ec500b00 100755 --- a/tools/render-wiki-list.py +++ b/tools/render-wiki-list.py @@ -22,6 +22,7 @@ def main(argv): print "* %s" % project.replace('_', ' ') for candidate in candidates_list['candidates'][project]: candidate_name = candidate.split('/')[-1][:-4].replace('_', ' ') + candidate_name = candidate_name.title() print "** [%s/%s %s]" % (GIT_BASE, candidate.replace(' ', '%20'), candidate_name)