You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/07/06 07:35:57 UTC

[pulsar-site] branch main updated: Fix /api endpoint link replacement in docs

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 705fa6ff3df Fix /api endpoint link replacement in docs
     new 2a61e5016bb Merge pull request #138 from michaeljmarshall/only-replace-correctly-formed-endpoints
705fa6ff3df is described below

commit 705fa6ff3df1551ed7072f95b0fa8bb44b912f2f
Author: Michael Marshall <mm...@apache.org>
AuthorDate: Wed Jul 6 01:29:19 2022 -0500

    Fix /api endpoint link replacement in docs
---
 site2/website-next/scripts/replace.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/site2/website-next/scripts/replace.js b/site2/website-next/scripts/replace.js
index f110f836c4a..7eac124e82b 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -139,11 +139,11 @@ const from = [
   /@pulsar:dist_deb:client@/g,
   /@pulsar:dist_deb:client-devel@/g,
 
-  /\/api\/python/g,
-  /\/api\/cpp/g,
-  /\/api\/pulsar-functions/g,
-  /\/api\/client/g,
-  /\/api\/admin/g,
+  /\(\/api\/python/g,
+  /\(\/api\/cpp/g,
+  /\(\/api\/pulsar-functions/g,
+  /\(\/api\/client/g,
+  /\(\/api\/admin/g,
 
   /@pulsar:version_number@/g,