Skip to content

Commit

Permalink
Docs: Version switcher dropdown link fix (#4918)
Browse files Browse the repository at this point in the history
We switched from using /master/ to using /latest/ - update the quick switch dropdown.

Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
  • Loading branch information
ewels authored Apr 15, 2024
1 parent 6499649 commit 9632366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

{% block sidebartitle %}
{{ super() }}
{%- set version_selected = "latest" -%}
{%- set version_selected = "stable" -%}
{%- if "edge" in release %}{%- set version_selected = "edge" -%}{%- endif %}
{%- if "dev" in release %}{%- set version_selected = "dev" -%}{%- endif %}
<div class="sidebar_version">
<span class="version">Version {{ release }} {{ release_checked_out }}</span>
<select onchange="window.location = this.value;">
<option value="/docs/latest/index.html" {% if version_selected == 'latest' %}selected{% endif %}>Latest</option>
<option value="/docs/stable/index.html" {% if version_selected == 'stable' %}selected{% endif %}>Stable</option>
<option value="/docs/edge/index.html" {% if version_selected == 'edge' %}selected{% endif %}>Edge</option>
<option value="/docs/master/index.html" {% if version_selected == 'dev' %}selected{% endif %}>Development</option>
<option value="/docs/latest/index.html" {% if version_selected == 'dev' %}selected{% endif %}>Development</option>
</select>
</select>
</div>
Expand Down

0 comments on commit 9632366

Please sign in to comment.