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 0b291574..88c5990d 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Attributes:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Attributes:") }}
{% for attribute in section.value %}
@@ -55,7 +55,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html
index 42531649..b8ad2e0f 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Classes:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Classes:") }}
{% for class in section.value %}
@@ -42,7 +42,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html
index f93a2e4b..ab1939f5 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Methods:") if obj.is_class else lang.t("Functions:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Methods:") if obj.is_class else lang.t("Functions:") }}
{% for function in section.value %}
@@ -46,7 +46,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
diff --git a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html
index 3bae2a83..f771f20b 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Modules:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Modules:") }}
{% for module in section.value %}
@@ -42,7 +42,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 8315381d..7ede6715 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
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Other Parameters:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Other Parameters:") }}
{% for parameter in section.value %}
@@ -55,7 +55,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 9483e8af..7b4788ca 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Parameters:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Parameters:") }}
{% for parameter in section.value %}
@@ -70,7 +70,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 e4edc66a..396ccc73 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Raises:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ lang.t(section.title) or lang.t("Raises:") }}
{% for raises in section.value %}
@@ -52,7 +52,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 d58fb684..77d83c0b 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{% set name_column = section.value|selectattr("name")|any %}
{{ section.title or lang.t("Receives:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Receives:") }}
{% for receives in section.value %}
@@ -58,7 +58,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 a8e3b776..b19917a3 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{% set name_column = section.value|selectattr("name")|any %}
{{ section.title or lang.t("Returns:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Returns:") }}
{% for returns in section.value %}
@@ -58,7 +58,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 cf1cc4a6..8377669f 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{{ section.title or lang.t("Warns:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Warns:") }}
{% for warns in section.value %}
@@ -52,7 +52,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}
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 63824c0c..c69135ea 100644
--- a/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html
+++ b/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html
@@ -3,7 +3,7 @@
{% import "language.html" as lang with context %}
{% if config.docstring_section_style == "table" %}
- {% block table_style %}
+ {% block table_style scoped %}
{% set name_column = section.value|selectattr("name")|any %}
{{ section.title or lang.t("Yields:") }}
{% endblock table_style %}
{% elif config.docstring_section_style == "list" %}
- {% block list_style %}
+ {% block list_style scoped %}
{{ section.title or lang.t("Yields:") }}
{% for yields in section.value %}
@@ -58,7 +58,7 @@
{% endblock list_style %}
{% elif config.docstring_section_style == "spacy" %}
- {% block spacy_style %}
+ {% block spacy_style scoped %}