[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

images in generated rdoc?

Kelly Dwight Felkins

4/3/2006 8:06:00 PM

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:

<p>
<img src="../.././schema.png">
</p>

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
1 Answer

Joel VanderWerf

4/3/2006 9:04:00 PM

0

Kelly Felkins wrote:
> 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:
>
> <p>
> <img src="../.././schema.png">
> </p>
>
> 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.)

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407