You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2017/07/11 23:14:33 UTC

incubator-mnemonic-site git commit: MNEMONIC-302: Add content to index page of documentation

Repository: incubator-mnemonic-site
Updated Branches:
  refs/heads/master eec9e7410 -> 181966e09


MNEMONIC-302: Add content to index page of documentation


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/commit/181966e0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/tree/181966e0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/diff/181966e0

Branch: refs/heads/master
Commit: 181966e094b29ca13c263a625ee3def20a20d034
Parents: eec9e74
Author: Wang, Gang(Gary) <ga...@intel.com>
Authored: Tue Jul 11 16:12:40 2017 -0700
Committer: Wang, Gang(Gary) <ga...@intel.com>
Committed: Tue Jul 11 16:12:40 2017 -0700

----------------------------------------------------------------------
 src/_docs/index.md | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/blob/181966e0/src/_docs/index.md
----------------------------------------------------------------------
diff --git a/src/_docs/index.md b/src/_docs/index.md
index 4fe56eb..ee9c6ea 100644
--- a/src/_docs/index.md
+++ b/src/_docs/index.md
@@ -1,13 +1,40 @@
 ---
 layout: docs
-title: Wiki
+title: Content
 permalink: /docs/index.html
 ---
 
 
-How to Contribute to Mnemonic [Wiki](https://cwiki.apache.org/confluence/display/MNEMONIC/How+to+Contribute+to+Mnemonic)
+{% for section in site.data.docs %}
+<h4>{{ section.title }}</h4>
 
+{% assign items = section.docs %}
 
-How to Release [Wiki](https://cwiki.apache.org/confluence/display/MNEMONIC/How+to+Release)
+<ul>
+{% for item in items %}
+  {% assign item_url = item | prepend:"/docs/" | append:".html" %}
+
+  {% if item_url == page.url %}
+    {% assign c = "current" %}
+  {% else %}
+    {% assign c = "" %}
+  {% endif %}
+
+  {% for p in site.docs %}
+    {% if p.url == item_url %}
+      <li class="{{ c }}"><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a></li>
+      {% break %}
+    {% endif %}
+  {% endfor %}
+
+{% endfor %}
+</ul>
+
+{% endfor %}
+
+How to Contribute to Mnemonic ? -- [Wiki](https://cwiki.apache.org/confluence/display/MNEMONIC/How+to+Contribute+to+Mnemonic){:target="_blank"}
+
+
+How to Release ? -- [Wiki](https://cwiki.apache.org/confluence/display/MNEMONIC/How+to+Release){:target="_blank"}