mirror of
https://github.com/vale981/sphinx-multiversion
synced 2025-03-05 09:31:40 -05:00
docs/templates: Fix #2
This commit is contained in:
parent
be4a177996
commit
c85d72b352
1 changed files with 2 additions and 1 deletions
|
@ -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/
|
||||||
|
|
Loading…
Add table
Reference in a new issue