To run the following code setup Jekyll on your computer
Refer: https://jekyllrb.com/docs/installation/ubuntu/ Refer: https://jekyllrb.com/docs/step-by-step/01-setup/
The above links should follow the same procedure as shown below: (Please recheck below commands with above links to stay updated)
Jekyll + Ruby Installation:
sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
gem install jekyll bundler
bundle init
For example jekyll project do
Or clone the repo in local machine and run the following command within the working directory:
bundle exec jekyll serve