You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2023/01/11 08:55:34 UTC
[dolphinscheduler-website] branch master updated: fix: Regexp replace all datasource-setting hyper link (#877)
This is an automated email from the ASF dual-hosted git repository.
zhongjiajie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new 47107ccdcc fix: Regexp replace all datasource-setting hyper link (#877)
47107ccdcc is described below
commit 47107ccdccf2606c64016f16d01313ec72adfa2e
Author: Jay Chung <zh...@gmail.com>
AuthorDate: Wed Jan 11 16:55:29 2023 +0800
fix: Regexp replace all datasource-setting hyper link (#877)
---
scripts/replace_links.js | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/scripts/replace_links.js b/scripts/replace_links.js
index d233f5bad3..db328a5301 100644
--- a/scripts/replace_links.js
+++ b/scripts/replace_links.js
@@ -20,12 +20,6 @@ const replaceDeadLinks = (content, lang, version) => {
`cluster.md`,
`/${lang}/docs/${version}/guide/installation/cluster`
)
- .replaceAll(
- `../howto/datasource-setting.md`,
- `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${
- lang === "en-us" ? "en" : "zh"
- }/guide/howto/datasource-setting.md`
- )
.replaceAll(
`general-setting.md`,
`https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${
@@ -137,7 +131,7 @@ const replaceDeadLinks = (content, lang, version) => {
`/${lang}/docs/${version}/guide/installation/cluster`
)
.replaceAll(
- `howto/datasource-setting.md`,
+ /((\.\.\/)*(howto\/)?)datasource-setting.md/g,
`https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${
lang === "en-us" ? "en" : "zh"
}/guide/howto/datasource-setting.md`
@@ -145,12 +139,6 @@ const replaceDeadLinks = (content, lang, version) => {
.replaceAll(
`start/quick-start.md`,
`/${lang}/docs/${version}/guide/start/quick-start`
- )
- .replaceAll(
- `datasource-setting.md`,
- `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${
- lang === "en-us" ? "en" : "zh"
- }/guide/howto/datasource-setting.md`
);
};