jekyll 运行时 需要 sass 模块问题
看中一个横板
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
不知怎么弄呢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
弄到了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'
这个已经装了
那试试sass版本降到3.1.15,我这里测试可以的
提示haml3.2不再包含sass,让你手动Gem install sass...
装上再试试..