Lines Matching refs:index
5 # produces a JSON search index. This generator is derived from sdoc by
26 # The index is output as a JSON file assigned to the global variable
30 # "index": {
77 # Where the search index lives in the generated output
81 attr_reader :index # :nodoc:
85 # class_dir and file_dir of links in the output index.
99 @index = nil
103 # Builds the JSON index as a Hash.
112 { :index => @index }
124 # Writes the JSON index to disk
127 debug_msg "Generating JSON index"
129 debug_msg " writing search index to %s" % SEARCH_INDEX_FILE
156 # Adds classes and modules to the index
159 debug_msg " generating class search index"
168 @index[:searchIndex] << search_string(record.shift)
169 @index[:longSearchIndex] << search_string(record.shift)
170 @index[:info] << record
175 # Adds methods to the index
178 debug_msg " generating method search index"
189 @index[:searchIndex] << "#{search_string record.shift}()"
190 @index[:longSearchIndex] << "#{search_string record.shift}()"
191 @index[:info] << record
196 # Adds pages to the index
199 debug_msg " generating pages search index"
208 @index[:searchIndex] << search_string(record.shift)
209 @index[:longSearchIndex] << ''
211 @index[:info] << record
233 @index = {