Skip to content

Commit c6e677f

Browse files
committed
Add **kwargs to mkdocs events to support future versions
1 parent dd82961 commit c6e677f

File tree

1 file changed

+3
-2
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+3
-2
lines changed

mkdocs_git_revision_date_localized_plugin/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GitRevisionDateLocalizedPlugin(BasePlugin):
1818
("type", config_options.Type(str, default="date")),
1919
)
2020

21-
def on_config(self, config: config_options.Config) -> dict:
21+
def on_config(self, config: config_options.Config, **kwargs) -> dict:
2222
"""
2323
Determine which locale to use.
2424
@@ -124,7 +124,7 @@ def on_post_page(self, output_content: str, **kwargs) -> str:
124124
return output_content[:idx] + extra_js + output_content[idx:]
125125

126126
def on_page_markdown(
127-
self, markdown: str, page: Page, config: config_options.Config, files
127+
self, markdown: str, page: Page, config: config_options.Config, files, **kwargs
128128
) -> str:
129129
"""
130130
Replace jinja2 tags in markdown and templates with the localized dates
@@ -159,3 +159,4 @@ def on_page_markdown(
159159
markdown,
160160
flags=re.IGNORECASE,
161161
)
162+

0 commit comments

Comments
 (0)