espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

Python3 build docs #2441

Closed brendena closed 6 months ago

brendena commented 6 months ago

Made the build_doc script work with python3. Mostly just migrating the libraries to newer version.

Library change
I needed to switch out mdx_urlize for markdown2 because this extension doesn't support the latest markdown python library. It seems that it will never. Somebody did a pull request in 2022 with the fix for it and it still hasn't been accepted. https://github.com/r0wb0t/markdown-urlize/pull/17

Affected libraries. EspruinoDocs will need to be told to use python not python2.7 https://github.com/espruino/EspruinoDocs/blob/master/build.sh#L31

gfwilliams commented 6 months ago

Hi - I'm not sure if it was a typo but you'd removed importlib from common.py and while docs would have built, that stopped any of the code building. I've just re-added it and everything seems to work again but let me know if there was some reason