images in generated rdoc?

K

Kelly Felkins

------=_Part_8783_22889933.1144094747090
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=3D"../.././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

------=_Part_8783_22889933.1144094747090--
 
J

Joel VanderWerf

Kelly said:
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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top