- Navigate to a repo where you have your Jekyll static site (maybe your GitHub pages site)
- Launch Codespaces (Code button -> Cloud -> New codespace on current branch)
- Once it's launched, run the following in the terminal
gem install bundler jekyll
bundle update
bundle exec jekyll serve
That's it - you will get a new tab to view the rendered work as you edit. So easy!
I've found I needed to do
rvm use 3.0.5
beforehand as the 3.1.3 version of ruby was failing