Question

I'm using RDoc for the first time, and I've run into one issue that's a bit bothersome. I have a line in my class documentation like the following:

# * callingState

I also have a class in that same project called State. When I generate the documentation for my project using RDoc, it links the "State" part of the line above to my State object.

I'd prefer to not have it behave this way. Is there any way to stop this link from being automatically created by RDoc? A quick Google search hasn't yielded any results, but I may just be searching using the wrong terms.

Was it helpful?

Solution

I have not seen this specific case happen. I tried to reproduce it, but the links were not created when only part of a word matches a class. I do, however, have plenty of occurrences where I don't want to link to a class or module name. Prepending a backslash to the capitalized word did the trick for me.

See: How do I prevent RDoc from parsing a URL?

OTHER TIPS

RDoc documentation has a section about Escaping Text Markup, which helped me.

* This will not be linked to \RDoc::RDoc#document
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top