-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Latex builder cannot download image URI #4720
Comments
I could re-produce this issue. Travis badge extensions = [
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
- 'sphinx.ext.napoleon']
+ 'sphinx.ext.napoleon',
+ 'sphinx.ext.imgconverter']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] After above patch was applied to
This WARNING message is too confusing, because this issue is about configuration enabling Sphinx extension, not about candidates. |
Yes, LaTeX builder does not support SVG images. So you need to avoid the restriction by several ways. Anyway, as @cocoatomo said, the warning message is not so good. I'll take a look it later. |
Recently encountered an issue where the sphinx latex builder would not properly build, because the travis badge link was downloaded as an svg and latex doesn't support svgs. Following the advice on sphinx-doc/sphinx#4720, I used a png image, but it didn't play well with the latex formatting. So now the travis build badge is only included in html (web) documentation.
Thank you very much for you help. I ended up using the |
Recently encountered an issue where the sphinx latex builder would not properly build, because the travis badge link was downloaded as an svg and latex doesn't support svgs. Following the advice on sphinx-doc/sphinx#4720, I used a png image, but it didn't play well with the latex formatting. So now the travis build badge is only included in html (web) documentation.
…lobing Fix #4720: message when an image is mismatched for builder is not clear
The message was updated by #4748. Closing. |
Thank you for reporting! |
Hi, Can someone please expain simply how to auto convert all svg images? |
@ale5000-git I'm not a ESPer. Please let me know your situation. What version did you use? How did you configure? Thanks, |
@tk0miya The source of the documentation is here. The log from the site:
|
It seems readthedocs.org does not provide imagemagick. So Anyway, this is not a forum. This is an issue list for Sphinx. Thanks, |
Read-the-docs generates the following log on builds WARNING: a suitable image for latex builder not found: ['image/svg+xml'] Exception occurred: mimetypes = sorted(node['candidates']) TypeError: '<' not supported between instances of 'str' and 'NoneType' Looking at sphinx/builders/__init__.py, the exception seems image related. An potential fix is suggested in sphinx-doc/sphinx#4720 (comment)
I try to use the
|
@Borda Could you file a new issue please? This was already closed. |
Subject: Attemping to run
make latex
cannot download Travis badgeProblem
I am attempting to build an updated pdf for a project. Sphinx attempts to obtain the travis badge through, but fails. This causes the latex file to have a missing image, which breaks the pdf build.
Procedure to reproduce the problem
Nothing too fancy, just running
make latex
. Links to project and specific commit belowError logs / results
Expected results
Download the badge such that the latex-pdf can be built.
Reproducible project / your project
serpent-tools
b546aeafd8efd02ffcc46d112e0ee9e7b2cc6f9d
but this issue occurs on more stable branches as wellEnvironment info
The text was updated successfully, but these errors were encountered: