Skip to content

Commit 8fed314

Browse files
committed
refactor: Reduce number of template debug logs
1 parent aaa79ee commit 8fed314

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{ log.debug("Rendering children of " + obj.path) }}
21
{% if obj.members %}
2+
{{ log.debug("Rendering children of " + obj.path) }}
33

44
<div class="doc doc-children">
55

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{ log.debug("Rendering docstring") }}
21
{% if docstring_sections %}
2+
{{ log.debug("Rendering docstring") }}
33
{% for section in docstring_sections %}
44
{% if section.kind.value == "text" %}
55
{{ section.value|convert_markdown(heading_level, html_id) }}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{ log.debug("Rendering labels") }}
21
{% if labels %}
2+
{{ log.debug("Rendering labels") }}
33
<span class="doc doc-properties">
44
{% for label in labels %}
55
<small class="doc doc-label doc-label-{{ label }}"><code>{{ label }}</code></small>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{ log.debug("Rendering signature of " + function.path) }}
21
{%- if config.show_signature -%}
2+
{{ log.debug("Rendering signature") }}
33
{%- with -%}
44

55
{%- set ns = namespace(render_pos_only_separator=True, render_kw_only_separator=True, equal="=") -%}

0 commit comments

Comments
 (0)