📚 eBook on Packt Publishing | Source on GitHub
- Install bundle gem
gem install bundler - Create Gemfile with github-pages gem dependency
- Run
bundle install --path .vendor/bundle
Jekyll was installed as a dependency.
Check whether Jekyll was correctly installed by running bundle exec jekyll
Gemfile
source 'https://rubygems.org'
gem 'github-pages'- Create new Jekyll site in empty folder
bundle exec jekyll new initdir - Copy new site to root directory
mv initdir/{.,}* . - Remove temp folder
rmdir initdir - Install dependencies
bundle install
Build the site locally bundle exec jekyll serve --watch
Site is running on http://localhost:4000