This is an automated email from the ASF dual-hosted git repository. tison pushed a commit to branch refactor in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks-website.git
commit 23cbf1e607f4a0346c078b2ef3023010b93da2a5 Author: tison <[email protected]> AuthorDate: Fri Dec 16 11:15:10 2022 +0800 rework the Download page Signed-off-by: tison <[email protected]> --- download/index.md | 71 ---------------------------------- download/index.mdx | 21 ++++++++++ download/releases.json | 14 +++++++ src/components/ReleasesTable/index.tsx | 39 +++++++++++++++++++ 4 files changed, 74 insertions(+), 71 deletions(-) diff --git a/download/index.md b/download/index.md deleted file mode 100644 index 53d617c..0000000 --- a/download/index.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: Download ---- -<!-- -{% comment %} -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. -{% endcomment %} ---> -## Apache Kvrocks(incubating) Downloads - -Apache KVrocks(incubating) is released as a source artifact. -We are pleased to announce our 2.1.0 release as below. - - -### Release Candidate -<!--when pass vote, we can change it back to Release Artifacts ---> -<table class="table table-hover sortable"> - <thead> - <tr> - <th><b>Name</b></th> - <th><b>Archive</b></th> - <th><b>SHA-512</b></th> - <th><b>Signature</b></th> - </tr> - </thead> - <tbody> - <tr> - <td>Apache Kvrocks(incubating) 2.2.0 (tar.gz)</td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz">tar.gz</a></td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz.sha512">SHA-512</a></td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz.asc">ASC</a></td> - </tr> - <tr> - <td>Apache Kvrocks(incubating) 2.1.0 (tar.gz)</td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz">tar.gz</a></td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz.sha512">SHA-512</a></td> - <td><a href="https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz.asc">ASC</a></td> - </tr> - </tbody> -</table> - -Choose a source distribution in either *tar* or *zip* format, -and [verify](https://www.apache.org/dyn/closer.cgi#verify) -using the corresponding *pgp* signature (using the committer file in -[KEYS](https://downloads.apache.org/incubator/kvrocks/KEYS)). -If you cannot do that, the *md5* hash file may be used to check that the -download has completed OK. - -For fast downloads, current source distributions are hosted on mirror servers; -older source distributions are in the -[archive](https://archive.apache.org/dist/incubator/kvrocks/). -If a download from a mirror fails, retry, and the second download will likely -succeed. - -For security, hash and signature files are always hosted at -[Apache](https://www.apache.org). - diff --git a/download/index.mdx b/download/index.mdx new file mode 100644 index 0000000..d6d640b --- /dev/null +++ b/download/index.mdx @@ -0,0 +1,21 @@ +--- +title: Download +--- + +## Apache Kvrocks(incubating) Downloads + +Apache Kvrocks(incubating) is released as a source artifact. We are pleased to announce our release as below. + +### Releases + +````mdx-code-block +import ReleasesTable from "../src/components/ReleasesTable"; +import releases from "./releases.json"; + +<ReleasesTable data={releases}/> +```` + +Choose a source distribution in the *tar* format, and [verify](https://www.apache.org/dyn/closer.cgi#verify) using the corresponding *pgp* signature (using the committer file in [KEYS](https://downloads.apache.org/incubator/kvrocks/KEYS)). If you cannot do that, the *sha512* hash file may be used to check that the download has completed OK. + +For fast downloads, current source distributions are hosted on mirror servers; older source distributions are in the +[archive](https://archive.apache.org/dist/incubator/kvrocks/). If a download from a mirror fails, retry, and the second download will likely succeed. diff --git a/download/releases.json b/download/releases.json new file mode 100644 index 0000000..5061ffd --- /dev/null +++ b/download/releases.json @@ -0,0 +1,14 @@ +[ + { + "name": "2.2.0-incubating", + "archive": "https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz", + "checksum": "https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz.sha512", + "signature": "https://downloads.apache.org/incubator/kvrocks/2.2.0/apache-kvrocks-2.2.0-incubating-src.tar.gz.asc" + }, + { + "name": "2.1.0-incubating", + "archive": "https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz", + "checksum": "https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz.sha512", + "signature": "https://downloads.apache.org/incubator/kvrocks/2.1.0/apache-kvrocks-2.1.0-incubating-src.tar.gz.asc" + } +] \ No newline at end of file diff --git a/src/components/ReleasesTable/index.tsx b/src/components/ReleasesTable/index.tsx new file mode 100644 index 0000000..68bbf56 --- /dev/null +++ b/src/components/ReleasesTable/index.tsx @@ -0,0 +1,39 @@ +import React from "react"; + +type ReleaseData = { + name: string, + archive: string, + checksum: string, + signature: string, +} + +type ReleasesProps = { + data: ReleaseData[], +} + +export default function ReleasesTable({data}: ReleasesProps): JSX.Element { + return <> + <table className="table table-hover sortable"> + <thead> + <tr> + <th><b>Name</b></th> + <th><b>Archive</b></th> + <th><b>Checksum</b></th> + <th><b>Signature</b></th> + </tr> + </thead> + <tbody> + {data.map(v => ( + <> + <tr> + <td>{v.name}</td> + <td><a href={v.archive}>tarball</a></td> + <td><a href={v.checksum}>sha512</a></td> + <td><a href={v.signature}>asc</a></td> + </tr> + </> + ))} + </tbody> + </table> + </> +} \ No newline at end of file
