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
Extension should only run on LaTeX builder #8
Comments
The SVG to PDF converters are based on the Sphinx |
There was a bug in upstream imgconverter where it would run is_available in all builders. This has been fixed and will be published in Sphinx 3.1.0 |
Reopening as this issue is still present in |
sphinx-doc/sphinx#7978 has been merged by now. Does it solve the issue for you? |
No. All that issue does is prevent it from running many times on those builders. This extension still runs on all builders. |
Close sphinx-doc#7973: ImgConverter runs is_available in HTML builder Close missinglinkelectronics/sphinxcontrib-svg2pdfconverter#8: Extension should only run on LaTeX builder
sphinx-doc/sphinx#8649 should finally fix this issue. Closed. |
I'm still getting an error, is this really solved? See spatialaudio/nbsphinx#559 for details. |
Works for me. That error you have looks like it's having an issue running rsvg-convert. Try running it by hand and verifying it works. |
Thanks for the quick answer @Daltz333! I'm only generating HTML in the linked issue, so I would expect that I have intentionally not installed it for this situation. |
Hm, are you using a custom builder to the standard HTML builder? |
Well I'm using some custom nodes and quite a few suspicious hacks in |
I attempted to build your documentation locally, but looks like it has several things line-endings related that prevents me (Windows) from building it. This is the logic doing the skip elif set(node['candidates']) & set(self.app.builder.supported_image_types):
# builder supports the image; no need to convert
return False |
I'm not changing anything regarding
It would be great if you could create an issue for this! |
@Daltz333 I looked into this again and I made a minimal reproducible example: https://github.com/mgeier/rsvgconverter-bug At first I couldn't reproduce the problem, but then I found out that the error occurs when using a "data" URL instead of an image file, e.g. .. image:: data:image/png;base64,.... I've added this to my test repo: mgeier/rsvgconverter-bug@82379d1. Here's a failing test: https://github.com/mgeier/rsvgconverter-bug/runs/3274422618 Any idea how to fix this? |
I've created a Sphinx issue for this: sphinx-doc/sphinx#10073. |
The extension currently runs on all builders, HTML, Gettext, Linkcheck, etc.
The text was updated successfully, but these errors were encountered: