GitHub

File tree

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

Original file line numberDiff line numberDiff line change

@@ -22,7 +22,7 @@

2222

toc_label=attribute.name) %}

2323
2424

{% if config.separate_signature %}

25-

{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}

25+

<span class="doc doc-object-name doc-attribute-name">{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}</span>

2626

{% else %}

2727

{% filter highlight(language="python", inline=True) %}

2828

{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}

Original file line numberDiff line numberDiff line change

@@ -22,7 +22,7 @@

2222

toc_label=class.name) %}

2323
2424

{% if config.separate_signature %}

25-

{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}

25+

<span class="doc doc-object-name doc-class-name">{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}</span>

2626

{% elif config.merge_init_into_class and "__init__" in class.members -%}

2727

{%- with function = class.members["__init__"] -%}

2828

{%- filter highlight(language="python", inline=True) -%}

Original file line numberDiff line numberDiff line change

@@ -22,7 +22,7 @@

2222

toc_label=function.name ~ "()") %}

2323
2424

{% if config.separate_signature %}

25-

{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}

25+

<span class="doc doc-object-name doc-function-name">{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}</span>

2626

{% else %}

2727

{% filter highlight(language="python", inline=True) %}

2828

{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}

Original file line numberDiff line numberDiff line change

@@ -21,9 +21,13 @@

2121

class="doc doc-heading",

2222

toc_label=module.name) %}

2323
24-

{% if not config.separate_signature %}<code>{% endif %}

25-

{% if show_full_path %}{{ module.path }}{% else %}{{ module.name }}{% endif %}

26-

{% if not config.separate_signature %}</code>{% endif %}

24+

{% with module_name = module.path if show_full_path else module.name %}

25+

{% if config.separate_signature %}

26+

<span class="doc doc-object-name doc-module-name">{{ module_name }}</span>

27+

{% else %}

28+

<code>{{ module_name }}</code>

29+

{% endif %}

30+

{% endwith %}

2731
2832

{% with labels = module.labels %}

2933

{% include "labels.html" with context %}

Read the original on github.com ↗