You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/06/20 12:11:26 UTC

[shardingsphere] branch master updated: Fix deadlink (#26461)

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

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7eab25c8166 Fix deadlink (#26461)
7eab25c8166 is described below

commit 7eab25c816636239e2b6b3570e24e5128ded8f41
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Tue Jun 20 20:11:20 2023 +0800

    Fix deadlink (#26461)
    
    * Fix : remove pagination link which is not exists(#26456)
    
    * Fix : remove pagination link which is not exists(#26456)
    
    * Remove : remove checker script
    
    * Fix : remove the link in faq which does't exist (#26456)
    
    * Fix : fix the incorrect link in create-sharding-table-rule (#26456)
    
    * Fix : fix the incorrect link for skywalking artifact (#26456)
    
    * Fix : fix the incorrect link for authority (#26456)
    
    * Remove : remove the link checker
---
 .github/workflows/resources/linkcheck/markdown-link-check.json      | 4 ++--
 deadlink-checker.sh                                                 | 6 ------
 docs/document/content/faq/_index.cn.md                              | 2 +-
 docs/document/content/faq/_index.en.md                              | 2 +-
 .../rdl/rule-definition/sharding/create-sharding-table-rule.cn.md   | 2 +-
 .../rdl/rule-definition/sharding/create-sharding-table-rule.en.md   | 4 ++--
 .../content/user-manual/shardingsphere-proxy/startup/bin.cn.md      | 2 +-
 .../content/user-manual/shardingsphere-proxy/startup/bin.en.md      | 2 +-
 .../shardingsphere-proxy/startup/graalvm-native-image.cn.md         | 2 +-
 .../shardingsphere-proxy/startup/graalvm-native-image.en.md         | 2 +-
 10 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/resources/linkcheck/markdown-link-check.json b/.github/workflows/resources/linkcheck/markdown-link-check.json
index 0672579c5b4..ac87223af6f 100644
--- a/.github/workflows/resources/linkcheck/markdown-link-check.json
+++ b/.github/workflows/resources/linkcheck/markdown-link-check.json
@@ -14,11 +14,11 @@
     }
   ], "replacementPatterns": [
   {
-    "pattern": "^/cn/",
+    "pattern": "^/cn/*",
     "replacement": "https://shardingsphere.apache.org/document/current/cn/"
   },
   {
-    "pattern": "^/en/",
+    "pattern": "^/en/*",
     "replacement": "https://shardingsphere.apache.org/document/current/en/"
   }],
   "timeout": "10s",
diff --git a/deadlink-checker.sh b/deadlink-checker.sh
deleted file mode 100644
index 6cb3697f542..00000000000
--- a/deadlink-checker.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-for file in $(find . -path "./docs/document/themes" -prune -o -name "*.md"); do
-    if [ -d "$file" ]; then
-      continue
-    fi
-  markdown-link-check -c .github/workflows/resources/linkcheck/markdown-link-check.json -q "$file"
-done
diff --git a/docs/document/content/faq/_index.cn.md b/docs/document/content/faq/_index.cn.md
index 2b4783efedc..c9d33d4ca9a 100644
--- a/docs/document/content/faq/_index.cn.md
+++ b/docs/document/content/faq/_index.cn.md
@@ -298,7 +298,7 @@ https://ourcodeworld.com/articles/read/109/how-to-solve-filename-too-long-error-
 
 回答:
 
-ShardingSphere 中很多功能实现类的加载方式是通过 [SPI](/cn/concepts/pluggable/) 注入的方式完成的,如分布式主键,注册中心等;这些功能通过配置中 type 类型来寻找对应的 SPI 实现,因此必须在配置文件中指定类型。
+ShardingSphere 中很多功能实现类的加载方式是通过 SPI 注入的方式完成的,如分布式主键,注册中心等;这些功能通过配置中 type 类型来寻找对应的 SPI 实现,因此必须在配置文件中指定类型。
 
 ### [其他] 服务启动时如何加快 `metadata` 加载速度?
 
diff --git a/docs/document/content/faq/_index.en.md b/docs/document/content/faq/_index.en.md
index fa573dc591b..295e6ffc70b 100644
--- a/docs/document/content/faq/_index.en.md
+++ b/docs/document/content/faq/_index.en.md
@@ -305,7 +305,7 @@ https://ourcodeworld.com/articles/read/109/how-to-solve-filename-too-long-error-
 
 Answer:
 
-In Apache ShardingSphere, many functionality implementation are uploaded through [SPI](/en/concepts/pluggable/), such as Distributed Primary Key. These functions load SPI implementation by configuring the `type`, so the `type` must be specified in the configuration file.
+In Apache ShardingSphere, many functionality implementation are uploaded through SPI, such as Distributed Primary Key. These functions load SPI implementation by configuring the `type`, so the `type` must be specified in the configuration file.
 
 ### [Other] How to speed up the metadata loading when service starts up?
 
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.cn.md
index f0a89bb1cca..572a7e6677b 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.cn.md
@@ -147,4 +147,4 @@ AUDIT_STRATEGY (TYPE(NAME="DML_SHARDING_CONDITIONS"),ALLOW_HINT_DISABLE=true)
 ### 相关链接
 
 - [保留字](/cn/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE DEFAULT_SHARDING STRATEGY](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-default-sharding-strategy/)
+- [CREATE DEFAULT_SHARDING STRATEGY](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-default-sharding-strategy/)
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
index 5b2c9166207..099e87e0633 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
@@ -89,7 +89,7 @@ strategyType ::=
     - Only auto sharding algorithm can be used, please refer
       to [Auto Sharding Algorithm](/en/user-manual/common-config/builtin-algorithm/sharding/#auto-sharding-algorithm).
 - `algorithmType` is the sharding algorithm type, please refer
-  to [Sharding Algorithm](/en/user-manual/shardingsphere-jdbc/builtin-algorithm/sharding);
+  to [Sharding Algorithm](/en/user-manual/common-config/builtin-algorithm/sharding);
 - The auto-generated algorithm naming rule is `tableName` _ `strategyType` _ `shardingAlgorithmType`;
 - The auto-generated primary key strategy naming rule is `tableName` _ `strategyType`;
 - `KEY_GENERATE_STRATEGY` is used to specify the primary key generation strategy, which is optional. For the primary key
@@ -156,4 +156,4 @@ AUDIT_STRATEGY (TYPE(NAME="DML_SHARDING_CONDITIONS"),ALLOW_HINT_DISABLE=true)
 ### Related links
 
 - [Reserved word](/en/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE DEFAULT_SHARDING STRATEGY](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-default-sharding-strategy/)
+- [CREATE DEFAULT_SHARDING STRATEGY](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-default-sharding-strategy/)
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.cn.md
index c71f92e1917..cdfd3e707d8 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.cn.md
@@ -22,7 +22,7 @@ weight = 1
 ShardingSphere-Proxy 运行模式在 `server.yaml` 中配置,配置格式与 ShardingSphere-JDBC 一致,请参考[模式配置](/cn/user-manual/shardingsphere-jdbc/yaml-config/mode/)。
 
 其他配置项请参考:
-* [权限配置](/cn/user-manual/shardingsphere-proxy/yaml-config/authentication/)
+* [权限配置](/cn/user-manual/shardingsphere-proxy/yaml-config/authority/)
 * [属性配置](/cn/user-manual/shardingsphere-proxy/yaml-config/props/)
 
 3. 配置 `conf/config-*.yaml`
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.en.md
index f9bbd68e495..3d2ce29d758 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/bin.en.md
@@ -22,7 +22,7 @@ Obtain the binary release package of ShardingSphere-Proxy on the [download page]
 ShardingSphere-Proxy's operational mode is configured on `server.yaml`, and its configuration mode is the same with that of ShardingSphere-JDBC. Refer to [mode of configuration](/en/user-manual/shardingsphere-jdbc/yaml-config/mode/).
 
 Please refer to the following links for other configuration items:
-* [Permission configuration](/en/user-manual/shardingsphere-proxy/yaml-config/authentication/)
+* [Permission configuration](/en/user-manual/shardingsphere-proxy/yaml-config/authority/)
 * [Property configuration](/en/user-manual/shardingsphere-proxy/yaml-config/props/)
 
 3. Configure `conf/config-*.yaml`
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
index 76280844fc2..c0e5f29ef3e 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
@@ -166,7 +166,7 @@ services:
 
 - 以下部分采用 `Apache SkyWalking Java Agent` 作为示例,可用于跟踪 GraalVM 社区的对应 issue。
 
-1. 下载 https://dlcdn.apache.org/skywalking/java-agent/8.12.0/apache-skywalking-java-agent-8.12.0.tgz ,
+1. 下载 https://archive.apache.org/dist/skywalking/java-agent/8.12.0/apache-skywalking-java-agent-8.12.0.tgz ,
    并解压到 ShardingSphere Git Source 的 `distribution/proxy-native`。
 
 2. 修改 `distribution/proxy-native/pom.xml` 的 `native profile`,
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
index db96726f75f..5d37f04ac1f 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
@@ -184,7 +184,7 @@ services:
 - The following sections use the `Apache SkyWalking Java Agent` as an example, which can be used to track corresponding
   issues from the GraalVM community.
 
-1. Download https://dlcdn.apache.org/skywalking/java-agent/8.12.0/apache-skywalking-java-agent-8.12.0.tgz and `untar` it
+1. Download https://archive.apache.org/dist/skywalking/java-agent/8.12.0/apache-skywalking-java-agent-8.12.0.tgz and `untar` it
    to `distribution/proxy-native` in ShardingSphere Git Source.
 
 2. Modify the `native profile` of `distribution/proxy-native/pom.xml`,