This is an automated email from the ASF dual-hosted git repository.
panjuan 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 0ddb55c2b7c Fix deadlink (#26460)
0ddb55c2b7c is described below
commit 0ddb55c2b7cf04d85a67190ab7a5123f83edbaf0
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Tue Jun 20 19:44:39 2023 +0800
Fix deadlink (#26460)
---
.../resources/linkcheck/markdown-link-check.json | 16 +++++++++-------
deadlink-checker.sh | 6 ++++++
docs/document/content/faq/_index.cn.md | 2 +-
docs/document/content/faq/_index.en.md | 2 +-
docs/document/content/features/sharding/limitation.cn.md | 2 +-
.../content/user-manual/common-config/props.cn.md | 2 +-
.../content/user-manual/common-config/props.en.md | 2 +-
.../sharding/alter-sharding-table-reference-rule.cn.md | 2 +-
.../sharding/alter-sharding-table-reference-rule.en.md | 2 +-
.../sharding/alter-sharding-table-rule.cn.md | 2 +-
.../sharding/alter-sharding-table-rule.en.md | 4 ++--
.../sharding/create-sharding-table-reference-rule.cn.md | 2 +-
.../sharding/create-sharding-table-reference-rule.en.md | 2 +-
...md => show-sharding-table-rules-used-algorithm.cn.md} | 0
...md => show-sharding-table-rules-used-algorithm.en.md} | 0
15 files changed, 27 insertions(+), 19 deletions(-)
diff --git a/.github/workflows/resources/linkcheck/markdown-link-check.json
b/.github/workflows/resources/linkcheck/markdown-link-check.json
index 7005db9cda4..0672579c5b4 100644
--- a/.github/workflows/resources/linkcheck/markdown-link-check.json
+++ b/.github/workflows/resources/linkcheck/markdown-link-check.json
@@ -9,16 +9,18 @@
{
"pattern": "^https://github.com/apache/incubator-shardingsphere/*"
},
- {
- "pattern": "^/en/*"
- },
- {
- "pattern": "^/cn/*"
- },
{
"pattern": "^https://twitter.com*"
}
- ],
+ ], "replacementPatterns": [
+ {
+ "pattern": "^/cn/",
+ "replacement": "https://shardingsphere.apache.org/document/current/cn/"
+ },
+ {
+ "pattern": "^/en/",
+ "replacement": "https://shardingsphere.apache.org/document/current/en/"
+ }],
"timeout": "10s",
"retryOn429": true,
"retryCount": 10,
diff --git a/deadlink-checker.sh b/deadlink-checker.sh
new file mode 100644
index 00000000000..6cb3697f542
--- /dev/null
+++ b/deadlink-checker.sh
@@ -0,0 +1,6 @@
+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 abd12884816..2b4783efedc 100644
--- a/docs/document/content/faq/_index.cn.md
+++ b/docs/document/content/faq/_index.cn.md
@@ -160,7 +160,7 @@ ShardingSphere 采用 snowflake 算法作为默认的分布式自增主键策略
[Service Provider Interface
(SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html)
是一种为了被第三方实现或扩展的 API,除了实现接口外,还需要在 META-INF/services 中创建对应文件来指定 SPI 的实现类,JVM
才会加载这些服务。
具体的 SPI 使用方式,请大家自行搜索。
-与分布式主键 `KeyGenerateAlgorithm` 接口相同,其他 ShardingSphere
的[扩展功能](/cn/concepts/pluggable/)也需要用相同的方式注入才能生效。
+与分布式主键 `KeyGenerateAlgorithm` 接口相同,其他 ShardingSphere 的扩展功能也需要用相同的方式注入才能生效。
### [分片] ShardingSphere 除了支持自带的分布式自增主键之外,还能否支持原生的自增主键?
diff --git a/docs/document/content/faq/_index.en.md
b/docs/document/content/faq/_index.en.md
index 19a620b4ea9..fa573dc591b 100644
--- a/docs/document/content/faq/_index.en.md
+++ b/docs/document/content/faq/_index.en.md
@@ -164,7 +164,7 @@ Answer:
[Service Provider Interface
(SPI)](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html) is a kind
of API for the third party to implement or expand. Except implementing
interface, you also need to create a corresponding file in `META-INF/services`
to make the JVM load these SPI implementations.
More detail for SPI usage, please search by yourself.
-Other ShardingSphere [functionality implementation](/en/concepts/pluggable/)
will take effect in the same way.
+Other ShardingSphere functionality implementation will take effect in the same
way.
### [Sharding] In addition to internal distributed primary key, does
ShardingSphere support other native auto-increment keys?
diff --git a/docs/document/content/features/sharding/limitation.cn.md
b/docs/document/content/features/sharding/limitation.cn.md
index 5b497e3ab23..fa2a4215f4f 100644
--- a/docs/document/content/features/sharding/limitation.cn.md
+++ b/docs/document/content/features/sharding/limitation.cn.md
@@ -48,7 +48,7 @@ tbl_name [AS] alias] [index_hint_list]
SELECT * FROM (SELECT * FROM t_order WHERE order_id = 1) o WHERE o.order_id =
1;
```
-用于[分页](https://shardingsphere.apache.org/document/current/cn/features/sharding/use-norms/pagination)的子查询,由内核提供稳定支持。
+用于分页的子查询,由内核提供稳定支持。
例如:
diff --git a/docs/document/content/user-manual/common-config/props.cn.md
b/docs/document/content/user-manual/common-config/props.cn.md
index 913cf4648eb..cbedb91ac90 100644
--- a/docs/document/content/user-manual/common-config/props.cn.md
+++ b/docs/document/content/user-manual/common-config/props.cn.md
@@ -29,4 +29,4 @@ props:
## 配置示例
-ShardingSphere
仓库的示例中包含了多种不同场景的属性配置,请参考:<https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-jdbc-example>
+ShardingSphere
仓库的示例中包含了多种不同场景的属性配置,请参考:<https://github.com/apache/shardingsphere/blob/master/examples/README_ZH.md>
diff --git a/docs/document/content/user-manual/common-config/props.en.md
b/docs/document/content/user-manual/common-config/props.en.md
index 7d290d5179f..2781cfbc888 100644
--- a/docs/document/content/user-manual/common-config/props.en.md
+++ b/docs/document/content/user-manual/common-config/props.en.md
@@ -29,4 +29,4 @@ props:
## Sample
-The example of ShardingSphere warehouse contains property configurations of
various scenarios. Please refer to:
<https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-jdbc-example>
+The example of ShardingSphere warehouse contains property configurations of
various scenarios. Please refer to:
<https://github.com/apache/shardingsphere/tree/master/examples>
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.cn.md
index a282a205b27..2944cf264ce 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.cn.md
@@ -54,4 +54,4 @@ ALTER SHARDING TABLE REFERENCE RULE ref_0
(t_order,t_order_item), ref_1 (t_produ
### 相关链接
- [保留字](/cn/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE SHARDING TABLE
RULE](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-sharding-table-rule/)
+- [CREATE SHARDING TABLE
RULE](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.en.md
index b7e92298f76..114d89cf486 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-reference-rule.en.md
@@ -55,4 +55,4 @@ ALTER SHARDING TABLE REFERENCE RULE ref_0
(t_order,t_order_item), ref_1 (t_produ
### Related links
- [Reserved
word](/en/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE SHARDING TABLE
RULE](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-sharding-table-rule/)
+- [CREATE SHARDING TABLE
RULE](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.cn.md
index dcb99a6e886..bba1462ecbb 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.cn.md
@@ -118,4 +118,4 @@
AUDIT_STRATEGY(TYPE(NAME="dml_sharding_conditions"),ALLOW_HINT_DISABLE=true)
### 相关链接
- [保留字](/cn/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [ALTER DEFAULT_SHARDING
STRATEGY](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/alter-default-sharding-strategy/)
+- [ALTER DEFAULT_SHARDING
STRATEGY](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-default-sharding-strategy/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.en.md
index 292aa9bc8b7..99eaeaf57a7 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-sharding-table-rule.en.md
@@ -86,7 +86,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
@@ -128,4 +128,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/)
-- [ALTER DEFAULT_SHARDING
STRATEGY](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/alter-default-sharding-strategy/)
+- [ALTER DEFAULT_SHARDING
STRATEGY](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/alter-default-sharding-strategy/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.cn.md
index 6b93061fe78..a99295f408c 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.cn.md
@@ -67,4 +67,4 @@ CREATE SHARDING TABLE REFERENCE RULE IF NOT EXISTS ref_0
(t_order,t_order_item);
### 相关链接
- [保留字](/cn/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE SHARDING TABLE
RULE](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-sharding-table-rule/)
+- [CREATE SHARDING TABLE
RULE](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.en.md
index 96632e9da9f..54d952ee701 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-reference-rule.en.md
@@ -68,4 +68,4 @@ CREATE SHARDING TABLE REFERENCE RULE IF NOT EXISTS ref_0
(t_order,t_order_item);
### Related links
- [Reserved
word](/en/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word/)
-- [CREATE SHARDING TABLE
RULE](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/create-sharding-table-rule/)
+- [CREATE SHARDING TABLE
RULE](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used
algorithm.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used-algorithm.cn.md
similarity index 100%
rename from
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used
algorithm.cn.md
rename to
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used-algorithm.cn.md
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used
algorithm.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used-algorithm.en.md
similarity index 100%
rename from
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used
algorithm.en.md
rename to
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rules-used-algorithm.en.md