Add man_skip_desc_subtitle option #9431
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A configuration value to optionally skip printing the description
of a command as a subtitle when generating a manpage.
This commit addresses #9430
Signed-off-by: Harumi Kuno harumi.kuno@hpe.com
Subject: add option to manpage builder to not generate descriptive subtitle
Feature or Bugfix
Purpose
@jsquyres and I would like to generate both groff files and also html files from a single set of rst man page files.
However, the manpage.py writer currently always prints a subtitle (added by the manpage.py builder) with a description of the command (the html writer does not do this).
The problem is that there is currently no way to turn that off and if the man page files already include descriptions of the commands (e.g., because the rst files were ported from nroff files), then that description will appear twice in the generated man page.
For example, if rst/conf.py contains the following:
Then the generated man page will look like this:
With this change, someone could invoke sphinx-build with a configuration option, like this:
And then the generated man page will look like this:
Relates