@@ -62,7 +62,7 @@ def __init__(self, mkdocs_config: MkDocsConfig, switch_force: bool = True) -> No
62
62
self .IS_SOCIAL_PLUGIN_CARDS_ENABLED ,
63
63
]
64
64
)
65
- self .IS_INSIDERS = self .is_theme_material_insiders ()
65
+ self .IS_INSIDERS = self .is_mkdocs_theme_material_insiders ()
66
66
67
67
# except if the end-user wants to disable it
68
68
if switch_force is False :
@@ -83,7 +83,7 @@ def __init__(self, mkdocs_config: MkDocsConfig, switch_force: bool = True) -> No
83
83
mkdocs_config = mkdocs_config
84
84
)
85
85
86
- def is_theme_material (self , mkdocs_config : MkDocsConfig ) -> bool :
86
+ def is_mkdocs_theme_material (self , mkdocs_config : MkDocsConfig ) -> bool :
87
87
"""Check if the theme set in mkdocs.yml is material or not.
88
88
89
89
Args:
@@ -95,7 +95,7 @@ def is_theme_material(self, mkdocs_config: MkDocsConfig) -> bool:
95
95
self .IS_THEME_MATERIAL = mkdocs_config .theme .name == "material"
96
96
return self .IS_THEME_MATERIAL
97
97
98
- def is_theme_material_insiders (self ) -> bool | None :
98
+ def is_mkdocs_theme_material_insiders (self ) -> bool | None :
99
99
"""Check if the material theme is community or insiders edition.
100
100
101
101
Returns:
@@ -121,7 +121,7 @@ def is_social_plugin_enabled_mkdocs(self, mkdocs_config: MkDocsConfig) -> bool:
121
121
Returns:
122
122
bool: True if the theme material and the plugin social cards is enabled.
123
123
"""
124
- if not self .is_theme_material (mkdocs_config = mkdocs_config ):
124
+ if not self .is_mkdocs_theme_material (mkdocs_config = mkdocs_config ):
125
125
logger .debug ("Installed theme is not 'material'. Integration disabled." )
126
126
return False
127
127
0 commit comments