diff --git a/docs/_docs/github-pages.md b/docs/_docs/github-pages.md index f07af766..449e4515 100644 --- a/docs/_docs/github-pages.md +++ b/docs/_docs/github-pages.md @@ -53,24 +53,33 @@ few minor details. differences between various versions of the gems. To use the currently-deployed version of the gem in your project, add the following to your Gemfile: +

-

source 'https://rubygems.org'

+ {% highlight ruby %} + source 'https://rubygems.org' -

require 'json'

-

require 'open-uri'

-

versions = JSON.parse(open('https://pages.github.com/versions.json').read)

+ require 'json' + require 'open-uri' + versions = JSON.parse(open('https://pages.github.com/versions.json').read) -

gem 'github-pages', versions['github-pages']

+ gem 'github-pages', versions['github-pages'] + {% endhighlight %} +

This will ensure that when you run bundle install, you have the correct version of the github-pages gem. If that fails, simplify it: +

-

source 'https://rubygems.org'

-

gem 'github-pages'

+ {% highlight ruby %} + source 'https://rubygems.org' + gem 'github-pages' + {% endhighlight %} + +

And be sure to run bundle update often. If you like to install pages-gem on Windows you can find instructions by Jens Willmer on how to install github-pages gem on Windows (x64).