fix a bug in the doc generator introduced in the conversion to scss.
This commit is contained in:
parent
0661f8e305
commit
381b36dde9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user