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 1d88f94743d Fix apidoc links: BUILD_ALL_VERSION=1
1d88f94743d is described below

commit 1d88f94743dacd39c1de22fd76e42bd4b11b10dd
Author: tison <[email protected]>
AuthorDate: Wed Nov 16 02:45:18 2022 +0800

    Fix apidoc links: BUILD_ALL_VERSION=1
    
    However, it can be a shortcoming from Docusaurus side:
    
    Module not found: Error: Can't resolve './../static/api/cpp/3.0.0' in 
'/pulsar/site2/website-next/docs'
---
 site2/website-next/scripts/replace.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/site2/website-next/scripts/replace.js 
b/site2/website-next/scripts/replace.js
index 27316a60723..8a1f164c0a6 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -173,6 +173,7 @@ const from = [
 
   /@pulsar:apidoc:python@/g,
   /@pulsar:apidoc:cpp@/g,
+  /\(\/api\/cpp/g,
   /\(\/api\/pulsar-functions/g,
   /\(\/api\/client/g,
   /\(\/api\/admin/g,
@@ -207,6 +208,7 @@ const options = {
 
     multiClientVersionUrl(`${latestVersion}`, "python"),
     multiClientVersionUrl(`${latestVersion}`, "cpp"),
+    `(${siteConfig.url}/api/cpp`,
     clientVersionUrl(`${latestVersion}`, "pulsar-functions"),
     clientVersionUrl(`${latestVersion}`, "client"),
     clientVersionUrl(`${latestVersion}`, "admin"),
@@ -229,8 +231,6 @@ for (let _v of versions) {
     files: [
       `${docsDir}/version-${_v}/*.md`,
       `${docsDir}/version-${_v}/**/*.md`,
-      // `${docsDir}/en/${v}/*.html`,
-      // `${docsDir}/en/${v}/**/*.html`,
     ],
     from: from,
     to: [
@@ -253,6 +253,7 @@ 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"),

Reply via email to