Something that's been bothering me is that while the source code is not visible by default, the browser still jump to it when searching. Adding the visible property prevents this.
Test it out yourself:
bundle exec rdoc
open _site/index.html
Search for NameError
Before, you will get a match from load_yaml source code, after you only get the match when that methods source code is expanded.
[ruby/rdoc] Only let browser search through source code until it's
expanded
(https://github.com/ruby/rdoc/pull/1181)
Something that's been bothering me is that while the source code is
not visible by default, the browser still jump to it when searching.
Adding the
visibleproperty prevents this.Test it out yourself:
bundle exec rdoc_site/index.htmlNameErrorBefore, you will get a match from
load_yamlsource code, afteryou only get the match when that methods source code is expanded.
https://github.com/ruby/rdoc/commit/003126cc23