Skip to content

Commit

Permalink
add en cn url change
Browse files Browse the repository at this point in the history
  • Loading branch information
玖条 committed Jul 20, 2016
1 parent c5eeb04 commit 40ebba5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/jstorm-doc/_includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
<li class="dropdown">
<a href="{{ language }}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Language <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}/index_cn.html">中文</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ page.url }}/">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{site.baseurl}}{{page.cn_url}}">中文</a></li>
</ul>
</li>
<li class="hidden-sm {% if page.url contains '/Demo/' %} active{% endif %}"><a href="http://storm.taobao.org">Demo</a></li>
Expand Down
4 changes: 2 additions & 2 deletions docs/jstorm-doc/_includes/navbar_cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<li class="dropdown">
<a href="{{ language }}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Language <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}/index_cn.html">中文</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}{{page.en_url}}">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ page.url }}">中文</a></li>
</ul>
</li>
<li class="hidden-sm {% if page.url contains '/Demo/' %} active{% endif %}"><a href="http://storm.taobao.org">Demo</a></li>
Expand Down
2 changes: 2 additions & 0 deletions docs/jstorm-doc/quickstart/Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: "Example"
# Top-level navigation
top-nav-group: QuickStart
top-nav-pos: 2
cn_url: /quickstart_cn/example.html
layout: plain
---

* This will be replaced by the TOC
Expand Down
2 changes: 2 additions & 0 deletions docs/jstorm-doc/quickstart_cn/Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ top-nav-group: QuickStart_cn
top-nav-pos: 2
top-nav-id: Example_cn
top-nav-title: 入门Example
en_url: /quickstart/example.html
layout: plain_cn
---

* This will be replaced by the TOC
Expand Down

0 comments on commit 40ebba5

Please sign in to comment.