Skip to content

Commit baef2e0

Browse files
author
Matthew Fisher
committed
fix(themes): fix up navigation on readthedocs
The version list is not being shown on readthedocs.org because it's not in the navigation list.
1 parent c79004a commit baef2e0

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

themes/deis/base.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,28 @@
6363
<a class="fork" href="http://github.com/deis/workflow"><div class="forkImage"></div></a>
6464
<div class="docs-border"></div>
6565
<div class="navigation">
66-
{%- include "nav.html" %}
66+
<ul class="current">
67+
{%- include "nav.html" %}
68+
<li class="toctree-l1">
69+
{% if READTHEDOCS %}
70+
<a class="reference internal" href="../" state="open">Versions</a>
71+
<ul class="current">
72+
{% for slug, url in versions %}
73+
<li class="toctree-l2"><a href="{{ url }}{%- for word in pagename.split('/') -%}
74+
{%- if word != 'index' -%}
75+
{%- if word != '' -%}
76+
{{ word }}/
77+
{%- endif -%}
78+
{%- endif -%}
79+
{%- endfor -%}"
80+
title="Switch to {{ slug }}">{{ slug }}</a></li>
81+
{% endfor %}
82+
</ul>
83+
{% endif %}
84+
</li>
85+
</ul>
6786
<div class="clearfix"></div>
6887
</div>
69-
<ul class="current">
70-
<li class="toctree-l1">
71-
{% if READTHEDOCS %}
72-
<a class="reference internal" href="../" state="open">Versions</a>
73-
<ul class="current">
74-
{% for slug, url in versions %}
75-
<li class="toctree-l2"><a href="{{ url }}{%- for word in pagename.split('/') -%}
76-
{%- if word != 'index' -%}
77-
{%- if word != '' -%}
78-
{{ word }}/
79-
{%- endif -%}
80-
{%- endif -%}
81-
{%- endfor -%}"
82-
title="Switch to {{ slug }}">{{ slug }}</a></li>
83-
{% endfor %}
84-
</ul>
85-
{% endif %}
86-
</li>
87-
</ul>
8888
</div>
8989
</div>
9090
</div>

0 commit comments

Comments
 (0)