You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by ti...@apache.org on 2023/06/22 13:58:15 UTC
[kvrocks-website] branch main updated: Fix the download links after graduation (#113)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git
The following commit(s) were added to refs/heads/main by this push:
new e04148f Fix the download links after graduation (#113)
e04148f is described below
commit e04148fa47788461a44d8e9f43c80073c8a9c16d
Author: hulk <hu...@gmail.com>
AuthorDate: Thu Jun 22 21:58:09 2023 +0800
Fix the download links after graduation (#113)
---
download/index.mdx | 8 ++++----
src/components/Releases/index.tsx | 12 ++++++++----
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/download/index.mdx b/download/index.mdx
index 1d11316..c7342bf 100644
--- a/download/index.mdx
+++ b/download/index.mdx
@@ -2,9 +2,9 @@
title: Download
---
-## Apache Kvrocks(incubating) Downloads
+## Apache Kvrocks Downloads
-Apache Kvrocks(incubating) is released as a source artifact. We are pleased to announce our release as below.
+Apache Kvrocks is released as a source artifact. We are pleased to announce our release as below.
### Releases
@@ -14,7 +14,7 @@ import Releases from "../src/components/Releases";
<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.
+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/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.
+[archive](https://archive.apache.org/dist/kvrocks/). If a download from a mirror fails, retry, and the second download will likely succeed.
diff --git a/src/components/Releases/index.tsx b/src/components/Releases/index.tsx
index 8f79b95..966c5a0 100644
--- a/src/components/Releases/index.tsx
+++ b/src/components/Releases/index.tsx
@@ -14,9 +14,13 @@ type ReleaseData = {
signature: string,
}
-function createReleaseData(version: string): ReleaseData {
- const vtag = `${version}-incubating`
- const archive = `https://downloads.apache.org/incubator/kvrocks/${version}/apache-kvrocks-${vtag}-src.tar.gz`
+function createReleaseData(index: number, version: string): ReleaseData {
+ var vtag = `${version}-incubating`
+ // Drop the incubating suffix for releases after graduation
+ if (index >= 4) {
+ vtag = `${version}`
+ }
+ const archive = `https://downloads.apache.org/kvrocks/${version}/apache-kvrocks-${vtag}-src.tar.gz`
return {
name: vtag,
archive: archive,
@@ -26,7 +30,7 @@ function createReleaseData(version: string): ReleaseData {
}
export default function Releases(): JSX.Element {
- const releases = versions.map(version => createReleaseData(version))
+ const releases = versions.map((version, index) => createReleaseData(versions.length-index-1, version))
return <>
<table>
<thead>