From cbdadc83a192d630d4c0918d53412f4f57b4457b Mon Sep 17 00:00:00 2001 From: David Silva Smith Date: Mon, 18 Nov 2013 15:20:23 -0500 Subject: [PATCH] Add block of code which should be added to Gemfile for Windows listen compatibility. Closes https://github.com/mojombo/jekyll/pull/1720 --- site/docs/windows.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/docs/windows.md b/site/docs/windows.md index 243a4395..5a762b81 100644 --- a/site/docs/windows.md +++ b/site/docs/windows.md @@ -37,3 +37,8 @@ As of v1.3.0, Jekyll uses the `listen` gem to watch for changes when the `--watch` switch is specified during a build or serve. While `listen` has built-in support for UNIX systems, it requires an extra gem for compatibility with Windows. Add the following to the Gemfile for your site: + +{% highlight ruby %} +require 'rbconfig' +gem 'wdm', '~> 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i +{% endhighlight %}