mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 16:52:37 -04:00
Improve plugin inter-op with external tools like mike
This commit is contained in:
@@ -42,6 +42,13 @@ from material.plugins.info.config import InfoConfig
|
||||
# Info plugin
|
||||
class InfoPlugin(BasePlugin[InfoConfig]):
|
||||
|
||||
# Initialize plugin
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# Initialize variables for incremental builds
|
||||
self.is_serve = False
|
||||
|
||||
# Determine whether we're serving
|
||||
def on_startup(self, *, command, dirty):
|
||||
self.is_serve = (command == "serve")
|
||||
|
||||
Reference in New Issue
Block a user