You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/06/20 21:36:29 UTC
[12/17] incubator-mynewt-site git commit: fix latest docs browsing
fix latest docs browsing
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/6c07b0fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/6c07b0fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/6c07b0fb
Branch: refs/heads/master
Commit: 6c07b0fb3220757f4e9590faadcaae062c9e5aea
Parents: c26da72
Author: Gavin Jefferies <ga...@runtime.io>
Authored: Fri Jun 17 14:38:32 2016 -0700
Committer: Gavin Jefferies <ga...@runtime.io>
Committed: Fri Jun 17 14:47:35 2016 -0700
----------------------------------------------------------------------
custom-theme/choose_doc_version.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6c07b0fb/custom-theme/choose_doc_version.html
----------------------------------------------------------------------
diff --git a/custom-theme/choose_doc_version.html b/custom-theme/choose_doc_version.html
index 5c408e0..9cc8d08 100644
--- a/custom-theme/choose_doc_version.html
+++ b/custom-theme/choose_doc_version.html
@@ -9,7 +9,7 @@
{% for version in config.extra.versions %}
<option
value="/{{ version.branch }}/{{ config.extra.doc_path }}"
- {% if config.extra.version == version.branch %}selected="selected"{% endif %}
+ {% if config.extra.version == version.branch or (config.extra.version == 'latest' and version.latest) %}selected="selected"{% endif %}
>
Version: {{ version.label }}{% if version.latest %} (latest){% endif %}
</option>