diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index 7b831c1f9..d081afc62 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -48,13 +48,16 @@ {% if show_sphinx %} {%- set sphinx_web = 'Sphinx' %} - {%- set readthedocs_web = 'Read the Docs' %} {#- Translators: the variable "sphinx_web" is a link to the Sphinx project documentation with the text "Sphinx" #} {%- trans sphinx_web=sphinx_web, readthedocs_web=readthedocs_web %}Built with {{ sphinx_web }} using a{% endtrans %} {#- Translators: "theme" refers to a theme for Sphinx, which alters the appearance of the generated documentation #} {% trans %}theme{% endtrans %} {#- Translators: this is always used as "provided by Read the Docs", and should not imply Read the Docs is an author of the generated documentation. #} - {% trans %}provided by {{ readthedocs_web }}{% endtrans %}. + {% trans %}provided by Read the Docs{% endtrans %}. + {% endif %} + + {% if READTHEDOCS %} + Hosted on Read the Docs. {% endif %} {%- block extrafooter %} {% endblock %}