- Prerequisites
- Getting Started
- Install Jekyll
- [Create new Jekyll Site](#create-new-jekyll site)
- Run Jekyll Server
- View the Jekyll Website
Install Xcode from the App Store. Once installed open to accept the User Agreement. Then install the Xcode Command Line Tools by running xcode-select --install
from Terminal.
For more information on Xcode visit https://developer.apple.com/xcode/.
Run the following command from Terminal to install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
For more informaion on Homebrew visit http://brew.sh/.
Run the following commands one by one from the Terminal.
brew install rbenv ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.3.0
rbenv global 2.3.0
gem update --system
Note: If ruby 2.3.0 fails to install follow the instructions found here to update ruby-build
.
For more information on rbenv
visit https://github.com/rbenv/rbenv.
Run the following command from Terminal to install Bundler.
gem install bundler
For more information on Bundler visit http://bundler.io/.
Run the following command from Terminal to install Jekyll.
gem install jekyll
For more information on Jekyll visit https://jekyllrb.com/.
Run the following command from Terminal to create a new Jekyll site in the current directory.
jekyll new my-awesome-site
Change the current directory to the newly created directory in Terminal and then run a Jekyll server with the starter content created by the jekyll new
command.
cd my-awesome-site
jekyll serve
Navigate to http://localhost:4000/ to see the started Jekyll site in action.