diff --git a/material/partials/content.html b/material/partials/content.html index 758be91b6..e61bcfb17 100644 --- a/material/partials/content.html +++ b/material/partials/content.html @@ -1,7 +1,7 @@ {#- This file was automatically generated - do not edit -#} -{% if "tags" in config.plugins %} +{% if "material/tags" in config.plugins %} {% include "partials/tags.html" %} {% endif %} {% include "partials/actions.html" %} diff --git a/material/partials/header.html b/material/partials/header.html index 61b9f27b2..6bab76893 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -67,7 +67,7 @@ {% endif %} - {% if "search" in config.plugins %} + {% if "material/search" in config.plugins %} diff --git a/material/plugins/tags/plugin.py b/material/plugins/tags/plugin.py index af7c5d61d..a040e68c6 100644 --- a/material/plugins/tags/plugin.py +++ b/material/plugins/tags/plugin.py @@ -42,6 +42,7 @@ class TagsPluginConfig(Config): # Tags plugin class TagsPlugin(BasePlugin[TagsPluginConfig]): + supports_multiple_instances = True # Initialize plugin def on_config(self, config): diff --git a/pyproject.toml b/pyproject.toml index b3210f4f7..7767daf50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,9 +51,9 @@ classifiers = [ ] [project.entry-points."mkdocs.plugins"] -search = "material.plugins.search.plugin:SearchPlugin" -social = "material.plugins.social.plugin:SocialPlugin" -tags = "material.plugins.tags.plugin:TagsPlugin" +"material/search" = "material.plugins.search.plugin:SearchPlugin" +"material/social" = "material.plugins.social.plugin:SocialPlugin" +"material/tags" = "material.plugins.tags.plugin:TagsPlugin" [project.entry-points."mkdocs.themes"] material = "material" diff --git a/requirements.txt b/requirements.txt index 0cee29cb8..992231f55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,7 @@ # Requirements for core jinja2>=3.0.2 markdown>=3.2 -mkdocs>=1.4.0 +mkdocs>=1.4.2 mkdocs-material-extensions>=1.1 pygments>=2.12 pymdown-extensions>=9.4 diff --git a/src/partials/content.html b/src/partials/content.html index 1cf0d8f31..9cb8f3d44 100644 --- a/src/partials/content.html +++ b/src/partials/content.html @@ -21,7 +21,7 @@ --> -{% if "tags" in config.plugins %} +{% if "material/tags" in config.plugins %} {% include "partials/tags.html" %} {% endif %} diff --git a/src/partials/header.html b/src/partials/header.html index 457e1b7b2..b1a148160 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -136,7 +136,7 @@ {% endif %} - {% if "search" in config.plugins %} + {% if "material/search" in config.plugins %} diff --git a/src/plugins/tags/plugin.py b/src/plugins/tags/plugin.py index af7c5d61d..a040e68c6 100644 --- a/src/plugins/tags/plugin.py +++ b/src/plugins/tags/plugin.py @@ -42,6 +42,7 @@ class TagsPluginConfig(Config): # Tags plugin class TagsPlugin(BasePlugin[TagsPluginConfig]): + supports_multiple_instances = True # Initialize plugin def on_config(self, config):