Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mondeja opened this issue Jun 22, 2022 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mondeja
Copy link
Collaborator

mondeja commented Jun 22, 2022

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 mondeja added the bug Something isn't working label Jun 22, 2022
@gaborbernat
Copy link
Member

Feel free to add a PR to address this 👍

@gaborbernat gaborbernat added the help wanted Extra attention is needed label Sep 1, 2023
@mondeja mondeja removed their assignment Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants