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 8e358627391 [Fix](CI) Support remove spare suffix of links in documents (#1551) 8e358627391 is described below commit 8e358627391d99f4371f60747f6bf0c998a589da Author: zclllyybb <zhaochan...@selectdb.com> AuthorDate: Fri Dec 20 17:58:50 2024 +0800 [Fix](CI) Support remove spare suffix of links in documents (#1551) ## 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, 4 insertions(+), 3 deletions(-) diff --git a/check_move.py b/check_move.py index 921f3f641af..12f75632133 100755 --- a/check_move.py +++ b/check_move.py @@ -56,11 +56,12 @@ def process_md_file(file_path): full_path += ".md" for [from_path, to_path] in move_pairs: + # Skip change of suffix 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 - ): + if ( + from_ext in [".md", ".mdx", ""] or 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 unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org