-
Notifications
You must be signed in to change notification settings - Fork 23
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
No apparent way to use cross-references #8
Comments
You should be able to find the targets by inspecting the objects.inv file (pickle format I think) |
@merwok The My bug report is saying "Sphinx won't let me reference the targets that autoprogram puts in |
My point was looking at the objects.inv contents to see that the targets to be used are! |
And I said that I did, and Sphinx refused to accept what I found. (This is far from the only time I've turned to |
Ah, I did not understand that you meant that! I wonder if the dot makes them invalid references. |
I followed @hroncok's mention and he found sphinx-argparse-cli. This is a newer sphinx extension that provides simple labels such that cross-referencing options or arguments is working properly via the |
I've been trying to cross-reference arguments in my
autoprogram
output and can't find any viable way to do it.According to
python3 -m sphinx.ext.intersphinx
, these are the cross-reference targets that are being generated......and, according to the Sphinx docs,
cmdoption
is a deprecated alias foroption
, but I getWARNING: unknown option
when I try to use:option:
or:any:
to cross-reference eitherquicktile.--show-bindings
or--show-bindings
.I've taken to the hacky and not-quite-right-looking solution of using this syntax for my option cross-references:
EDIT: The
-\\-
hack is broken in the manpage output. I had to resort to just disabling SmartyPants.EDIT: Correction: I have to special-case manpage output because
html_use_smartypants = False
is getting ignored.The text was updated successfully, but these errors were encountered: