Skip to content

Commit 18f8d38

Browse files
committed
Hide 'Versions' links unless at readthedocs.org, fixes #602.
1 parent fad6be3 commit 18f8d38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/theme/deis/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
{{ toctree(collapse=False, maxdepth=3) }}
9797
<ul class="current">
9898
<li class="toctree-l1">
99+
{% if READTHEDOCS %}
99100
<a class="reference internal" href="../" state="open">Versions</a>
100101
<ul class="current">
101102
{% for slug, url in versions %}
@@ -109,6 +110,7 @@
109110
title="Switch to {{ slug }}">{{ slug }}</a></li>
110111
{% endfor %}
111112
</ul>
113+
{% endif %}
112114
</li>
113115
</ul>
114116
</div>

0 commit comments

Comments
 (0)