You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/08/05 01:48:53 UTC

[pulsar-site] 01/01: update versions page and upgrade docusaurus to 2.0.1

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

urfree pushed a commit to branch update-versions-page
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit b69cc65a8b3a533d4e8101db991469894724bc1f
Author: Li Li <ur...@apache.org>
AuthorDate: Fri Aug 5 09:48:40 2022 +0800

    update versions page and upgrade docusaurus to 2.0.1
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/website-next/package.json                    |  8 +++----
 site2/website-next/src/components/VersionsTable.js | 27 ----------------------
 site2/website-next/src/pages/versions.js           |  3 +++
 3 files changed, 7 insertions(+), 31 deletions(-)

diff --git a/site2/website-next/package.json b/site2/website-next/package.json
index f90380d7fdb..d2efc2671d9 100644
--- a/site2/website-next/package.json
+++ b/site2/website-next/package.json
@@ -22,10 +22,10 @@
   },
   "dependencies": {
     "@crowdin/cli": "3.7.4",
-    "@docusaurus/core": "2.0.0-beta.21",
-    "@docusaurus/plugin-client-redirects": "2.0.0-beta.21",
-    "@docusaurus/plugin-google-analytics": "2.0.0-beta.21",
-    "@docusaurus/preset-classic": "2.0.0-beta.21",
+    "@docusaurus/core": "2.0.1",
+    "@docusaurus/plugin-client-redirects": "2.0.1",
+    "@docusaurus/plugin-google-analytics": "2.0.1",
+    "@docusaurus/preset-classic": "2.0.1",
     "@emotion/react": "^11.7.1",
     "@emotion/styled": "^11.6.0",
     "@mdx-js/react": "^1.6.22",
diff --git a/site2/website-next/src/components/VersionsTable.js b/site2/website-next/src/components/VersionsTable.js
index fbbe97a3819..b088231f551 100644
--- a/site2/website-next/src/components/VersionsTable.js
+++ b/site2/website-next/src/components/VersionsTable.js
@@ -55,33 +55,6 @@ export default function VersionsTable(props) {
                 <Translate>Documentation</Translate>
               </Link>
             </TableCell>
-            <TableCell
-              className="border-gray-300"
-              sx={{ border: 1 }}
-              align="center"
-            >
-              <Link
-                className="text-primary"
-                href={
-                  row.name == "next"
-                    ? repoUrl
-                    : !legacyVersions.includes(row.name.replace("v", ""))
-                    ? `${siteConfig.baseUrl}release-notes/versioned/pulsar-${row.name}`
-                    : `${siteConfig.baseUrl}release-notes/legacy/#${row.name
-                        .replace(/\./g, "")
-                        .replace("v", "")}`
-                }
-                underline="none"
-              >
-                {row.name == "next"
-                  ? translate({
-                      message: "Source Code",
-                    })
-                  : translate({
-                      message: "Release Notes",
-                    })}
-              </Link>
-            </TableCell>
           </TableRow>
         ))}
       </TableBody>
diff --git a/site2/website-next/src/pages/versions.js b/site2/website-next/src/pages/versions.js
index 606ddfc682c..2d14dc3378c 100644
--- a/site2/website-next/src/pages/versions.js
+++ b/site2/website-next/src/pages/versions.js
@@ -23,6 +23,9 @@ export default function DenseTable() {
             data={[{ name: latestStableVersion }]}
             type="stable"
           ></VersionsTable>
+          <p className="mt-8 mb-4">
+            For release notes of all versions, go to the <a href="/release-notes"> Release Notes</a> page.
+          </p>
           <h3 className="mt-8 mb-4" id="latest">
             <Translate> Latest Version</Translate>
           </h3>