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

[pulsar-site] branch bewaremypower/cpp-3.0.0-download created (now 9f1c705599e)

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

xyz pushed a change to branch bewaremypower/cpp-3.0.0-download
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


      at 9f1c705599e Add C++ 3.x releases into download page

This branch includes the following new commits:

     new 9f1c705599e Add C++ 3.x releases into download page

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[pulsar-site] 01/01: Add C++ 3.x releases into download page

Posted by xy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xyz pushed a commit to branch bewaremypower/cpp-3.0.0-download
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 9f1c705599e2e94219dd2ea972c0e349504f56e1
Author: Yunze Xu <xy...@163.com>
AuthorDate: Wed Nov 23 13:07:53 2022 +0800

    Add C++ 3.x releases into download page
---
 site2/website-next/pulsar-cpp/releases.json |  3 +++
 site2/website-next/src/pages/download.js    | 27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/site2/website-next/pulsar-cpp/releases.json b/site2/website-next/pulsar-cpp/releases.json
new file mode 100644
index 00000000000..5a33204f297
--- /dev/null
+++ b/site2/website-next/pulsar-cpp/releases.json
@@ -0,0 +1,3 @@
+[
+  "3.0.0"
+]
diff --git a/site2/website-next/src/pages/download.js b/site2/website-next/src/pages/download.js
index a39637be74c..87919b44352 100644
--- a/site2/website-next/src/pages/download.js
+++ b/site2/website-next/src/pages/download.js
@@ -11,6 +11,7 @@ const releases = require(`../../releases.json`);
 const legacyVersions = require(`../../legacy-versions.json`);
 const pulsarManagerReleases = require(`../../pulsar-manager/pulsar-manager-release.json`);
 const pulsarAdaptersReleases = require(`../../pulsar-manager/pulsar-adapters-release.json`);
+const pulsarCppReleases = require(`../../pulsar-cpp/releases.json`)
 const connectors = require(`../../data/connectors.js`);
 
 function getLatestArchiveMirrorUrl(version, type) {
@@ -45,6 +46,10 @@ function archiveUrl(version, type) {
   }
 }
 
+function pulsarCppUrl(version) {
+  return `https://archive.apache.org/dist/pulsar/pulsar-client-cpp-${version}/`;
+}
+
 function pularManagerArchiveUrl(version, type) {
   return `https://archive.apache.org/dist/pulsar/pulsar-manager/pulsar-manager-${version}/apache-pulsar-manager-${version}-${type}.tar.gz`;
 }
@@ -105,6 +110,18 @@ export default function page(props) {
     };
   });
 
+  const pulsarCppReleaseInfo = pulsarCppReleases.map((version) => {
+    const url = pulsarCppUrl(version);
+    const tarPath = `${url}/apache-pulsar-client-cpp-${version}.tar.gz`;
+    return {
+      release: version,
+      link: pulsarCppUrl(version),
+      linkText: `apache-pulsar-cpp-${version}`,
+      asc: `${tarPath}.asc`,
+      sha512: `${tarPath}.sha512`
+    };
+  });
+
   const pulsarManagerReleaseInfo = pulsarManagerReleases.map((version) => {
     return {
       version: version,
@@ -327,6 +344,16 @@ export default function page(props) {
             <Translate>Older releases</Translate>
           </h2>
           <OldReleaseTable data={oldReleases}></OldReleaseTable>
+          <header className="postHeader mt-12">
+            <h1>
+              <Translate>Pulsar C++ Client</Translate>
+            </h1>
+            <div>
+              <p>The Link column contains C++ packages for different systems and architectures.</p>
+            </div>
+            <hr />
+          </header>
+          <ReleaseTable data={pulsarCppReleaseInfo}></ReleaseTable>
           <header className="postHeader mt-12">
             <h1>
               <Translate>Pulsar Adapters</Translate>