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:" }}
{% for attribute in section.value %}
@@ -40,7 +43,9 @@
{% endfor %}
+ {% 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:" }}
{% for parameter in section.value %}
@@ -40,7 +43,9 @@
{% endfor %}
+ {% 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:" }}
{% for parameter in section.value %}
@@ -50,7 +53,9 @@
{% endfor %}
+ {% 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:" }}
{% for raises in section.value %}
@@ -38,7 +41,9 @@
{% endfor %}
+ {% 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:" }}
{% for receives in section.value %}
@@ -43,7 +46,9 @@
{% endfor %}
+ {% 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:" }}
{% for returns in section.value %}
@@ -43,7 +46,9 @@
{% endfor %}
+ {% 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:" }}
{% for warns in section.value %}
@@ -38,7 +41,9 @@
{% endfor %}
+ {% 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:" }}
{% for yields in section.value %}
@@ -43,7 +46,9 @@
{% endfor %}
+ {% 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