From: Tanaka Akira Date: 2004-04-11T00:15:23+09:00 Subject: RDoc generates a dangling hyperlink with :stopdoc without :startdoc: I found that RDoc generate a dangling hyperlink. For example, RDoc generates a hyperlink to classes/M.html which is not exists as follows. % cat a.rb module M def m1() end # :stopdoc: def m2() end end % rdoc a.rb a.rb: m. Generating HTML... Files: 1 Classes: 0 Modules: 1 Methods: 1 Elapsed: 0.068s % grep m1 doc/**/*(.) doc/classes/M.src/M000001.html: m1 (M) doc/classes/M.src/M000001.html: m1 (M) doc/classes/M.src/M000001.html: def m1() end doc/fr_method_index.html: m1 (M)
% ls doc/classes/M.html ls: doc/classes/M.html: No such file or directory Since the following description in lib/rdoc/README, it is not problem that classes/M.html is not exist. But I think the dangling hyperlink is a problem. [:stopdoc: / :startdoc:] Stop and start adding new documentation elements to the current container. For example, if a class has a number of constants that you don't want to document, put a :stopdoc: before the first, and a :startdoc: after the last. If you don't specifiy a :startdoc: by the end of the container, disables documentation for the entire class or module. -- Tanaka Akira