diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html index 5d0dc85..9c80b82 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering attributes section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %}

{{ section.title or "Attributes:" }}

@@ -25,7 +26,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Attributes:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -69,4 +74,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html index 709a799..9a42d41 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering other parameters section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %}

{{ section.title or "Other Parameters:" }}

@@ -25,7 +26,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Other Parameters:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -69,4 +74,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html index 4a28ae1..6665dd7 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering parameters section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %}

{{ section.title or "Parameters:" }}

@@ -35,7 +36,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Parameters:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -87,4 +92,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html index 71d76e1..5d02fd3 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering raises section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %}

{{ section.title or "Raises:" }}

@@ -23,7 +24,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Raises:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -63,4 +68,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html index 0a6c5b5..61f2b48 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering receives section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %} {% set name_column = section.value|selectattr("name")|any %}

{{ section.title or "Receives:" }}

@@ -26,7 +27,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Receives:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -82,4 +87,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html index b62c809..a1c9c01 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering returns section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %} {% set name_column = section.value|selectattr("name")|any %}

{{ section.title or "Returns:" }}

@@ -26,7 +27,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Returns:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -82,4 +87,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html index 4b2d686..25a39b6 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering warns section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %}

{{ section.title or "Warns:" }}

@@ -23,7 +24,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Warns:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -63,4 +68,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html index b24ce80..891e67d 100644 --- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html +++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html @@ -1,5 +1,6 @@ {{ log.debug("Rendering yields section") }} {% if config.docstring_section_style == "table" %} + {% block table_style %} {% set name_column = section.value|selectattr("name")|any %}

{{ section.title or "Yields:" }}

@@ -26,7 +27,9 @@ {% endfor %}
+ {% endblock table_style %} {% elif config.docstring_section_style == "list" %} + {% block list_style %}

{{ section.title or "Yields:" }}

+ {% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} + {% block spacy_style %} @@ -82,4 +87,5 @@ {% endfor %}
+ {% endblock spacy_style %} {% endif %} \ No newline at end of file