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.

有帮助吗?

解决方案

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:

其他提示

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

Use something like this:

https://github.com/sdsykes/fastimage

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top