Skip to content

Commit

Permalink
Update plugin.py (#23)
Browse files Browse the repository at this point in the history
Add kwargs in case mkdocs adds any parameters to the event
  • Loading branch information
timvink authored Jun 25, 2020
1 parent e40c90c commit 9af2957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdownextradata/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __add_data__(self, config, namespace, data):
del namespace[0]
holder[namespace[0]] = data

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

0 comments on commit 9af2957

Please sign in to comment.