Question

I have created an image with a "visual" tool that I want to include on the front page of my rdoc documentation. The front page is defined in a *.rdoc . I have found it possible to include external images but how do I include local ones?

Update: a work around is to add html for the image without the double quotes: <img src=../../images/overview.jpg> if the image is in the images folder in the root directory. (Assuming generating rdoc to some folder in the same folder.) A proper /> ending does not work either. The / gets added to the url.

Was it helpful?

Solution

rdoc-image:relative/path/to/image.png

in *.rdoc is converted to

<img src="relative/path/to/image.png">

in *.html, which works for me.

Reference:

OTHER TIPS

You could try to embed inline images into the docs maybe?

Use something like this:

https://github.com/sdsykes/fastimage

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top