Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Hide 'Versions' links unless at readthedocs.org, fixes #602.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Mar 22, 2014
1 parent fad6be3 commit 18f8d38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/theme/deis/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
{{ toctree(collapse=False, maxdepth=3) }}
<ul class="current">
<li class="toctree-l1">
{% if READTHEDOCS %}
<a class="reference internal" href="../" state="open">Versions</a>
<ul class="current">
{% for slug, url in versions %}
Expand All @@ -109,6 +110,7 @@
title="Switch to {{ slug }}">{{ slug }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
</ul>
</div>
Expand Down

0 comments on commit 18f8d38

Please sign in to comment.