Make it a little nicer.
This commit is contained in:
parent
0f008c02d8
commit
a5a8be97de
|
@ -19,19 +19,21 @@ content, they’re also a great way to host your Jekyll-powered website for free
|
||||||
Our friends at GitHub have provided the
|
Our friends at GitHub have provided the
|
||||||
<a href="https://github.com/github/pages-gem">github-pages</a>
|
<a href="https://github.com/github/pages-gem">github-pages</a>
|
||||||
gem which is used to manage Jekyll and its dependencies on
|
gem which is used to manage Jekyll and its dependencies on
|
||||||
GitHub Pages. To use the currently-deployed version of the
|
GitHub Pages. Using it in your projects means that when you deploy
|
||||||
gem in your project, add the following to your `Gemfile`:
|
your site to GitHub Pages, you will not be caught by unexpected
|
||||||
|
differences between various versions of the gems. To use the
|
||||||
|
currently-deployed version of the gem in your project, add the
|
||||||
|
following to your <code>Gemfile</code>:
|
||||||
|
|
||||||
{% highlight ruby %}
|
{% highlight ruby %}
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
||||||
|
|
||||||
|
gem 'github-pages', versions['github-pages']
|
||||||
gem 'github-pages', versions['github-pages']
|
{% endhighlight %}
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
This will ensure that when you run <code>bundle install</code>, you
|
This will ensure that when you run <code>bundle install</code>, you
|
||||||
have the correct version of the <code>github-pages</code> gem.
|
have the correct version of the <code>github-pages</code> gem.
|
||||||
|
|
Loading…
Reference in New Issue