GitHub

File tree

  • src/mkdocstrings_handlers/python/templates/material/_base

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) -%}

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 %}

Read the original on github.com ↗