diff --git a/site/_docs/github-pages.md b/site/_docs/github-pages.md index b8bf4d33..83af0b3c 100644 --- a/site/_docs/github-pages.md +++ b/site/_docs/github-pages.md @@ -19,6 +19,33 @@ There are two basic types available: user/organization pages and project pages. The way to deploy these two types of sites are nearly identical, except for a few minor details. +
+
Use the github-pages gem
+

+ Our friends at GitHub have provided the + github-pages + gem which is used to manage Jekyll and its dependencies on + GitHub Pages. Using it in your projects means that when you deploy + 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 Gemfile: + +{% highlight ruby %} +source 'https://rubygems.org' + +require 'json' +require 'open-uri' +versions = JSON.parse(open('https://pages.github.com/versions.json').read) + +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. +

+
+ ### User and Organization Pages User and organization pages live in a special GitHub repository dedicated to