Skip to content

Commit 9af2957

Browse files
authored
Update plugin.py (#23)
Add kwargs in case mkdocs adds any parameters to the event
1 parent e40c90c commit 9af2957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎markdownextradata/plugin.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __add_data__(self, config, namespace, data):
4242
del namespace[0]
4343
holder[namespace[0]] = data
4444

45-
def on_pre_build(self, config):
45+
def on_pre_build(self, config, **kwargs):
4646
# Loads all data from the supplied data directories
4747
# or, otherwise a _data directory next to mkdocs.yml and/or inside the docs_dir.
4848
# Does nothing if the dir does not exist.

0 commit comments

Comments
 (0)