Files
podman/docs/source/markdown
Garv Changrani 4f17e22aed docs: check missing prompts in man-page examples
Some commands inside existing man-page code fences were missing
the $ or # prompt described in MANPAGE_SYNTAX.md. Added the missing
prompts and documented how the new check works.

Added a check to xref-helpmsgs-manpages for fenced blocks in EXAMPLE
and EXAMPLES sections. It checks unlabelled blocks and blocks labelled
sh, bash, shell, or console. After skipping blank lines and ###
comments, it reports an error if the first remaining line starts
with bare podman or sudo podman. The error includes the file and
line number.

Only that first remaining line is checked, since later lines may
contain command output. Blocks labelled for Windows shells are
excluded from the Unix prompt check. Added powershell labels to
the existing Hyper-V example fences.

Added regression tests and included them in the tooling self-tests.
These tests do not need a built Podman binary or generated docs.

Also fixed the existing volume-prune test, which still looked for
driver and opt rows that were removed from the man page. Using the
existing label and until rows restores both checks for a misplaced
negated filter and a duplicate filter entry.

Fixes: https://github.com/podman-container-tools/podman/issues/26428

Signed-off-by: Garv  Changrani <154041471+Garvity@users.noreply.github.com>
2026-10-06 09:39:48 +00:00
..
2025-06-13 04:47:22 -04:00
2024-04-04 09:28:21 -04:00
2025-08-15 23:14:24 +05:30
2025-08-15 23:14:24 +05:30
2025-08-15 23:14:24 +05:30
2025-08-06 22:34:18 +03:00