danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
402 stars 49 forks source link

Make MathJax-URL configurable #199

Closed dr-br closed 4 months ago

dr-br commented 6 months ago

Hi, I want to use mkdocs-jupyter with locally hosted MathJax (mkdocs-material +privacy plugin). Unfortunately, nbconvert implicitly sets mathjax_url. In the template, which is part of mkdocs-jupyter (mkdocs_html → {{ mathjax(resources.mathjax_url) }}) this URL is used as well. When html.py is invoked, the URL is set implicitly.

Would it be possible, to configure a custom mathjax_url? Most conveniently in the mkdocs.yml.

Thanks in advance!

danielfrg commented 6 months ago

should be possible, are you interested in making a PR for that?

dr-br commented 6 months ago

it will take some time (I'm a user, not a dev)...

dr-br commented 6 months ago

are you interested in making a PR for that?

I created my very first PR to a public project :sweat_smile:

danielfrg commented 4 months ago

Fixed on your PR.