Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Allow changelog link to latest changelog.

Tim Abbott4fd9a971ed3f
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.md
index 0bd34589d3a..5bff90a3c7e 100644
--- a/docs/overview/changelog.md
+++ b/docs/overview/changelog.md
@@ -2130,3 +2130,4 @@ easily read them all when upgrading across multiple releases.
[docker-zulip]: https://github.com/zulip/docker-zulip
[commit-log]: https://github.com/zulip/zulip/commits/master
+[latest-changelog]: https://zulip.readthedocs.io/en/latest/overview/changelog.html
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py
index db7642304c4..7f0faeeeddd 100644
--- a/tools/linter_lib/custom_check.py
+++ b/tools/linter_lib/custom_check.py
@@ -836,6 +836,12 @@ markdown_rules = RuleList(
"docs/README.md",
"docs/subsystems/email.md",
},
+ "exclude_line": {
+ (
+ "docs/overview/changelog.md",
+ "[latest-changelog]: https://zulip.readthedocs.io/en/latest/overview/changelog.html",
+ ),
+ },
"include_only": {"docs/"},
"description": "Use relative links (../foo/bar.html) to other documents in docs/",
},