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 2019/04/12 18:59:25 UTC
[mynewt-site] branch master updated: Fix nav link normalization for
older releases
This is an automated email from the ASF dual-hosted git repository.
aditi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git
The following commit(s) were added to refs/heads/master by this push:
new 4ab9f8e Fix nav link normalization for older releases
new 32b9f20 Merge pull request #517 from utzig/fix-old-release-urls
4ab9f8e is described below
commit 4ab9f8ed7f69902fc446ddcf8a876f6b016c6adc
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Fri Apr 12 15:08:52 2019 -0300
Fix nav link normalization for older releases
---
custom-theme/child_url.html | 2 +-
custom-theme/choose_doc_version.html | 2 +-
custom-theme/nested_toc.html | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/custom-theme/child_url.html b/custom-theme/child_url.html
index e5ecb62..fbf8e39 100644
--- a/custom-theme/child_url.html
+++ b/custom-theme/child_url.html
@@ -1,5 +1,5 @@
{% if child.url %}
- {{ child.url }}
+ {{ child.url|url }}
{% else %}
{% set child=child.children[0] %}
{% include "child_url.html" %}
diff --git a/custom-theme/choose_doc_version.html b/custom-theme/choose_doc_version.html
index 8f3e19c..47af010 100644
--- a/custom-theme/choose_doc_version.html
+++ b/custom-theme/choose_doc_version.html
@@ -8,7 +8,7 @@
<option value="/v1_4_0/" {% if config.extra.version=="v1_4_0" %}selected="selected" {% endif %}>
Version: 1.4.0
</option>
- <option value="/v1_3_0/" {% if config.extra.version=="v1_3_0" %}selected="selected" {% endif %}>
+ <option value="/v1_3_0/os/introduction" {% if config.extra.version=="v1_3_0" %}selected="selected" {% endif %}>
Version: 1.3.0
</option>
<option value="/v1_2_0/os/introduction" {% if config.extra.version=="v1_2_0" %}selected="selected" {% endif %}>
diff --git a/custom-theme/nested_toc.html b/custom-theme/nested_toc.html
index 9323766..02229e5 100644
--- a/custom-theme/nested_toc.html
+++ b/custom-theme/nested_toc.html
@@ -1,7 +1,7 @@
{% if nav_item.children %}
{% set child=nav_item.children[0] %}
{% if child.title == "toc" %}
- <li {% if child.active %}class="active"{% endif %}><a href="{{ child.url }}">{{ nav_item.title }}</a>
+ <li {% if child.active %}class="active"{% endif %}><a href="{{ child.url|url }}">{{ nav_item.title }}</a>
{% else %}
<li><a href="{% include "child_url.html" %}">{{ nav_item.title }}</a>
{% endif %}
@@ -16,7 +16,7 @@
{% endif %}
</li>
{% else %}
- <li {% if nav_item.active %}class="active"{% endif %}>
- <a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
- </li>
+ <li {% if nav_item.active %}class="active"{% endif %}>
+ <a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
+ </li>
{% endif %}