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/06/23 05:27:42 UTC

[pulsar-site] 03/03: update

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

urfree pushed a commit to branch fix/md-404-and-tab-not-working
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 672977fdcfd8aa789db7c64547936887abb3f8e7
Author: Li Li <ur...@apache.org>
AuthorDate: Thu Jun 23 13:27:30 2022 +0800

    update
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/website-next/scripts/replace.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/site2/website-next/scripts/replace.js b/site2/website-next/scripts/replace.js
index 35b86f33f73..bd1dec11e24 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -158,7 +158,6 @@ const from = [
   /@pulsar:version_number@/g,
 
   /\[([^\]]*)\]\((\/tools\/pulsar[^\)]*)\)/g,
-  /(\[[^\]]+\]\((?!http|assets|\.|\/|#)((?!\.md|:|\.|#).)*)\)$/g, //fix some relative link 404 due to the path missing .md
 ];
 
 const options = {
@@ -193,7 +192,6 @@ const options = {
     `${latestVersion}`,
 
     '<a href="$2" target="_blank">$1</a>',
-    "$1.md)",
   ],
   dry: false,
 };
@@ -240,7 +238,6 @@ for (v of versions) {
       clientVersionUrl(`${v}`, "admin"),
       `${v}`,
       '<a href="$2" target="_blank">$1</a>',
-      "$1.md)",
     ],
     dry: false,
   };