Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with MkDocs 1.5 change to extra_javascript #87

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Compatibility with MkDocs 1.5 change to extra_javascript #87

merged 1 commit into from
Aug 26, 2023

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented Aug 2, 2023

Convert extra_javascript items to strings before treating them as paths, because they can now be ExtraScriptValue instead.

This is a bit of a breaking change in MkDocs 1.5.0. Sorry about the breakage.

Convert `extra_javascript` items to strings before treating them as paths, because they can now be `ExtraScriptValue` instead
Copy link

@bensofficial bensofficial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me 👍

Tested this locally and this fixed the following error:

> /usr/local/lib/python3.10/dist-packages/mkdocs_print_site_plugin/plugin.py(240)on_page_content()
-> page.url_to_pdf = get_relative_url(

Thank you 🙏

@timvink timvink merged commit 10c85ce into timvink:master Aug 26, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 MkDocs 1.5.1, Material 9.1.21, Python 3.11 and Extra JavaScript Traceback
3 participants