From d25804ddaa23a2ccdc588069bdb61c852834a8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Wed, 4 Dec 2024 04:38:00 +0000 Subject: [PATCH] Can we link users to plugin docs? --- extra/release.py | 5 ++++- test/test_release.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/extra/release.py b/extra/release.py index 5fb1302b7d..b1e7c3119a 100755 --- a/extra/release.py +++ b/extra/release.py @@ -37,7 +37,10 @@ (r"^ +( - )", r"\1"), # adjust nested bullet points indent (r"^(\w[^\n]{,80}):(?=\n\n[^ ])", r"### \1"), # make sections headers (r"^(\w[^\n]{81,}):(?=\n\n[^ ])", r"**\1**"), # make sections headers - (r"^- `/?plugins/(\w+)`:?", r"- Plugin **`\1`**:"), # highlight plugins + ( + r"^- `/?plugins/(\w+)`:?", + r"- Plugin [\1](/docs/plugins/\1.rst):", + ), # highlight plugins (r"^- `(\w+)-cmd`:?", r"- Command **`\1`**:"), # highlight commands (r"### [^\n]+\n+(?=### )", ""), # remove empty sections ] diff --git a/test/test_release.py b/test/test_release.py index 3c2e7b0d56..de0df63f1a 100644 --- a/test/test_release.py +++ b/test/test_release.py @@ -70,7 +70,7 @@ def md_changelog(): return r"""### New features - Command **`list`**: Update. -- Plugin **`substitute`**: Some substitute multi-line change. :bug: (\#5467) +- Plugin [substitute](docs/plugins/substitute.rst): Some substitute multi-line change. :bug: (\#5467) You can do something with this command: