From bec32b14cbd460577b61473f99ccd7a55721d154 Mon Sep 17 00:00:00 2001 From: chrisfinazzo Date: Sat, 27 Sep 2014 12:54:47 -0400 Subject: [PATCH] Add a note about the separate commands, show an example without the watcher --- site/_docs/usage.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/site/_docs/usage.md b/site/_docs/usage.md index 0e2f783e..6ed29c0f 100644 --- a/site/_docs/usage.md +++ b/site/_docs/usage.md @@ -41,6 +41,7 @@ preview what the generated site will look like in your browser locally. {% highlight bash %} $ jekyll serve # => A development server will run at http://localhost:4000/ +# Auto-regeneration: enabled. Use `--no-watch` to disable. $ jekyll serve --detach # => Same as `jekyll serve` but will detach from the current terminal. @@ -48,6 +49,18 @@ $ jekyll serve --detach # If you cannot find the PID, then do, `ps aux | grep jekyll` and kill the instance. [Read more](http://unixhelp.ed.ac.uk/shell/jobz5.html). {% endhighlight %} +
+
Be aware of default behavior
+

+ As of version 2.4, the serve command will watch for changes automatically. To disable this, you can use jekyll serve --no-watch, which preserves the old behavior. +

+
+ +{% highlight bash %} +$ jekyll serve --no-watch +# => A development server will run at http://localhost:4000/ +{% endhighlight %} + These are just a few of the available [configuration options](../configuration/). Many configuration options can either be specified as flags on the command line, or alternatively (and more commonly) they can be specified in a `_config.yml` @@ -68,4 +81,4 @@ $ jekyll build --source _source --destination _deploy {% endhighlight %} For more about the possible configuration options, see the -[configuration](../configuration/) page. +[configuration](../configuration/) page. \ No newline at end of file