First install rbenv
and ruby-build
through the package manager
Then run the following commands in a shell:
$ eval "$(rbenv init -)"
$ rbenv install 2.7.3
$ rbenv shell 2.7.3
$ bundle update
$ eval "$(rbenv init -)"
$ rbenv shell 2.7.3
# Check that ruby is not /usr/bin/ruby with:
$ which ruby
# If not do:
$ export PATH=$HOME/.rbenv/versions/2.7.3/bin:$PATH
# Finally:
$ bundle exec jekyll serve
Wait a bit (30 seconds or something like that). Then the doc will be accessible from a web browser at http://localhost:4000 by default.