简体   繁体   English

在OS X上支持github风格markdown的github jekyll的推荐设置

[英]Recommended setup for github jekyll on OS X that supports github flavored markdown

I've installed Jekyll-Bootstrap , the redcarpet plugin , and I've tried updating my Ruby to the latest RVM stable . 我安装了Redcarpet插件 Jekyll-Bootstrap ,并尝试将Ruby更新到最新的RVM稳定版 I'm running OS X Mountain Lion (10.8.2). 我正在运行OS X Mountain Lion(10.8.2)。

With this setup, if I insert a code block comment with either standard syntax (indent 4 spaces) or github syntax highlighting (```), I end up with no errors from Jekyll and an empty html file (0 bytes). 通过这种设置,如果我使用标准语法(缩进4个空格)或github语法突出显示(```)插入代码块注释,则最终不会出现Jekyll和空html文件(0字节)的错误。 Pushing it to github produces the very helpful error: 将其推送到github会产生非常有用的错误:

The page build failed with the following error: 页面构建失败,出现以下错误:

page build failed 页面构建失败

Any help much appreciated. 任何帮助,不胜感激。

I notice you are using Pygments for your highlighting. 我注意到您正在使用Pygments进行突出显示。 Although it is strongly pushed by GitHub, I have had much better luck with Coderay . 尽管它由GitHub大力推动,但我对Coderay的运气更好。

The code highlighting in octopress is awesome. octopress中突出显示的代码很棒。 I would suggest either trying octopress, or grabbing the relevant plugins and adding them to your jekyll site. 我建议您尝试octopress,或获取相关插件并将其添加到您的jekyll网站。

And then you'll need some css . 然后您需要一些CSS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM