8000 fix: Render attribute names without full path in ToC · davlee1972/mkdocstrings-python@d4e618a · GitHub
[go: up one dir, main page]

Skip to content

Commit d4e618a

Browse files
authored
fix: Render attribute names without full path in ToC
Issue-271: mkdocstrings#271 PR-272: mkdocstrings#272
1 parent bb36fa1 commit d4e618a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Context:
3939
role="data" if attribute.parent.kind.value == "module" else "attr",
4040
id=html_id,
4141
class="doc doc-heading",
42-
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute_name),
42+
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute.name),
4343
) %}
4444

4545
{% block heading scoped %}

0 commit comments

Comments
 (0)
0