We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0380821 commit 3504dc4Copy full SHA for 3504dc4
check_move.py
@@ -56,6 +56,13 @@ def process_md_file(file_path):
56
full_path += ".md"
57
58
for [from_path, to_path] in move_pairs:
59
+ from_base, from_ext = os.path.splitext(from_path)
60
+ to_base, to_ext = os.path.splitext(to_path)
61
+ if (from_ext in [".md", ".mdx"] and to_ext in [".md", ".mdx"]) and (
62
+ from_base == to_base
63
+ ):
64
+ continue
65
+
66
# In md, the link relative path starts from the directory where the document is located, not the document
67
relative_to_path = os.path.relpath(
68
to_path, os.path.dirname(file_path)
0 commit comments