hupili / datavis.studio

data-viz course/ slides/ projects
http://datavis.studio/
6 stars 6 forks source link

pic can not appear on website (relative path issue) #11

Closed JimmyDingyiming closed 5 years ago

JimmyDingyiming commented 5 years ago
2019-03-02 10 11 27 2019-03-02 10 14 55

I am trying to embed the pic into the website, can anyone tell me what is the problem here?

hupili commented 5 years ago

@JimmyDingyiming , can you bring up following information?

Also, please open Chrome Developer Console, and let us know the error message.

hupili commented 5 years ago

@JimmyDingyiming , please also refer to other issue posts, e.g. https://github.com/hupili/datavis.studio/issues/5 . Once, we get the context, we can quickly check the issue. Please try to push the intermediate version to GitHub Pages. If you worry the intermediate version does not look good on your homepage, you can use a subpath, e.g. test/index.html. We can visit that accordingly.

hupili commented 5 years ago

https://jimmydingyiming.github.io/?11

hupili commented 5 years ago

This is what we see from the current online version:

screenshot 2019-03-04 at 4 04 28 pm

Right click the links and open in new tab. Then we find 404:

screenshot 2019-03-04 at 4 04 46 pm

That means, there are no such files like images/Jimmy%20travel.%20JPG on gh-pages server.

We checkout the GitHub repo: https://github.com/jimmydingyiming/jimmydingyiming.github.io

current version does not include those expected files in images/*.

screenshot 2019-03-04 at 4 08 01 pm
hupili commented 5 years ago

So the solution is to:

  1. Check if you have images/* in your local disk
  2. If above is alright, check if you have committed those files using GitHub Desktop.
hupili commented 5 years ago

@JimmyDingyiming , btw, I see some <<<<< HEAD type of text from you page. That may arise from "merge conflict", usually after you modify the repo on different machines without properly sync. Please checkout this post to see if you can resolve those texts yourself: https://stackoverflow.com/questions/7901864/git-conflict-markers .