flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject flink git commit: [FLINK-5575] [docs] Add outdated release warning
Date Mon, 06 Feb 2017 16:28:27 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.1 3f2860f83 -> 3cd7c8ee3


[FLINK-5575] [docs] Add outdated release warning


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

Branch: refs/heads/release-1.1
Commit: 3cd7c8ee3f4323f88f1e750a84df5e69174f2260
Parents: 3f2860f
Author: David Anderson <david@alpinegizmo.com>
Authored: Tue Jan 31 15:15:15 2017 +0100
Committer: Ufuk Celebi <uce@apache.org>
Committed: Mon Feb 6 17:23:35 2017 +0100

----------------------------------------------------------------------
 docs/_config.yml        | 3 +++
 docs/_layouts/base.html | 8 ++++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/3cd7c8ee/docs/_config.yml
----------------------------------------------------------------------
diff --git a/docs/_config.yml b/docs/_config.yml
index c6d7cfd..1e11303 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -40,6 +40,9 @@ jira_url: "https://issues.apache.org/jira/browse/FLINK"
 github_url: "https://github.com/apache/flink"
 download_url: "http://flink.apache.org/downloads.html"
 
+is_latest: false
+is_stable: true
+
 #------------------------------------------------------------------------------
 # BUILD CONFIG
 #------------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/flink/blob/3cd7c8ee/docs/_layouts/base.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html
index 690d2af..3482800 100644
--- a/docs/_layouts/base.html
+++ b/docs/_layouts/base.html
@@ -53,6 +53,14 @@ under the License.
     <![endif]-->
   </head>
   <body>
+    {% if site.is_stable %}
+    {% unless site.is_latest %}
+    <div style="position:fixed; bottom:0; left:0; z-index:99999; width:100%; text-align:center;
padding:15px; border-top:1px dashed #CE4B65; background:#f6f0e3; font-weight:bold">
+       This documentation is for an out-of-date version of Apache Flink. We recommend you
use <a href="https://flink.apache.org/q/stable-docs.html">the latest stable version</a>.
+    </div>
+    {% endunless %}
+    {% endif %}
+
     {% comment %} Includes are found in the _includes directory. {% endcomment %}
     {% include navbar.html %}
 


Mime
View raw message