From: Dietmar Maurer <dietmar@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox 1/2] router: docs: add horizontal line before nested command docs
Date: Fri, 21 Feb 2025 07:50:16 +0100 [thread overview]
Message-ID: <20250221065017.1300479-1-dietmar@proxmox.com> (raw)
Lines before commanmd groups are missing (i.e. see proxmox-backup-client command
syntax docs)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
proxmox-router/src/cli/format.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxmox-router/src/cli/format.rs b/proxmox-router/src/cli/format.rs
index 84936336..95448aa9 100644
--- a/proxmox-router/src/cli/format.rs
+++ b/proxmox-router/src/cli/format.rs
@@ -415,6 +415,9 @@ fn generate_nested_usage_do<'cli>(
));
}
CommandLineInterface::Nested(map) => {
+ if format == DocumentationFormat::ReST {
+ usage.push_str("\n----\n\n");
+ }
usage.push_str(&generate_nested_usage_do(state, &new_prefix, map, format));
}
}
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next reply other threads:[~2025-02-21 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 6:50 Dietmar Maurer [this message]
2025-02-21 6:50 ` [pbs-devel] [PATCH proxmox 2/2] schema: support doc generation in Djot format Dietmar Maurer
2025-02-21 9:10 ` [pbs-devel] applied: [PATCH proxmox 1/2] router: docs: add horizontal line before nested command docs Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250221065017.1300479-1-dietmar@proxmox.com \
--to=dietmar@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal