<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-documentation.git/scripts, branch claude/cf-port-circinus</title>
<subtitle>VyOS readthedocs (mirror of https://github.com/vyos/vyos-documentation.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-documentation.git/atom?h=claude%2Fcf-port-circinus</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-documentation.git/atom?h=claude%2Fcf-port-circinus'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/'/>
<updated>2026-08-21T20:43:26+00:00</updated>
<entry>
<title>ci: IS-572: re-sync ported Cloudflare Workers pipeline files with rolling</title>
<updated>2026-08-21T20:43:26+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-08-21T20:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=beec730d3743687482c6516dec8c15cc2bcea63b'/>
<id>urn:sha1:beec730d3743687482c6516dec8c15cc2bcea63b</id>
<content type='text'>
The category-1 files in this port are byte-identical copies from `rolling`.
`rolling` has since moved: [vyos-documentation#2209](https://github.com/vyos/vyos-documentation/pull/2209)
merged as `3a1c6c30`, thirteen rounds of hardening on exactly these files.

Re-take all 14 category-1 paths from `origin/rolling` via
`git checkout origin/rolling -- &lt;paths&gt;`, so byte-identity holds by
construction rather than by hand-editing:

  .github/workflows/docs-build.yml
  scripts/docs_gates/{gates,parity,smoke,test_gates,test_parity,test_smoke}.py
  workers/.gitignore
  workers/apex/src/{index,special,uagate}.ts
  workers/apex/test/{router,uagate}.test.ts
  workers/apex/ua-policy.json

Thirteen of the fourteen carry
[vyos-documentation#2209](https://github.com/vyos/vyos-documentation/pull/2209)
exactly — the pre-change tree was byte-identical to `3a1c6c30^` for those
paths. `workers/.gitignore` additionally picks up the one-line `test-results/`
entry from
[vyos-documentation#2212](https://github.com/vyos/vyos-documentation/pull/2212);
inert on circinus, since only the deliberately-unported `apex-deploy.yml`
writes that directory.

Deliberate exclusions are unchanged: `docs-canary-qa.yml` (cron runs on the
default branch only, so it is not ported even though
[vyos-documentation#2209](https://github.com/vyos/vyos-documentation/pull/2209)
touched it on `rolling`), `apex-deploy.yml`, and the `docs-preview-*`
workflows. `docs/conf.py` stays hand-merged and circinus-specific, with its
ReadTheDocs fallback intact.

🤖 Generated by [robots](https://vyos.io)
</content>
</entry>
<entry>
<title>ci: port Cloudflare Workers docs pipeline files to circinus (verbatim)</title>
<updated>2026-08-15T12:52:37+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-08-15T12:52:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=6c420e86f4ad0b8440db9060803fe8e8cbdace0f'/>
<id>urn:sha1:6c420e86f4ad0b8440db9060803fe8e8cbdace0f</id>
<content type='text'>
Copies the branch-agnostic half of the docs.vyos.io Cloudflare Workers
pipeline from `rolling` at 8cb568bf, byte-identical:

  - .github/workflows/docs-build.yml
  - workers/ (entire tree)
  - scripts/docs_gates/
  - docker/im-convert.sh
  - docs/_static/js/version-picker.js, js/pagefind-wrapper.js,
    css/version-picker.css (new files, no circinus counterpart)
  - docs/_templates/breadcrumbs.html, searchbox.html (new files)

docs-build.yml already triggers on push to [rolling, circinus, sagitta]
and resolves `circinus` -&gt; worker vyos-docs-v15-en / slug 1.5 from
workers/matrix.json; the files simply did not exist on this branch, so
slug 1.5 still serves the bootstrap placeholder.

workers/versions.json + workers/matrix.json are deliberately identical
across all three branches and must be kept in sync.

Advances: IS-572
</content>
</entry>
<entry>
<title>ci(doc-linter): anchor .. code-block:: detection + drop debug print</title>
<updated>2026-05-14T05:08:39+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-14T04:45:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=40d636335216b8afddf6d5bc62ae7604474196cb'/>
<id>urn:sha1:40d636335216b8afddf6d5bc62ae7604474196cb</id>
<content type='text'>
Addresses Copilot review on PR #2023:

1. .. code-block:: tracking was triggered by a plain substring check, which
   matched mid-line occurrences too. In MD prose like ``.. code-block::``
   (docs/documentation.md:222) this set in_rst_codeblock=True spuriously and
   could suppress line-length checks downstream. Replace with a leading-whitespace-
   anchored regex and gate on file_ext in ('.rst', '.txt') or an open {eval-rst}
   MyST fence so the directive opener is only recognized where it can actually
   occur.

2. print('start') in main() was leftover debug noise — remove it.

(cherry picked from commit e87278ef35660a6257b55f4585274a52d3124583)
</content>
</entry>
<entry>
<title>ci(doc-linter): fix \b regression in compressed-IPv6 regex — replace bare removal with word-boundary prefix</title>
<updated>2026-05-14T05:08:38+00:00</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-05-13T21:55:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=ce69258be7064fa3cbe5da4f743bc7b39f9f413d'/>
<id>urn:sha1:ce69258be7064fa3cbe5da4f743bc7b39f9f413d</id>
<content type='text'>
Agent-Logs-Url: https://github.com/vyos/vyos-documentation/sessions/cdefcaf2-e89e-4090-b39a-15b385b774df

Co-authored-by: andamasov &lt;12631358+andamasov@users.noreply.github.com&gt;
(cherry picked from commit be8090a3a09adb950557c2887c9a27c017ffd31d)
</content>
</entry>
<entry>
<title>ci(doc-linter): lint added + renamed files, not only modified</title>
<updated>2026-05-14T05:08:38+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:49:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=628eb360bd84f45cdf4247cd3d1e102fe30bfc45'/>
<id>urn:sha1:628eb360bd84f45cdf4247cd3d1e102fe30bfc45</id>
<content type='text'>
Previous workflow:

    env:
      FILES_MODIFIED: ${{ steps.file_changes.outputs.files_modified }}
    run: python scripts/doc-linter.py "$FILES_MODIFIED"

`trilom/file-changes-action`'s `files_modified` output is
modifications-only. A PR adding a new `.md`/`.rst` doc page passed
`files_added`, never `files_modified`, so a brand-new page with long
lines or real public IPs slipped past the linter entirely.

Workflow: also pass `files_added` and `files_renamed` as separate
positional args. Each output is a JSON array (action v1.2.4) and is
passed via env to avoid shell-quoting issues.

Linter: `main()` now accepts one OR multiple positional argv entries,
each a JSON array of paths. Arrays are merged and deduplicated before
linting. Single-arg invocations remain backward-compatible. Switched
from `ast.literal_eval` to `json.loads` — the action's outputs are
JSON, and `json.loads` is the right tool (and dodges
literal_eval-via-`eval`-substring linter warnings).

Test coverage:
- Two JSON arrays merge -&gt; single linter run on union.
- Empty-string argv entry skipped (no `files_renamed` in many PRs).
- Malformed JSON -&gt; falls back to walking DOCS_ROOT.
- No argv -&gt; walks DOCS_ROOT.
- Single-arg invocation -&gt; backward-compat preserved.

Tracked as item 7 of the rolling-side cleanup backlog from PR #2014 /
#2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit 1ef5684729646ca3a24aff83ab8edd0aa57914c7)
</content>
</entry>
<entry>
<title>ci(doc-linter): exclude docs/_rst_legacy/ and docs/_build/ from lint scope</title>
<updated>2026-05-14T05:08:37+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:48:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=41341ac4d4cb89328b456ea8f7b0fdeef45e9d39'/>
<id>urn:sha1:41341ac4d4cb89328b456ea8f7b0fdeef45e9d39</id>
<content type='text'>
`is_docs_path()` returned True for any path under `docs/`, including
the archived RST shadows under `docs/_rst_legacy/` and the build
output under `docs/_build/`. Sphinx excludes both from the build
(per `docs/conf.py`'s exclude_patterns) and AGENTS marks
`_rst_legacy` as reference-only. The linter shouldn't process either.

Add a `DOCS_EXCLUDED_SUBDIRS = ('_build', '_rst_legacy')` constant.
After confirming a path is under `docs/`, walk each excluded subtree
and reject the path if it's contained.

Also unify the auto-discover walk fallback to call `is_docs_path()`
for the filter — previously it had its own hand-rolled `"_build"
not in path` check that didn't handle `_rst_legacy` at all and would
have walked the entire legacy archive. Prune `dirs[:]` in-place at
each walk level so we don't descend into the excluded subtrees in
the first place — optimization on top of correctness. Reverted the
`_dirs` -&gt; `dirs` rename here because we now mutate it.

Test coverage: 10 hand-coded `is_docs_path()` cases — all pass:
- `docs/configuration/foo.md` -&gt; True
- `docs/_rst_legacy/foo.rst` -&gt; False (was True)
- `docs/_rst_legacy/subdir/rst-foo.rst` -&gt; False (was True)
- `docs/_build/html/index.html` -&gt; False (was True)
- `docs/_include/foo.txt` -&gt; True (live snippets stay in scope)
- `docs` -&gt; True
- `AGENTS.md`, `README.md`, `.github/copilot-instructions.md`,
  `scripts/doc-linter.py` -&gt; False (already correct)

Tracked as item 4 of the rolling-side cleanup backlog from PR #2014
/ #2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit 379ed4757b62a7c1df965a59bc4f1fd0cef2d3e8)
</content>
</entry>
<entry>
<title>ci(doc-linter): distinguish prose-bearing directive fences from code blocks</title>
<updated>2026-05-14T05:08:37+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=b0f65e129d8bc90ba733fa1a18dcd6cf392431e7'/>
<id>urn:sha1:b0f65e129d8bc90ba733fa1a18dcd6cf392431e7</id>
<content type='text'>
The line-length skip was

    test_line_length = not (in_md_fence or in_rst_codeblock)

`in_md_fence` was True for every MyST/Markdown fence regardless of
content type. That includes admonition directives like `:::{note}`,
`:::{warning}`, `:::{tip}` whose content is normal prose, not
preformatted code. Long lines in admonitions were silently skipped,
contradicting the documented 80-char rule which exempts code blocks
only.

Track an `is_code` property on each fence-stack entry. A fence is
code-bearing when:
- info string is empty (plain ``` per CommonMark), OR
- info string doesn't start with `{` (bare language tag like
  `python`, `bash`, `yaml`), OR
- info string is `{&lt;directive&gt;}` and `&lt;directive&gt;` is in the
  CODE_BEARING_DIRECTIVES set (`code-block`, `code`, `sourcecode`,
  `cfgcmd`, `opcmd`, `cmdinclude`, `cmdincludemd`, `literalinclude`,
  `parsed-literal`, `raw`, `command-output`, `eval-rst`).

Anything else is prose-bearing (`{note}`, `{warning}`, `{tip}`,
`{deprecated}`, `{seealso}`, …) and its content gets line-length
checked.

`in_md_code_fence` checks the topmost stack entry — the innermost
fence wins, so a `{note}` containing an inner `{code-block}` lints
the outer prose lines and skips the inner code-block body. The
classic `is_suppression_marker()` call still uses `in_md_fence`
because suppression markers are about "any fence depth" not
"code-bearing depth".

`{eval-rst}` is kept in CODE_BEARING_DIRECTIVES to preserve current
behavior — its body is RST and any line-length on nested
`.. code-block::` is handled by the separate RST tracker. Tightening
eval-rst is a separate change if wanted.

Test coverage:
- `_fence_is_code` classifier: 16 cases (code-like vs prose-like)
  all pass.
- Integration: long line in `{note}` flagged ✓; long line in
  ```python``` not flagged ✓; long line in `{cfgcmd}` not flagged ✓;
  nested `{note}` &gt; ```text``` — inner skipped ✓; nested `{note}` &gt;
  prose — flagged ✓.

Sweep over current `docs/` tree: 28 new warnings surface across the
existing pages (long prose inside admonition directives that the
previous logic had been silently hiding). CI on PR scope is changed
files only, so the new findings appear only when contributors touch
those pages — they won't break this PR or future infra PRs.

Tracked as item 5 of the rolling-side cleanup backlog from PR #2014
/ #2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit cd5759f26a1c18abc3c137234cf1ab503e2b26b7)
</content>
</entry>
<entry>
<title>ci(doc-linter): fix RST code-block exit on short dedented lines</title>
<updated>2026-05-14T05:08:37+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:44:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=f25ab53af3bb081f6d125f0c14ff9e611d201af3'/>
<id>urn:sha1:f25ab53af3bb081f6d125f0c14ff9e611d201af3</id>
<content type='text'>
The dedent check inside `handle_file_action()` was

    if in_rst_codeblock:
        if len(line) &gt; rst_codeblock_indent and not line[rst_codeblock_indent].isspace():
            in_rst_codeblock = False

This worked only when the next line was at least
`rst_codeblock_indent + 1` chars long — the indexing
`line[rst_codeblock_indent]` requires that. A short dedented
line (e.g., a single character at column 0 under a directive
indented at column 4) failed the length guard and `in_rst_codeblock`
stayed True. The block remained open longer than it should,
suppressing line-length checks on subsequent prose until either
EOF or the next `.. code-block::` reset the state.

Replace with a leading-whitespace-count check: on any non-blank
line, exit the block when leading-ws is &lt;= the directive's
column. Blank lines don't reset the block context.

Test: a 3-line file with `.. code-block:: text` directive at col
0, one body line, a single `a` at col 0, then a 113-char line
at col 0. With the old logic the long line is still treated as
inside the code block and not flagged. With the new logic the
single-`a` dedent exits the block and the long line is flagged
as expected.

Tracked as items 6 and 12 of the rolling-side cleanup backlog
from PR #2014 / #2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit 6628b2901933f67568ba68617ee27c6f843c6dcf)
</content>
</entry>
<entry>
<title>ci(doc-linter): drop \s prefix from compressed-IPv6 regex branch</title>
<updated>2026-05-14T05:08:37+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:44:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=9f7c9c56f3dd1cbbc18ccb7c3f5f039a9d7a2dd2'/>
<id>urn:sha1:9f7c9c56f3dd1cbbc18ccb7c3f5f039a9d7a2dd2</id>
<content type='text'>
The leading-compression group in `IPV6GROUPS` was

    r'(?:\s' + IPV6SEG + r':){1,7}:'

The `\s` required whitespace before each hextet in the repeated
group. In practice this meant compressed forms with leading
hextets — `2001:db8::`, `64:ff9b::`, `fe80::1` — only matched
when preceded by whitespace inside the line. The linter calls
`lint_ipv6(line.strip())`, so at start-of-stripped-line there's
no whitespace, and the address fell through to no match.
Real-world impact: a documentation page mentioning
`2001:4860:4860::8888` (Google DNS) or `64:ff9b::1` (NAT64
well-known prefix) at the start of a line silently passed the
IPv6 documentation-address check.

None of the other groups in `IPV6GROUPS` use a `\s` prefix.
This one was inconsistent. Drop the `\s` so the branch matches
compressed forms directly, like its peers.

Verified with 6 hand-coded cases (RFC 3849 doc range, Google
DNS, NAT64 prefix, mid-line and start-of-line positions). All
pass.

Tracked as item 3 of the rolling-side cleanup backlog from PR
#2014 / #2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit cc1b4d7c28272786e39a11b37a3ca22b80b12eec)
</content>
</entry>
<entry>
<title>ci(doc-linter): check every IP on a line, not just the first</title>
<updated>2026-05-14T05:08:36+00:00</updated>
<author>
<name>Yuriy Andamasov</name>
<email>yuriy@vyos.io</email>
</author>
<published>2026-05-13T21:43:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-documentation.git/commit/?id=f2be9537a95e93f0a371c2ed2e7fb66ad59306e3'/>
<id>urn:sha1:f2be9537a95e93f0a371c2ed2e7fb66ad59306e3</id>
<content type='text'>
`lint_ipv4()` and `lint_ipv6()` used `re.search`, which returns
only the first match. A line like

    Set DNS forwarder 192.0.2.1 then fall back to 8.8.8.8

flagged nothing because `192.0.2.1` (RFC 5737 documentation
range) is allowed and the search stopped there. The real
public IP `8.8.8.8` slipped through despite being exactly
the case the linter was meant to catch.

Switch both functions to `re.finditer` and walk every match:
return on the first disallowed address; only return None when
all matches on the line are allowed (private / multicast /
non-global).

Also fix the casing of "private space" in both error
messages — was "private Space" with a stray capital.

Verified with 7 hand-coded cases (allowed + public mixes,
boundary cases, IPv6 RFC 3849 / Google DNS). All pass.

Tracked as items 1, 2, and 10 of the rolling-side cleanup
backlog from PR #2014 / #2019 / #2020 reviews.

🤖 Generated by [robots](https://vyos.io)

(cherry picked from commit 85c0c1ea222d2c70662de5a03ecaf04b6498006e)
</content>
</entry>
</feed>
