You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by uc...@apache.org on 2017/01/23 17:01:33 UTC

[4/4] flink git commit: [FLINK-5609] [docs] Add last built time

[FLINK-5609] [docs] Add last built time


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/24fe0814
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/24fe0814
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/24fe0814

Branch: refs/heads/master
Commit: 24fe08148fafde2350159d7e692b2a738acb9d91
Parents: 8ef11e9
Author: Ufuk Celebi <uc...@apache.org>
Authored: Mon Jan 23 17:55:35 2017 +0100
Committer: Ufuk Celebi <uc...@apache.org>
Committed: Mon Jan 23 17:57:30 2017 +0100

----------------------------------------------------------------------
 docs/_plugins/build_time.rb | 31 +++++++++++++++++++++++++++++++
 docs/index.md               |  5 +++--
 2 files changed, 34 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/24fe0814/docs/_plugins/build_time.rb
----------------------------------------------------------------------
diff --git a/docs/_plugins/build_time.rb b/docs/_plugins/build_time.rb
new file mode 100644
index 0000000..61aa5e8
--- /dev/null
+++ b/docs/_plugins/build_time.rb
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+module Jekyll
+  class BuildTimeTag < Liquid::Tag
+
+ 	def initialize(tag_name, input, tokens)
+      super
+    end
+
+    def render(context)
+    	Time.now.strftime("%D, %r %Z")
+    end
+  end
+end
+
+Liquid::Template.register_tag('build_time', Jekyll::BuildTimeTag)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flink/blob/24fe0814/docs/index.md
----------------------------------------------------------------------
diff --git a/docs/index.md b/docs/index.md
index 595a094..4af5305 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -23,7 +23,9 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-This documentation is for Apache Flink version {{ site.version }}.
+
+
+This documentation is for Apache Flink version {{ site.version }}. These pages have been built at: {% build_time %}.
 
 Apache Flink is an open source platform for distributed stream and batch data processing. Flink\u2019s core is a streaming dataflow engine that provides data distribution, communication, and fault tolerance for distributed computations over data streams. Flink also builds batch processing on top of the streaming engine, overlaying native iteration support, managed memory, and program optimization.
 
@@ -42,4 +44,3 @@ While all parts of the API that were marked as public and stable are still suppo
 newer interfaces where applicable.
 
 For users that look to upgrade an operation Flink system to the latest version, we recommend to check out the guide on [upgrading Apache Flink](ops/upgrading.html)
-