RDoc question: How do I make a link from the README file to aspecific RDOC Page

  • Thread starter Jesper Rønn-Jensen
  • Start date
J

Jesper Rønn-Jensen

VGhpcyBpcyBhbiBleGNlcnB0IGZyb20gdGhlIEFjdGl2ZVdhcmVob3VzZS1ldGwgUkVBRE1FIGZp
bGUKCiogTXVsdGlwbGUgc291cmNlIHR5cGVzLiBDdXJyZW50IHN1cHBvcnRlZCB0eXBlczoKICAq
IEZpeGVkLXdpZHRoIGFuZCBkZWxpbWl0ZWQgdGV4dCBmaWxlcwogICogWE1MIGZpbGVzIHRocm91
Z2ggU0FYCiAgKiBBcGFjaGUgY29tYmluZWQgbG9nIGZvcm1hdAoKSSB3YW50IHRvIGxpbmsgdGhl
IHdvcmQgIkZpeGVkLXdpZHRoIiB0byB0aGUgcGFnZSBFVEw6OlBhcnNlcjo6Rml4ZWRXaWR0aFBh
cnNlcgoKSG93IGNhbiBpIGRvIHRoYXQgaW4gYW4gb3B0aW1hbCB3YXkgdG8ga2VlcCByZWFkYWJp
bGl0eSBpbiB0aGUgc291cmNlIGZpbGU/CgoKL0plc3BlcgoKLS0gCl9fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCgpKZXNwZXIgUsO4bm4t
SmVuc2VuIC8gQ2FwZ2VtaW5pIERlbm1hcmsKVGVsLiArNDUgMzk3NyA4MjIwIC8gTW9iLiArNDUg
MjM3MyA2MjIwIC8gRmF4ICs0NSA3MDExIDIyMDEKd3d3LmRrLmNhcGdlbWluaS5jb20gLyBCbG9n
IGh0dHA6Ly9qdXN0YWRkd2F0ZXIuZGsvCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fXwo=
 
E

Eric Hodel

This is an excerpt from the ActiveWarehouse-etl README file

* Multiple source types. Current supported types:
* Fixed-width and delimited text files
* XML files through SAX
* Apache combined log format

I want to link the word "Fixed-width" to the page =20
ETL::parser::FixedWidthParser

How can i do that in an optimal way to keep readability in the =20
source file?

RDoc only supports links to external pages and auto-linking via method/=20=

class names.=
 
J

Joel VanderWerf

Eric said:
RDoc only supports links to external pages and auto-linking via
method/class names.

There is the 'link' directive in rdoc. For example:

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

The {...} part is used for the visible text of the link.

I'm not sure if it is possible to link to a class rather than a file,
but of course you can just link to the HTML file containing the class's
generated rdoc.
 
E

Eric Hodel

Eric said:
RDoc only supports links to external pages and auto-linking via =20
method/class names.

There is the 'link' directive in rdoc. For example:

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

The {...} part is used for the visible text of the link.

I'm not sure if it is possible to link to a class rather than a =20
file, but of course you can just link to the HTML file containing =20
the class's generated rdoc.

As I recall, the names of classes are generated, so it will be =20
difficult to have a stable link.=
 
J

Joel VanderWerf

Eric said:
Eric said:
On Feb 13, 2008, at 12:10 PM, Jesper Rønn-Jensen wrote:
This is an excerpt from the ActiveWarehouse-etl README file

* Multiple source types. Current supported types:
* Fixed-width and delimited text files
* XML files through SAX
* Apache combined log format

I want to link the word "Fixed-width" to the page
ETL::parser::FixedWidthParser

How can i do that in an optimal way to keep readability in the
source file?
RDoc only supports links to external pages and auto-linking via
method/class names.

There is the 'link' directive in rdoc. For example:

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

The {...} part is used for the visible text of the link.

I'm not sure if it is possible to link to a class rather than a file,
but of course you can just link to the HTML file containing the
class's generated rdoc.

As I recall, the names of classes are generated, so it will be difficult
to have a stable link.

The file names are stable. For example, Foo::Bar::Baz becomes

classes/Foo/Bar/Baz.html

Targets within that file have things like #M000155 appended to them, so
you wouldn't want to link to them in that way.
 

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top