diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 09:16:25 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 09:16:25 +0300 |
| commit | 1b3277b4579a7b0a7231e3cfd5b98ac405ba45c0 (patch) | |
| tree | 1ebcde8eed34bfd2702cab07130455f66dd437bc /docs/_static/css/code-snippets.css | |
| parent | c7e09acb74cec3dc5e5218f6e5daa29f06f7a4dc (diff) | |
| download | vyos-documentation-1b3277b4579a7b0a7231e3cfd5b98ac405ba45c0.tar.gz vyos-documentation-1b3277b4579a7b0a7231e3cfd5b98ac405ba45c0.zip | |
docs(conf.py): use FileSystemLoader/get_template for better tracebacks
Switch from `Environment.from_string(tpl_path.read_text(...))` to
`Environment(loader=FileSystemLoader(...)).get_template('llms.txt.j2')`.
When `StrictUndefined` raises on a typo in `llms.txt.j2` (e.g.
`{{ relase }}`), the traceback now references the real template
filename and line number instead of an anonymous in-memory template.
That makes debugging template typos materially easier without changing
any other behavior — same fail-fast guard, same trailing-newline
handling, same rendered output.
Same change applied symmetrically across [#1874](https://github.com/vyos/vyos-documentation/pull/1874) (current),
[#1876](https://github.com/vyos/vyos-documentation/pull/1876) (sagitta), and [#1903](https://github.com/vyos/vyos-documentation/pull/1903) (circinus) so the hook
stays identical across branches.
Addresses CodeRabbit/Copilot review feedback on PR #1903.
\xf0\x9f\xa4\x96 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/_static/css/code-snippets.css')
0 files changed, 0 insertions, 0 deletions
