Skip to content

Commit 9e02049

Browse files
committed
refactor: Never show full path in separate signature since it would appear in the heading already
1 parent 35eb811 commit 9e02049

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{% if config.separate_signature %}
4646
{% filter highlight(language="python", inline=False) %}
4747
{% filter format_code(config.line_length) %}
48-
{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}
48+
{{ attribute.name }}
4949
{% if attribute.annotation %}: {{ attribute.annotation|safe }}{% endif %}
5050
{% if attribute.value %} = {{ attribute.value|safe }}{% endif %}
5151
{% endfilter %}

src/mkdocstrings_handlers/python/templates/material/_base/class.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{% if "__init__" in class.members %}
5050
{% with function = class.members["__init__"] %}
5151
{% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %}
52-
{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
52+
{{ class.name }}
5353
{% endfilter %}
5454
{% endwith %}
5555
{% endif %}

src/mkdocstrings_handlers/python/templates/material/_base/function.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{% block signature scoped %}
4646
{% if config.separate_signature %}
4747
{% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %}
48-
{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
48+
{{ function.name }}
4949
{% endfilter %}
5050
{% endif %}
5151
{% endblock signature %}

0 commit comments

Comments
 (0)