Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A8D6E200C13 for ; Mon, 6 Feb 2017 18:16:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A736B160B56; Mon, 6 Feb 2017 17:16:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F20ED160B53 for ; Mon, 6 Feb 2017 18:16:46 +0100 (CET) Received: (qmail 55030 invoked by uid 500); 6 Feb 2017 17:16:46 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 55021 invoked by uid 99); 6 Feb 2017 17:16:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 17:16:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1C0EFDFCA3; Mon, 6 Feb 2017 17:16:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: uce@apache.org To: commits@flink.apache.org Message-Id: <2bae6aed6f9f456cbfb0e34ecc4b72e9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: flink git commit: [FLINK-5575] [docs] Rework outdated release warning Date: Mon, 6 Feb 2017 17:16:46 +0000 (UTC) archived-at: Mon, 06 Feb 2017 17:16:47 -0000 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 Authored: Tue Jan 31 15:15:15 2017 +0100 Committer: Ufuk Celebi 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. + {% if site.is_stable %} + {% unless site.is_latest %} +
+ This documentation is for an out-of-date version of Apache Flink. We recommend you use the latest stable version. +
+ {% endunless %} + {% endif %} +
- {% if site.is_stable %} - {% unless site.is_latest %} -
-
-
- Note: This documentation is for Flink version {{ site.version }}. There is a more recent stable version available. Please consider updating and check out the documentation for that version. -
-
-
- {% endunless %} - {% endif %} - {% comment %} This is the base for all content. The content from the layouts found in the _layouts directory goes here.