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/12/29 13:27:49 UTC
[pulsar-site] branch main updated: Update editUrl since sources moved to this repo
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 a2c2d23c21f Update editUrl since sources moved to this repo
a2c2d23c21f is described below
commit a2c2d23c21fd9cf936a4381901001b5889973d8e
Author: tison <wa...@gmail.com>
AuthorDate: Thu Dec 29 21:27:39 2022 +0800
Update editUrl since sources moved to this repo
Signed-off-by: tison <wa...@gmail.com>
---
docusaurus.config.js | 22 +++-------------------
1 file changed, 3 insertions(+), 19 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index c208d3d03e8..5ae78a811db 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -363,15 +363,7 @@ module.exports = {
docs: {
path: "docs",
sidebarPath: require.resolve("./sidebars.js"),
- editUrl: ({
- version,
- versionDocsDirPath,
- docPath,
- permalink,
- locale,
- }) => {
- return `${githubUrl}/edit/master/site2/docs/${docPath}`;
- },
+ editUrl: `${githubSiteUrl}/edit/main`,
remarkPlugins: [
linkifyRegex(
/{\@inject\:\s?(((?!endpoint)[^}])+):([^}]+):([^}]+)}/,
@@ -424,7 +416,7 @@ module.exports = {
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./sidebarsDevelopment.js'),
- editUrl: 'https://github.com/apache/pulsar-site/tree/main/',
+ editUrl: `${githubSiteUrl}/edit/main`,
},
],
[
@@ -434,16 +426,8 @@ module.exports = {
id: "release-notes",
path: "release-notes",
routeBasePath: "release-notes",
- // editUrl: ({ locale, versionDocsDirPath, docPath }) => {
- // if (locale !== "en") {
- // return ``;
- // }
- // return ``;
- // },
- // editCurrentVersion: true,
+ editUrl: `${githubSiteUrl}/edit/main`,
sidebarPath: require.resolve("./sidebarsReleaseNotes.js"),
- // showLastUpdateAuthor: true,
- // showLastUpdateTime: true,
}),
],
[