-
-
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
Remote image URIs without filename break HTML builds in 1.6.2 #3860
Comments
I can not reproduce your problem with minimal index.rst containing only
and
on mac os. Also tested with Python 3.5.3. |
apologies, yes indeed using the
as you said. By the way on Sphinx 1.5.6, the same Warning is issued without even activating linkcheck. |
Well, sorry again,
No Error:
Again Error:
Or simply one gets the warning via
Looks as if linkcheck needs update |
Ok, thank you. Apologies for not posting a gist or repo, or some quicker way for you to reproduce the issue. |
…s not supported remote images
Fixed by #3890. |
Subject: Remote image URIs without filename break HTML builds in 1.6.2
Problem
https://readthedocs.org/projects/PROJECT-NAME/badge/?version=latest
(note there is no explicit filename here), break the HTML builder.Procedure to reproduce the problem
Attempt building a project which includes an image like the above in a file, such as README.rst, using Sphinx 1.6.2. i.e.:
https://readthedocs.org/projects/awslimitchecker/badge/?version=latest actually redirects to https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat - the URL checks the status of the docs build for the specified version, and redirects to an appropriate shields.io badge.
Build with:
Error logs / results
From what I can tell, the problem seems to be in sphinx.transforms.post_transforms.images.ImageDownloader.handle as introduced in #3589, as the local paths that it generates do not work for images without a filename (
basename
) in the URI.Expected results
Expected these images to download correctly without a problem, as they did under 1.5.5
Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: