File tree 4 files changed +16
-8
lines changed
src/mkdocstrings_handlers/python/templates/material/_base 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ Context:
48
48
This block renders the heading for the attribute.
49
49
-#}
50
50
{% if config .show_symbol_type_heading %} <code class =" doc-symbol doc-symbol-heading doc-symbol-attribute" ></code >{% endif %}
51
- {% if config .separate_signature %}
52
- <span class =" doc doc-object-name doc-attribute-name" >{{ config.heading if config.heading and root else attribute_name }}</span >
51
+ {% if config .heading and root %}
52
+ {{ config.heading }}
53
+ {% elif config .separate_signature %}
54
+ <span class =" doc doc-object-name doc-attribute-name" >{{ attribute_name }}</span >
53
55
{% else %}
54
56
{% + filter highlight (language ="python" , inline =True ) %}
55
57
{{ attribute_name }}{% if attribute .annotation and config .show_signature_annotations %} : {{ attribute.annotation }}{% endif %}
Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ Context:
47
47
This block renders the heading for the class.
48
48
-#}
49
49
{% if config .show_symbol_type_heading %} <code class =" doc-symbol doc-symbol-heading doc-symbol-class" ></code >{% endif %}
50
- {% if config .separate_signature %}
51
- <span class =" doc doc-object-name doc-class-name" >{{ config.heading if config.heading and root else class_name }}</span >
50
+ {% if config .heading and root %}
51
+ {{ config.heading }}
52
+ {% elif config .separate_signature %}
53
+ <span class =" doc doc-object-name doc-class-name" >{{ class_name }}</span >
52
54
{% elif config .merge_init_into_class and "__init__" in all_members %}
53
55
{% with function = all_members ["__init__" ] %}
54
56
{% + filter highlight (language ="python" , inline =True ) -%}
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ Context:
54
54
This block renders the heading for the function.
55
55
-#}
56
56
{% if config .show_symbol_type_heading %} <code class =" doc-symbol doc-symbol-heading doc-symbol-{{ symbol_type }}" ></code >{% endif %}
57
- {% if config .separate_signature %}
58
- <span class =" doc doc-object-name doc-function-name" >{{ config.heading if config.heading and root else function_name }}</span >
57
+ {% if config .heading and root %}
58
+ {{ config.heading }}
59
+ {% elif config .separate_signature %}
60
+ <span class =" doc doc-object-name doc-function-name" >{{ function_name }}</span >
59
61
{% else %}
60
62
{% + filter highlight (language ="python" , inline =True ) -%}
61
63
{#- YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. -#}
Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ Context:
47
47
This block renders the heading for the module.
48
48
-#}
49
49
{% if config .show_symbol_type_heading %} <code class =" doc-symbol doc-symbol-heading doc-symbol-module" ></code >{% endif %}
50
- {% if config .separate_signature %}
51
- <span class =" doc doc-object-name doc-module-name" >{{ config.heading if config.heading and root else module_name }}</span >
50
+ {% if config .heading and root %}
51
+ {{ config.heading }}
52
+ {% elif config .separate_signature %}
53
+ <span class =" doc doc-object-name doc-module-name" >{{ module_name }}</span >
52
54
{% else %}
53
55
<code >{{ module_name }}</code >
54
56
{% endif %}
You can’t perform that action at this time.
0 commit comments