Skip to content

Commit 79545cd

Browse files
committed
Removed Read the Docs version overlay
These HTML template changes make Read the Docs believe that there is already a version overlay in the HTML documentation, so it does not inject its own overlay when building the docs on their server.
1 parent 559c40e commit 79545cd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doc/_templates/layout.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
</script>
88
{% endif %}
99
{% endblock %}
10+
11+
{%- block relbar2 %}
12+
{{ relbar() }}
13+
{% include "versions.html" %}
14+
{% endblock %}

doc/_templates/versions.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% if READTHEDOCS %}
2+
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions" style="display: none;">
3+
<div class="rst-other-versions" style="display: none;">
4+
</div>
5+
</div>
6+
{% endif %}

0 commit comments

Comments
 (0)