jekyll 运行时 需要 sass 模块问题

ddatsh 发布于 2012/04/01 00:28
阅读 866
收藏 0

看中一个横板

http://github.com/jberkel/zegoggl.es

WIN下的rubyinstaller装的

jekyll 运行的时候,提示

Configuration from ./_config.yml
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

Using Sass for CSS generation
Enabled Haml
Building site: . -> ./_site
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:179:in `+': can't convert Array into String (TypeError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:179:in `normalize_options'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:243:in `initialize'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `new'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `block in transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `each'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `block in transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `each'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:128:in `process'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/bin/jekyll:147:in `<top (required)>'
        from C:/RailsInstaller/Ruby1.9.3/bin/jekyll:19:in `load'
        from C:/RailsInstaller/Ruby1.9.3/bin/jekyll:19:in `<main>'
看见了_config.yml 中

sass: true

我先把它去掉,然后 jekyll运行没问题了

发现 css目录中 需要转换的 xx.sass 没有转成CSS

不知怎么弄呢


加载中
0
aiasfina
aiasfina

提示haml3.2不再包含sass,让你手动Gem install sass...

装上再试试..

aiasfina
aiasfina
@dd : 那试试sass版本降到3.1.15,我这里测试可以的
ddatsh
ddatsh
这个已经装了
0
ddatsh
ddatsh

弄到了3.1.15

我把CSS目录删了,可以运行了

然后再放进去一个,里面内容就是


a
 

也报错

[2012-04-01 13:25:44] INFO  WEBrick::HTTPServer#start: pid=4440 port=4000
undefined method `map' for "Z:/zegoggl.es/css":String
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/engine.rb:170:in `normalize_options'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/engine.rb:234:in `initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `new'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `block in transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `block in transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:128:in `process'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/bin/jekyll:132:in `block in <top (required)>'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:in `block in notify_observer
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:in `notify_observers'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:334:in `block in initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:in `notify'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:102:in `run_once'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:150:in `run_loop'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:45:in `block in start'

 

返回顶部
顶部