Jekyll docs

Posted on 14/08/2019

1. Quickstart

  1. Install a full Ruby development environment
  2. Install Jekyll and bundler gems
     gem install jekyll bundler
    
  3. Create a new Jekyll site at ./myblog
     jekyll new myblog
    
  4. Change into your new directory
     cd myblog
    
  5. Build the site and make it available on a local server
     bundle exec jekyll serve
    
  6. Now browse to http://localhost:4000

2. Kill Jekyll server

Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:

$ lsof -wni tcp:4000
$ kill -9 <PID of process>

And next time, use crtl-c to stop.