From 45f60a66903105d7a2fcb2a1ad64c3b347723f42 Mon Sep 17 00:00:00 2001 From: Niclas Heinz Date: Thu, 16 Jan 2025 04:31:17 +0100 Subject: [PATCH 1/4] Documentation (#7905) --- mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 8d7a3c0e8e2..23cec8d579a 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -31,7 +31,7 @@ repo_name: squidfunk/mkdocs-material repo_url: https://github.com/squidfunk/mkdocs-material # Copyright -copyright: Copyright © 2016 - 2024 Martin Donath +copyright: Copyright © 2016 - 2025 Martin Donath # Configuration theme: From 6d1ef25146b11ffd98941a36d5fc1c8b6b5ad18e Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 18 Jan 2025 09:13:46 +0700 Subject: [PATCH 2/4] Switched social plugin to other hook --- material/plugins/social/plugin.py | 2 +- src/plugins/social/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index 9b84a1245fa..187ce05a4db 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -163,7 +163,7 @@ def on_config(self, config): self._image_promises = [] # Create social cards - def on_page_markdown(self, markdown, page, config, files): + def on_page_content(self, html, page, config, files): if not self.config.cards: return diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index 9b84a1245fa..187ce05a4db 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -163,7 +163,7 @@ def on_config(self, config): self._image_promises = [] # Create social cards - def on_page_markdown(self, markdown, page, config, files): + def on_page_content(self, html, page, config, files): if not self.config.cards: return From 0b44f9c8dd407f916c1532ac0a82009ef1ada9f1 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 18 Jan 2025 09:29:42 +0700 Subject: [PATCH 3/4] Documentation --- docs/plugins/social.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/plugins/social.md b/docs/plugins/social.md index 7ad60addff3..123d2dc09fe 100644 --- a/docs/plugins/social.md +++ b/docs/plugins/social.md @@ -669,6 +669,9 @@ Setting an option to `#!yaml null` resets the option. ### Layouts + + + While it is possible and simple to build [custom layouts], the plugin ships several predefined layouts, all of which are prefixed with `default`. The following layouts are included: From 5586178ac779adaaabbe7dba96b84bb1b2b403f4 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 18 Jan 2025 10:57:58 +0700 Subject: [PATCH 4/4] Prepare 9.5.50 release --- CHANGELOG | 4 ++++ docs/changelog/index.md | 4 ++++ material/__init__.py | 2 +- material/templates/base.html | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2b5e3ddec6b..dda40a92a1b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +mkdocs-material-9.5.50 (2025-01-18) + + * Fixed #7913: Social plugin renders attribute lists in page title + mkdocs-material-9.5.49+insiders-4.53.15 (2025-01-15) * Fixed #7896: Scoped tags listings not rendering in subsections diff --git a/docs/changelog/index.md b/docs/changelog/index.md index 7267869fcbd..57bb5697289 100644 --- a/docs/changelog/index.md +++ b/docs/changelog/index.md @@ -2,6 +2,10 @@ ## Material for MkDocs +### 9.5.50 January 18, 2025 { id="9.5.50" } + +- Fixed #7913: Social plugin renders attribute lists in page title + ### 9.5.49 December 16, 2024 { id="9.5.49" } - Adjusted title color in dark mode for all supported Mermaid.js diagrams diff --git a/material/__init__.py b/material/__init__.py index 110ab6eec7c..3a08ca8450d 100644 --- a/material/__init__.py +++ b/material/__init__.py @@ -18,4 +18,4 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -__version__ = "9.5.49" +__version__ = "9.5.50" diff --git a/material/templates/base.html b/material/templates/base.html index 08646d3f9e6..267a23920cf 100644 --- a/material/templates/base.html +++ b/material/templates/base.html @@ -32,7 +32,7 @@ {% endif %} - + {% endblock %} {% block htmltitle %} {% if page.meta and page.meta.title %} diff --git a/package-lock.json b/package-lock.json index f6efbce058d..0e6a75bc4e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mkdocs-material", - "version": "9.5.49", + "version": "9.5.50", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mkdocs-material", - "version": "9.5.49", + "version": "9.5.50", "license": "MIT", "dependencies": { "clipboard": "^2.0.11", diff --git a/package.json b/package.json index c0404a398bb..ccee1ca171c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "9.5.49", + "version": "9.5.50", "description": "Documentation that simply works", "keywords": [ "mkdocs",