Skip to content
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

Missing remote image warnings not showing up when building HTML #5196

Closed
barbara-sfx opened this issue Jul 20, 2018 · 9 comments
Closed

Missing remote image warnings not showing up when building HTML #5196

barbara-sfx opened this issue Jul 20, 2018 · 9 comments
Labels
builder type:proposal a feature suggestion
Milestone

Comments

@barbara-sfx
Copy link
Contributor

Problem

make clean latexpdf or make clean latex gives warning messages about missing images in the step "Resolving references", but make clean html does not. I don't even see a Resolving References step when doing make clean html

Procedure to reproduce the problem

make clean latex shows warnings on missing remote images, e.g.

WARNING: Could not fetch remote image: https://raw.githubusercontent.com/.../dashboard_redshift.png [404]

but make clean html does not. So my live site now shows a number of broken images.

Error logs / results

https://docs.signalfx.com/en/latest/integrations/integrations-reference/integrations.amazon.redshift.html

Expected results

Show warnings when building HTML

Reproducible project / your project

Environment info

  • OS: Mac 10.13.4
  • Python version: 2.7
  • Sphinx version: 1.7.5
  • <Extra tools e.g.: Browser, tex or something else>
@tk0miya
Copy link
Member

tk0miya commented Jul 21, 2018

Sure. HTML builder does not fetch remote images. So the warnings are never shown.
But it would be nice if we can check its validity by linkcheck builder.

@tk0miya tk0miya added type:proposal a feature suggestion builder labels Jul 21, 2018
@tk0miya tk0miya modified the milestones: 1.8.0, 2.0 Jul 21, 2018
@barbara-sfx
Copy link
Contributor Author

barbara-sfx commented Jul 23, 2018 via email

@tk0miya
Copy link
Member

tk0miya commented Jul 24, 2018

I guess you saw the warnings on resizing image. Actually, HTML builders emits them only on resizing.

@barbara-sfx
Copy link
Contributor Author

What do you mean by resizing image? These graphics all take the following format:

in text:

|image1|

At the bottom of the file:

.. |image1| image:: https://raw.githubusercontent.com/.../dashboard_redshift.png

Image size is never addressed in the docs.

@tk0miya
Copy link
Member

tk0miya commented Jul 29, 2018

What I meant is giving resizing option to image directive like this:

.. image:: picture.png
   :width: 50%

AFAIK old sphinx did not emit warnings for subsutituion (cf. |image1|).
Please let me know if you can reproduce it.

If this is regression, I will fix this soon. If not, I will work for this after 1.8 release.

@barbara-sfx
Copy link
Contributor Author

As my sample showed, I am not using the ..image:: directive

If time allows, I'll see if I can figure out which version gave the errors. It might have been as far back as 1.4.

@barbara-sfx
Copy link
Contributor Author

Oh actually, they have fixed the missing images problem, so I would have to break something to test again. But I am 100% certain it worked before. I was working on a pre-release set of docs which pointed to images in a dev github repo that was still under development and did not yet contain the images the docs linked to. I just had to ignore all the warnings for a while during development. So I do think it is a regression.

@tk0miya
Copy link
Member

tk0miya commented Aug 4, 2018

Until somebody let me know reproducible information, I will keep this as "proposal", not "regression".
Thanks,

tk0miya added a commit that referenced this issue Feb 10, 2019
…ote_image

Close #5196: linkcheck also checks remote images exist
@tk0miya
Copy link
Member

tk0miya commented Feb 10, 2019

Fixed by #6022.
Thank you for proposal.

@tk0miya tk0miya reopened this Feb 10, 2019
@tk0miya tk0miya closed this as completed Feb 10, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
builder type:proposal a feature suggestion
Projects
None yet
Development

No branches or pull requests

2 participants