Skip to content

Commit

Permalink
Merge pull request #87 from oprypin/md15
Browse files Browse the repository at this point in the history
Compatibility with MkDocs 1.5 change to extra_javascript
  • Loading branch information
timvink authored Aug 26, 2023
2 parents 49ec648 + 27fbb6b commit 10c85ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_print_site_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def on_template_context(self, context, template_name, config, **kwargs):
if config.get('extra_css'):
self.context['extra_css'] = [get_relative_url(f, self.print_page.file.url) for f in config.get('extra_css')]
if config.get('extra_javascript'):
self.context['extra_javascript'] = [get_relative_url(f, self.print_page.file.url) for f in config.get('extra_javascript')]
self.context['extra_javascript'] = [get_relative_url(str(f), self.print_page.file.url) for f in config.get('extra_javascript')]


def on_post_build(self, config, **kwargs):
Expand Down

0 comments on commit 10c85ce

Please sign in to comment.