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

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

我在关注 the github instructions for jekyll and github。在第 8 步和第 9 步,它说:

8) Open the Gemfile that was created and follow the instructions in the Gemfile's comments to use GitHub Pages.

# 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. For more information, see "Dependency versions" on the GitHub Pages site.

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

但我不明白 VERSION

中的内容

我尝试了以下方法:

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

但它们都会导致错误。但是,很明显错误并不重要,因为我不知道 Version 中应该包含什么。版本 VERSION 中应该包含哪些内容?


相关错误:

github 页面 gem 的版本不同于 Jekyll gem。

要查找 gem 的版本,请使用 RubyGems.org。

以下是 github 页的版本:https://rubygems.org/gems/github-pages

最新版本是 202,所以你输入:

gem "github-pages", "202"

对于每个新版本(如果你想在新版本发布时收到通知,你可以观看 the github/pages-gem repo for releases),只需将 "202" 替换为引号中的新版本即可。

希望这对您有所帮助。