maksimdrachov / zephyr-rtos-tutorial

Zephyr: Tutorial for beginners
MIT License
305 stars 52 forks source link

Images not working on web version #11

Open logictom opened 1 year ago

logictom commented 1 year ago

Images are not loading on the web version, https://maksimdrachov.github.io/zephyr-rtos-tutorial/

Example link to image: "/images/2-introduction/sample-folder.png", to my understanding means it's trying to load it from the root URL, i.e. https://maksimdrachov.github.io/images/2-introduction/sample-folder.png which gives a 404

Whereas they should be, or at least they're accessable on: https://maksimdrachov.github.io/zephyr-rtos-tutorial/images/2-introduction/sample-folder.png I think they should drop the leading forward slash but it's been a while since I did any web stuff No idea how Just the Docs works otherwise I'd give it a go :)

maksimdrachov commented 1 year ago

Thanks! I'll have a look :)

maarten1C96 commented 7 months ago

I think the image paths only need to two extra parent directory references. For example instead of /images/2-introduction/sample-folder.png, on my computer ../../images/2-introduction/sample-folder.png solves the problem.

(And very fantastic tutorial!!!)

Originally posted by @maarten1C96 in https://github.com/maksimdrachov/zephyr-rtos-tutorial/issues/17#issuecomment-2035706528