You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Sphinx 4.4.0 with sphinx-argparse 0.3.1 and I am seeing the following warning when using subparsers:
/.../api/cli.rst:3: WARNING: duplicate label positional arguments, other instance in /.../api/cli.rst
/.../api/cli.rst:3: WARNING: duplicate label named arguments, other instance in /.../api/cli.rst
/.../api/cli.rst:3: WARNING: duplicate label positional arguments, other instance in /.../api/cli.rst
/.../api/cli.rst:3: WARNING: duplicate label named arguments, other instance in /.../api/cli.rst
In my conf.py, I have enabled sphinx.ext.autosectionlabel for extensions. Here is a MWE of my test case:
I am looking at the docs and it states it handles duplicated header names by appending a number X to the anchor name, but it doesn't appear this is working correctly. Either that or the anchor is ignored because I am using sphinx.ext.autosectionlabel?
The text was updated successfully, but these errors were encountered:
I checked sphinx.ext.autosectionlabel docs and I can use autosectionlabel_prefix_document, but this isn't helpful as I would like to keep the argparse stuff in the same document.
I am running Sphinx 4.4.0 with sphinx-argparse 0.3.1 and I am seeing the following warning when using subparsers:
In my
conf.py
, I have enabledsphinx.ext.autosectionlabel
forextensions
. Here is a MWE of my test case:I am looking at the docs and it states it handles duplicated header names by appending a number
X
to the anchor name, but it doesn't appear this is working correctly. Either that or the anchor is ignored because I am usingsphinx.ext.autosectionlabel
?The text was updated successfully, but these errors were encountered: