diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 00:57:01 +0300 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2026-05-13 22:05:52 +0000 |
| commit | 015afa1c5eef9f4b3a04ee7145c76ebf9b450221 (patch) | |
| tree | e1b39be544e76c084d62f4ede8465e7960c8e50e /docs/_include | |
| parent | e00e8e38476742ad23c627f77f0e1525f8f7495f (diff) | |
| download | vyos-documentation-015afa1c5eef9f4b3a04ee7145c76ebf9b450221.tar.gz vyos-documentation-015afa1c5eef9f4b3a04ee7145c76ebf9b450221.zip | |
fix(includes): wrap admonition in `{only} not latex` to preserve PDF suppression
The original RST `_include/need_improvement.txt` wrapped the admonition
in `.. raw:: latex \iffalse / \fi`, intentionally hiding the
"Call for Contributions" notice from the LaTeX/PDF builder (see
b222a313, 2020). `.readthedocs.yml` enables `formats: - pdf` and
`conf.py` configures `latex_elements`/`latex_documents`, so PDF output
is a real downstream artifact.
The previous commit (82a06e1d) dropped that suppression. Restore it
using Sphinx's `only` directive with `not latex`, which is the MyST
equivalent of the original RST builder-conditional pattern.
Spotted by Copilot inline review on #2016.
🤖 Generated by [robots](https://vyos.io)
(cherry picked from commit 86de2de975cf4958c84d73cdd669be525e4680ea)
Diffstat (limited to 'docs/_include')
| -rw-r--r-- | docs/_include/need_improvement.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/_include/need_improvement.txt b/docs/_include/need_improvement.txt index c95260ee..23f33f66 100644 --- a/docs/_include/need_improvement.txt +++ b/docs/_include/need_improvement.txt @@ -1,3 +1,4 @@ +::::{only} not latex :::{admonition} Call for Contributions :class: error @@ -5,3 +6,4 @@ Help improve this section with additional content, examples, and explanations. For contribution guidelines, see {ref}`documentation`. ::: +:::: |
