- Clone the repo
- Install dependencies:
bundle install
- Ruby may need to be installed first if not already packaged with your OS
- Create a feature branch off of the
main
branch - Start the local server:
bundle exec jekyll serve --config _config.yml,_config_dev.yml --incremental
- The
site.environment
variable can be used to only run certain operations in production vs development- The
--config
flag uses development variables in_config_dev.yml
to override those in_config.yml
- The
- When running the local server, saving a file automatically triggers a build so you can see the changes
- The
--incremental
flag speeds up the build time by caching the builds and only updating files that were edited
- The
- The
- Go to http://localhost:4400/ to view changes
To build the site, use bundle exec jekyll build
.
Resources: