File tree 4 files changed +10
-6
lines changed
src/mkdocstrings_handlers/python/templates/material/_base
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
22
toc_label=attribute.name) %}
23
23
24
24
{% 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 >
26
26
{% else %}
27
27
{% filter highlight(language="python", inline=True) %}
28
28
{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}
Original file line number Diff line number Diff line change 22
22
toc_label=class.name) %}
23
23
24
24
{% 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 >
26
26
{% elif config.merge_init_into_class and "__init__" in class.members -%}
27
27
{%- with function = class.members["__init__"] -%}
28
28
{%- filter highlight(language="python", inline=True) -%}
Original file line number Diff line number Diff line change 22
22
toc_label=function.name ~ "()") %}
23
23
24
24
{% 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 >
26
26
{% else %}
27
27
{% filter highlight(language="python", inline=True) %}
28
28
{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
Original file line number Diff line number Diff line change 21
21
class="doc doc-heading",
22
22
toc_label=module.name) %}
23
23
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 %}
27
31
28
32
{% with labels = module.labels %}
29
33
{% include "labels.html" with context %}
You can’t perform that action at this time.
0 commit comments