election/doc/source/_exts/tc_archive.jinja
Tony Breeds 6744d41057 Reduce sphinx warnings.
This does several things to reduce the number of warnings generated in a
docs build.

. Only generate the {ptl,tc}.rst for the type of election we're running
. use a for loop to match the undreline with the section title
. Ensure that we use anonymous hyperlinks ``__ vs ``_
. tell sphinx to ignore the generated announcement as they're not linked

There are still 4 left which look to me like actual bugs in
sphinux/docutils rather than our RST.

Change-Id: I64a12d1c49c5b71a6849ad1724ac4ae09daeb85a
2018-05-15 15:19:34 +10:00

20 lines
605 B
Django/Jinja

{% for i in range(election|length + 20) %}={% endfor%}
{{ election.capitalize() }} elected TC members
{% for i in range(election|length + 20) %}={% endfor%}
{% for candidate in candidates['TC'] %}{% if candidate['elected'] %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
{% endif %}{% endfor %}
Results
-------
* `TC <{{ elections_results['TC'] }}>`_
{{ election.capitalize() }} TC Candidates
======================
{% for candidate in candidates['TC'] %}
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
{% endfor %}