Skip to content

Commit

Permalink
[docs] fix language switch problem and chinese page footer
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchong committed Jul 20, 2016
1 parent 03ac8a6 commit 36b6a2e
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/jstorm-doc/_includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<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.html">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}/index_cn.html">中文</a></li>

</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/jstorm-doc/_includes/navbar_cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<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.html">English</a></li>
<li class="{% if page.url contains libs_page.url %}active{% endif %}"><a href="{{ site.baseurl }}/index_cn.html">中文</a></li>

</ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/jstorm-doc/_layouts/plain.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ <h1>{{ page.title }}</h1>
<h1>{{ page.title }}{% if page.is_beta %} <span class="beta">Beta</span>{% endif %}</h1>
{{ content }}
<div class="footer">
发现错误?想参与编辑?
Caught a mistake or want to contribute to the documentation?
<a href="https://github.com/alibaba/jstorm/edit/master/docs/jstorm-doc/{{ page.path }}" target="_blank">
在 Github 上编辑此页!
Edit this page on Github!
</a>
</div>
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions docs/jstorm-doc/_layouts/plain_cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ <h1>{{ page.title }}</h1>
<div class="col-md-8 col-md-offset-2 text">
<h1>{{ page.title }}{% if page.is_beta %} <span class="beta">Beta</span>{% endif %}</h1>
{{ content }}
<div class="footer">
发现错误?想参与编辑?
<a href="https://github.com/alibaba/jstorm/edit/master/docs/jstorm-doc/{{ page.path }}" target="_blank">
在 Github 上编辑此页!
</a>
</div>
</div>
{% endif %}
{% endif %}
Expand Down
73 changes: 70 additions & 3 deletions docs/jstorm-doc/index_cn.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,73 @@
---
title: Performance
layout: plain_cn
title: "Scalable Stream Data Processing"
layout: base_cn
---

TBD
<div class="row">
<div class="col-sm-12"><p class="lead" markdown="span">**Alibaba JStorm** 是一个非常牛X的流计算框架</p></div>
</div>

<div class="row">
<div class="col-md-6" markdown="1">

**Flink’s core** is a [streaming dataflow engine](features.html) that provides data distribution, communication, and fault tolerance for distributed computations over data streams.

Flink includes **several APIs** for creating applications that use the Flink engine:

1. [DataStream API]({{ site.docs-snapshot }}/apis/streaming/index.html) for unbounded streams embedded in Java and Scala, and
2. [DataSet API]({{ site.docs-snapshot }}/apis/batch/index.html) for static data embedded in Java, Scala, and Python,
3. [Table API]({{ site.docs-snapshot }}/apis/batch/libs/table.html) with a SQL-like expression language embedded in Java and Scala.

Flink also bundles **libraries for domain-specific use cases**:

1. [CEP]({{ site.docs-snapshot }}/apis/streaming/libs/cep.html), a complex event processing library,
2. [Machine Learning library]({{ site.docs-snapshot }}/apis/batch/libs/ml/index.html), and
3. [Gelly]({{ site.docs-snapshot }}/apis/batch/libs/gelly.html), a graph processing API and library.

You can **integrate** Flink easily with other well-known open source systems both for [data input and output](features.html#deployment-and-integration) as well as [deployment](features.html#deployment-and-integration).
</div>
<div class="col-md-6 stack text-center">
<!-- https://docs.google.com/drawings/d/1XCNHsBDAq0fP-TSazE4CcrUinrC37JFiuXAoAEZZavE/ -->
<img src="{{ site.baseurl }}/img/flink-stack-frontpage.png" alt="Apache Flink Stack" width="480px" height="280px">
</div>
</div>
---

<div class="row">
<div class="col-sm-6" markdown="1">
## Getting Started

Download the **latest stable release** and run Flink on your machine, cluster, or cloud:

<div class="text-center download-button">
<a href="downloads.html" class="btn btn-primary" markdown="1">**Download** Apache Flink {{ site.stable }}</a>
<a href="{{ site.github }}" class="btn btn-info" markdown="1">Apache Flink on **GitHub**</a>
</div>

The documentation contains a [setup guide]({{ site.docs-snapshot }}/setup) for all deployment options.

The [programming guide]({{ site.docs-snapshot }}/apis/programming_guide.html) contains all information to get you started with writing and testing your Flink programs.

**Check out the [documentation]({{ site.docs-snapshot }}) for the next steps.**

</div>

<div class="col-sm-6" markdown="1" style="padding-bottom:1em">
## Latest News

<ul class="list-group">
{% for post in site.posts limit:5 %}
<li class="list-group-item"><span>{{ post.date | date_to_string }}</span> &raquo;
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>

**Check out [the news](blog/) for all posts.**
</div>
</div>

<footer class="small">
<hr>
Google Groups: <a target="_blank" href="https://groups.google.com/forum/#!forum/jstorm-user">jstorm-user</a>, QQ Groups: 228374502
</footer>

0 comments on commit 36b6a2e

Please sign in to comment.