The magazine of the B6sicS SCHooL

start with Jekyll

12 Apr 2020 - Kovacs J Giulia

First follow the Quickstart's instructions to install a full Ruby development environment, Jekyll and bundler gems. Then for the first time the Step by Step Tutorial is very useful.



The essence of the tutorial is described here in the following.



FINALE

It’s good practice to have a Gemfile for your site. This ensures the version of Jekyll and other gems remains consistent across different environments.
Create  Gemfile  in the root with the following lines:


    source 'https://rubygems.org'

    gem 'jekyll'

    bundle install
    

The  bundle install  installs the gems and creates  Gemfile.lock  which locks the current gem versions for a future  bundle install . If you ever want to update your gem versions you can run  bundle update .

When using a  Gemfile , you’ll run commands like  jekyll serve  with  bundle exec  prefixed. So the full command is:


    bundle exec jekyll serve
    
jekyll