zephyr-rtos-tutorial icon indicating copy to clipboard operation
zephyr-rtos-tutorial copied to clipboard

Images not working on web version

Open logictom opened this issue 2 years ago • 2 comments

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 :)

logictom avatar Jan 17 '23 20:01 logictom

Thanks! I'll have a look :)

maksimdrachov avatar Jan 18 '23 07:01 maksimdrachov

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

maarten1C96 avatar Apr 04 '24 08:04 maarten1C96