There are probably different ways to go about this, but sometimes what matters is to have one at all. Doing the following was tested by @consideRatio 2019-10-19 on Ubuntu 19.04.
-
Install Ruby, Gem, and Bundler.
- Install
rbenv
. - Install the rbenv-build plugin to allows you to use
rbenv install
. - Run
rbenv install <version>
with the latest stable version. - Run
rbenv global <version>
. - Verify you can run
ruby -v
andgem -v
. - Run
gem install bundler
to work with Gemfiles etc.
- Install
-
Install Jekyll.
- Checkout the
gh-pages
branch withgit checkout gh-pages
. - Run
bundle install
- Checkout the
-
Start a local webserver.
- Run
bundle exec jekyll serve
. - Visit http://localhost:4000.
- Run