简体   繁体   English

安装github页面和jekyll的依赖版本是什么格式?

[英]What is the format for the dependency version to install github pages and jekyll?

I was following the github instructions for jekyll and github .我正在关注jekyll 和 github 的 github 说明 At step 8 & 9 it says:在第 8 步和第 9 步,它说:

8) Open the Gemfile that was created and follow the instructions in the Gemfile's comments to use GitHub Pages. 8) 打开创建的 Gemfile 并按照 Gemfile 注释中的说明使用 GitHub 页面。

 # uncomment the line below. To upgrade, run `bundle update github-pages`. gem "github-pages", group: :jekyll_plugins

9) Update the gem "github-pages" line so that the line looks like this, replacing VERSION with the current dependency version for github-pages. 9) 更新 gem "github-pages" 行,使行看起来像这样,用 github-pages 的当前依赖版本替换 VERSION。 For more information, see "Dependency versions" on the GitHub Pages site.有关详细信息,请参阅 GitHub 页面站点上的“依赖版本”。

gem "github-pages", "~> VERSION", group: :jekyll_plugins

but I don't understand what goes in VERSION但我不明白VERSION中的内容

I tried the following:我尝试了以下方法:

# gem "github-pages", "~> jekyll 3.8.5", group: :jekyll_plugins
#gem "github-pages", "~> 3.8.5", group: :jekyll_plugins

but they all result in errors.但它们都会导致错误。 However, its obvious that the errors don't matter because I don't know what is suppose to go in Version .但是,很明显错误无关紧要,因为我不知道 go 中的Version是什么。 Whats supposed to go in version VERSION ?版本VERSION中的 go 应该是什么?


related error:相关错误:

The versions for the github-pages gem are different than for the Jekyll gem. github-pages gem 的版本与 Jekyll gem 的版本不同。

To look up a gem's versions, use RubyGems.org.要查找 gem 的版本,请使用 RubyGems.org。

Here are the versions for github-pages: https://rubygems.org/gems/github-pages以下是 github-pages 的版本: https://rubygems.org/gems/github-pages

The latest version is 202, so you'd put:最新版本是 202,所以你会说:

gem "github-pages", "202"

With each new release (you can watch the github/pages-gem repo for releases if you want to be notified when new ones are released), just replace the "202" with the new version in quotes.对于每个新版本(如果您想在新版本发布时收到通知,您可以查看github/pages-gem 版本库),只需将"202"替换为引号中的新版本。

Hope this helps.希望这可以帮助。

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

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