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 14:09:45 UTC

[kvrocks-website] 01/01: chore: after graduation

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

tison pushed a commit to branch after-graduate
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git

commit 5577958c15c1318ebc127c7f39b7b94cfd5046cf
Author: tison <wa...@gmail.com>
AuthorDate: Thu Jun 22 22:09:32 2023 +0800

    chore: after graduation
    
    Signed-off-by: tison <wa...@gmail.com>
---
 README.md                         |  6 +++---
 blog/authors.yml                  |  2 +-
 community/security.md             |  2 +-
 src/components/Releases/index.tsx | 34 +++++++++++++++++++++-------------
 src/pages/index.tsx               |  1 -
 5 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/README.md b/README.md
index e247a4c..3cb1023 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# Apache Kvrocks (Incubating) Official Website
+# Apache Kvrocks Official Website
 
-This project keeps all sources used for building the Apache Kvrocks (Incubating) official website, which is served at https://kvrocks.apache.org/.
+This project keeps all sources used for building the Apache Kvrocks official website, which is served at https://kvrocks.apache.org/.
 
 ## Prerequisite
 
-The Apache Kvrocks (Incubating) website is powered by [Docusaurus 2](https://docusaurus.io/) and is built with Node 19 and Yarn 3. Check the [deploy workflow](.github/workflows/deploy.yml) for concrete requirements and instructions.
+The Apache Kvrocks website is powered by [Docusaurus 2](https://docusaurus.io/) and is built with Node 19 and Yarn 3. Check the [deploy workflow](.github/workflows/deploy.yml) for concrete requirements and instructions.
 
 ## Installation
 
diff --git a/blog/authors.yml b/blog/authors.yml
index 6a6c0c4..23a61dd 100644
--- a/blog/authors.yml
+++ b/blog/authors.yml
@@ -1,6 +1,6 @@
 hulk:
   name: Hulk Lin
-  title: Apache Kvrocks (Incubating) Founders
+  title: Apache Kvrocks Founders
   url: https://github.com/git-hulk
   image_url: https://github.com/git-hulk.png
 
diff --git a/community/security.md b/community/security.md
index 7a01cdd..efa44e4 100644
--- a/community/security.md
+++ b/community/security.md
@@ -3,7 +3,7 @@ id: security
 title: Security
 ---
 
-The Apache Software Foundation takes a rigorous stance on eliminating security issues in its software projects. Likewise, Apache Kvrocks (incubating) is also vigilant and takes security issues related to its features and functionality into the highest consideration.
+The Apache Software Foundation takes a rigorous stance on eliminating security issues in its software projects. Likewise, Apache Kvrocks is also vigilant and takes security issues related to its features and functionality into the highest consideration.
 
 If you have any concerns regarding Kvrocks's security, or you discover a vulnerability or potential threat, please do not hesitate to get in touch with the [Apache Security Team](https://www.apache.org/security/) by dropping an email at [security@apache.org](mailto:security@apache.org).
 
diff --git a/src/components/Releases/index.tsx b/src/components/Releases/index.tsx
index 966c5a0..bae38aa 100644
--- a/src/components/Releases/index.tsx
+++ b/src/components/Releases/index.tsx
@@ -1,10 +1,22 @@
 import React from "react";
 
 const versions = [
-    '2.4.0',
-    '2.3.0',
-    '2.2.0',
-    '2.1.0',
+    {
+        version: '2.4.0',
+        vtag: '2.4.0-incubating'
+    },
+    {
+        version: '2.3.0',
+        vtag: '2.3.0-incubating'
+    },
+    {
+        version: '2.2.0',
+        vtag: '2.2.0-incubating'
+    },
+    {
+        version: '2.1.0',
+        vtag: '2.1.0-incubating'
+    },
 ]
 
 type ReleaseData = {
@@ -14,15 +26,11 @@ type ReleaseData = {
     signature: string,
 }
 
-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`
+function createReleaseData(version: string, vtag?: string): ReleaseData {
+    const fixedVTag = vtag ?? version;
+    const archive = `https://downloads.apache.org/kvrocks/${version}/apache-kvrocks-${fixedVTag}-src.tar.gz`
     return {
-        name: vtag,
+        name: fixedVTag,
         archive: archive,
         checksum: `${archive}.sha512`,
         signature: `${archive}.asc`,
@@ -30,7 +38,7 @@ function createReleaseData(index: number, version: string): ReleaseData {
 }
 
 export default function Releases(): JSX.Element {
-    const releases = versions.map((version, index) => createReleaseData(versions.length-index-1, version))
+    const releases = versions.map(({ version, vtag }) => createReleaseData(version, vtag))
     return <>
         <table>
             <thead>
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 23ecb3c..100aded 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -13,7 +13,6 @@ function HomepageHeader() {
         <div className={clsx(styles.container)}>
           <div className={clsx(styles.titles)}>
             <h1 className="hero__title" style={{color:'black'}}>{siteConfig.title}</h1>
-            <h2 className='hero__secondary__title' style={{color:'rgba(40, 117, 243, 1)'}}>(incubating)</h2>
             <div className={clsx('hero__subtitle',styles.tagline)}>{siteConfig.tagline}</div>
           </div>
           <div className={clsx(styles.image)}>