-
Notifications
You must be signed in to change notification settings - Fork 17
Hosting Images on Site #87
Comments
@aaronmarkham have we resolved this issue yet? |
Yes, on D2L we copy images in Makefile. |
thanks @astonzhang, couldn't find any specific reference to images though. Are you just copying all file types as part of this line? We're going to be placing images in the same directory as the guide, since this is the easiest to maintain so we'll need to add something a bit different in our Makefile. |
So far I have a command that copies image and video content into the build directory (working on MacOS and Ubuntu) that can be used in the Makefile:
And a web server that serves images (
So images are hosted at the correct location. Only thing left to fix is the path to the images from the html files. |
I think you want this instead:
I wouldn't put anything in _build as that's the output directory for Sphinx. It should find what you have in /build/ and use that to transform to html and deposit it in the _build/html folder. |
Still a lot of mess to sort out here. I have both images and video showing with the following.
|
Sure there must be a better way to get around Step 4 there. |
Host videos elsewhere? I'm not sure adding mp4s to the repo is a good idea. |
Could do, but these videos are tiny. About the same as an images and we're including them in the repo for simplicity. As an example... https://github.com/mli/new-docs/blob/master/python/guide/packages/autograd/imgs/autograd_graph.mp4 |
Ya, that makes sense.
|
Can't seem to host images on the website. Solution might be to add a step to the Makefile to copy across images. @astonzhang how are you handling this on the D2L site?
The text was updated successfully, but these errors were encountered: