diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-04-27 06:12:19 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-06 16:18:03 +0300 |
| commit | 112a2811be8cbaff3dcf64353a13aabd9876bd4c (patch) | |
| tree | 8a212c8cd46bd9230db6dda611c90d790b552e76 | |
| parent | 180e4957006bb4060ef8aafc0570771f0705e118 (diff) | |
| download | vyos-documentation-112a2811be8cbaff3dcf64353a13aabd9876bd4c.tar.gz vyos-documentation-112a2811be8cbaff3dcf64353a13aabd9876bd4c.zip | |
feat: add empty _swap.txt, remove atexit from swap script
The atexit handler in --swap mode caused immediate restore on process
exit, breaking standalone usage. Makefile trap and RTD post_build
handle restore reliably.
🤖 Generated by [robots](https://vyos.io)
| -rw-r--r-- | docs/_swap.txt | 7 | ||||
| -rw-r--r-- | scripts/swap_sources.py | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/docs/_swap.txt b/docs/_swap.txt new file mode 100644 index 00000000..a731b9a2 --- /dev/null +++ b/docs/_swap.txt @@ -0,0 +1,7 @@ +# Incremental MyST swap list +# One page stem per line (relative to docs/, no extension) +# Pages listed here will render from MD instead of RST at build time. +# +# Example: +# quick-start +# configuration/firewall/zone diff --git a/scripts/swap_sources.py b/scripts/swap_sources.py index f983dbfa..7e82e876 100644 --- a/scripts/swap_sources.py +++ b/scripts/swap_sources.py @@ -295,8 +295,6 @@ def main(argv=None): parser.error(f"docs directory not found: {docs_dir}") if args.swap: - import atexit - atexit.register(do_restore, docs_dir) do_swap(docs_dir) elif args.restore: do_restore(docs_dir) |
