# Images in generated rdoc?

**URL:** <https://www.ruby-forum.com/t/images-in-generated-rdoc/56779>\
**Category:** Ruby\
**Created:** [April 3, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/images-in-generated-rdoc/56779 "2006-04-03T22:07:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [April 3, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/images-in-generated-rdoc/56779/1 "2006-04-03T22:07:24Z")

</div>

Hi.

I’m trying to incorporate some images in rdoc generated html. This is a  
rails project and I’ve cloned the doc:app task. In the README\_FOR\_APP  
file I  
have a reference to an image using the link tag, like so:

link:schema.png

This generates a relative link like this:

![]()

This somewhat makes sense because the rake task sets the rdoc\_dir to  
‘doc/app’. But the image is not there – in order for it to get there it  
must be moved there.

Of course I can move it, but it could be that I’m missing something  
obvious  
here.

Seems like, if you specify an output directory AND a local href (via  
‘link’), that it should move the assets to the output directory.

Any suggestions?

Thanks,

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [April 3, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/images-in-generated-rdoc/56779/2 "2006-04-03T23:06:07Z")

</div>

Kelly F. wrote:

> ![]()
> 
> This somewhat makes sense because the rake task sets the rdoc\_dir to  
> ‘doc/app’. But the image is not there – in order for it to get there it  
> must be moved there.
> 
> Of course I can move it, but it could be that I’m missing something obvious  
> here.

dunno if this helps but you can use a path in the link:

{README}[link:…/api/files/README.html]

(The {} specifies what the visible text of the link will be.)
