You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2021/01/27 14:23:08 UTC

[GitHub] [incubator-ratis] szetszwo commented on a change in pull request #405: RATIS-1285. Fix download link point to mirror links instead of download area directly

szetszwo commented on a change in pull request #405:
URL: https://github.com/apache/incubator-ratis/pull/405#discussion_r565346498



##########
File path: layouts/partials/middle.html
##########
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+ 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.
+-->
+<html>
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="Open source Java implementation for RAFT consensus protocol.">
+    <meta name="keywords" content="raft, java, ratis, library"/>
+    <meta name="robots" content="index,follow"/>
+    <meta name="language" content="en"/>
+
+    <title>Apache Ratis</title>
+
+    <base href="{{.Site.BaseURL}}">
+
+    <link rel="canonical" href="http://ratis.incubator.apache.org/">
+
+    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
+          integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
+    <link rel="stylesheet" href="style.css">
+
+</head>
+
+<body>
+<!-- breadcrumbs -->

Review comment:
       This is a partial html file so that it does not need header; see layouts/partials/footer.html as an example.
   

##########
File path: layouts/custompage/downloads.html
##########
@@ -0,0 +1,200 @@
+
+<!DOCTYPE html>
+
+<html>
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="Object store for Hadoop">
+    <meta name="keywords" content="hadoop, ozone, hdds, objectstore, scale"/>
+    <meta name="robots" content="index,follow"/>
+    <meta name="language" content="en"/>
+
+    <title>Apache Ratis</title>
+
+    <base href="/">
+
+    <link rel="canonical" href="https://hadoop.apache.org/ozone">
+
+    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
+          integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
+    <link rel="stylesheet" href="style.css">
+
+</head>
+
+<body>
+
+{{partial "header.html" .}}

Review comment:
       html header is already included in {{ partial "header.html" . }}.  We should add license header as below; see also layouts/index.html 
   
   ```
   <!--
    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" . }}
   ```
   
   

##########
File path: layouts/custompage/downloads.html
##########
@@ -0,0 +1,200 @@
+
+<!DOCTYPE html>
+
+<html>
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="Object store for Hadoop">
+    <meta name="keywords" content="hadoop, ozone, hdds, objectstore, scale"/>
+    <meta name="robots" content="index,follow"/>
+    <meta name="language" content="en"/>
+
+    <title>Apache Ratis</title>
+
+    <base href="/">
+
+    <link rel="canonical" href="https://hadoop.apache.org/ozone">
+
+    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
+          integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
+    <link rel="stylesheet" href="style.css">
+
+</head>
+
+<body>
+
+{{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>
+
+<footer>
+    <div class="container">
+
+        <div class="col-md-12 trademark">
+            <p>&copy; 2018 <a href="http://apache.org">The Apache Software Foundation</a>,<br/>
+                Apache, the Apache feather logo, are trademarks of The Apache Software Foundation.
+            <p>
+        </div>
+    </div>
+</footer>

Review comment:
       It should use layouts/partials/footer.html




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org