summaryrefslogtreecommitdiff
path: root/docs/_include
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-14 00:57:01 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2026-05-13 22:05:52 +0000
commit015afa1c5eef9f4b3a04ee7145c76ebf9b450221 (patch)
treee1b39be544e76c084d62f4ede8465e7960c8e50e /docs/_include
parente00e8e38476742ad23c627f77f0e1525f8f7495f (diff)
downloadvyos-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.txt2
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`.
:::
+::::