fix a bug in the doc generator introduced in the conversion to scss.

This commit is contained in:
Chris Eppstein 2010-04-24 22:43:10 -07:00
parent 0661f8e305
commit 381b36dde9

View File

@ -59,7 +59,7 @@ class Generate < Thor
stylesheet = dereference(stylesheet) stylesheet = dereference(stylesheet)
identifier = "reference/#{stylesheet[:framework]}/#{stylesheet[:stylesheet]}" identifier = "reference/#{stylesheet[:framework]}/#{stylesheet[:stylesheet]}"
identifier.gsub!(%r{/_},'/') identifier.gsub!(%r{/_},'/')
identifier.gsub!(/\.sass/,'') identifier.gsub!(/\.s[ac]ss/,'')
identifier.gsub!(%r{/#{stylesheet[:framework]}/#{stylesheet[:framework]}/},"/#{stylesheet[:framework]}/") identifier.gsub!(%r{/#{stylesheet[:framework]}/#{stylesheet[:framework]}/},"/#{stylesheet[:framework]}/")
module_name = File.basename(identifier).gsub(/\.[^.]+$/,'').capitalize module_name = File.basename(identifier).gsub(/\.[^.]+$/,'').capitalize