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.

有帮助吗?

解决方案

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?

其他提示

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

* This will not be linked to \RDoc::RDoc#document
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top