Skip to content

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

Open
@mondeja

Description

@mondeja

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions