When installing gems to your $HOME, you have to add the directory they are
installed into to your $PATH. For bash, add something like this to ~/.bashrc
and then source the file in your terminal (. ~/.bashrc):
Install some gems:
Create a new site:
You will want to edit the auto-generated _config.yml to add your own name,
etc. If you noticed, I had also installed the pygments.rb gem above, to use
it on my site I have to add a line to _config.yml (but see
below before following along):
And then to allow the site to build with that reference in place, add to the
Gemfile:
The ~> 0.6 version specifier means: upgrade to most recent sub-version of
0.6, but don’t automatically upgrade to 0.7 or above. I chose it because I
already have two versions of pygments.rb on my system (probably due to
dependencies):
At this point we should be able to launch a server and navigate to
http://127.0.0.1:4000/
Ok! Let’s make the first commit:
First problems
All of this worked perfectly on my funtoo instance, but as I pushed to
github.io, a few problems cropped up:
First, the Gemfile contained some unsupported lines, for github-pages, I
reduced it to the following:
Second, pygments is not supported by github.io, you have to use rouge. In
the end, my _config.yml looked something like this:
Third, the files required by use of the minima theme were not discovered in
the github.io environment. In the end I just copied all of the files from the
theme into my project’s _layouts, _includes, and _sass directories,
which is an entirely unsatisfactory solution, and something I will have to
revisit.