@@ -26,11 +26,11 @@ def __init__(self) -> None:
2626 self .is_serve = False
2727
2828 def on_startup (
29- self , command : Literal ["build" , "gh-deploy" , "serve" ], dirty : bool
29+ self , command : Literal ["build" , "gh-deploy" , "serve" ], dirty : bool , ** kwargs
3030 ) -> None :
3131 self .is_serve = command == "serve"
3232
33- def on_config (self , config : MkDocsConfig ) -> Union [MkDocsConfig , None ]:
33+ def on_config (self , config : MkDocsConfig , ** kwargs ) -> Union [MkDocsConfig , None ]:
3434 """
3535 Store the plugin configuration in the Repo object.
3636
@@ -71,7 +71,9 @@ def on_config(self, config: MkDocsConfig) -> Union[MkDocsConfig, None]:
7171 else :
7272 raise
7373
74- def on_files (self , files : Files , / , * , config : MkDocsConfig ) -> Union [Files , None ]:
74+ def on_files (
75+ self , files : Files , / , * , config : MkDocsConfig , ** kwargs
76+ ) -> Union [Files , None ]:
7577 """
7678 Preprocess all markdown pages in the project.
7779
@@ -114,7 +116,7 @@ def on_files(self, files: Files, /, *, config: MkDocsConfig) -> Union[Files, Non
114116 _ = self .repo ().page (path )
115117
116118 def on_page_content (
117- self , html : str , / , * , page : Page , config : MkDocsConfig , files : Files
119+ self , html : str , / , * , page : Page , config : MkDocsConfig , files : Files , ** kwargs
118120 ) -> Union [str , None ]:
119121 """
120122 Replace jinja tag {{ git_site_authors }} in HTML.
@@ -181,6 +183,7 @@ def on_page_context(
181183 page : Page ,
182184 config : MkDocsConfig ,
183185 nav : Navigation ,
186+ ** kwargs ,
184187 ) -> Union [TemplateContext , None ]:
185188 """
186189 Add 'git_authors' and 'git_authors_summary' variables
0 commit comments