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/03/03 06:23:24 UTC
[pulsar-site] branch main updated: url fix
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 01e404a url fix
01e404a is described below
commit 01e404a60c85915d2115e5a9ad9f5ac448a4cd0d
Author: LiLi <ur...@apache.org>
AuthorDate: Thu Mar 3 14:23:14 2022 +0800
url fix
Signed-off-by: LiLi <ur...@apache.org>
---
site2/website-next/docusaurus.config.js | 4 ++--
site2/website-next/scripts/replace.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/site2/website-next/docusaurus.config.js b/site2/website-next/docusaurus.config.js
index 6a132c5..de7b362 100644
--- a/site2/website-next/docusaurus.config.js
+++ b/site2/website-next/docusaurus.config.js
@@ -92,7 +92,7 @@ module.exports = {
title: "Apache Pulsar",
tagline:
"Apache Pulsar is a cloud-native, distributed messaging and streaming platform originally created at Yahoo! and now a top-level Apache Software Foundation project",
- url: "https://pulsar.apache.com",
+ url: "https://pulsar.apache.org",
baseUrl: baseUrl,
onBrokenLinks: "ignore",
onBrokenMarkdownLinks: "ignore",
@@ -351,7 +351,7 @@ module.exports = {
},
},
stylesheets: [
- 'https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;600&display=swap'
+ "https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;600&display=swap",
],
presets: [
[
diff --git a/site2/website-next/scripts/replace.js b/site2/website-next/scripts/replace.js
index fd65555..8bfd17d 100644
--- a/site2/website-next/scripts/replace.js
+++ b/site2/website-next/scripts/replace.js
@@ -92,10 +92,10 @@ function clientVersionUrl(version, type) {
var majorVersion = parseInt(versions[0]);
var minorVersion = parseInt(versions[1]);
if (majorVersion === 2 && minorVersion < 5) {
- return `/api/` + type + `/` + version + "/";
+ return `${siteConfig.url}/api/` + type + `/` + version + "/";
} else if (majorVersion >= 2 && minorVersion >= 5) {
return (
- `/api/` +
+ `${siteConfig.url}/api/` +
type +
`/` +
majorVersion +