Method: RDoc::Generator::JsonIndex#index_pages
- Defined in:
- lib/rdoc/generator/json_index.rb
#index_pages ⇒ Object
Adds pages to the index
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/rdoc/generator/json_index.rb', line 251 def index_pages debug_msg " generating pages search index" pages = @files.select do |file| file.text? end pages.each do |page| debug_msg " #{page.page_name}" record = page.search_record @index[:searchIndex] << search_string(record.shift) @index[:longSearchIndex] << '' record.shift @index[:info] << record end end |