Allow to skip last_updated and sphinx_version
Summary: this part is a copied from Sphinx-1.3.6 's sphinx/themes/basic/layout.html and allows distributions to drop the build date to have reproducible builds Test Plan: in doc/conf.py set html_last_updated_fmt = None and make sure that generated html files do not contain Last updated on None Reviewers: DaveMDS Differential Revision: https://phab.enlightenment.org/D3781
This commit is contained in:
parent
eca2dfaa0b
commit
5bbbed95c0
|
@ -98,7 +98,11 @@
|
|||
<div class="footer">
|
||||
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
|
||||
<br>
|
||||
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
||||
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
||||
{%- if last_updated %}
|
||||
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
||||
{%- endif %}
|
||||
{%- if show_sphinx %}
|
||||
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
{%- endblock %}
|
||||
|
|
Loading…
Reference in New Issue