A GitHub repository was created, named jaehyeon-kim.github.io - jaehyeon-kim should be replaced with an individual user name. It is better to have a clean repository even without README.md as it is easier to
push a local repository for the first time.
Jekyll-Bootstrap was cloned into a folder which has the same name to the GitHub repository. Specifically
$ git clone https://github.com/plusjade/jekyll-bootstrap.git jaehyeon-kim.github.io $ cd jaehyeon-kim.github.io $ git remote set-url origin email@example.com:jaehyeon-kim/jaehyeon-kim.github.io.git $ git push origin master
After a short while, it is possible to access the blog by typing http://username.github.io
However Ruby 1.8.x is the default installation on CentOS 6.6 and, in order to install Jekyll, Ruby 1.9.3 or higher is necessary. To install a different version of Ruby, see this site - Ruby 1.9.3 as installed for this blog.
After Ruby was installed, the RubyGems, which is a package management framework for Ruby, was installed - see this site for further details. Finally, using the RubyGems, the Rake, a Ruby build tool, was installed (
gem install rake).
Twitter-2.0 theme packaged for Jekyll-Bootstrap was installed for responsive design.
$ rake theme:install git="https://github.com/gdagley/theme-twitter-2.0"
After the install was successful, type y and enter to switch to the newly installed theme.
Pygments is necessary for code hightlighting and this Python package can be installed via easy_install.
Python 2.6.6 is already installed on CentOS 6.6. To install easy_install, the python-setuptools and python-setuptools-devel packages were installed via the yum package installer as illustrated in this site.
After installing Pygments, syntax.css was downloaded from here and all occurrences of .syntax were replaced with .highlight. Then this css file was saved as /assets/themes/twitter-2.0/css/syntax.css and the following line was added to the default.html file:
<link href="/assets/themes/twitter-2.0/css/syntax.css" rel="stylesheet" type="text/css">
In order to check articles locally, Jekyll server was installed by the RubyGems, the server doesn’t run currently. It is an issue to resolve as of Nov 18, 2014. At the moment, the only way to check articles before pushing the repository is through converting the Rmd files into HTML using knitr.
title : R, Scala and Machine Learning tagline: Blog author : name : Jaehyeon Kim email : firstname.lastname@example.org github : jaehyeon-kim # Production URL production_url : http://jaehyeon-kim.github.io comments : provider : disqus disqus : short_name : short-name-set-up-at-disque analytics : provider : google google : tracking_id : 'tracking-id-give-by-google-analytics'