You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/03/27 22:27:31 UTC

[incubator-pulsar] branch master updated: Add version warning for latest vs. 2.0 (#1445)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new bb6daa2  Add version warning for latest vs. 2.0 (#1445)
bb6daa2 is described below

commit bb6daa2036560763902ddac3c9d6f642fcbef47f
Author: Luc Perkins <lu...@gmail.com>
AuthorDate: Tue Mar 27 15:27:29 2018 -0700

    Add version warning for latest vs. 2.0 (#1445)
    
    * add 2.0 version warning on each docs page
    
    * add license header to version warning include
---
 site/_includes/version-warning.html | 23 +++++++++++++++++++++++
 site/_layouts/docs.html             |  2 ++
 2 files changed, 25 insertions(+)

diff --git a/site/_includes/version-warning.html b/site/_includes/version-warning.html
new file mode 100644
index 0000000..1d949d2
--- /dev/null
+++ b/site/_includes/version-warning.html
@@ -0,0 +1,23 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
+{% include admonition.html type="danger" title="Version 2.0" content="
+The documentation that you're reading is for the upcoming 2.0 release of Apache Pulsar. If you're looking for the documentation for version 1.22.0-incubating, click [here](/docs/v1.22.0-incubating/getting-started/LocalCluster)." %}
\ No newline at end of file
diff --git a/site/_layouts/docs.html b/site/_layouts/docs.html
index 6b6b0ff..dfecfc9 100644
--- a/site/_layouts/docs.html
+++ b/site/_layouts/docs.html
@@ -42,6 +42,8 @@ layout: default
           {% endfor %}
         </section>
 
+        {% include version-warning.html %}
+
         <hr class="hr">
       </section>
 

-- 
To stop receiving notification emails like this one, please contact
mmerli@apache.org.