Make it a little nicer.

This commit is contained in:
Parker Moore 2014-09-22 22:52:23 -07:00
parent 0f008c02d8
commit a5a8be97de
1 changed files with 13 additions and 11 deletions

View File

@ -19,8 +19,11 @@ content, theyre 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'
@ -29,7 +32,6 @@ content, theyre also a great way to host your Jekyll-powered website for free
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 %}