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:28 UTC

[11/17] incubator-mynewt-site git commit: final fix for site -> docs links

final fix for site -> docs links


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/c26da72a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/c26da72a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/c26da72a

Branch: refs/heads/master
Commit: c26da72a0917d80eb4c1b103e74bc7ec3f883f87
Parents: 2fd7509
Author: Gavin Jefferies <ga...@runtime.io>
Authored: Fri Jun 17 12:37:24 2016 -0700
Committer: Gavin Jefferies <ga...@runtime.io>
Committed: Fri Jun 17 14:47:32 2016 -0700

----------------------------------------------------------------------
 build.py              | 1 +
 custom-theme/nav.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c26da72a/build.py
----------------------------------------------------------------------
diff --git a/build.py b/build.py
index 9957f20..b392523 100755
--- a/build.py
+++ b/build.py
@@ -41,6 +41,7 @@ def build(site_branch):
 
     mygit.checkout(site_branch)
     print "Building site pages from: %s..." % (site_branch)
+    sh.rm('-rf', 'site')
     sh.mkdocs('build', '--clean')
 
     for version in cfg['extra']['versions']:

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c26da72a/custom-theme/nav.html
----------------------------------------------------------------------
diff --git a/custom-theme/nav.html b/custom-theme/nav.html
index 0373a02..f927c6d 100644
--- a/custom-theme/nav.html
+++ b/custom-theme/nav.html
@@ -37,7 +37,7 @@
                     <a href="/about/">About</a>
                 </li>
                 <li {{ docs_are_active(current_page) }}>
-                    <a href="{% if config.extra.version != 'none' %}/{{ config.extra.version }}{% endif %}/{{ config.extra.doc_path }}">Documentation</a>
+                    <a href="{% if config.extra.version != 'none' %}/latest{% endif %}/{{ config.extra.doc_path }}">Documentation</a>
                 </li>
                 <li {{ active_nav(current_page, 'Download') }}>
                     <a href="/download/">Download</a>