Run Jekyll local
In order to run the github-pages that runs on jekyll on your local machine, follow the following steps:
- Ruby Install in Windows
- Ruby Install in CentOS
- Install Jekyll gem.
- Install jekyll plugin.
- Rakefile
- Run locally
Ruby Install in Windows
-
First download and install ruby for your platform, say at C:\Ruby23 For windows get from here.
-
Download and extract the ruby dev-kit at a certain directory, say at C:\Ruby23\dev-kit and run the following cmd as eleveated user.
-
Initialize the dev-kit
- Now install the dev-kit
Ruby Install in CentOS
Install Dependant Library
Install RVM
Install Jekyll gem.
Now install basic gem to get started. Use the following syntax to install gem.
NOTE: Ignore -v to install the latest version.
Using the following gem:
-
bundle
-
rake
-
jekyll
NOTE: For the jekyll check the Jekyll version supported by the github and install it.
Install jekyll plugin.
If you want to use plugins in jekyll refer jekyll doc.
For standard github-pages, put these line inside your Gemfile
Refer github-pages for more information.
Rakefile
This rake file to ease the creation of post and page. The usage is :
Run locally
To see the local build for the site,