Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby GitHub页面错误与travis ci和Gemfile_Ruby_Github_Jekyll - Fatal编程技术网

Ruby GitHub页面错误与travis ci和Gemfile

Ruby GitHub页面错误与travis ci和Gemfile,ruby,github,jekyll,Ruby,Github,Jekyll,我有一个jekyll站点:带有Gemfile: source 'https://rubygems.org' gem 'github-pages' 当地一切都很好。但是我在GitHub页面上有一些错误 Travis CI的生成状态为:错误 所以我不知道该怎么办。请帮忙 特拉维斯的工作提到: /home/travis/build.sh: line 188: unexpected EOF while looking for matching `"' /home/travis/build.sh: l

我有一个jekyll站点:带有Gemfile:

source 'https://rubygems.org'

gem 'github-pages'
当地一切都很好。但是我在GitHub页面上有一些错误

Travis CI的生成状态为:错误


所以我不知道该怎么办。请帮忙

特拉维斯的工作提到:

/home/travis/build.sh: line 188: unexpected EOF while looking for matching `"'
/home/travis/build.sh: line 191: syntax error: unexpected end of file
它可能与您的文件有关,该文件似乎缺少双引号:

language: ruby
script:
  - bundle exec jekyll build"
                           ^^^
                           (where is the opening double-quote?)
在那之后:

Liquid Exception: highlight tag was never closed in _posts/2013-02-05-dot-notation-for-array.html/#excerpt
投稿人特别文件:

要解决这个问题,您可以修复每篇文章,使摘录成为有效的液体标记,或者首先阻止Jekyll生成摘录。 Jekyll还没有完全禁用摘录的方法,因此下一个最好的选择是对其进行配置,使摘录始终有效

您可以通过将摘录分隔符设置为从不出现在文章中的无意义字符串来实现这一点,这样摘录将包括已知为有效标记的整个文章。 更好的是,您可以将摘录分隔符设置为空字符串,这样摘录将立即结束。这将减少Jekyll需要做的工作量,使您的站点构建稍微快一点

简而言之,可以通过在_config.yml中添加以下行来修复此错误:

一旦发布,这一行将完全禁用摘录,增加另一个微小的性能提升


谢谢我修好了。但现在我得到了。。。液体异常:在_posts/2013-02-05-dot-notation-for-array.html中,突出显示标记从未关闭/excerpt@Medvedev它在本地工作可能是因为您使用的是不同的Jekyll版本。看到了,梅德韦杰夫很棒。我已经在答案中记录了您的第二条错误消息,以提高可视性。
excerpt_separator: ""   # Workaround for http://blog.slaks.net/2013-08-09/jekyll-tag-was-never-closed