Skip to content

Commit

Permalink
refactor: Never show full object path in ToC entry
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Aug 24, 2023
1 parent 38b317f commit 9aa758b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{% filter heading(heading_level,
role="data" if attribute.parent.kind.value == "module" else "attr",
id=html_id,
toc_label=attribute.path if config.show_root_full_path else attribute.name,
toc_label=attribute.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{% filter heading(heading_level,
role="class",
id=html_id,
toc_label=class.path if config.show_root_full_path else class.name,
toc_label=class.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{% filter heading(heading_level,
role="function",
id=html_id,
toc_label=function.path if config.show_root_full_path else function.name,
toc_label=function.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% filter heading(heading_level,
role="module",
id=html_id,
toc_label=module.path if config.show_root_full_path else module.name,
toc_label=module.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down

0 comments on commit 9aa758b

Please sign in to comment.