Force Jekyll to Regenerate Your Entire Site

Jekyll is a clever little program for generating static HTML sites. It lets you write your blog posts in markdown, and store them in git. How much more awesome can it get?

By default, when you run jekyll --server, Jekyll will watch your current directory and regenerate the site whenever any file changes. Unfortunately, if one of your plugins has a bug, Jekyll will silently swallow the error. Here is how to force it to regenerate your entire site, and complain loudly about any errors:

rm -rf _site
jekyll --no-auto --no-server

The --no-server option means that Jekyll will quit once it's done regenerating, so you can know when it's finished.