-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add intersphinx link when using autodoc and "show-inheritance": True
#9420
Comments
AFAIK, the feature you requested has already been implemented. I think this might be a bug or wrong settings. Could you share a reproducible (minimal) example? |
Sure! Thanks...
|
@tk0miya I linked an exmple and added a screenshot. This link in the docstring works:
|
Code here:
|
I understand your problem. The upstream document only provides the document for Since Sphinx-4.0, we provides an option to describe the canonical name of the object. I believe this problem will be solved if the upstream project rebuilds document by latest release. |
I tried to look up documentation on how the canonical name is supposed to behave. Do you need to annotate all the canonical names in the Intersphinx upstream project or are they automatically generated if Sphinx is updated and the upstream projects regenerated its Intersphinx inventory? |
If the upstream project uses autodoc, it's automatically generated after the upgrade. On the other hand, additional annotations are needed if the upstream project has written their document manually using |
When I have set up intersphinx and use autodoc with
"show-inheritance": True
then something like this is generated:But
transformers.trainer_callback.TrainerCallback
is not a link. Just text.Could you change this so a link is provided?
The text was updated successfully, but these errors were encountered: