ruby - 如何 bundle html 管道安装后消息中提到的 Filter gem 依赖项?

标签 ruby rubygems jekyll bundler github-pages

我正在关注 GitHub's guide for using Jekyll with GitHub Pages 。当我运行“bundle install”时,随后会出现以下消息:

Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------

我不太明白 the instructions in the html-pipeline's README.md 。这一切到底意味着什么,我应该怎么做?

最佳答案

您提供的 README 指出,为了在 html 管道中使用各种过滤器功能,您必须包含额外的库。

文档中给出的例子:

SyntaxHighlightFilter uses github-linguist to detect and highlight languages. For example, to use the SyntaxHighlightFilter, add the following to your Gemfile:

gem 'github-linguist'

您基本上添加了与您希望可用的过滤器相对应的所需 gem。添加到 Gemfile 后,您可以运行 bundle install,您应该可以开始了。

我知道这实际上与您提供的文档相呼应,但我希望它有所帮助。

关于ruby - 如何 bundle html 管道安装后消息中提到的 Filter gem 依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30590838/

相关文章:

ruby - 如何使用 yardoc 列出未记录的模块/类/常量/方法?

ruby - bundle 安装莫名其妙地挂起

ruby - 点击服务器错误 `<module:Templates>':未初始化常量 Tilt::CompileSite (NameError)

ruby-on-rails - 无法安装 Rails。错误 : Error installing rails: ERROR: Failed to build gem native extension

使用 jekyll 和 github 页面构建静态站点时可用的变量

markdown - 在 Jekyll(即 Markdown)中,一组 URL 的基本部分可以在链接之间共享吗?

ruby-on-rails - 升级到 Rails 3.2.0 并使用 Devise & tlsmail gem for Google Apps 获取 SSLError?

ruby - Ruby中使用后缀 "if"语句的目的是什么?

jekyll - 按路径在site.pages中搜索页面而无需迭代

ruby-on-rails - 有没有更好的方法来记录每天某个属性的值?