Skip to content

Commit

Permalink
refactor: Respect show_root_full_path for ToC entries (hidden headi…
Browse files Browse the repository at this point in the history
…ngs)
  • Loading branch information
pawamoy committed Apr 28, 2022
1 parent 59104c4 commit 8f4c853
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 @@ -53,7 +53,7 @@
{% filter heading(heading_level,
role="data" if attribute.parent.kind.value == "module" else "attr",
id=html_id,
toc_label=attribute.path,
toc_label=attribute.path if config.show_root_full_path else attribute.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{% filter heading(heading_level,
role="class",
id=html_id,
toc_label=class.path,
toc_label=class.path if config.show_root_full_path else class.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{% filter heading(heading_level,
role="function",
id=html_id,
toc_label=function.path,
toc_label=function.path if config.show_root_full_path else function.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% filter heading(heading_level,
role="module",
id=html_id,
toc_label=module.path,
toc_label=module.path if config.show_root_full_path else module.name,
hidden=True) %}
{% endfilter %}
{% endif %}
Expand Down

0 comments on commit 8f4c853

Please sign in to comment.