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] Rework outdated release warning
Date Mon, 06 Feb 2017 17:16:46 GMT
Repository: flink
Updated Branches:
  refs/heads/master 588d7c62c -> dd7311ed8


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

This closes #3242.


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

Branch: refs/heads/master
Commit: dd7311ed8958a3f77a045a1840d98d45b86c1705
Parents: 588d7c6
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 18:10:34 2017 +0100

----------------------------------------------------------------------
 docs/_config.yml        |  1 -
 docs/_layouts/base.html | 20 ++++++++------------
 2 files changed, 8 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/dd7311ed/docs/_config.yml
----------------------------------------------------------------------
diff --git a/docs/_config.yml b/docs/_config.yml
index d1e6897..9167ace 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -44,7 +44,6 @@ download_url: "http://flink.apache.org/downloads.html"
 # will be printed pointing to the docs of the latest stable version.
 is_latest: true
 is_stable: false
-latest_stable_url: http://ci.apache.org/projects/flink/flink-docs-release-1.2
 
 previous_docs:
   1.2: http://ci.apache.org/projects/flink/flink-docs-release-1.2

http://git-wip-us.apache.org/repos/asf/flink/blob/dd7311ed/docs/_layouts/base.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html
index 21065ec..35499cd 100644
--- a/docs/_layouts/base.html
+++ b/docs/_layouts/base.html
@@ -54,20 +54,16 @@ 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 %}
+
     <!-- Main content. -->
     <div class="container">
-      {% if site.is_stable %}
-      {% unless site.is_latest %}
-      <div class="row">
-        <div class="col-sm-12">
-          <div class="alert alert-info">
-              <strong>Note</strong>: This documentation is for Flink version
<strong>{{ site.version }}</strong>. There is a more recent stable version available.
Please consider updating and <a href="{{ site.latest_stable_url }}">check out the documentation
for that version</a>.
-          </div>
-        </div>
-      </div>
-      {% endunless %}
-      {% endif %}
-
       {% comment %}
       This is the base for all content. The content from the layouts found in
       the _layouts directory goes here.


Mime
View raw message