- 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
mainbranch - Start the local server:
bundle exec jekyll serve --config _config.yml,_config_dev.yml --incremental- The
site.environmentvariable can be used to only run certain operations in production vs development- The
--configflag uses development variables in_config_dev.ymlto 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
--incrementalflag 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: