First install rbenv
and ruby-build
through the package manager
Then run the following commands in a shell:
$ eval "$(rbenv init -)"
$ rbenv install 3.3.7
$ rbenv shell 3.3.7
$ bundle update
$ eval "$(rbenv init -)"
$ rbenv shell 3.3.7
# 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.