You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/03/19 09:09:11 UTC

[incubator-seatunnel-website] branch main updated: [Docs]: Update version. (#82)

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

kirs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ca4b2c  [Docs]: Update version. (#82)
2ca4b2c is described below

commit 2ca4b2c65b0ac43902b512ab37142c16380e7604
Author: songjianet <17...@qq.com>
AuthorDate: Sat Mar 19 17:09:08 2022 +0800

    [Docs]: Update version. (#82)
    
    * [Docs]: Update version.
    
    * [Docs] Update version
---
 src/pages/download/data.json  | 17 ++++++++++++-----
 src/pages/download/index.jsx  | 24 ++++++++++++++++--------
 src/pages/download/index.less |  8 ++++++++
 3 files changed, 36 insertions(+), 13 deletions(-)

diff --git a/src/pages/download/data.json b/src/pages/download/data.json
index 0a6ad1a..3efeb7e 100644
--- a/src/pages/download/data.json
+++ b/src/pages/download/data.json
@@ -1,9 +1,16 @@
 [
 	{
-		"date": "2021-12-28",
-		"version": "v1.5.7",
-		"download": "https://github.com/apache/incubator-seatunnel/releases/download/v1.5.7/seatunnel-1.5.7.zip",
-		"sourceCodeZip": "https://github.com/apache/incubator-seatunnel/archive/refs/tags/v1.5.7.zip",
-		"sourceCodeGz": "https://github.com/apache/incubator-seatunnel/archive/refs/tags/v1.5.7.tar.gz"
+		"date": "2022-03-18",
+		"version": "v2.1.0",
+		"sourceCode": {
+			"src": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-src.tar.gz",
+			"asc": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-src.tar.gz.asc",
+			"sha512": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-src.tar.gz.sha512"
+		},
+		"binaryDistribution": {
+			"bin": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-bin.tar.gz",
+			"asc": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-bin.tar.gz.asc",
+			"sha512": "https://www.apache.org/dyn/closer.lua/incubator/seatunnel/2.1.0/apache-seatunnel-incubating-2.1.0-bin.tar.gz.sha512"
+		}
 	}
 ]
diff --git a/src/pages/download/index.jsx b/src/pages/download/index.jsx
index 3f670e3..c99893e 100644
--- a/src/pages/download/index.jsx
+++ b/src/pages/download/index.jsx
@@ -3,6 +3,12 @@ import './index.less';
 import Layout from '@theme/Layout';
 import data from './data.json'
 
+const getLastPath = path => {
+	if (!path) { return '' }
+
+	return path.substring(path.lastIndexOf('/') + 1)
+}
+
 export default function () {
 	return (
 		<Layout>
@@ -17,9 +23,8 @@ export default function () {
 						<tr>
 							<th>Date</th>
 							<th>Version</th>
-							<th>Download</th>
-							<th>Source Code(zip)</th>
-							<th>Source Code(tar.gz)</th>
+							<th>Binary Distribution</th>
+							<th>Source Code</th>
 						</tr>
 						</thead>
 						<tbody>
@@ -30,13 +35,16 @@ export default function () {
 										<td>{item.date}</td>
 										<td>{item.version}</td>
 										<td>
-											<a href={item.download}>Incubator-SeaTunnel-{item.version}.zip</a>
-										</td>
-										<td>
-											<a href={item.sourceCodeZip}>Incubator-SeaTunnel-{item.version}.zip</a>
+											<a href={item.sourceCode.src}>[src] {getLastPath(item.sourceCode.src)}</a>
+											<a href={item.sourceCode.asc}>[asc] {getLastPath(item.sourceCode.asc)}</a>
+											<hr />
+											<a href={item.sourceCode.sha512}>[sha512] {getLastPath(item.sourceCode.sha512)}</a>
 										</td>
 										<td>
-											<a href={item.sourceCodeGz}>Incubator-SeaTunnel-{item.version}.tar.gz</a>
+											<a href={item.binaryDistribution.bin}>[bin] {getLastPath(item.binaryDistribution.bin)}</a>
+											<a href={item.binaryDistribution.asc}>[asc] {getLastPath(item.binaryDistribution.asc)}</a>
+											<hr />
+											<a href={item.binaryDistribution.sha512}>[sha512] {getLastPath(item.binaryDistribution.sha512)}</a>
 										</td>
 									</tr>
 								)
diff --git a/src/pages/download/index.less b/src/pages/download/index.less
index 35418d1..68c07a3 100644
--- a/src/pages/download/index.less
+++ b/src/pages/download/index.less
@@ -10,5 +10,13 @@
 
   .version-table {
     width: 100%;
+
+    a {
+      display: block;
+    }
+
+    hr {
+      margin: 10px 0;
+    }
   }
 }