Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Installation

Jekyll

Tutorial

@see Jekyll installation guide

Step 1: Install Ruby

Run the following command to check what Ruby version is installed on the system:

ruby -v

On a Debian based Linux distribution run the following command to install ruby using the apt package manager:

sudo apt-get install ruby-full

Alternatively to use the snap package manager run the following command:

sudo snap install ruby --classic

Step 2: Install Jekyll

Run the following command to install the jekyll gem:

gem install bundler jekyll

Step 3: Create a new site

To create a new project named “my-project-name” run the following command:

jekyll new my-project-name

Step 4: Test that everything works fine

To test that the new site works fine cd into the root directory of your project and run the following command:

bundle exec jekyll serve

Or if you are going to make several changes to the site you might want to use this command:

bundle exec jekyll serve --livereload

The site will be available at http://localhost:4000.