views:

212

answers:

3

I want to link to a documentation of a file in RDoc. but the only way I could do is with the following markup:

configuration.rb[link:files/configuration_rb.html]

I would like to do it in a better way, something like this:

<file>configuration.rb</file>

Is there any existing markup rule to do this?

EDIT: of course I've tried without any markup like this configuration.rb but it shows the filename without the link :(

A: 

http://rdoc.sourceforge.net/doc/index.html

I suppose this must be useful.

T.Raghavendra
Yes, it is useful but I started there and ended up here.
KARASZI István
RTFM is not really an answer.
Damien Wilson
A: 

Try not to use markup at all.

Look at RDoc's own documentation, they have similar links in the "Roadmap" paragraph. They markup is here.

Magic!

blinry
+1  A: 

From the Cheat sheet:

Auto hyperlinked: MyClass my_class.rb def my_method; end; #my_method http:, mailto:, ftp:, www. link: (to local filesystem relative to --op) (urls to images are rendered as inline image tags) label[url] (uses label as hyperlink text) {multi word label}[url] (uses label as hyperlink text)

Ruby:

ClassNames, source_files.rb and either method_name_having_an_underscore or #methodnamewithhash are hyperlinked to their documentation.

It sounds like you're looking for that second one, but I've never used it before so I can't give you a fully useful example.

Trevoke
well, simply typing as `configuration.rb` is not working
KARASZI István
Well.. I guess your last option is to add the markup you want and submit a patch? Or put in a feature request, at least.
Trevoke
yeah, it looks like you're right. so right now it's not possible.
KARASZI István