Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.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
Windows Jekyll for GitHub页面可以';我在窗户上找不到胭脂_Windows_Jekyll_Rouge - Fatal编程技术网

Windows Jekyll for GitHub页面可以';我在窗户上找不到胭脂

Windows Jekyll for GitHub页面可以';我在窗户上找不到胭脂,windows,jekyll,rouge,Windows,Jekyll,Rouge,我刚刚在Windows上安装了Jekyll,我正在尝试使语法高亮显示与胭脂一起工作 我已在_config.yml上设置了荧光笔:胭脂 在文件_posts\2015-08-13-my-first-post.md中,我得到: {% highlight javascript linenos %} var s = "JavaScript syntax highlighting"; alert(s); {% endhighlight %} 当我运行bundle exec jekyll service时,

我刚刚在Windows上安装了Jekyll,我正在尝试使语法高亮显示与胭脂一起工作

我已在_config.yml上设置了荧光笔:胭脂

在文件_posts\2015-08-13-my-first-post.md中,我得到:

{% highlight javascript linenos %}
var s = "JavaScript syntax highlighting";
alert(s);
{% endhighlight %}
当我运行bundle exec jekyll service时,它会输出:

C:\Users\Fred\Documents\Projects\GithubPage>bundle exec jekyll serve
Configuration file: C:/Users/Fred/Documents/Projects/GithubPage/_config.yml
            Source: C:/Users/Fred/Documents/Projects/GithubPage
       Destination: C:/Users/Fred/Documents/Projects/GithubPage/_site
      Generating...
  Liquid Exception: cannot load such file -- rouge in _posts/2015-08-13-my-first-post.md
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:103:in `require': cannot load such file -- rouge (LoadError)
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:103:in `render_rouge'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/tags/highlight.rb:54:in `render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:109:in `block in render_all'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:96:in `each'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:96:in `render_all'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/block.rb:82:in `render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/template.rb:128:in `render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/liquid-2.6.3/lib/liquid/template.rb:138:in `render!'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/convertible.rb:106:in `render_liquid'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/convertible.rb:233:in `do_layout'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/post.rb:261:in `render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:298:in `block in render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `each'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `render'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:51:in `process'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/command.rb:28:in `process_site'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:56:in `build'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:34:in `process'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
        from C:/Ruby21-x64/bin/jekyll:23:in `load'
        from C:/Ruby21-x64/bin/jekyll:23:in `<main>'

出于安全原因,Github页面只能与插件一起使用

你在你的杰基尔目录中安装了胭脂吗


是一本关于在Jekyll中突出显示语法和在Windows计算机上安装Jekyll的指南,可能会对您有所帮助。

我也遇到了同样的问题。我加了一行

gem 'rouge'
到我的文件,然后运行

bundle install
然后我就可以跑了

bundle exec jekyll build

没有错误

我刚刚收到一封来自GitHub的自动电子邮件,说GitHub页面不支持胭脂。似乎这就是问题所在,除了安装Python和pygments,我别无选择。不管怎样,有人能告诉我这是否是rouge不在我的开发机器上工作的原因吗?可能是因为我使用的是GitHub包。有人能证实这一点吗?未来读者请看。
bundle exec jekyll build