You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by ru...@apache.org on 2021/01/28 02:07:49 UTC

[incubator-ratis] branch asf-site-source updated: RATIS-1285. Fix download link point to mirror links instead of download area directly (#405)

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

runzhiwang pushed a commit to branch asf-site-source
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git


The following commit(s) were added to refs/heads/asf-site-source by this push:
     new c9a1417  RATIS-1285. Fix download link point to mirror links instead of download area directly (#405)
c9a1417 is described below

commit c9a14172dd3f2d24e49e07ab5e8e824145578030
Author: runzhiwang <51...@users.noreply.github.com>
AuthorDate: Thu Jan 28 10:07:39 2021 +0800

    RATIS-1285. Fix download link point to mirror links instead of download area directly (#405)
---
 content/{post/0.4.0.md => downloads.md}            |  14 +-
 content/post/0.3.0.md                              |   2 +-
 content/post/0.4.0.md                              |   2 +-
 content/post/0.5.0.md                              |   2 +-
 content/post/1.0.0.md                              |   2 +-
 layouts/_default/list.html                         |   1 +
 layouts/_default/single.html                       |   1 +
 layouts/custompage/downloads.html                  | 167 +++++++++++++++++++++
 layouts/index.html                                 |  49 +-----
 layouts/partials/header.html                       |  18 +--
 .../{_default/single.html => partials/middle.html} |  14 +-
 11 files changed, 187 insertions(+), 85 deletions(-)

diff --git a/content/post/0.4.0.md b/content/downloads.md
similarity index 54%
copy from content/post/0.4.0.md
copy to content/downloads.md
index 7c59cfb..40f21f3 100644
--- a/content/post/0.4.0.md
+++ b/content/downloads.md
@@ -1,8 +1,7 @@
 ---
-title: Release 0.4.0 is available
-date: 2019-09-12
-type: release
-sourceonly: true
+title: "Apache Hadoop Ratis Downloads"
+layout: downloads
+type: custompage
 ---
 <!---
   Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,10 +17,3 @@ sourceonly: true
   limitations under the License. See accompanying LICENSE file.
 -->
 
-[Download](https://ratis.incubator.apache.org/#download)
-
-It contains more than 89 improvements and bug fixes based on various Apache Hadoop Ozone use cases.
-See the [changes between 0.3.0 and 0.4.0](https://github.com/apache/incubator-ratis/compare/0.3.0...ratis-0.4.0-rc4) releases. 
-
-It has been tested with [Apache Hadoop Ozone](https://hadoop.apache.org/ozone/) where Apache Ratis is used to replicate raw data. 
-
diff --git a/content/post/0.3.0.md b/content/post/0.3.0.md
index 6c0c49b..e7a5601 100644
--- a/content/post/0.3.0.md
+++ b/content/post/0.3.0.md
@@ -18,7 +18,7 @@ sourceonly: true
   limitations under the License. See accompanying LICENSE file.
 -->
 
-[Download](https://ratis.incubator.apache.org/#download)
+[Download](https://ratis.incubator.apache.org/downloads.html)
 
 It contains new features such as multi-raft and watch request, as well contains 73 improvements and 72 bug fixes.
 See the [changes between 0.2.0 and 0.3.0](https://github.com/apache/incubator-ratis/compare/ratis-0.2.0...ratis-0.3.0) releases. 
diff --git a/content/post/0.4.0.md b/content/post/0.4.0.md
index 7c59cfb..833bc57 100644
--- a/content/post/0.4.0.md
+++ b/content/post/0.4.0.md
@@ -18,7 +18,7 @@ sourceonly: true
   limitations under the License. See accompanying LICENSE file.
 -->
 
-[Download](https://ratis.incubator.apache.org/#download)
+[Download](https://ratis.incubator.apache.org/downloads.html)
 
 It contains more than 89 improvements and bug fixes based on various Apache Hadoop Ozone use cases.
 See the [changes between 0.3.0 and 0.4.0](https://github.com/apache/incubator-ratis/compare/0.3.0...ratis-0.4.0-rc4) releases. 
diff --git a/content/post/0.5.0.md b/content/post/0.5.0.md
index f82a8f4..4aeb611 100644
--- a/content/post/0.5.0.md
+++ b/content/post/0.5.0.md
@@ -18,7 +18,7 @@ linked: true
   limitations under the License. See accompanying LICENSE file.
 -->
 
-[Download](https://ratis.incubator.apache.org/#download)
+[Download](https://ratis.incubator.apache.org/downloads.html)
 
 It contains more than 94 improvements and bug fixes based on various Apache Hadoop Ozone use cases.
 See the [changes between 0.4.0 and 0.5.0](https://github.com/apache/incubator-ratis/compare/0.4.0-rc4...ratis-0.5.0-rc0) releases. 
diff --git a/content/post/1.0.0.md b/content/post/1.0.0.md
index 6716db0..890221f 100644
--- a/content/post/1.0.0.md
+++ b/content/post/1.0.0.md
@@ -18,7 +18,7 @@ linked: true
   limitations under the License. See accompanying LICENSE file.
 -->
 
-[Download](https://ratis.incubator.apache.org/#download)
+[Download](https://ratis.incubator.apache.org/downloads.html)
 
 It contains around 119 improvements and bug fixes based on various Apache Hadoop Ozone use cases.
 See the [changes between 0.5.0 and 1.0.0](https://github.com/apache/incubator-ratis/compare/ratis-0.5.0-rc0...ratis-1.0.0-rc0) releases. 
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2b23419..6870298 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -12,6 +12,7 @@
  limitations under the License. See accompanying LICENSE file.
 -->
 {{ partial "header.html" . }}
+{{ partial "middle.html" . }}
 <div class="container">
 {{ $paginator := .Paginate .Data.Pages}}
 <section id="main">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0059f6f..22cc086 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -12,6 +12,7 @@
  limitations under the License. See accompanying LICENSE file.
 -->
 {{partial "header.html" .}}
+{{partial "middle.html" .}}
 <div class="container">
 <h1>{{.Title}}</h1>
 {{.Content}}
diff --git a/layouts/custompage/downloads.html b/layouts/custompage/downloads.html
new file mode 100644
index 0000000..d27af7f
--- /dev/null
+++ b/layouts/custompage/downloads.html
@@ -0,0 +1,167 @@
+<!--
+ Licensed 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. See accompanying LICENSE file.
+-->
+
+{{partial "header.html" .}}
+
+<div class="container">
+
+  <h1>Download</h1>
+
+  <p>Apache Ratis is a Java library that can be used directly from your applications.
+
+It is released as source code tarballs. The downloads are distributed via mirror sites and should be checked for tampering using GPG or SHA-256
+
+The source tarball contains detailed instruction about how can it be built.
+
+The binaries are also uploaded to the maven central for convenience. (See the getting started guide for more details)
+
+1.0.0 is GA release for Apache Ratis</p>
+
+<p>
+  <table class="table table-striped">
+    <thead>
+    <tr>
+      <th>Version</th>
+      <th>Release date</th>
+      <th>Source download</th>
+      <th>Binary download</th>
+      <th>Release notes</th>
+    </tr>
+  </thead>
+   
+     <tr>
+       <td>1.0.0</td>
+       <td>2020 Jul 20 </td>
+       <td>
+         <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-src.tar.gz">source</a>
+         (<a href="https://downloads.apache.org/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-src.tar.gz.mds">checksum</a>
+         <a href="https://downloads.apache.org/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-src.tar.gz.asc">signature</a>)
+        </td>
+        <td>
+          <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-bin.tar.gz">binary</a>
+          (<a href="https://downloads.apache.org/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-bin.tar.gz.mds">checksum</a>
+          <a href="https://downloads.apache.org/incubator/ratis/1.0.0/apache-ratis-incubating-1.0.0-bin.tar.gz.asc">signature</a>)
+         </td>
+         <td>
+           <a href="post/1.0.0.html">Announcement</a>
+         </td>
+     </tr>
+  
+     <tr>
+       <td>0.5.0</td>
+       <td>2020 Feb 4 </td>
+       <td>
+         <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-src.tar.gz">source</a>
+         (<a href="https://downloads.apache.org/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-src.tar.gz.mds">checksum</a>
+         <a href="https://downloads.apache.org/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-src.tar.gz.asc">signature</a>)
+        </td>
+        <td>
+          <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-bin.tar.gz">binary</a>
+          (<a href="https://downloads.apache.org/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-bin.tar.gz.mds">checksum</a>
+          <a href="https://downloads.apache.org/incubator/ratis/0.5.0/apache-ratis-incubating-0.5.0-bin.tar.gz.asc">signature</a>)
+         </td>
+         <td>
+           <a href="post/0.5.0.html">Announcement</a>
+         </td>
+     </tr>
+  
+     <tr>
+       <td>0.4.0</td>
+       <td>2019 Sep 12 </td>
+       <td>
+         <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-src.tar.gz">source</a>
+         (<a href="https://downloads.apache.org/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-src.tar.gz.mds">checksum</a>
+         <a href="https://downloads.apache.org/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-src.tar.gz.asc">signature</a>)
+        </td>
+        <td>
+          <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-bin.tar.gz">binary</a>
+          (<a href="https://downloads.apache.org/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-bin.tar.gz.mds">checksum</a>
+          <a href="https://downloads.apache.org/incubator/ratis/0.4.0/apache-ratis-incubating-0.4.0-bin.tar.gz.asc">signature</a>)
+         </td>
+         <td>
+           <a href="post/0.4.0.html">Announcement</a>
+         </td>
+     </tr>
+  
+     <tr>
+       <td>0.3.0</td>
+       <td>2019 Apr 21 </td>
+       <td>
+         <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-src.tar.gz">source</a>
+         (<a href="https://downloads.apache.org/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-src.tar.gz.mds">checksum</a>
+         <a href="https://downloads.apache.org/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-src.tar.gz.asc">signature</a>)
+        </td>
+        <td>
+          <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-bin.tar.gz">binary</a>
+          (<a href="https://downloads.apache.org/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-bin.tar.gz.mds">checksum</a>
+          <a href="https://downloads.apache.org/incubator/ratis/0.3.0/apache-ratis-incubating-0.3.0-bin.tar.gz.asc">signature</a>)
+         </td>
+         <td>
+           <a href="post/0.3.0.html">Announcement</a>
+         </td>
+     </tr>
+  
+     <tr>
+       <td>0.2.0</td>
+       <td>2018 Jul 15 </td>
+       <td>
+         <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-src.tar.gz">source</a>
+         (<a href="https://downloads.apache.org/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-src.tar.gz.mds">checksum</a>
+         <a href="https://downloads.apache.org/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-src.tar.gz.asc">signature</a>)
+        </td>
+        <td>
+          <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-bin.tar.gz">binary</a>
+          (<a href="https://downloads.apache.org/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-bin.tar.gz.mds">checksum</a>
+          <a href="https://downloads.apache.org/incubator/ratis/0.2.0/apache-ratis-incubating-0.2.0-bin.tar.gz.asc">signature</a>)
+         </td>
+         <td>
+           <a href="post/0.2.0.html">Announcement</a>
+         </td>
+     </tr>
+  
+  </table>
+</p>
+
+  <!-- raw HTML omitted -->
+<!-- raw HTML omitted -->
+<h2 id="to-verify-ratis-releases-using-gpg">To verify Ratis releases using GPG:</h2>
+<ol>
+<li>Download the release apache-ratis-incubating-X.Y.Z-src.tar.gz from a <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis">mirror
+site</a>.</li>
+<li>Download the signature file apache-ratis-incubating-X.Y.Z-src.tar.gz.asc from
+<a href="https://dist.apache.org/repos/dist/release/incubator/ratis/">Apache</a>.</li>
+<li>Download the <a href="https://dist.apache.org/repos/dist/release/incubator/ratis/KEYS">Ratis
+KEYS</a>
+file.</li>
+<li>gpg &ndash;import KEYS</li>
+<li>gpg &ndash;verify apache-ratis-incubating-X.Y.Z-src.tar.gz</li>
+</ol>
+<h2 id="to-perform-a-quick-check-using-sha-256">To perform a quick check using SHA-256:</h2>
+<ol>
+<li>Download the release apache-ratis-incubating-X.Y.Z-src.tar.gz from a <a href="https://www.apache.org/dyn/closer.cgi/incubator/ratis">mirror
+site</a>.</li>
+<li>Download the checksum apache-ratis-incubating-X.Y.Z-src.tar.gz.mds from
+<a href="https://dist.apache.org/repos/dist/release/incubator/ratis/">Apache</a>.</li>
+<li>shasum -a 256 apache-ratis-incubating-X.Y.Z-src.tar.gz</li>
+</ol>
+<p>All previous releases of Ratis are available from the <a href="https://archive.apache.org/dist/incubator/ratis/">Apache release
+archive</a> site.</p>
+<p>Ratis is also <a href="https://search.maven.org/search?q=ratis">available</a> from the Maven central repository.</p>
+<h2 id="license">License</h2>
+<p><em>The software licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License 2.0</a></em></p>
+
+</div>
+
+
+{{partial "footer.html" .}}
diff --git a/layouts/index.html b/layouts/index.html
index b1f88fc..806d160 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -12,6 +12,7 @@
  limitations under the License. See accompanying LICENSE file.
 -->
 {{ partial "header.html" . }}
+{{ partial "middle.html" . }}
 <div class="main-section">
     <div class="container">
               <div class="row">
@@ -111,54 +112,6 @@
     </div>
 </div>
 
-<a name="download"></a>
-<div class="main-section">
-    <div class="container">
-        <div class="row header">
-            <h2>Download</h2>
-
-            <p>Apache Ratis is a Java <b>library</b> that can be used directly from your applications.</p>
-
-            <p>It is released as source code tarballs. The downloads are distributed via mirror sites and should be checked
-                for tampering using <a href="https://www.apache.org/info/verification.html">GPG or SHA-256</a></p>
-            <p>
-
-            <p>The source tarball contains detailed instruction about how can it be built.</p>
-
-            <p>The binaries are also uploaded to the maven central for convenience. (See the getting started guide for more details)</p>
-            <p>1.0.0 is GA release for Apache Ratis</p>
-            <table class="table table-striped">
-                <thead>
-                <tr>
-                    <th>Version</th>
-                    <th>Release date</th>
-                    <th>Link</th>
-                    <th>Announcement</th>
-                </tr>
-                </thead>
-                {{range first 5 (where .Site.Pages ".Params.type" "release")}}
-                <tr>
-                    <td>{{.File.BaseFileName }}</td>
-                    <td>{{dateFormat "2006 Jan 2 " .Date}}</td>
-                    <td><a href="https://www.apache.org/dist/incubator/ratis/{{.File.BaseFileName }}/">
-                        https://www.apache.org/dist/incubator/ratis/{{.File.BaseFileName }}/</a>
-                    </td>
-                    <td><a href="post/{{.File.BaseFileName }}.html">Announcement</a></td>
-                </tr>
-                {{end}}
-            </table>
-            </p>
-
-            <p>Release artifacts are signed with one of the keys available at:
-                <a herf="https://www.apache.org/dist/incubator/ratis/KEYS">https://www.apache.org/dist/incubator/ratis/KEYS</a>
-            </p>
-
-            <p>Ratis is also <a href="https://search.maven.org/#search%7Cga%7C1%7Cratis">available</a> from the Maven central repository.</p>
-
-        </div>
-    </div>
-</div>
-
 <a name="gettingstarted"></a>
 <div class="main-section bg-light">
     <div class="container">
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 78daf33..852b16a 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -74,7 +74,7 @@
 
             <div id="ratis-menu" class="collapse navbar-collapse">
                 <ul class="nav navbar-nav navbar-right">
-                    <li><a href="#download">Download</a></li>
+                    <li><a href="downloads.html">Download</a></li>
                     <li><a href="#gettingstarted">Getting started</a></li>
                     <li><a href="#source">Source</a></li>
                     <li><a href="#community">Community</a></li>
@@ -83,21 +83,5 @@
             </div>
 
 
-            <div class="jumbotron">
-                <h1>
-                    Open source Java implementation for Raft consensus protocol.
-                </h1>
-                <p>
-                    <a class="btn btn-default download" role="button" href="#download">Download Apache Ratis</a>
-                </p>
-                <p>
-
-                    <a class="changelog"
-                       href="#gettingstarted">Getting started
-                    </a>
-                </p>
-            </div>
-        </div>
-
     </nav>
 </div>
diff --git a/layouts/_default/single.html b/layouts/partials/middle.html
similarity index 66%
copy from layouts/_default/single.html
copy to layouts/partials/middle.html
index 0059f6f..d9f2c03 100644
--- a/layouts/_default/single.html
+++ b/layouts/partials/middle.html
@@ -11,9 +11,13 @@
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
 -->
-{{partial "header.html" .}}
-<div class="container">
-<h1>{{.Title}}</h1>
-{{.Content}}
+
+<div class="topnav" style="background:#F0F0F0">
+        <div class="container">
+            <div class="jumbotron">
+                <h1 style="color:#000">
+                    Open source Java implementation for Raft consensus protocol.
+                </h1>
+            </div>
+        </div>
 </div>
-{{partial "footer.html" .}}