This is an automated email from the ASF dual-hosted git repository. urfree pushed a commit to branch reference-version-jump in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit f9000d0787a2743c3a6d9ccbd1c6979f06721ccf Author: Li Li <[email protected]> AuthorDate: Mon Mar 6 16:27:03 2023 +0800 feat: reference jump with version Signed-off-by: Li Li <[email protected]> --- docs/reference-cli-tools.md | 2 +- scripts/replace.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference-cli-tools.md b/docs/reference-cli-tools.md index 3c592b19563..b7e3c40711e 100644 --- a/docs/reference-cli-tools.md +++ b/docs/reference-cli-tools.md @@ -16,7 +16,7 @@ Pulsar offers several command-line tools that you can use for managing Pulsar in :::tip -For the latest and complete information about command-line tools, including commands, flags, descriptions, and more information, see [Pulsar Reference](https://pulsar.apache.org/reference). +For the latest and complete information about command-line tools, including commands, flags, descriptions, and more information, see [Pulsar Reference](https://pulsar.apache.org/reference/#/@pulsar:version_origin@/). ::: 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}`),
