docs/templates: Fix #2

This commit is contained in:
Eido95 2020-03-28 16:53:55 +03:00 committed by GitHub
parent be4a177996
commit c85d72b352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ As of version 0.4.3, the `Read the Docs theme <sphinx_rtd_theme_>`_ does not sup
So instead of adding a custom template to ``html_sidebars``, you need to create a template file named :file:`versions.html` with the following content: So instead of adding a custom template to ``html_sidebars``, you need to create a template file named :file:`versions.html` with the following content:
.. code-block:: html .. code-block:: html
{%- if current_version %}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version"> <span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Other Versions</span> <span class="fa fa-book"> Other Versions</span>
@ -140,6 +140,7 @@ So instead of adding a custom template to ``html_sidebars``, you need to create
{%- endif %} {%- endif %}
</div> </div>
</div> </div>
{%- endif %}
.. _sphinx_rtd_theme: https://pypi.org/project/sphinx-rtd-theme/ .. _sphinx_rtd_theme: https://pypi.org/project/sphinx-rtd-theme/