You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2019/07/19 13:42:23 UTC
[mynewt-documentation] 03/04: Maintain selected version when
navigating pages
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git
commit e82fb5aed7b00dc5c5e4180aadf4a4b0899a464e
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Thu Jul 18 15:21:52 2019 -0300
Maintain selected version when navigating pages
---
docs/themes/mynewt/versions.html | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/docs/themes/mynewt/versions.html b/docs/themes/mynewt/versions.html
index 540ff2b..788269a 100644
--- a/docs/themes/mynewt/versions.html
+++ b/docs/themes/mynewt/versions.html
@@ -3,25 +3,28 @@
<option value="/latest" selected>
Version: latest
</option>
- <option value="/v1_5_0">
+ <option value="/v1_6_0" {% if cur_version == "1.6.0" %}selected="selected" {% endif %}>
+ Version: 1.6.0
+ </option>
+ <option value="/v1_5_0" {% if cur_version == "1.5.0" %}selected="selected" {% endif %}>
Version: 1.5.0
</option>
- <option value="/v1_4_0">
+ <option value="/v1_4_0" {% if cur_version == "1.4.0" %}selected="selected" {% endif %}>
Version: 1.4.0
</option>
- <option value="/v1_3_0/os/introduction">
+ <option value="/v1_3_0/os/introduction" {% if cur_version == "1.3.0" %}selected="selected" {% endif %}>
Version: 1.3.0
</option>
- <option value="/v1_2_0/os/introduction">
+ <option value="/v1_2_0/os/introduction" {% if cur_version == "1.2.0" %}selected="selected" {% endif %}>
Version: 1.2.0
</option>
- <option value="/v1_1_0/os/introduction">
+ <option value="/v1_1_0/os/introduction" {% if cur_version == "1.1.0" %}selected="selected" {% endif %}>
Version: 1.1.0
</option>
- <option value="/v1_0_0/os/introduction">
+ <option value="/v1_0_0/os/introduction" {% if cur_version == "1.0.0" %}selected="selected" {% endif %}>
Version: 1.0.0
</option>
- <option value="/v0_9_0/os/introduction">
+ <option value="/v0_9_0/os/introduction" {% if cur_version == "0.9.0" %}selected="selected" {% endif %}>
Version: 0.9.0
</option>
</select>