-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
question: How do i force html proofer to check for broken image links locally within a github PR on travis - external link failed #527
Comments
Commenting here because I think my question is really similar. I've got When I open a pull request to add a new blog post Here's a link to the failure on travis: https://travis-ci.org/WhitakerLab/whitakerlab.github.io/builds/563645832#L401. Ditto @lwasser, thank you so much for the great tool, and please let me know if there is a better place to ask these types of questions 😸 |
Hi. I believe you can fix this in one of two ways:
This is, in fact, the same issue! On the page where your tags are being generated, the To make a more clear example, here are two links:
However, both links end up going to the same place. This is a similar pattern which Hope this helps, please let me know. |
Based on the awesome answer at gjtorikian/html-proofer#527
hey @gjtorikian and @KirstieJane this fix worked well for me!! https://github.com/earthlab/earthlab.github.io/pull/732/files i ended up using the full url of our site as it was building off of the config file which was populating |
Hey all,
I hope this is the right place to ask this question. ive got a very basic build in travisCI on our github pages / jekyll website - CI BUILD HERE.
Essentially the way the build is setup, by default it looks for images in a new page added to the site at our url:
https://www.earthdatascience.org/images/image-name-here.png
. However i'd prefer that it tests the build locally on travis because in some instances, a PR contains new images from a branch or fork that are not yet on master where the site gets built.Locally, this would look like:
http://localhost:4000
however i tried that on travis and it didn't work perhaps because jekyll serve isn't running actively?i've tried the following
None of these approaches work for me. returning errors like this:
External link http://images/courses/earth-analytics-bootcamp/00-course-overview/2018-07-16-co-09-final-project_13_0.png failed: response code 0 means something's wrong.
how do i test image links on html pages within a PR on a local site build rather than the live site?
Many thanks in advance for any guidance and please tell me if this is not the correct place to post this question.
The text was updated successfully, but these errors were encountered: