我在一個朋友的網站上工作,從未使用過Jekyll或Ruby。我分叉了他的github項目,雖然它花了我一段時間,但我最終正確安裝了Jekyll(我認爲),並且一切似乎都正常。我分支了這個項目,並在分支上工作,並在某個時候它隨機停止生成_site文件夾,但我無法將其鏈接到任何特定的東西。我切換回主分支,它仍然沒有工作。我在_config.yml文件關閉自動再生,然後我就開始收到以下錯誤:Jekyll沒有生成_sites文件夾
/Users/SamGavisHughson/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/psych.rb:148:in `parse':couldn't parse YAML at line 16 column 0 (Psych::SyntaxError)
from /Users/SamGavisHughson/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
from /Users/SamGavisHughson/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/psych.rb:119:in `parse'
from /Users/SamGavisHughson/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/psych.rb:106:in `load'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:33:in `read_yaml'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/page.rb:24:in `initialize'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:140:in `new'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll 0.11.2/lib/jekyll/site.rb:140:in `block in read_directories'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `each'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `read_directories'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:135:in `block in read_directories'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `each'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `read_directories'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/bin/jekyll:19:in `load'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/bin/jekyll:19:in `<main>'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/SamGavisHughson/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `<main>'
我在另一篇文章(Rails error, couldn't parse YAML),他們提改變的config /的boot.rb看到的東西,但我有不知道該怎麼做,所以如果有人能夠1.解釋如何做到這一點,2.解釋爲什麼這個錯誤突然出現,或者3.提出另一種解決方案,我會非常感激!
這裏是_config.yml文件,但我不認爲這是問題,因爲它停止工作之前,我改變了它:
permalink: pretty
auto: false
server: true
歡迎來到StackOverflow!爲了幫助您找到答案,其他人需要查看您的來源以及您收到的錯誤消息。發佈一個鏈接到您正在使用的Github分支上,您的答案會更快。 –