-
Install Dev Container extension
-
Press
shift+command+pand type "Open folder in container" -
Select "From 'Dockerfile'"
-
Click "OK"
-
Click "OK"
-
Wait (this can take a few minutes for the first build)
-
In the VSCode, open the terminal and type
bundle update bundle install bundle exec jekyll serve --livereload --baseurl '' -
Visit localhost:4000
-
You can now modify the posts in VSCode and see the changes instantly in your browser
References
- Developing inside a Container
- How to use Develop Jekyll (and GitHub Pages) locally using Docker containers
Note: You might face Ruby and Jekyll version conflicts when installing dependencies directly on your machine. Using Docker containers is a good way to separate your different projects environments.
bundle install
bundle exec jekyll serve --livereload
References
This theme is licensed under the MIT license © JeffreyTse.