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

urfree 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 1d0b37f3f57 feat: reference page jump with version (#456)
1d0b37f3f57 is described below

commit 1d0b37f3f57b741b81c200ab1d2e80cb521b5df7
Author: Li Li <[email protected]>
AuthorDate: Tue Mar 7 11:44:54 2023 +0800

    feat: reference page jump with version (#456)
---
 scripts/replace.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/replace.js b/scripts/replace.js
index 4e9a1f89ff2..857a51bee5a 100644
--- a/scripts/replace.js
+++ b/scripts/replace.js
@@ -164,6 +164,7 @@ const latestVersion = getRealVersion(latestMajorRelease);
 const from = [
   /@pulsar:version_number@/g,
   /@pulsar:version@/g,
+  /@pulsar:version_origin@/g,
   /pulsar:binary_release_url/g,
   /pulsar:connector_release_url/g,
   /pulsar:offloader_release_url/g,
@@ -198,6 +199,7 @@ const options = {
   files: [`${nextDocsDir}/*.md`, `${nextDocsDir}/**/*.md`],
   from: from,
   to: [
+    `${latestVersion}`,
     `${latestVersion}`,
     `${latestVersion}`,
     binaryReleaseUrl(`${latestVersion}`),
@@ -247,6 +249,7 @@ for (let _v of versions) {
     to: [
       `${vWithoutIncubating}`,
       `${v}`,
+      `${_v}`,
       binaryReleaseUrl(`${v}`),
       connectorReleaseUrl(`${v}`),
       offloaderReleaseUrl(`${v}`),

Reply via email to