From c47ae465ad6e27f5f335f96f5834da8c2959cfc9 Mon Sep 17 00:00:00 2001 From: alexmalik Date: Sun, 2 Oct 2016 13:31:15 +0100 Subject: [PATCH] Replace p and code tags with {% highlight %} --- docs/_docs/github-pages.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) 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).