diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-02 18:50:07 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-06 16:18:03 +0300 |
| commit | 38ff65941d6cd771700480fd2e6c88dad6a01c24 (patch) | |
| tree | 6023dfb1045c8ce3bd4b72eec543737f40ff7f7f /docs/contributing/md-testing.md | |
| parent | 5dbb26f7b468874a8c6d1ba1a9cca3bb3d40f24f (diff) | |
| download | vyos-documentation-38ff65941d6cd771700480fd2e6c88dad6a01c24.tar.gz vyos-documentation-38ff65941d6cd771700480fd2e6c88dad6a01c24.zip | |
fix(swap): address Copilot review feedback on swap infrastructure
Category D — drop obsolete canary mechanism settings:
- conf.py: remove '**/md-*.md' from exclude_patterns (no canaries left)
- Makefile: replace malformed '*/_build/*' with '$(BUILDDIR)/**' and drop
the '*/md-*' ignore (canary files no longer exist)
Category C — script robustness:
- import_myst.py:
* list_myst_files() now raises SystemExit on git ls-tree failure instead
of silently returning [] (would have masked typo'd --source refs)
* list_rst_files() skips _build/ when scanning for .rst stems
* import_page() rejects stems containing '..' or absolute paths and
re-checks that the resolved destination stays under docs_dir
* --dry-run uses a separate "would_import" counter; summary line now
distinguishes dry-run from actual imports
- swap_sources.py:
* parse_swap_list() reads with explicit encoding='utf-8'
* do_restore() validates state file version + entry shape before
renaming files; raises with actionable message on corruption
* State file reads/writes use explicit encoding='utf-8' throughout
_swap.txt:
- Wrap long comment line to satisfy 80-character doc-linter limit
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/contributing/md-testing.md')
0 files changed, 0 insertions, 0 deletions
