From 55368898f5df52238590f3b91fbefebfae9bf114 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Balter" Date: Mon, 15 Apr 2013 13:33:53 -0400 Subject: [PATCH] Clarify new way to do server and auto, props @parkr see https://github.com/mojombo/jekyll/pull/965#issuecomment-16396829 --- site/_posts/2012-07-01-upgrading.md | 38 ++++++++++++++++++----------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/site/_posts/2012-07-01-upgrading.md b/site/_posts/2012-07-01-upgrading.md index 7bd04397..6e29fa9e 100644 --- a/site/_posts/2012-07-01-upgrading.md +++ b/site/_posts/2012-07-01-upgrading.md @@ -6,6 +6,12 @@ prev_section: resources Upgrading from an older version of Jekyll? A few things have changed in 1.0. + +
+
Diving in
+

Want to get a new Jekyll site up and running quickly? Simply run `jekyll new [sitename]`, to create a new folder with a bare bones Jekyll site.

+
+ ### The Jekyll Command For better clarity, Jekyll now accepts the commands `build` and `serve`. @@ -14,9 +20,13 @@ and `jekyll --serve` to view it locally, now use the subcommands `jekyll build` and `jekyll serve` to do the same. And if you want Jekyll to automatically rebuild each time a file changes, just add the `--watch` flag at the end. -
-
Diving in
-

Want to get a new Jekyll site up and running quickly? Simply run `jekyll new [sitename]`, to create a new folder with a bare bones Jekyll site.

+
+
Watching and Serving
+

With the new subcommands, the way sites are previewed locally + changed a bit. Instead of specifying `server: true` in the site's + `_config.yml` file, use `jekyll serve`. The same hold's true for + `watch: true`. Instead, use the `--watch` flag with either `jekyll serve` + or `jekyll build`.

### Custom Config File @@ -27,17 +37,6 @@ environments, or lets you programmatically override user-specified defaults. Simply add the `--config` flag to the `jekyll` command, followed by the path to one or more config files. -
-
The `--config` explicitly specifies your configuration file
-

If you use the `--config` flag, Jekyll will ignore your - `_config.yml` file. Want to merge a custom configuration with the normal - configuration? No problem. Jekyll will accept more than one custom config - file via the command line. Config files cascade from right to left, such - that if I run `jekyll serve --config `--config _config.yml,_config-dev.yml`, - the values in the config files on the right (`_config-dev.yml`) overwrite - those on the left (`_config.yml`) when both contain the same key. ,

-
- #### As a result, the following command line flags are now deprecated: * `--no-server` @@ -50,6 +49,17 @@ to one or more config files. * `--permalink=` * `--paginate` +
+
The `--config` explicitly specifies your configuration file
+

If you use the `--config` flag, Jekyll will ignore your + `_config.yml` file. Want to merge a custom configuration with the normal + configuration? No problem. Jekyll will accept more than one custom config + file via the command line. Config files cascade from right to left, such + that if I run `jekyll serve --config _config.yml,_config-dev.yml`, + the values in the config files on the right (`_config-dev.yml`) overwrite + those on the left (`_config.yml`) when both contain the same key. ,

+
+ ### Draft posts Jekyll now lets you write draft posts, and allows you to easily preview how