summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2026-05-13 21:55:52 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2026-05-14 05:08:55 +0000
commita02f7dd4c5009f3ade6dd79fe4eb2ff49f0d3cc0 (patch)
tree04ad0461c146786ffa4cae47eb4a716b4faf7f60 /scripts
parent92c4382a8dc5d688a9237cb1df1faba38ffc3020 (diff)
downloadvyos-documentation-a02f7dd4c5009f3ade6dd79fe4eb2ff49f0d3cc0.tar.gz
vyos-documentation-a02f7dd4c5009f3ade6dd79fe4eb2ff49f0d3cc0.zip
ci(doc-linter): fix \b regression in compressed-IPv6 regex — replace bare removal with word-boundary prefix
Agent-Logs-Url: https://github.com/vyos/vyos-documentation/sessions/cdefcaf2-e89e-4090-b39a-15b385b774df Co-authored-by: andamasov <12631358+andamasov@users.noreply.github.com> (cherry picked from commit be8090a3a09adb950557c2887c9a27c017ffd31d)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/doc-linter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/doc-linter.py b/scripts/doc-linter.py
index 509b1400..425d9671 100644
--- a/scripts/doc-linter.py
+++ b/scripts/doc-linter.py
@@ -9,7 +9,7 @@ IPV4ADDR = r'\b(?:(?:' + IPV4SEG + r'\.){3,3}' + IPV4SEG + r')\b'
IPV6SEG = r'(?:(?:[0-9a-fA-F]){1,4})'
IPV6GROUPS = (
r'(?:' + IPV6SEG + r':){7,7}' + IPV6SEG, # 1:2:3:4:5:6:7:8
- r'(?:' + IPV6SEG + r':){1,7}:', # 1:: 1:2:3:4:5:6:7::
+ r'\b(?:' + IPV6SEG + r':){1,7}:', # 1:: 1:2:3:4:5:6:7::
r'(?:' + IPV6SEG + r':){1,6}:' + IPV6SEG, # 1::8 1:2:3:4:5:6::8 1:2:3:4:5:6::8
r'(?:' + IPV6SEG + r':){1,5}(?::' + IPV6SEG + r'){1,2}', # 1::7:8 1:2:3:4:5::7:8 1:2:3:4:5::8
r'(?:' + IPV6SEG + r':){1,4}(?::' + IPV6SEG + r'){1,3}', # 1::6:7:8 1:2:3:4::6:7:8 1:2:3:4::8
@@ -102,6 +102,7 @@ def _fence_is_code(info):
name = info[1:].split('}', 1)[0].strip()
return name in CODE_BEARING_DIRECTIVES
+
SUPPRESSION_MARKER_RE = {
'rst': {
'stop': re.compile(r'^\s*\.\.\s+stop_vyoslinter\s*$'),
@@ -324,7 +325,6 @@ def main():
for file in files:
if (
file.endswith(SUPPORTED_EXTS)
- and "_build" not in file
and is_docs_path(file)
):
if handle_file_action(file) is False: