8000 refactor: Bring consistency on headings style · mkdocstrings/python@59104c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59104c4

Browse files
committed
refactor: Bring consistency on headings style
1 parent dd41182 commit 59104c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
toc_label=class.name) %}
2424

2525
{% if config.separate_signature %}
26-
<code>{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}</code>
26+
{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
2727
{% elif config.merge_init_into_class and "__init__" in class.members -%}
2828
{%- with function = class.members["__init__"] -%}
2929
{%- filter highlight(language="python", inline=True) -%}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
class="doc doc-heading",
2323
toc_label=module.name) %}
2424

25-
<code>{% if show_full_path %}{{ module.path }}{% else %}{{ module.name }}{% endif %}</code>
25+
{% if not config.separate_signature %}<code>{% endif %}
26+
{% if show_full_path %}{{ module.path }}{% else %}{{ module.name }}{% endif %}
27+
{% if not config.separate_signature %}</code>{% endif %}
2628

2729
{% with labels = module.labels %}
2830
{% include "labels.html" with context %}

0 commit comments

Comments
 (0)
0