Ruby needs installed first. See https://gist.github.com/BradKnowles/da71a74c829917cff59f#file-ruby-md. These notes came from https://help.github.com/articles/using-jekyll-with-pages/
gem install bundler
Create and navigate to the directory holding the website
mkdir ~/site
cd ~/site
Create the Gemfile in the root directory ~/site
echo "source 'https://rubygems.org'" > Gemfile
echo "gem 'github-pages'" >> Gemfile
>>
appends to Gemfile
Now that bundler is installed and the Gemfile is created, install github-pages. github-pages includes Jekyll and all the necessary dependencies. Once this finishes, Jekyll can be used to create the site scaffold.
bundle install
While still inside ~/site
, create a new Jekyll site
jekyll new . --force
--force
is required because ~/site
is not empty. It contains Gemfile and Gemfile.lock
This creates Jekyll's folder structure and site defaults. The site is ready to serve and customize.
bundle exec jekyll serve
Navigate to http://127.0.0.1:4000/ to see the new site!