From aaabbfe99eb05f2ff2bd311352e56fe4e8a24336 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 7 Feb 2025 12:07:03 +0700 Subject: [PATCH] Reverting group plugin fix --- material/plugins/group/config.py | 9 +-------- src/plugins/group/config.py | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/material/plugins/group/config.py b/material/plugins/group/config.py index d9a45ad03..ce7156e4e 100644 --- a/material/plugins/group/config.py +++ b/material/plugins/group/config.py @@ -27,12 +27,5 @@ from mkdocs.config.base import Config # Group plugin configuration class GroupConfig(Config): - # While the canonical type for this setting is obviously bool, setting it - # from environment variables seems to have different effects on different - # systems. For instance, setting CI=true seems to correctly work on macOS, - # but not on Linux – see https://t.ly/MWj0H. - # - # Thus, as long as the value evaluates to a truthy or falsy value, the - # plugin will work as expected, until we find a better solution. - enabled = Type((bool, str, int), default = False) + enabled = Type(bool, default = False) plugins = Type((list, dict)) diff --git a/src/plugins/group/config.py b/src/plugins/group/config.py index d9a45ad03..ce7156e4e 100644 --- a/src/plugins/group/config.py +++ b/src/plugins/group/config.py @@ -27,12 +27,5 @@ from mkdocs.config.base import Config # Group plugin configuration class GroupConfig(Config): - # While the canonical type for this setting is obviously bool, setting it - # from environment variables seems to have different effects on different - # systems. For instance, setting CI=true seems to correctly work on macOS, - # but not on Linux – see https://t.ly/MWj0H. - # - # Thus, as long as the value evaluates to a truthy or falsy value, the - # plugin will work as expected, until we find a better solution. - enabled = Type((bool, str, int), default = False) + enabled = Type(bool, default = False) plugins = Type((list, dict))