Project

General

Profile

« Previous | Next » 

Revision 5ed67f48

Added by Earlopain (Earlopain _) about 1 year ago

[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 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.

https://github.com/ruby/rdoc/commit/003126cc23