[FLINK-2300] fix tag for rendering github links
Project: http://git-wip-us.apache.org/repos/asf/flink-web/repo Commit: http://git-wip-us.apache.org/repos/asf/flink-web/commit/a715a56c Tree: http://git-wip-us.apache.org/repos/asf/flink-web/tree/a715a56c Diff: http://git-wip-us.apache.org/repos/asf/flink-web/diff/a715a56c Branch: refs/heads/master Commit: a715a56cf67c84d00064537b93ee701d3050b490 Parents: 9760e5e Author: Maximilian Michels <[email protected]> Authored: Mon Jul 13 18:43:08 2015 +0200 Committer: Maximilian Michels <[email protected]> Committed: Mon Jul 13 18:43:08 2015 +0200 ---------------------------------------------------------------------- _plugins/github.rb | 10 +++++++--- content/css/flink.css | 4 ++++ content/faq.html | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink-web/blob/a715a56c/_plugins/github.rb ---------------------------------------------------------------------- diff --git a/_plugins/github.rb b/_plugins/github.rb index 6d700be..5676fb0 100644 --- a/_plugins/github.rb +++ b/_plugins/github.rb @@ -5,10 +5,10 @@ module Jekyll super @input = input end -# Usage: github $PATH [$TAG: master] +# Usage: github $PATH [$TAG: master] [$TEXT] def render(context) - input = @input.sub(/".*"/, "").split + input = @input.gsub(/"/, "").split config = context.registers[:site].config path = input[0] @@ -18,7 +18,11 @@ module Jekyll # 2. "master" (default) gh_tag = input[1].nil? ? "master" : input[1] - "#{config["github"]}/tree/#{gh_tag}/#{path}" + url = "#{config["github"]}/tree/#{gh_tag}/#{path}" + + text = input.length > 2 ? input[2..-1].join(" ") : url + + "<a href='#{url}'>#{text}</a>" end end end http://git-wip-us.apache.org/repos/asf/flink-web/blob/a715a56c/content/css/flink.css ---------------------------------------------------------------------- diff --git a/content/css/flink.css b/content/css/flink.css index 7ad2694..7e04d60 100644 --- a/content/css/flink.css +++ b/content/css/flink.css @@ -148,6 +148,10 @@ code { width: 100%; } +.img-column { + text-align: center; +} + #disqus_thread { padding-top: 3em; } http://git-wip-us.apache.org/repos/asf/flink-web/blob/a715a56c/content/faq.html ---------------------------------------------------------------------- diff --git a/content/faq.html b/content/faq.html index 78dd9b1..85b5f81 100644 --- a/content/faq.html +++ b/content/faq.html @@ -360,7 +360,7 @@ breaks.</p> at org.apache.flinkruntime.fs.hdfs.DistributedFileSystem.initialize<span class="o">(</span>DistributedFileSystem.java:276</code></pre></div> <p>Please refer to the <a href="/downloads.html#maven">download page</a> and -the https://github.com/apache/flink/tree/master/README.md +the <a href="https://github.com/apache/flink/tree/master/README.md">build instructions</a> for details on how to set up Flink for different Hadoop and HDFS versions.</p> <h3 id="my-job-fails-with-various-exceptions-from-the-hdfshadoop-code-what-can-i-do">My job fails with various exceptions from the HDFS/Hadoop code. What can I do?</h3> @@ -591,7 +591,7 @@ This mechanism is both efficient and flexible. See the documentation on <a href= <p><a href="http://ci.apache.org/projects/flink/flink-docs-master/apis/programming_guide.html#accumulators--counters">Flinkâs Accumulators</a> work very similar like Hadoopâs counters, but are more powerful.</p> -<p>Flink has a <a href="https://github.com/apache/flink/tree/master/flink-core/src/main/java/org/apache/flink/api/common/cache/DistributedCache.java">Distributed Cache</a> that is deeply integrated with the APIs. Please refer to the <a href="https://github.com/apache/flink/tree/master/flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java#L561">JavaDocs</a> for details on how to use it.</p> +<p>Flink has a <a href="https://github.com/apache/flink/tree/master/flink-core/src/main/java/org/apache/flink/api/common/cache/DistributedCache.java">Distributed Cache</a> that is deeply integrated with the APIs. Please refer to the <a href="https://github.com/apache/flink/tree/master/flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java#L831">JavaDocs</a> for details on how to use it.</p> <p>In order to make data sets available on all tasks, we encourage you to use <a href="http://ci.apache.org/projects/flink/flink-docs-master/apis/programming_guide.html#broadcast-variables">Broadcast Variables</a> instead. They are more efficient and easier to use than the distributed cache.</p>
