You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2022/11/16 03:46:56 UTC
[pulsar-site] branch main updated: Workaround Docusaurus links issue (#293)
This is an automated email from the ASF dual-hosted git repository.
tison 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 f166e115798 Workaround Docusaurus links issue (#293)
f166e115798 is described below
commit f166e115798d5a124edeb57cff8b543f4547a14c
Author: tison <wa...@gmail.com>
AuthorDate: Wed Nov 16 11:46:51 2022 +0800
Workaround Docusaurus links issue (#293)
Signed-off-by: tison <wa...@gmail.com>
---
site2/website-next/docs/client-libraries.md | 16 ++++++++--------
site2/website-next/scripts/replace.js | 3 ---
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/site2/website-next/docs/client-libraries.md b/site2/website-next/docs/client-libraries.md
index 0a31b9d1ee5..a6927253c86 100644
--- a/site2/website-next/docs/client-libraries.md
+++ b/site2/website-next/docs/client-libraries.md
@@ -6,14 +6,14 @@ sidebar_label: "Overview"
Pulsar supports the following language-specific client libraries:
-| Language | Documentation | Release note | Code repo |
-| --------- |------------------------------------------------------------------------| --------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
-| Java | [User doc](client-libraries-java.md) <br/> [API doc](/api/client/) | [Bundled](/release-notes/) | [Bundled](https://github.com/apache/pulsar/tree/master/pulsar-client) |
-| C++ | [User doc](client-libraries-cpp.md) <br/> [API doc](/api/cpp/3.0.0) | [Bundled](/release-notes/) | [Standalone](https://github.com/apache/pulsar/pulsar-client-cpp) |
-| Python | [User doc](client-libraries-python.md) <br/> [API doc](@pulsar:apidoc:python@) | [Bundled](/release-notes/) | [Standalone](https://github.com/apache/pulsar-client-python) |
-| Go client | [User doc](client-libraries-go.md) | [Standalone](https://github.com/apache/pulsar-client-go/releases) | [Standalone](https://github.com/apache/pulsar-client-go) |
-| Node.js | [User doc](client-libraries-node.md) | [Standalone](https://github.com/apache/pulsar-client-node/releases) | [Standalone](https://github.com/apache/pulsar-client-node) |
-| C# | [User doc](client-libraries-dotnet.md) | [Standalone](https://github.com/apache/pulsar-dotpulsar/blob/master/CHANGELOG.md) | [Standalone](https://github.com/apache/pulsar-dotpulsar) |
+| Language | Documentation | Release note | Code repo |
+| --------- |-----------------------------------------------------------------------------------| --------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
+| Java | [User doc](client-libraries-java.md) <br/> [API doc](/api/client/) | [Bundled](/release-notes/) | [Bundled](https://github.com/apache/pulsar/tree/master/pulsar-client) |
+| C++ | [User doc](client-libraries-cpp.md) <br/> [API doc](pathname:///api/cpp/3.0.0) | [Bundled](/release-notes/) | [Standalone](https://github.com/apache/pulsar/pulsar-client-cpp) |
+| Python | [User doc](client-libraries-python.md) <br/> [API doc](@pulsar:apidoc:python@) | [Bundled](/release-notes/) | [Standalone](https://github.com/apache/pulsar-client-python) |
+| Go client | [User doc](client-libraries-go.md) | [Standalone](https://github.com/apache/pulsar-client-go/releases) | [Standalone](https://github.com/apache/pulsar-client-go) |
+| Node.js | [User doc](client-libraries-node.md) | [Standalone](https://github.com/apache/pulsar-client-node/releases) | [Standalone](https://github.com/apache/pulsar-client-node) |
+| C# | [User doc](client-libraries-dotnet.md) | [Standalone](https://github.com/apache/pulsar-dotpulsar/blob/master/CHANGELOG.md) | [Standalone](https://github.com/apache/pulsar-dotpulsar) |
Pulsar supports the following language-agnostic client libraries:
diff --git a/site2/website-next/scripts/replace.js b/site2/website-next/scripts/replace.js
index 8a1f164c0a6..b8b231f97e9 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -173,7 +173,6 @@ const from = [
/@pulsar:apidoc:python@/g,
/@pulsar:apidoc:cpp@/g,
- /\(\/api\/cpp/g,
/\(\/api\/pulsar-functions/g,
/\(\/api\/client/g,
/\(\/api\/admin/g,
@@ -208,7 +207,6 @@ const options = {
multiClientVersionUrl(`${latestVersion}`, "python"),
multiClientVersionUrl(`${latestVersion}`, "cpp"),
- `(${siteConfig.url}/api/cpp`,
clientVersionUrl(`${latestVersion}`, "pulsar-functions"),
clientVersionUrl(`${latestVersion}`, "client"),
clientVersionUrl(`${latestVersion}`, "admin"),
@@ -253,7 +251,6 @@ for (let _v of versions) {
debDistUrl(`${v}`, "-dev"),
multiClientVersionUrl(`${v}`, "python"),
multiClientVersionUrl(`${v}`, "cpp"),
- `(${siteConfig.url}/api/cpp`,
clientVersionUrl(`${v}`, "pulsar-functions"),
clientVersionUrl(`${v}`, "client"),
clientVersionUrl(`${v}`, "admin"),