Remove unused code and dependencies
3 files changed, 3 insertions(+), 35 deletions(-)

M Rakefile
M lib/rdoc/generator/sixfish.rb
M lib/sixfish.rb
M Rakefile +1 -0
@@ 21,6 21,7 @@ task :gem => :assets
 tasks = Rake::DevEiate.setup( 'rdoc-generator-sixfish' ) do |project|
 	project.version_from = 'lib/sixfish.rb'
 	project.publish_to = 'deveiate:/usr/local/www/public/code'
+	project.rdoc_generator = :sixfish
 end
 
 

          
M lib/rdoc/generator/sixfish.rb +1 -34
@@ 3,7 3,6 @@ 
 gem 'rdoc'
 
 require 'uri'
-require 'yajl'
 require 'inversion'
 require 'loggability'
 require 'fileutils'

          
@@ 32,7 31,7 @@ class RDoc::Generator::Sixfish
 			File.exist?( Gem.loaded_specs['rdoc-generator-sixfish'].datadir )
 			Pathname( Gem.loaded_specs['rdoc-generator-sixfish'].datadir )
 		else
-			Pathname( __FILE__ ).dirname.parent + 'data/rdoc-generator-sixfish'
+			Pathname( __FILE__ ).dirname.parent.parent.parent + 'data/rdoc-generator-sixfish'
 		end
 
 	# Register with RDoc as an alternative generator

          
@@ 75,7 74,6 @@ class RDoc::Generator::Sixfish
 		@template_cache = {}
 		@files          = nil
 		@classes        = nil
-		@search_index   = {}
 
 		Inversion::Template.configure( :template_paths => [self.template_dir + 'templates'] )
 	end

          
@@ 130,8 128,6 @@ class RDoc::Generator::Sixfish
 		self.generate_class_files
 		self.generate_file_files
 
-		self.generate_search_index
-
 		self.copy_static_assets
 	end
 

          
@@ 220,35 216,6 @@ class RDoc::Generator::Sixfish
 	end
 
 
-	### Generate a JSON search index for the quicksearch blank.
-	def generate_search_index
-		out_file = self.output_dir + 'js/searchindex.json'
-
-		self.log.debug "Generating search index (%s)." % [ out_file ]
-		index = []
-
-	    objs = self.get_indexable_objects
-		objs.each do |codeobj|
-			self.log.debug "  #{codeobj.name}..."
-			record = codeobj.search_record
-			index << {
-				name:    record[2],
-				link:    record[4],
-				snippet: record[6],
-				type:    codeobj.class.name.downcase.sub( /.*::/, '' )
-			}
-		end
-
-		self.log.debug "  dumping JSON..."
-		out_file.dirname.mkpath
-		ofh = out_file.open( 'w:utf-8', 0644 )
-
-		json = Yajl.dump( index, pretty: true, indent: "\t" )
-
-		ofh.puts( 'var SearchIndex = ', json, ';' )
-	end
-
-
 	### Copies static files from the static_path into the output directory
 	def copy_static_assets
 		asset_paths = self.find_static_assets

          
M lib/sixfish.rb +1 -1
@@ 6,7 6,7 @@ 
 module Sixfish
 
 	# Library version constant
-	VERSION = '0.1.0'
+	VERSION = '0.2.0'
 
 	# Fivefish project URL
 	PROJECT_URL = 'https://hg.sr.ht/~ged/Sixfish'