From f3add808b100b911e0a97a908aa7e268121ede46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E4=BA=91?= <71159641+littlewhitecloud@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:08:56 +0800 Subject: [PATCH] remove the check for changelog Co-authored-by: Akuli --- check-markdown-links.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/check-markdown-links.py b/check-markdown-links.py index b89fbfb5..91cd1648 100644 --- a/check-markdown-links.py +++ b/check-markdown-links.py @@ -25,13 +25,6 @@ def find_markdown_files(): def find_links(markdown_file_path): content = markdown_file_path.read_text(encoding="utf-8") - # TODO: do we have changelog.md in jou? - if markdown_file_path.name == "CHANGELOG.md": - # Ignore changelogs of old versions. Editing them doesn't make sense. - header_matches = list(re.finditer("^## ", content, flags=re.MULTILINE)) - end_of_current_version = header_matches[1].start() - content = content[:end_of_current_version] - for lineno, line in enumerate(content.splitlines(), start=1): link_regexes = [ # [text](target)