Parker Moore
b6c283a4ae
wip: allow custom extensions
2016-01-04 17:42:06 -08:00
Pat Hawks
e3189e3828
Rubocop: Lint/UnusedMethodArgument
2016-01-03 17:07:39 -08:00
Pat Hawks
7ca4f7cd62
Rubocop: Style/Proc
...
- Use proc instead of Proc.new
...and use lambda instead of proc
2016-01-03 16:18:26 -08:00
Pat Hawks
663a2d3279
Rubocop: Style/SpaceBeforeBlockBraces
...
Rubocop: Style/SpaceInsideBlockBraces
2016-01-03 15:58:02 -08:00
Pat Hawks
a70d89a862
Rubocop: Style/SpaceAfterComma
...
- Space missing after comma
2016-01-03 15:56:44 -08:00
Pat Hawks
cda226de45
Rubocop: Style/EmptyLinesAroundClassBody
...
- Extra empty line detected at class body end
2016-01-03 15:55:33 -08:00
Pat Hawks
98a19cdf2b
Rubocop: Style/PercentLiteralDelimiters
...
- %w-literals should be delimited by ( and )
Rubocop: Style/WordArray
- Use %w or %W for array of words
2016-01-03 15:32:11 -08:00
Pat Hawks
0eae36aec2
Rubocop: Style/LineEndConcatenation
...
- Use \ instead of + or << to concatenate those strings
2016-01-03 14:41:49 -08:00
Parker Moore
92adfd0e46
Merge pull request #4052 from Crunch09/process-empty-config-files
...
Merge pull request 4052
2015-12-11 14:11:11 -08:00
Jordon Bedwell
e331a37260
Fix #4202 : Have Kramdown behave like Github.
2015-12-04 11:11:30 -06:00
Jordon Bedwell
3432fd2c2d
Modernize Kramdown for Markdown converter.
2015-12-04 08:09:08 -06:00
Florian Thomas
cf71c563ab
Handle empty config files
...
SafeYAML.load_file returns `false` when processing empty files so we
convert this into an empty hash for further processing.
fixes #4030
2015-10-28 22:31:42 +01:00
Alfred Xing
2a040fd527
Rename incremental regeneration flag
...
Rename from `full_rebuild` to disable, to `incremental` to enable
2015-10-26 14:20:44 -07:00
Alfred Xing
d9b12bc090
Disable incremental regeneration by default in Jekyll 3.0
...
Disable the feature as it's still not 100% working 100% of the time. Feature
can be re-enabled by specifying `full_rebuild: false` in the configuration
2015-10-26 13:37:47 -07:00
Parker Moore
b89f943bf2
collections: posts as collection
2015-10-26 00:29:14 -07:00
Parker Moore
44a43b757d
Merge branch 'fniephaus-_includes' into 'master'
...
* fniephaus-_includes:
Unify renaming of configuration options to a single method. /cc #3782 .
Make _includes directory configurable; closes #2684
2015-08-16 13:30:45 -04:00
Parker Moore
399606c544
Unify renaming of configuration options to a single method. /cc #3782 .
2015-08-16 13:30:39 -04:00
Nate Berkopec
559cd6c7e7
Future should be set to false in the default config
2015-08-16 13:11:08 -04:00
Fabio Niephaus
ac56e9dd16
Make _includes directory configurable; closes #2684
...
and rename `plugins`, `layouts` and `data_source` directories for consistency
2015-08-09 16:20:58 +01:00
Alfred Xing
9ab3c201c8
Remove relative permalinks
2015-04-28 14:03:20 -07:00
Jim Meyer
269662d0f0
DRY config value fetching
...
Adds #get_config_value_with_override, refactoring the three fetch
methods to use it.
2015-04-18 16:59:36 -07:00
Jim Meyer
9c03fc3f27
Set logging to debug when verbose flag is set
...
Adds Jekyll::LogAdapter#adjust_verbosity which ensures that --quiet
always wins.
2015-04-18 16:57:57 -07:00
Alfred Xing
5a60adb6bd
Maruku deprecation error message
2015-04-14 10:58:47 -07:00
Parker Moore
bb57c80478
Perform jekyll-paginate deprecation warning correctly.
...
Fixes #3393
2015-03-16 14:54:31 -07:00
ChaYoung You
7806f9ed52
Replace `File.exists?` with `File.exist?`
...
`File.exists?` is deprecated method. See
http://ruby-doc.org//core-2.2.0/File.html#exists-3F-method .
2015-03-05 18:21:52 +09:00
Joop Aué
7a31029c79
Removed deprecation inconsistency
...
Replaced occasions where the logger was used to report deprecations.
Deprecator is now used instead.
Signed-off-by: Joop Aué <joopaue@gmail.com>
2015-03-02 21:54:05 +01:00
Parker Moore
a87cda4b12
Add configuration fallback for paginate, and fix tests.
2015-01-31 13:53:17 -08:00
Parker Moore
65d43ef398
Move previous runtime dependencies to development dependencies.
2015-01-31 13:53:17 -08:00
Parker Moore
057b8cae7f
Use `rouge` as the default syntax highlighter.
2015-01-31 13:52:50 -08:00
Parker Moore
c1da91cf5c
Start removing mentions of Textile.
2015-01-17 16:51:28 -08:00
Parker Moore
f6bff6fb61
Have a deprecation fallback for 'use_coderay'
2014-12-26 22:16:47 -05:00
Parker Moore
a103898980
Set 'use_coderay' to 'enable_coderay'
2014-12-26 22:16:33 -05:00
Alfred Xing
d0e12d69bc
Last few revisions
2014-11-28 14:05:40 -08:00
Alfred Xing
ac03af3229
Implement @mattr-'s suggestions
2014-11-21 22:12:21 -08:00
Alfred Xing
842470b0c4
Refinements
2014-11-21 22:12:21 -08:00
Alfred Xing
a16dfef840
Use 127.0.0.1 as host instead of 0.0.0.0
2014-11-02 15:31:23 -08:00
Parker Moore
6cee2a87cc
Auto-enable watch on 'serve'.
...
Addresses @kneath's and @chibicode's comments in #2695 .
2014-08-30 22:52:41 -07:00
Parker Moore
69cc414c1b
Don't need to capture the group.
2014-08-10 15:44:36 -04:00
Parker Moore
3264766762
Use case-insensitive checking for the file extensions when loading config files.
2014-08-10 14:37:41 -04:00
Parker Moore
229cedfc50
Reorganize and update default configuration settings. #2456 .
2014-08-06 16:01:47 -04:00
Alfred Xing
6d62dbbafc
Replace deprecated Ruby methods
...
Replace `Hash#has_key?` and `File.exists?` with `Hash#key?`
and `File.exist?`
2014-07-31 12:50:20 -07:00
Parker Moore
e332197660
Be quiet very quickly. Fixes #2520 .
2014-06-28 17:19:40 -04:00
Parker Moore
d16f62cb38
Ensure exclude and include arrays are arrays of strings.
...
Fixes #2542 .
2014-06-25 16:56:27 -04:00
Yihang Ho
658a4d0b47
Try to load _config.yaml if _config.yml is nonexistent.
2014-05-19 09:06:55 +08:00
Parker Moore
97e9fb29b0
Default baseurl to "" rather than to "/"
...
Also a fix for #2317
2014-05-06 23:54:56 -04:00
Parker Moore
a7776f8279
Set relative_permalinks to false to deprecate!
2014-05-06 13:04:12 -04:00
Parker Moore
9db5a1a6ce
Merge pull request #2205 from jekyll/maul-esel-frontmatter-defaults
2014-04-21 23:01:05 -04:00
Parker Moore
50b46d7bee
OMG it's happening ~*Collections*~
2014-04-14 22:44:29 -04:00
maul.esel
91e9ecfa63
Add an --unpublished option to render unpublished posts
...
Fixes #1337 , #469 .
2014-04-07 16:17:12 +02:00
Parker Moore
6bd07501e8
Merge branch 'frontmatter-defaults' of git://github.com/maul-esel/jekyll into maul-esel-frontmatter-defaults
...
* 'frontmatter-defaults' of git://github.com/maul-esel/jekyll:
move self.type to convertible
oops, fix minor indentation quirk
document frontmatter defaults precedence
adjust frontmatter defaults precedence handling
change cucumber feature to test for precedence too
fix frontmatter defaults for custom paths
more robust cucumber features
fix slash handling for paths
move cucumber features to own file
fix minor docs quirk
improve path checking, now using Pathname instead of regex
Add site documentation for the new feature
add inline code docs
improve validation code
fix for Ruby 1.8
Add basic cucumber features for frontmatter defaults
Retrieve frontmatter defaults when retrieved internally
make frontmatter defaults available to liquid
add a class `FrontmatterDefaults` for handling of frontmatter defaults
Add a method to retrieve type to post, page and draft
Conflicts:
lib/jekyll.rb
lib/jekyll/convertible.rb
lib/jekyll/core_ext.rb
lib/jekyll/page.rb
lib/jekyll/post.rb
2014-04-04 15:32:27 -04:00
Parker Moore
7787d64bce
Rename those Utils functions.
2014-03-04 15:52:05 -05:00
Parker Moore
e2af1b547b
Extract core extensions into a Utils module
...
Fixes #2111
2014-03-03 22:13:03 -05:00
Zlatan Vasović
699066ef85
Add `.mkdown` as valid Markdown extension
...
GitHub Linguist recognizes `.mkdown` as Markdown, so Jekyll should support it as Jekyll is used on GitHub pages.
2014-02-15 22:01:37 +01:00
Parker Moore
c58c5b8782
Default to using the UTF-8 encoding when reading files.
...
Fixes #2029 .
2014-02-11 17:48:52 -05:00
Parker Moore
dd3018ce02
Merge pull request #1988 from jekyll/maruku-to-kramdown
2014-02-08 17:07:54 -05:00
Parker Moore
22f2001ff5
Set default markdown converter to Kramdown
...
- Update default markdown converter in docs for configuration
- Update tests so they are in line with Kramdown output
- Add deprecation message to when config is built
2014-02-08 13:17:46 -05:00
Dan Tao
4f0b1bdf6d
switched from YAML.safe_load* to SafeYAML.load*
2014-01-23 17:25:17 -08:00
Matt Rogers
012387396a
Merge pull request #1859 from robin850/rouge
2013-12-30 22:45:07 -06:00
Robin Dupret
3ca2cb0119
Fix various typos and improve the doc
2013-12-23 13:03:29 +01:00
Robin Dupret
4bf716c2ad
Set highlighter to pygments when upgrading
...
In case you are upgrading from 1.4.2 to 2.0 and the pygments option is
set to true, then the highlighter option will be set to pygments
automatically.
2013-12-22 18:45:46 +01:00
Robin Dupret
92064134d6
Rename the pygments option to highlighter
...
Rename the pygments configuration option to highlighter to allow
different highlighters in the future. For now, the allowed values are
`pygments` and `null`.
It's now more straightforward to plug another syntax highlighter.
2013-12-22 12:45:15 +01:00
Parker Moore
1ebce26881
Default Maruku fenced_code_blocks to ON.
...
Extends https://github.com/jekyll/jekyll/pull/1799
2013-12-15 16:08:21 -05:00
maul.esel
f1869cda98
Merge branch 'master' into frontmatter-defaults
2013-12-05 19:29:57 +01:00
Parker Moore
22b95aee38
Give that LoadError a good message.
2013-11-29 23:33:25 -05:00
Parker Moore
1e32af47a6
Better config file parser error if it's not there.
2013-11-29 23:22:13 -05:00
Parker Moore
51706e8da7
Parse TOML or YAML in Jekyll::Configuration.
2013-11-28 22:11:56 -05:00
maul.esel
20ea0c8d56
Merge branch 'master' into frontmatter-defaults
2013-10-14 19:44:06 +02:00
Parker Moore
310688297b
I guess we'll wait until v2.0 to switch to absolute permalinks.
2013-10-04 15:03:05 -04:00
Parker Moore
bf1d9a79c4
Add support for gem-based plugins.
2013-10-04 14:45:28 -04:00
liufengyun
760cbc7f91
Autoload yaml files under _data directory
...
The jekyll engine will autoload all yaml files(ends with .yml or .yaml)
under _data. If there's a file members.yml under the directory, then user
can access contents of the file through site.members.
2013-10-01 11:23:33 +08:00
MURAOKA Taro
f4c2383d3c
write document for config.encoding
2013-09-19 12:21:25 +09:00
MURAOKA Taro
8a28d80690
add encoding for configuration
2013-09-19 12:21:25 +09:00
maul.esel
b3fdaa9792
add a class `FrontmatterDefaults` for handling of frontmatter defaults
2013-09-11 00:55:28 +02:00
ddavison
b163bf637e
final mods
2013-08-24 21:31:05 -04:00
ddavison
9681f3a776
adding default configuration to false
2013-08-21 21:00:18 +00:00
Parker Moore
d19c6983f2
paginate option cannot be 0.
2013-08-06 21:04:15 +02:00
Parker Moore
6eec3a7942
Print warning when `paginate` is set to `true`.
...
Related to #1105 .
Sample output:
~/code/jekyll/tsite$ ../bin/jekyll build --trace
Configuration file: /Users/parker/code/jekyll/tsite/_config.yml
Config Warning: The `paginate` key must be a positive integer or nil. It's currently set to 'true'.
Source: /Users/parker/code/jekyll/tsite
Destination: /Users/parker/code/jekyll/tsite/_site
Generating... done.
2013-08-06 20:56:29 +02:00
Parker Moore
253fc8c506
Raise LoadError if the file doesn't exist but do not catch it. :)
2013-07-12 12:22:06 +02:00
Parker Moore
a7efb86d5c
Throw ArgumentError when there's an invalid config file, and catch only that.
2013-07-12 11:56:22 +02:00
Parker Moore
456ac01890
Crash if a config file isn't there.
...
If a configuration file is specified via the command line but does not exist,
fail loudly and crash to preserve the current state. Do not fail if the requested
file is the default configuration file, _config.yml. In that case, fall back on
the defaults.
2013-07-12 11:18:46 +02:00
Parker Moore
9d3d095bca
Simplify check for String include/exclude option.
2013-07-08 18:35:16 +02:00
Parker Moore
bbd466497f
Remove duplication for include/exclude options in backwards_compatibilize.
2013-07-08 18:34:26 +02:00
Parker Moore
6e80ba868e
Fix tests for Pager.
2013-06-09 18:52:24 +02:00
Parker Moore
1f59e9c757
Use Jekyll.logger instead of Jekyll::Stevenson to log things.
2013-05-29 11:58:35 +02:00
Parker Moore
8e3ab9ea36
Backwards-compatibilize 'exclude' and 'include' config tags. Fixes #1109
2013-05-16 00:25:16 +02:00
Parker Moore
35f4f09c3e
Rename Jekyll::Logger ~> Jekyll::Stevenson to fix inheritance problem
...
Problem described here: ca888cad76
2013-05-14 21:07:23 +02:00
Parker Moore
28b9e351c4
Merge pull request #1081 from mojombo/relative-permalinks
...
Backwards-compatibilize relative permalinks
2013-05-12 02:55:49 -07:00
maul.esel
1b80fc8cc8
always be polite to the user :)
2013-05-11 20:03:55 +02:00
maul.esel
a8788f4a0a
copy over deprecated config option to new one
2013-05-11 19:57:11 +02:00
maul.esel
c44d4248ac
warn on use of deprecated "server_port" option
2013-05-11 19:54:06 +02:00
Parker Moore
e22b1bb74a
Add deprecation support for pages in subfolders with relative permalinks.
2013-05-11 17:40:00 +02:00
Pascal Borreli
29b3dc97f0
Fixed typos
2013-05-06 20:27:00 +01:00
uu59
20a837d15c
Change default value of limit_posts from nil to 0 (see #1004 )
...
Before this commit meaning of limit_posts:
nil: no limit. generate all posts
0: raise error
n ( > 0): generate n posts only
n ( < 0): raise error
else: raise error
After this commit:
nil: same as 0
0: no limit. generate all posts
n ( > 0): generate n posts only
n ( < 0): raise error
else: almost same as 0 (depend on `to_i` result)
2013-04-29 01:41:22 +09:00
Parker Moore
61c24c601a
Add UTF-8 encoding where we read in YAML so it reads in UTF-8 characters properly. Fixes #836 .
2013-04-25 02:15:25 +02:00
Parker Moore
82f32d5c02
Merge configuration properly. Closes #978 .
2013-04-16 00:41:10 +02:00
Parker Moore
c0a2d0f888
Fixed syntax error
2013-04-15 00:42:13 +02:00
Parker Moore
b249289b9d
Set the timezone for the process
2013-04-15 00:42:13 +02:00
Parker Moore
55a964a7da
Print deprecation warnings for 'server', 'watch' and 'auto' when loaded from files. Fixes #972
2013-04-14 23:18:47 +02:00
Parker Moore
e531925cae
Fixes multiple config loading. Closes #973 . Rel: #945 .
2013-04-14 23:04:20 +02:00
Parker Moore
398cd633b6
Merge pull request #959 from mojombo/deprecator
...
Refactor Logging and Deprecation Messaging
2013-04-14 11:05:07 -07:00