-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Broken links in inheritance diagrams #3176
Comments
Do you remember what I said in #3164?
Could you show reproducible and minimal project without 3rd extensions please? |
The issue is the same even if I disable all extensions except for:
inheritance_diagram.py line 362..372: for child in node:
if child.get('refuri') is not None:
if graphviz_output_format == 'SVG':
urls[child['reftitle']] = "../" + child.get('refuri')
print("-- " + urls[child['reftitle']])
else:
urls[child['reftitle']] = child.get('refuri')
elif child.get('refid') is not None:
if graphviz_output_format == 'SVG':
urls[child['reftitle']] = '../' + current_filename + '#' + child.get('refid')
print("++ " + urls[child['reftitle']])
else:
urls[child['reftitle']] = '#' + child.get('refid') Results in:
So we see the missing URL path comes from line 365 So I did another test and disabled a setting called:
|
Sorry,
Because
In SVG case, the URL means a relative path from SVG file. |
I am seeing the same behavior, but I would rather not use png as it does not render pretty. Is there a fix for svg? |
I still see this issue in recent versions of sphinx. Is there any chance the links in the SVG version of the graphs created for inheritance diagrams will be fixed? |
This is a followup issue on #3164, which corrected inheritance diagrams.
HTML links in an inheritance diagram are broken if the target is defined in another Python module or package and hence in another HTML file. The Python documentation is generated by
autoapi
and stored in the folderdocs/PyInfrastructure
.As you can see, exception classes defined in the same Python module are referenced with
PyInfrastructure
in the URL. Exception classes from an other module and/or package miss this part of the URL (second half of the image).The text was updated successfully, but these errors were encountered: