Skip to content

Commit

Permalink
Always link to top of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 8, 2024
1 parent 2f0a3c9 commit 44458c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inheritance_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ def html_visit_inheritance_diagram(self: HTML5Translator, node: inheritance_diag
else:
refname = child['reftitle']

urls[refname] = child.get('refuri')
if '#' in child.get('refuri'):
urls[refname] = child['refuri'].split('#')[0]
else:
urls[refname] = child.get('refuri')
elif child.get('refid') is not None:
if graphviz_output_format == 'SVG':
urls[child['reftitle']] = current_filename + '#' + child.get('refid')
Expand Down

0 comments on commit 44458c3

Please sign in to comment.