This is an automated email from the ASF dual-hosted git repository.
kassiez pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 3504dc44c9 [Fix](CI) ignore markdown file suffix changes in deadlink
check (#1447)
3504dc44c9 is described below
commit 3504dc44c9b7eb13ecc6269b6bcfb69ff220ea4b
Author: zclllhhjj <[email protected]>
AuthorDate: Wed Dec 4 17:03:26 2024 +0800
[Fix](CI) ignore markdown file suffix changes in deadlink check (#1447)
## Versions
- [ ] dev
- [ ] 3.0
- [ ] 2.1
- [ ] 2.0
## Languages
- [ ] Chinese
- [ ] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
---
check_move.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/check_move.py b/check_move.py
index 825a359ae3..bee5a509a1 100755
--- a/check_move.py
+++ b/check_move.py
@@ -56,6 +56,13 @@ def process_md_file(file_path):
full_path += ".md"
for [from_path, to_path] in move_pairs:
+ from_base, from_ext = os.path.splitext(from_path)
+ to_base, to_ext = os.path.splitext(to_path)
+ if (from_ext in [".md", ".mdx"] and to_ext in [".md",
".mdx"]) and (
+ from_base == to_base
+ ):
+ continue
+
# In md, the link relative path starts from the directory
where the document is located, not the document
relative_to_path = os.path.relpath(
to_path, os.path.dirname(file_path)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]