flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twal...@apache.org
Subject flink git commit: [FLINK-7462] [docs] Add very obvious warning about outdated docs
Date Thu, 17 Aug 2017 05:22:43 GMT
Repository: flink
Updated Branches:
  refs/heads/master 843f0cbc1 -> 6c6d90084


[FLINK-7462] [docs] Add very obvious warning about outdated docs

This closes #4553.


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

Branch: refs/heads/master
Commit: 6c6d90084c9be27eb8c43f0f642c76e4dec9a4f6
Parents: 843f0cb
Author: Ufuk Celebi <uce@apache.org>
Authored: Wed Aug 16 18:21:49 2017 +0200
Committer: twalthr <twalthr@apache.org>
Committed: Thu Aug 17 07:19:41 2017 +0200

----------------------------------------------------------------------
 docs/_config.yml         | 7 ++++---
 docs/_layouts/base.html  | 6 ++----
 docs/_layouts/plain.html | 5 +++++
 3 files changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/6c6d9008/docs/_config.yml
----------------------------------------------------------------------
diff --git a/docs/_config.yml b/docs/_config.yml
index 5482783..5a92bb9 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -46,11 +46,12 @@ download_url: "http://flink.apache.org/downloads.html"
 # please use a protocol relative URL here
 baseurl: //ci.apache.org/projects/flink/flink-docs-release-1.4
 
-# Flag whether this is the latest stable version or not. If not, a warning
-# will be printed pointing to the docs of the latest stable version.
-is_latest: true
+# Flag whether this is a stable version or not. Used for the quickstart page.
 is_stable: false
 
+# Flag to indicate whether an outdated warning should be shown.
+show_outdated_warning: false
+
 previous_docs:
   1.3: http://ci.apache.org/projects/flink/flink-docs-release-1.3
   1.2: http://ci.apache.org/projects/flink/flink-docs-release-1.2

http://git-wip-us.apache.org/repos/asf/flink/blob/6c6d9008/docs/_layouts/base.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html
index d51451a..691670c 100644
--- a/docs/_layouts/base.html
+++ b/docs/_layouts/base.html
@@ -54,12 +54,10 @@ 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">
+    {% if site.show_outdated_warning %}
+    <div style="position:fixed; bottom:0; left:0; z-index:99999; width:100%; text-align:center;
padding:15px; border-top:5px solid #ECCCD1; background:#F2DEDE; color:#AD433F; 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. -->

http://git-wip-us.apache.org/repos/asf/flink/blob/6c6d9008/docs/_layouts/plain.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/plain.html b/docs/_layouts/plain.html
index 63a6681..e991f78 100644
--- a/docs/_layouts/plain.html
+++ b/docs/_layouts/plain.html
@@ -53,5 +53,10 @@ under the License.
 </ol>
 
 <h1>{{ page.title }}{% if page.is_beta %} <span class="beta">Beta</span>{%
endif %}</h1>
+{% if site.show_outdated_warning %}
+<div class="alert alert-danger" role="alert">
+  <strong>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>.</strong>
+</div>
+{% endif %}
 
 {{ content }}


Mime
View raw message