sphinx-argparse-cli icon indicating copy to clipboard operation
sphinx-argparse-cli copied to clipboard

When `title` is empty, argument groups are not recognized by toctree

Open mondeja opened this issue 3 years ago • 1 comments

With this input:

.. sphinx_argparse_cli::
   :module: my_prog.__main__
   :func: build_parser
   :prog: my-prog

Toctree render as:

image


And with this input:

#######################
my-prog - CLI interface
#######################

.. sphinx_argparse_cli::
   :module: my_prog.__main__
   :func: build_parser
   :prog: my-prog
   :title:

Toctree render as:

image

But the group is added as an <h2> in the page.

mondeja avatar Jun 22 '22 11:06 mondeja

Feel free to add a PR to address this 👍

gaborbernat avatar Jun 24 '22 14:06 gaborbernat