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

cbornet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new ac7876b5600 Add Pulsar Adapters 2.11.0 release (#463)
ac7876b5600 is described below

commit ac7876b56004776a44e215960a97575cb7b4b183
Author: Christophe Bornet <cbor...@hotmail.com>
AuthorDate: Thu Mar 9 09:25:52 2023 -0400

    Add Pulsar Adapters 2.11.0 release (#463)
---
 data/release-pulsar-adapters.js |  1 +
 src/components/downloads.tsx    | 30 +++++++++++++++++++++++++++---
 src/pages/download.mdx          | 15 ++++++++++-----
 3 files changed, 38 insertions(+), 8 deletions(-)

diff --git a/data/release-pulsar-adapters.js b/data/release-pulsar-adapters.js
index e92cb8a740f..b2616394b4b 100644
--- a/data/release-pulsar-adapters.js
+++ b/data/release-pulsar-adapters.js
@@ -1,3 +1,4 @@
 module.exports = [
+  "2.11.0",
   "2.8.0"
 ]
diff --git a/src/components/downloads.tsx b/src/components/downloads.tsx
index 5054ab0343c..d688805897c 100644
--- a/src/components/downloads.tsx
+++ b/src/components/downloads.tsx
@@ -17,7 +17,7 @@ export function CurrentPulsarManagerVersion(): JSX.Element {
     return <>{pulsarManagerReleases[0]}</>
 }
 
-export function CurrentPulsarAdapterVersion(): JSX.Element {
+export function CurrentPulsarAdaptersVersion(): JSX.Element {
     return <>{pulsarAdaptersReleases[0]}</>
 }
 
@@ -192,11 +192,11 @@ export function CppReleasesDownloadTable(): JSX.Element {
     </div>
 }
 
-export function CurrentPulsarAdapterDownloadTable(): JSX.Element {
+export function CurrentPulsarAdaptersDownloadTable(): JSX.Element {
     const latestPulsarAdaptersVersion = pulsarAdaptersReleases[0]
     const data = [
         {
-            release: "Source",
+            release: latestPulsarAdaptersVersion,
             link: getLatestAdaptersMirrorUrl(latestPulsarAdaptersVersion),
             linkText: 
`apache-pulsar-adapters-${latestPulsarAdaptersVersion}-src.tar.gz`,
             asc: `${distAdaptersUrl(latestPulsarAdaptersVersion)}.asc`,
@@ -208,6 +208,30 @@ export function CurrentPulsarAdapterDownloadTable(): 
JSX.Element {
     </div>
 }
 
+export function ArchivedPulsarAdaptersDownloadTable(): JSX.Element {
+    const { siteConfig } = useDocusaurusContext()
+    const latestPulsarAdaptersVersion = pulsarAdaptersReleases[0]
+    const pulsarAdaptersReleaseInfo = pulsarAdaptersReleases.map((version) => 
({
+        version: version,
+        srcArchiveUrl: distAdaptersUrl(version),
+    }))
+    const data = pulsarAdaptersReleaseInfo
+        .filter((info) => info.version !== latestPulsarAdaptersVersion)
+        .map((info) => {
+            const sha = "sha512";
+            return {
+                release: info.version,
+                link: info.srcArchiveUrl,
+                linkText: `apache-pulsar-adapters-${info.version}-src.tar.gz`,
+                asc: `${info.srcArchiveUrl}.asc`,
+                sha512: `${info.srcArchiveUrl}.${sha}`,
+            };
+        })
+    return <div className="tailwind">
+        <ReleaseTable data={data}></ReleaseTable>
+    </div>
+}
+
 export function CurrentPulsarManagerDownloadTable(): JSX.Element {
     const latestPulsarManagerVersion = pulsarManagerReleases[0]
     const latestPulsarManagerArchiveMirrorUrl = 
getLatestPulsarManagerArchiveMirrorUrl(latestPulsarManagerVersion, "bin")
diff --git a/src/pages/download.mdx b/src/pages/download.mdx
index 78a6c0f9548..428db1b6e60 100644
--- a/src/pages/download.mdx
+++ b/src/pages/download.mdx
@@ -8,14 +8,15 @@ hide_table_of_contents: true
 import {
     CurrentPulsarVersion,
     CurrentPulsarManagerVersion,
-    CurrentPulsarAdapterVersion,
+    CurrentPulsarAdaptersVersion,
     CurrentPulsarDownloadTable,
     CurrentPulsarOffloadersDownloadTable,
     CurrentPulsarConnectorsDownloadTable,
     CurrentPulsarShellDownloadTable,
     ArchivedPulsarDownloadTable,
     CppReleasesDownloadTable,
-    CurrentPulsarAdapterDownloadTable,
+    CurrentPulsarAdaptersDownloadTable,
+    ArchivedPulsarAdaptersDownloadTable,
     CurrentPulsarManagerDownloadTable,
     ArchivedPulsarManagerDownloadTable,
 } from '../components/downloads';
@@ -76,10 +77,14 @@ You must 
[verify](https://www.apache.org/info/verification.html) the integrity o
 
 <ArchivedPulsarManagerDownloadTable/>
 
-# Pulsar Adapter
+# Pulsar Adapters
 
-## Current version <CurrentPulsarAdapterVersion/>
+## Current version <CurrentPulsarAdaptersVersion/>
 
 Pulsar Adapters are available on Maven Central, there is no binary package.
 
-<CurrentPulsarAdapterDownloadTable/>
+<CurrentPulsarAdaptersDownloadTable/>
+
+## Older releases
+
+<ArchivedPulsarAdaptersDownloadTable/>

Reply via email to