6744d41057
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
47 lines
1.3 KiB
Django/Jinja
47 lines
1.3 KiB
Django/Jinja
{% for i in range(election|length + 4) %}={% endfor%}
|
|
|
|
{{ election.capitalize() }} PTL
|
|
{% for i in range(election|length + 4) %}={% endfor%}
|
|
|
|
|
|
{% for project in projects %}
|
|
* {{ project.replace('_', ' ') }}
|
|
|
|
{% for candidate in candidates[project] %}{% if candidate['elected'] and 'url' in candidate %}
|
|
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`__
|
|
{% elif candidate['elected'] %}
|
|
* {{ candidate['fullname'] }} (\{{ candidate['ircname'] }}) {% if candidate['elected'] == 'INCUMBENT-PTL' %}[#IncumbentPTL]_{% else %}[#TCAppointed]_{% endif %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if 'TC-APPOINTED' in tags %}
|
|
.. [#TCAppointed] By TC Appointment
|
|
{% endif %}
|
|
{% if 'INCUMBENT-PTL' in tags %}
|
|
.. [#IncumbentPTL] Incumbent PTL
|
|
{% endif %}
|
|
|
|
Results
|
|
-------
|
|
{% for project in projects %}{% if project in elections_results %}
|
|
|
|
* `{{ project }} <{{ elections_results[project] }}>`_
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
|
|
{{ election.capitalize() }} PTL Candidates
|
|
======================
|
|
|
|
{% for project in projects %}
|
|
* {{ project.replace('_', ' ') }}
|
|
|
|
{% for candidate in candidates[project] %}{% if 'url' in candidate %}
|
|
* `{{ candidate['fullname'] }} ({{ candidate['ircname'] }}) <{{ candidate['url'] }}>`_
|
|
{% endif %}{% endfor %}
|
|
|
|
{% endfor %}
|