Update the help message and comments to use config.yml
This commit is contained in:
parent
dd268fae95
commit
563933f114
|
@ -10,7 +10,7 @@ Basic Command Line Usage:
|
||||||
jekyll <path to write generated site> # . -> <path>
|
jekyll <path to write generated site> # . -> <path>
|
||||||
jekyll <path to source> <path to write generated site> # <path> -> <path>
|
jekyll <path to source> <path to write generated site> # <path> -> <path>
|
||||||
|
|
||||||
Configuration is read from '<source>/_config.yaml' but can be overriden
|
Configuration is read from '<source>/_config.yml' but can be overriden
|
||||||
using the following options:
|
using the following options:
|
||||||
|
|
||||||
HELP
|
HELP
|
||||||
|
|
|
@ -27,7 +27,7 @@ require 'jekyll/tags/include'
|
||||||
require 'jekyll/albino'
|
require 'jekyll/albino'
|
||||||
|
|
||||||
module Jekyll
|
module Jekyll
|
||||||
# Default options. Overriden by values in _config.yaml or command-line opts.
|
# Default options. Overriden by values in _config.yml or command-line opts.
|
||||||
# (Strings rather symbols used for compatability with YAML)
|
# (Strings rather symbols used for compatability with YAML)
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
'auto' => false,
|
'auto' => false,
|
||||||
|
@ -61,7 +61,7 @@ module Jekyll
|
||||||
# then, we need to know where to look for _config.yml
|
# then, we need to know where to look for _config.yml
|
||||||
source = override['source'] || Jekyll::DEFAULTS['source']
|
source = override['source'] || Jekyll::DEFAULTS['source']
|
||||||
|
|
||||||
# Get configuration from <source>/_config.yaml
|
# Get configuration from <source>/_config.yml
|
||||||
config = {}
|
config = {}
|
||||||
config_file = File.join(source, '_config.yml')
|
config_file = File.join(source, '_config.yml')
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue