Repository: flink Updated Branches: refs/heads/release-1.2 a5585eb50 -> 6986f4927
[FLINK-5575] [docs] Rework 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/6986f492 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/6986f492 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/6986f492 Branch: refs/heads/release-1.2 Commit: 6986f49272939d47db1c073bf155b57aaf34b17e Parents: a5585eb Author: David Anderson <[email protected]> Authored: Tue Jan 31 15:15:15 2017 +0100 Committer: Ufuk Celebi <[email protected]> Committed: Mon Feb 6 18:13:25 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/6986f492/docs/_config.yml ---------------------------------------------------------------------- diff --git a/docs/_config.yml b/docs/_config.yml index 9cb916e..c5bb368 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: true -latest_stable_url: http://ci.apache.org/projects/flink/flink-docs-release-1.2 previous_docs: 1.1: http://ci.apache.org/projects/flink/flink-docs-release-1.1 http://git-wip-us.apache.org/repos/asf/flink/blob/6986f492/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.
