Compare commits

..

2067 Commits

Author SHA1 Message Date
Parker Moore
d842f02b20 Release 💎 3.0.2 2016-01-20 14:14:22 -08:00
Parker Moore
3dfc0f26e1 We can release from 3.0-stable 2016-01-20 14:14:15 -08:00
Parker Moore
8e27409029 Merge branch '3.0-stable' of github.com:jekyll/jekyll into 3.0-stable
* '3.0-stable' of github.com:jekyll/jekyll:
  Document: throw a useful error when an invalid date is given
2016-01-20 14:10:57 -08:00
Parker Moore
766149cd83 Release 💎 v3.0.2 2016-01-20 14:10:47 -08:00
Parker Moore
f4523cb897 Merge pull request #4378 from jekyll/invalid-date-error
Document: throw a useful error when an invalid date is given
2016-01-20 14:07:22 -08:00
Parker Moore
805b117238 Document: throw a useful error when an invalid date is given 2016-01-20 12:23:48 -08:00
Parker Moore
b01b089f69 rake site:preview should also run :history and :version_file [ci skip] 2015-11-18 08:59:55 -08:00
Parker Moore
61aff2c547 Add more resources for MathJax integration.
Fixes #4146.
2015-11-18 08:58:34 -08:00
Parker Moore
cae8bd31c2 Update history to reflect merge of #4152
[ci skip]
2015-11-17 22:42:06 -08:00
Parker Moore
ed0c08c7f6 Merge pull request #4152 from jekyll/jekyll-docs
Merge pull request 4152
2015-11-17 22:41:18 -08:00
Parker Moore
1dcb1e9fd7 site/latest_version.txt is 3.0.1 homiez 2015-11-17 22:40:14 -08:00
Parker Moore
6448c0e6a1 jekyll-docs gem should be easily integrated with jekyll's site. 2015-11-17 22:39:55 -08:00
Parker Moore
2b4a3c008d Release 💎 3.0.1 2015-11-17 22:19:45 -08:00
Parker Moore
9bc926be3f Update history to reflect merge of #4100
[ci skip]
2015-11-17 22:04:15 -08:00
Parker Moore
d7dc9d8091 Merge pull request #4100 from rebornix/master
Merge pull request 4100
2015-11-17 22:03:28 -08:00
rebornix
6a98ab2a15 Make :title cased for backwards compability and add :slug for uncased usage. 2015-11-18 10:43:13 +08:00
Matt Rogers
03d3eb7191 Update history to reflect merge of #4140 [ci skip] 2015-11-16 09:18:26 -06:00
Matt Rogers
f783cc33d6 Merge pull request #4140 from krockgardin/patch-1 2015-11-16 09:18:24 -06:00
Jordon Bedwell
b1f1a5d65f Update history.markdown to reflect the merger of #4142 2015-11-15 14:39:02 -06:00
Jordon Bedwell
7b9e1a8e93 Merge pull request #4142 from Lewiscowles1986/patch-3
updated to reflect further feedback on #4129
2015-11-15 14:37:40 -06:00
Lewis Cowles
1b91e6d89a updated to reflect further feedback on #4129
@perlun had some more ideas for how this should read...
2015-11-15 11:01:32 +00:00
Christian Trosell
f69c920364 correcting typo: elif to elsif 2015-11-14 21:15:57 +01:00
Jordon Bedwell
5da9333f69 Update history.markdown to reflect the merger of #4137 2015-11-13 23:46:21 -06:00
Jordon Bedwell
fcfc10747f Merge pull request #4137 from Lewiscowles1986/patch-3
Updated to reflect feedback in #4129
2015-11-13 23:45:38 -06:00
Lewis Cowles
c984d8c531 Updated to reflect feedback in #4129
Included Jekyll 3 specific update to mention that jekyll-coffeescript gem must be installed and the gem added to the `_config.yml` file
2015-11-14 04:11:09 +00:00
Jordon Bedwell
eec94cd964 Update history.markdown to reflect the merger of #4134. 2015-11-13 14:02:08 -06:00
Jordon Bedwell
e0fb513df4 Merge pull request #4134 from vwochnik/patch-1
Add jekyll-language-plugin to plugins.md
2015-11-13 14:01:24 -06:00
Vincent Wochnik
45b40782db Add jekyll-language-plugin to plugins.md
I have created a Jekyll 3.0-compatible plugin for multilingual websites which is capable of creating multiple translations for one page or post. Beware that this plugin extends the `PageReader` and `PostReader` as well as `Page` and `Document` classes.
2015-11-13 16:48:46 +01:00
Jordon Bedwell
95f325898f Lets see how we fair on Ruby 2.3. 2015-11-12 23:18:19 -06:00
Matt Rogers
1b3cb4515a Update history to reflect merge of #4130 [ci skip] 2015-11-11 19:43:38 -06:00
Matt Rogers
dc14a1ac05 Merge pull request #4130 from nicolewhite/patch-1 2015-11-11 19:43:36 -06:00
Nicole White
55a759357e Update pagination.md
elsif -> elif
2015-11-11 15:41:17 -08:00
Jordon Bedwell
59f80ac371 Merge pull request #4128 from larryfox/remove-post-autoload
Remove Post autoload
2015-11-11 15:33:04 -06:00
Larry Fox
246ff3f9b6 Remove Post autoload
Seems like this got missed. Referencing `Jekyll::Post` results in a `LoadError`
2015-11-11 11:55:54 -05:00
Jordon Bedwell
294f25b126 Update history.markdown to reflect the merger of #4125. 2015-11-10 21:28:13 -06:00
Jordon Bedwell
7678de537c Merge pull request #4125 from jordanthornquest/remove-deleted-blog-post
Remove link to now-deleted blog post
2015-11-10 21:27:31 -06:00
Jordan Thornquest
5f7df357d4 Remove link to now-deleted blog post 2015-11-10 20:01:18 -07:00
Jordon Bedwell
1c515c9789 Update history.markdown to reflect the merger of #4114 2015-11-06 12:31:14 -06:00
Jordon Bedwell
e43db41e80 Merge pull request #4114 from chrisfinazzo/fix-deprecation-warning
Fix the deprecation warning in the doctor command
2015-11-06 12:29:31 -06:00
chrisfinazzo
d1cbea8a37 Fix the deprecation warning in the doctor command 2015-11-06 09:48:42 -05:00
Parker Moore
4fa7aa2613 Update history to reflect merge of #4110
[ci skip]
2015-11-05 07:34:58 +07:00
Parker Moore
5e790a6d49 Merge pull request #4110 from jekyll/subdirectories-arent-categories
Merge pull request 4110
2015-11-05 07:34:41 +07:00
Parker Moore
455e18624d Update history to reflect merge of #4111
[ci skip]
2015-11-05 07:33:53 +07:00
Parker Moore
7f1c3d4b7a Merge pull request #4111 from lawmurray/master
Merge pull request 4111
2015-11-05 07:33:18 +07:00
Lawrence Murray
61c8ab662b Update plugins.md. Added Jekyll Flickr Plugin. 2015-11-04 23:33:18 +00:00
Parker Moore
db6103bdee Document: only superdirectories of the collection are categories 2015-11-04 15:18:02 +07:00
Parker Moore
6e8fd8cb50 Update history to reflect merge of #4104
[ci skip]
2015-11-04 07:13:55 +07:00
Parker Moore
bbc2b66a84 Merge pull request #4104 from willnorris/fix-hooks
Merge pull request 4104
2015-11-04 07:13:16 +07:00
Parker Moore
a0bc843d9f Update history to reflect merge of #4101
[ci skip]
2015-11-04 07:13:06 +07:00
Parker Moore
b4ae9c6dc6 Merge pull request #4101 from ursooperduper/update-templates-doc-with-gist-info
Merge pull request 4101
2015-11-04 07:12:20 +07:00
Will Norris
1bfe5a6f95 align hooks documentation and implementation
- add site post_render hook, which was documented but wasn't being
  called
- define documents post_init hook, which was documented but caused an
  error when called (fixes #4102)
- add docs for site post_read hook, which was being called but wasn't
  documented
- fix container name in example: s/post/posts/
2015-11-03 07:47:32 -08:00
Sarah Kuehnle
3b42be6e39 Adds a note about installing the jekyll-gist gem to make gist tags work in Jekyll. 2015-11-03 07:05:21 -05:00
Jordon Bedwell
a5b46821ad Put the OS X help guide on the front-lines for now. 2015-11-03 00:11:52 -06:00
Parker Moore
f5da607792 Update history to reflect merge of #4090
[ci skip]
2015-11-02 12:19:01 +07:00
Parker Moore
05a982e5bc Merge pull request #4090 from paulrobertlloyd/3371-kramdown-highlight
Merge pull request 4090
2015-11-02 12:18:21 +07:00
Paul Robert Lloyd
e5279d4773 Santize @config['highlighter'] to only allow highlighters supported by kramdown 2015-11-01 23:04:59 +00:00
Jordon Bedwell
a64a5b9571 Merge pull request #4091 from jekyll/skip-cucumber-on-jruby
Skip Cucumber entirely on JRuby.
2015-10-31 23:07:31 -05:00
Jordon Bedwell
3a225c2ed6 Skip Cucumber entirely on JRuby. 2015-10-31 23:04:52 -05:00
Paul Robert Lloyd
9d1641f163 Fix #3371 - kramdown:syntax_highlighter should automatically take value of highlighter 2015-10-31 23:58:49 +00:00
Alfred Xing
a67adabf98 Update history to reflect merge of #4086 2015-10-30 14:53:30 -07:00
Alfred Xing
16844d168a Merge pull request #4086 from XhmikosR/site-font-awesome
Merge pull request 4086
2015-10-30 14:52:17 -07:00
XhmikosR
6e30e177d1 Update Font Awesome to v4.4.0.
Mostly for .woff2 support.
2015-10-30 22:04:04 +02:00
Jordon Bedwell
121a0471f2 Merge pull request #4087 from XhmikosR/master
Trim trailing whitespace.
2015-10-30 15:00:13 -05:00
Jordon Bedwell
e007a14cf1 Update history.markdown to reflect the merger of #4085. 2015-10-30 14:59:28 -05:00
Jordon Bedwell
04b2f48bbd Merge pull request #4085 from XhmikosR/site-normalizecss
Update normalize.css to v3.0.3.
2015-10-30 14:58:09 -05:00
XhmikosR
3b55bd1a51 Trim trailing whitespace.
[ci skip]
2015-10-30 21:57:14 +02:00
XhmikosR
3c60d63f0b Update normalize.css to v3.0.3. 2015-10-30 21:53:32 +02:00
Parker Moore
e6afa6f07a Update history to reflect merge of #4079
[ci skip]
2015-10-31 03:41:07 +08:00
Parker Moore
48b23858ad Merge pull request #4079 from jekyll/fix-jekyll-metdata-being-generated-on-non-incremental
Merge pull request 4079
2015-10-31 03:40:32 +08:00
Parker Moore
b50056e8df Update history to reflect merge of #4077
[ci skip]
2015-10-31 03:37:45 +08:00
Parker Moore
528ec27df0 Merge pull request #4077 from jekyll/fix_render
Merge pull request 4077
2015-10-31 03:36:18 +08:00
Jordon Bedwell
1c4b4ae271 Add regression tests to Cucumber. 2015-10-29 17:19:03 -05:00
Jordon Bedwell
0f4aed9ccf Fix #4066: Move Convertible#render_liquid to using render! 2015-10-29 16:06:17 -05:00
Jordon Bedwell
71f4383d18 Fix #4075: Make sure that .jekyll-metadata is not generated when not needed. 2015-10-29 15:44:38 -05:00
Jordon Bedwell
dfae4669e4 AUTOMATIC: Whitespace stripped. 2015-10-29 15:43:55 -05:00
Jordon Bedwell
a0f3860cfa Update History.markdown to reflect the merger of #4078. 2015-10-29 15:39:42 -05:00
Jordon Bedwell
3e5a1af234 Merge pull request #4078 from jekyll/fix-test-warnings
Fix test warnings when doing rake {test,spec} or script/test
2015-10-29 15:37:53 -05:00
Jordon Bedwell
e5f26b5a36 Fix test warnings when doing rake {test,spec} or script/test 2015-10-29 15:18:19 -05:00
Parker Moore
8f5465dfa4 site: latest_version.txt is now 3. 2015-10-26 21:13:49 -07:00
Parker Moore
86ea57ba58 Remove 'unreleased' notes. 2015-10-26 21:12:59 -07:00
Parker Moore
031ff12eaf Release 💎 3.0.0 2015-10-26 20:23:00 -07:00
Parker Moore
5082e144d8 Release 💎 3.0.0.pre.rc1 2015-10-26 20:22:53 -07:00
Parker Moore
e813e26da4 Merge pull request #4063 from jekyll/3-0-release-post
Add 3.0 release post.
2015-10-26 20:18:40 -07:00
Parker Moore
2ca9329a8d Add 3.0 release post. [ci skip] 2015-10-26 19:26:27 -07:00
Parker Moore
12225f49ea Update History to reflect 45f69bb and 7b81f00 [ci skip] 2015-10-26 17:31:05 -07:00
Parker Moore
7b81f00137 Defaults: compare paths in applies_path? as Strings to avoid confusion
/cc #4064
2015-10-26 17:28:20 -07:00
Parker Moore
45f69bb8cd Utils: deep_merge_hashes should also merge default_proc
If the target hash's default_proc isn't set, overwrite with the new hash's default_proc.

/cc #4064
2015-10-26 17:27:36 -07:00
Parker Moore
170d6de8d9 Update history to reflect merge of #4062
[ci skip]
2015-10-26 16:30:48 -07:00
Parker Moore
f25a4ddfda Merge pull request #4062 from jekyll/allow-excerpt-to-live
Merge pull request 4062
2015-10-26 16:30:22 -07:00
Parker Moore
f8dbbb1288 Clean History.markdown a teensy bit. [ci skip] 2015-10-26 16:16:36 -07:00
Parker Moore
e45b6f91e7 Document: Only auto-generate the excerpt if it's not overridden
Fixes #4061
2015-10-26 16:08:19 -07:00
Parker Moore
5e425a99b4 Update history to reflect merge of #4060
[ci skip]
2015-10-26 15:37:14 -07:00
Parker Moore
7ac05b2b88 Merge pull request #4060 from jekyll/fix-post-url-deprecation-warning
Merge pull request 4060
2015-10-26 15:36:48 -07:00
Parker Moore
79c33af3fc post_url: fix access deprecation warning & fix deprecation msg 2015-10-26 14:46:42 -07:00
Parker Moore
35ddbe9398 Release 💎 3.0.0.pre.rc1 2015-10-26 14:42:07 -07:00
Parker Moore
05ba1afc29 Release 💎 v3.0.0.pre.rc1 2015-10-26 14:42:03 -07:00
Parker Moore
6bcef622f5 Update history to reflect merge of #4059
[ci skip]
2015-10-26 14:41:40 -07:00
Parker Moore
d6176d6010 Merge pull request #4059 from alfredxing/disable-incremental-default
Merge pull request 4059
2015-10-26 14:41:03 -07:00
Alfred Xing
afd1c21af4 Add incremental configuration option to docs 2015-10-26 14:21:07 -07: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
Parker Moore
ef5e131f53 Update history to reflect merge of #4058
[ci skip]
2015-10-26 13:56:35 -07:00
Parker Moore
8738a66f9f Merge pull request #4058 from jekyll/method_missing_madness
Merge pull request 4058
2015-10-26 13:55:34 -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
2e7c471c70 Add Document#method_missing and Collection#method_missing
Proxies calls to either #data or #docs, respectively. Deprecation warning is printed.
2015-10-26 13:37:04 -07:00
Jordon Bedwell
74734d46f8 Update JRuby on Travis-CI. 2015-10-26 13:55:00 -05:00
Parker Moore
7fbe61fc77 Update history to reflect merge of #4053
[ci skip]
2015-10-26 09:57:07 -07:00
Parker Moore
e9e4a5d21e Merge pull request #4053 from sparanoid/patch-1
Merge pull request 4053
2015-10-26 09:56:03 -07:00
Parker Moore
260ad9a3fb Update history to reflect merge of #4055
[ci skip]
2015-10-26 09:53:43 -07:00
Parker Moore
e58d0ae0ef Merge pull request #4055 from jekyll/beefer-collections
Merge pull request 4055
2015-10-26 09:53:13 -07:00
Parker Moore
b89f943bf2 collections: posts as collection 2015-10-26 00:29:14 -07:00
Tunghsiao Liu
2f5303dd67 Apply rouge highlighter background to child node 2015-10-26 15:17:04 +08:00
Tunghsiao Liu
58365ae898 Add missing highlighting CSS class for Rouge 2015-10-25 19:40:40 +08:00
Parker Moore
7330b499f1 Update history to reflect merge of #4050
[ci skip]
2015-10-22 11:22:38 -07:00
Parker Moore
ae993cbd6a Merge pull request #4050 from alfredxing/default-font-weight
Merge pull request 4050
2015-10-22 11:22:12 -07:00
Alfred Xing
c84627b2e1 Change default font weight to 400 to fix bold/strong text issues 2015-10-22 00:30:14 -07:00
Parker Moore
915f8d3eb6 Update history to reflect merge of #4049
[ci skip]
2015-10-21 11:22:54 -07:00
Parker Moore
36f35bfe00 Merge pull request #4049 from BigBlueHat/icon-refactor
Merge pull request 4049
2015-10-21 11:22:17 -07:00
BigBlueHat
d8f38eef0e Made icon-twitter.html inline-able 2015-10-20 09:03:27 -04:00
BigBlueHat
2cde74c44b Use GitHub icon inline in about.md
Had to remove whitespace from icon includes
because Markdown...
2015-10-20 08:56:36 -04:00
BigBlueHat
5d92a90bde Make HTML includes for GitHub & Twitter icons
Made one for each to avoid over paramaterizing
the includes. Also allows for various icon formats.
2015-10-20 08:52:20 -04:00
BigBlueHat
c2c671641d Move GitHub & Twitter icons into includes 2015-10-20 08:46:51 -04:00
Parker Moore
9186345eca Update history to reflect merge of #4046
[ci skip]
2015-10-19 10:00:20 -07:00
Parker Moore
4e01722941 Merge pull request #4046 from chrisfinazzo/style-the-test-code
Merge pull request 4046
2015-10-19 09:59:50 -07:00
chrisfinazzo
aa9927f073 Apply the highlight class 2015-10-18 23:00:56 -04:00
Parker Moore
d63acc140d installation docs: specify Python 2.7 as dep for Jekyll 2
Fixes #4036.
2015-10-17 11:12:01 -07:00
Jordon Bedwell
62d628c7e0 Update history.markdown to reflect the merge of #4032 2015-10-17 06:57:40 -05:00
Jordon Bedwell
271dc42724 Merge pull request #4032 from jekyll/refactor-cleaner-for-expressiveness
Make a constant for the regex to find hidden files
2015-10-17 06:56:55 -05:00
Parker Moore
ff55da727e Release 💎 3.0.0.pre.beta10 2015-10-16 12:53:18 -07:00
Jordon Bedwell
fb042ef624 Merge pull request #4035 from jaybe-jekyll/patch-2
Remove brackets around _config.yml
2015-10-16 12:09:58 -05:00
jaybe@jekyll
87f9ed94a9 Remove brackets around _config.yml
Referring to _config.yml consistently with <code>
2015-10-16 12:08:29 -05:00
Jordon Bedwell
16c0bf8db8 Update history.markdown to reflect the merge of #4034 2015-10-16 12:02:13 -05:00
Jordon Bedwell
18bdfac542 Merge pull request #4034 from jaybe-jekyll/patch-1
Update usage.md re: _config.yml not reloaded during regeneration
2015-10-16 12:01:16 -05:00
jaybe@jekyll
14f351fc19 Update usage.md re: _config.yml not reloaded during automatic regeneration
_config.yml not reloaded during automatic regeneration
2015-10-16 11:53:31 -05:00
Jordon Bedwell
d3e4c93163 Update history.markdown to reflect the merge of #4033 2015-10-16 06:11:36 -05:00
Jordon Bedwell
84089f9ebe Merge pull request #4033 from jekyll/ignore-more-bundler-directories
Ignore `.bundle` when generating test coverage
2015-10-16 06:10:35 -05:00
Matt Rogers
b1125f53de Update history to reflect merge of #4004 [ci skip] 2015-10-15 21:13:34 -05:00
Matt Rogers
20303de60d Merge pull request #4004 from kevinoid/excerpt-match-post-content 2015-10-15 21:13:32 -05:00
Matt Rogers
ff504a39ba Ignore .bundle when generating test coverage
Fix the code coverage reporting when using `.bundle` to store my gems in
by having SimpleCov ignore that directory. Use of `.bundle` to store my
gems consolidates things since since that directory also holds the
bundler config file. It also keeps a `vendor` directory out of the
project tree for non-Rails projects.  Simplecov was not ignoring that
directory though, which meant that the code coverage numbers I were
seeing locally were wrong (and very frightening). With this change, all
is right with the world once again. 😃
2015-10-15 20:59:34 -05:00
Matt Rogers
b72556fd03 Make a constant for the regex to find hidden files
A raw regular expression isn't very expressive, IMHO. Rather than having
people who read this code parse the regular expression to figure out
what it's for, let's give a name. This way, it becomes more obvious what
exactly it is we're doing here.
2015-10-15 20:34:44 -05:00
Parker Moore
8add5aec4b Update history to reflect merge of #4029
[ci skip]
2015-10-15 11:38:42 -07:00
Parker Moore
8fec927f83 Merge pull request #4029 from MonsieurV/patch-1
Merge pull request 4029
2015-10-15 11:38:33 -07:00
MonsieurV
63144fd46d Fix pretty permalink example
Following what the documentation specify above for the pretty permalink format (`/:categories/:year/:month/:day/:title/`), it should result for the example to `/2009/04/29/slap-chop/` and not `/2009/04/29/slap-chop/index.html`. Well, at least if I've understood correctly ;-)
2015-10-14 22:12:08 +02:00
Jordon Bedwell
7ae044ee44 Update history.markdown to reflect the merge of #4022 2015-10-11 22:17:37 -05:00
Jordon Bedwell
e830e7954c Merge pull request #4022 from chrisfinazzo/fix-the-typos
Fixed a typo, wrap at 80 characters
2015-10-11 22:16:40 -05:00
chrisfinazzo
8e1dd75312 Fixed a typo, wrap at 80 characters 2015-10-11 21:09:44 -04:00
Parker Moore
53f975feb4 Update history to reflect merge of #4018
[ci skip]
2015-10-11 14:50:30 -07:00
Parker Moore
1d9c095b80 Merge pull request #4018 from mudpuddle/alternative-instructions-for-el-capitan
Merge pull request 4018
2015-10-11 14:43:18 -07:00
Parker Moore
2410bcc001 Merge pull request #4021 from stomar/fix-indentation
Avoid "mismatched indentations" warning for ruby -w
2015-10-11 14:38:47 -07:00
Parker Moore
e7043ac4f3 Update history to reflect merge of #4013
[ci skip]
2015-10-11 14:37:49 -07:00
Parker Moore
fa2c8d2a96 Merge pull request #4013 from antonk52/patch-1
Merge pull request 4013
2015-10-11 14:37:00 -07:00
Anton
3eb25217ce Added installation instructions for 2 of the 3 options for plugins.
Fixes #4013.
2015-10-11 14:36:11 -07:00
Marcus Stollsteimer
45902b2047 Avoid "mismatched indentations" warning for ruby -w 2015-10-11 19:49:40 +02:00
Jesse W
611af3f456 added alternative jekyll gem installation instructions 2015-10-09 11:35:18 -07:00
Jordon Bedwell
9b091f8d5d Update Kramdown and reduce it's constraints. 2015-10-09 07:28:02 -05:00
Anton
6cda306bbf Update plugins.md
Corrected display of installing options
2015-10-09 10:23:08 +03:00
Anton
bc3e67da62 Update plugins.md
Added gem install and bundle install commands for plugins set up
2015-10-08 21:47:29 +03:00
Matt Rogers
b9bdb85a47 Update history to reflect merge of #4015 [ci skip] 2015-10-08 08:53:00 -05:00
Matt Rogers
4e0a803c01 Merge pull request #4015 from takuti/new-plugin-link 2015-10-08 08:52:58 -05:00
takuti
30d82aff5d Update plugins.md 2015-10-08 22:31:15 +09:00
Anton
3435d05c2a Update plugins.md
Note to option 2 and 3 for installing plugins
2015-10-08 10:23:29 +03:00
Anton
464d4b0254 update plugins documentation
you have to install gem files for plugins for them in order to work
2015-10-08 09:59:15 +03:00
Kevin Locke
bb9462f12f Whole-post excerpts should match the post content
When a post does not contain an excerpt_separator, meaning the excerpt
includes the entire post, the excerpt should contain exactly the post
content.

This is desirable both from a correctness standpoint, that the excerpt
should not introduce any new content, and more practically to allow fast
and easy detection of whole-post excerpts in Liquid templates using
`post.excerpt == post.content`.  A common use-case is deciding whether
to render "Read More" links on a page containing post excerpts.

This commit does exactly that.  It avoids adding additional newlines to
the excerpt content when the excerpt includes the whole post and adds
tests to ensure that this behavior is correct and preserved going
forward.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2015-10-01 13:58:00 -07:00
Parker Moore
9f4d4bbae0 Update history to reflect merge of #3999
[ci skip]
2015-09-30 21:23:41 -07:00
Parker Moore
a1fdf830db Merge pull request #3999 from chrisfinazzo/instructions-for-el-capitan
Merge pull request 3999
2015-09-30 21:23:18 -07:00
chrisfinazzo
9c9481a8a9 Notes for Homebrew, advanced installs, and cleanup 2015-09-30 12:57:09 -04:00
chrisfinazzo
ca29e4f585 Feedback from @parkr, rephrasing, and link to Ruby managers 2015-09-28 21:31:27 -04:00
Parker Moore
ed7fcf6773 Update history to reflect merge of #4001
[ci skip]
2015-09-28 14:03:30 -07:00
Parker Moore
25cea4d3d2 Merge pull request #4001 from hartmel/master
Merge pull request 4001
2015-09-28 14:02:53 -07:00
hartmel
951c604017 Add timezone as hour & minute offset in the initial post in the new site template. Fixes #3998 2015-09-28 22:18:02 +02:00
chrisfinazzo
269018b011 Instructions for El Capitan 2015-09-27 15:49:24 -04:00
Parker Moore
2807b8a012 Update history to reflect merge of #3997
[ci skip]
2015-09-26 12:35:22 -07:00
Parker Moore
5a765affa3 Merge pull request #3997 from d9n/master
Merge pull request 3997
2015-09-26 12:34:32 -07:00
David Herman
1703b59ce8 Add header message to _config.yml
The first thing new users to Jekyll do is open _config.yml, so this
change adds a simple welcome message to the top of it. Additionally,
it informs the user that the file is not automatically reloaded when
changed, which is a point of confusion for new users.

Related issue: https://github.com/jekyll/jekyll/issues/2302
2015-09-25 18:57:46 -07:00
Parker Moore
85b6d936d8 docs: include backup github-pages Gemfile
Fixes #3985
2015-09-24 16:24:26 -07:00
Parker Moore
abcab4b91f Update history to reflect merge of #3992
[ci skip]
2015-09-24 16:07:03 -07:00
Parker Moore
e193f5a738 Merge pull request #3992 from jekyll/abort-before-confusing-msg
Merge pull request 3992
2015-09-24 16:06:26 -07:00
Jordon Bedwell
51f32502b9 Update history.markdown to reflect the merge of #3994 2015-09-24 13:42:34 -05:00
Jordon Bedwell
c91b622967 Merge pull request #3994 from arthurhammer/patch-1
Fix broken configuration documentation page
2015-09-24 13:41:56 -05:00
Arthur Hammer
16eef80539 Fix broken configuration documentation page 2015-09-24 20:27:03 +02:00
Jordon Bedwell
f9925bef2b Update history.markdown to reflect the merge of #3990 2015-09-24 12:59:05 -05:00
Jordon Bedwell
e01c40f575 Merge pull request #3990 from pheuko/permalink-timestamp
Added permalink time variables
2015-09-23 23:07:28 -05:00
Pedro Euko
22b59ae793 Added permalink time variables 2015-09-23 21:51:02 -03:00
Parker Moore
c7bc76269c Abort if no subcommand.
Fixes #3412
2015-09-23 17:32:33 -07:00
Parker Moore
8563f59125 Update history to reflect merge of #3989
[ci skip]
2015-09-22 21:07:09 -07:00
Parker Moore
1bb8f9cf81 Merge pull request #3989 from tomjohnson1492/patch-1
Merge pull request 3989
2015-09-22 21:06:31 -07:00
Tom Johnson
38a561a14c Made small pull request fixes as noted by Parker 2015-09-22 14:28:32 -07:00
Tom Johnson
a82b063d42 Added documentation for Jekyll environment variables
Information about Jekyll environment variables was missing from the documentation. This seemed like a good place to include it.
2015-09-22 09:35:14 -07:00
Parker Moore
f3b99ebda7 Release 💎 3.0.0.pre.beta9 2015-09-21 12:31:00 -07:00
Parker Moore
9181d22391 Update history to reflect merge of #3917
[ci skip]
2015-09-21 12:21:35 -07:00
Parker Moore
bea64a2cf7 Merge pull request #3917 from leo/patch-1
Merge pull request 3917
2015-09-21 12:21:11 -07:00
Parker Moore
666df42a28 Update history to reflect merge of #3968
[ci skip]
2015-09-21 12:20:43 -07:00
Bruce Smith
402643435d replace broken link; add other Mac-specific info
Fixes #3968
2015-09-21 12:08:51 -07:00
Jordon Bedwell
d6b37a1644 Lock Cucumber to 2.0 because 2.1 is broken. 2015-09-11 15:03:07 -05:00
Jordon Bedwell
908bb2e7af Fix #3970: Use Gem::Version to compare versions, not >. 2015-09-11 14:44:20 -05:00
Jordon Bedwell
f1fd89bd8e Update history.markdown to reflect the merger of #3966 2015-09-09 08:09:08 -05:00
Jordon Bedwell
92647c58aa Merge pull request #3966 from webchef/patch-1
Update plugins.md
2015-09-09 08:07:53 -05:00
Arne Gockeln
b02ae4fad1 Update plugins.md
Added a link to a new generator plugin for replacing german umlauts with html
2015-09-09 14:43:54 +02:00
Parker Moore
b732667aea site: document required ruby versions
closes #3963
2015-09-07 22:04:32 -07:00
Alfred Xing
1dc2a34252 Update history to reflect merge of #3828
[ci skip]
2015-09-02 20:23:58 -07:00
Alfred Xing
93d282a5c1 Merge pull request #3828 from superlukas/fix-clean-command
Merge pull request 3828
2015-09-02 20:22:14 -07:00
Jordon Bedwell
baafe24e4a Update history.markdown to reflect the merge of #3736 2015-09-01 13:54:24 -05:00
Jordon Bedwell
8ce4ff9060 Merge pull request #3736 from jekyll/jekyll-feed
Use Jekyll Feed for jekyllrb.com
2015-09-01 13:53:30 -05:00
Ben Balter
47df90583a Merge branch 'master' into jekyll-feed 2015-09-01 14:35:55 -04:00
Leonard
a7378da16c Updated URL 2015-09-01 20:27:39 +02:00
Jordon Bedwell
11da2e0d90 Update history.markdown to reflect the merger of #3769 2015-09-01 13:27:18 -05:00
Jordon Bedwell
0340fea808 Merge pull request #3769 from chrisfinazzo/install-docs
Update install docs (Core dependencies, Windows reqs, etc)
2015-09-01 13:26:17 -05:00
Jordon Bedwell
fffb834e63 Update history.markdown to reflect the merger of #3158 2015-08-31 05:17:16 -05:00
Jordon Bedwell
87517af979 Merge pull request #3950 from nyufac/master
Jekyll views router plugin
2015-08-31 05:16:04 -05:00
Parker Moore
d35f0a8e16 Merge pull request #3948 from julienbourdeau/julienbourdeau-patch-1
Just fixed markdown list in `site/README.md`
2015-08-30 12:55:43 -07:00
Neil Faccly
d18d1bc43b Jekyll views router plugin 2015-08-30 21:10:27 +05:00
Julien Bourdeau
edcbe99b58 Update README.md 2015-08-30 15:48:02 +02:00
Parker Moore
f2d31a1b20 Update history to reflect merge of #3935
[ci skip]
2015-08-25 23:39:40 -07:00
Parker Moore
831eb17b29 Merge pull request #3935 from jekyll/filter-where-to_s
Merge pull request 3935
2015-08-25 23:39:19 -07:00
Parker Moore
4169075dd1 filters: where should compare stringified versions of input & comparator
Non-string input was being missed as a result of poor comparison.
Converting inputs to strings ensure numerical and boolean values are
properly compared.

Fixes #3911.
2015-08-25 23:00:58 -07:00
Parker Moore
cd4829d28d Update history to reflect merge of #3931
[ci skip]
2015-08-25 22:11:23 -07:00
Parker Moore
75007cb26d Merge pull request #3931 from dommmel/patch-1
Merge pull request 3931
2015-08-25 22:10:38 -07:00
Parker Moore
47cb3a8fd7 docs: categories/tags only with array & comma-separated string
Fixed #3930
2015-08-24 18:01:06 -07:00
Parker Moore
14a5646730 Update history to reflect merge of #3933
[ci skip]
2015-08-24 14:03:35 -07:00
Parker Moore
7c5eae5ea2 Merge pull request #3933 from jekyll/vendor-mime-types
Merge pull request 3933
2015-08-24 14:02:59 -07:00
Ben Balter
1eb1f4ea4d add script to vendor mime types 2015-08-24 16:21:50 -04:00
Dominik
12fc4c5ef4 update plugins.md 2015-08-24 14:13:03 +02:00
Parker Moore
34afc7784d Update history to reflect merge of #3871
[ci skip]
2015-08-23 12:55:20 -07:00
Parker Moore
8927898e1f Merge pull request #3871 from stevecrozz/3870_hook_trigger_interface_change
Merge pull request 3871
2015-08-23 12:55:00 -07:00
Matt Rogers
753bdbefbf Update history to reflect merge of #3925 [ci skip] 2015-08-21 10:36:39 -05:00
Matt Rogers
8c509bcf40 Merge pull request #3925 from jekyll/code-of-conduct 2015-08-21 10:36:36 -05:00
Parker Moore
a446589cdc Add a Code of Conduct.
Closes #3924.
2015-08-20 10:17:37 -07:00
jaybe@jekyll
4c1427c400 docs: Update _data in "Directory structure"
Add in references to _data format and extension options of .csv, .json,
etc., consistent with _docs/datafiles.md

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2015-08-17 09:39:44 -07:00
Parker Moore
1c767febe5 Merge pull request #3918 from gangsthub/patch-2
I think you made a typo there
2015-08-17 09:31:37 -07:00
BRAVO
47c9ed0829 I think you made a typo there
as seen on:
http://blog.davepoon.net/2015/01/19/setting-up-sass-with-jekyll/
http://markdotto.com/2014/09/25/sass-and-jekyll/#create-a-sass-stylesheet
2015-08-17 13:23:17 +02:00
Leonard
2db01b9651 Added my site for learning purposes
A week ago, I asked @parkr via email if he could add my site here (mostly because I thought it's too cheeky to just propose a file-change). But now he told me that it's better to just do it here:

I'm asking because I spend a huge amount of time and effort on making it great and usefully structured for people who're just getting started with Jekyll. Therefore it's also great as a forked starting-point, if you ask me.

Besides keeping the code clean, I also spend much time on making the site as fast as possible. There's not much CSS in use, the HTML output is minified and images are directly served from the repo (and therefore GitHub's CDN) instead of from third-party services. There's also a lot of "include"-thinking happening for things like embedded Tweets, images or iFrames - which most people just inline in each post.

When making a significant change, I also always make sure to write a few paragraphs about why I exactly did it as a commit message. And when it comes to really big updates, I write entire posts too (explaining all improvements and their benefits to the site's performance/look). Here's an recent example: http://leo.github.io/notes/v2/

I'm definitely sure that many people could get something out of it. Don't you think so too?
2015-08-16 20:59:06 +02:00
Parker Moore
010038e78a Update history to reflect merge of #3782
[ci skip]
2015-08-16 13:32:18 -04: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
Parker Moore
8b72f14217 Update history to reflect merge of #3892
[ci skip]
2015-08-16 13:17:24 -04:00
Parker Moore
63a51df909 Fix up test for 'future' flag. /cc #3892 2015-08-16 13:15:47 -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
2812341c37 Merge branch 'master' of https://github.com/jekyll/jekyll into _includes
Conflicts:
	bin/jekyll
2015-08-09 16:22:33 +01: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
Jordon Bedwell
af3fe0f30d Update history.markdown to reflect the merger of #3897. 2015-08-08 17:39:26 -05:00
Jordon Bedwell
571f75ee64 Merge pull request #3897 from vlajos/typofixes-vlajos-20150807
Typofixes
2015-08-08 17:38:12 -05:00
Veres Lajos
d652f6e337 typofix in test/test_regenerator.rb 2015-08-08 21:28:36 +01:00
Veres Lajos
aecfe4c160 typofix in site/_docs/plugins.md 2015-08-08 21:27:03 +01:00
Parker Moore
7c8e24a488 Update history to reflect merge of #3895
[ci skip]
2015-08-05 14:31:48 -07:00
Parker Moore
d1620db235 Merge pull request #3895 from jekyll/update-contrib
Merge pull request 3895
2015-08-05 14:31:13 -07:00
Parker Moore
489b9c3639 update contributing documentation to reflect workflow updates 2015-08-05 14:30:35 -07:00
Parker Moore
11230718a4 Update history to reflect merge of #3894
[ci skip]
2015-08-05 14:19:38 -07:00
Parker Moore
7970abebf6 Merge pull request #3894 from nateberkopec/change-contributing-md
Merge pull request 3894
2015-08-05 14:17:59 -07:00
Nate Berkopec
1f29e5b5dc Contributing.md should refer to script/cucumber 2015-08-05 17:09:21 -04:00
Parker Moore
44f0e5b14a Update history to reflect merge of #3891
[ci skip]
2015-08-05 10:19:09 -07:00
Johan Bové
d3c327e184 Further flesh out Continuous Integration guide
More information added after having some trouble getting Travis to execute with the existing explanation.
2015-08-05 10:16:22 -07:00
Parker Moore
a849674f7d Update history to reflect merge of #3820
[ci skip]
2015-08-04 16:16:15 -07:00
Parker Moore
627af07c3e Merge pull request #3820 from chrisfinazzo/configuration-docs
Merge pull request 3820
2015-08-04 16:15:59 -07:00
Parker Moore
e9b1f6db3d Update history to reflect merge of #3852
[ci skip]
2015-08-04 16:15:24 -07:00
Parker Moore
585cd268ef Merge pull request #3852 from jekyll/reorganize-gemfile
Merge pull request 3852
2015-08-04 16:15:02 -07:00
Parker Moore
775645e31c Update history to reflect merge of #3865
[ci skip]
2015-08-04 16:14:28 -07:00
Parker Moore
86696f6322 Merge pull request #3865 from mushishi78/static-publisher-documentation
Merge pull request 3865
2015-08-04 16:13:28 -07:00
Parker Moore
84ca5780df Update history to reflect merge of #3880
[ci skip]
2015-08-04 16:12:56 -07:00
Parker Moore
1b88345933 Merge pull request #3880 from probins/patch-1
Merge pull request 3880
2015-08-04 16:12:39 -07:00
Parker Moore
76c96fc7ac Update history to reflect merge of #3883
[ci skip]
2015-08-04 16:12:19 -07:00
Parker Moore
6fee5e3066 Merge pull request #3883 from codeinpink/patch-1
Merge pull request 3883
2015-08-04 16:12:02 -07:00
Parker Moore
90586d229c Update history to reflect merge of #3787
[ci skip]
2015-08-04 16:11:51 -07:00
Parker Moore
b4ac044c29 Merge pull request #3787 from TWiStErRob/hl_lines
Merge pull request 3787
2015-08-04 16:10:43 -07:00
Robert Papp
371ca58e69 Fixes #3776 by changing to the correct name for whitelisting. 2015-08-05 00:20:14 +02:00
Peter Robins
5cfef073a5 Add site.html_files to variables docs and improve site.html_pages 2015-08-04 07:59:03 +00:00
Shannon
432ff579d9 Add Jekyll Portfolio Generator to list of plugins 2015-08-01 13:47:45 -05:00
Parker Moore
0b79059310 Update history to reflect merge of #3848
[ci skip]
2015-07-31 10:33:05 -07:00
Parker Moore
1eba5093bd Merge pull request #3848 from vitalyrepin/patch-1
Merge pull request 3848
2015-07-31 10:32:42 -07:00
Vitaly Repin
498ad6e83a Detailed instructions for rsync deployment method
Extended documentation on rsync-approach. It also mentions rrsync wrapper script which restricts access for rsync to the server. Based on my blog post here: http://vrepin.org/vr/JekyllDeploy/

Restored previous version of 'Rsync' section and renamed it to 'scp' to reflect the content

Misspelling corrected: authorized_keys, not auhorized_key
2015-07-31 16:44:53 +03:00
Parker Moore
611489aae1 Update history to reflect merge of #3838
[ci skip]
2015-07-28 11:29:42 -07:00
Parker Moore
14e6809bcd Merge pull request #3838 from gynter/issue-3836
Merge pull request 3838
2015-07-28 11:29:01 -07:00
Stephen Crosby
7c4f319442 #3870 trigger hooks by owner symbol 2015-07-27 16:23:07 -07:00
Jordon Bedwell
3e29aaf785 Update history.markdown to reflect the commit 3ab386f1b0 2015-07-24 23:46:17 -05:00
Jordon Bedwell
3ab386f1b0 Update to JRuby 9K
Even though JRuby 9K on Travis still apparently points to pre1 we are updating so that when it finally points to stable release we can get those builds, once jruby-head diverges enough again we will re-add it to the list and start testing the next build and move JRuby 9K.  Remember though, JRuby support is still experimental.
2015-07-24 23:43:55 -05:00
Max White
8c485155ce Added documentation for new Static Publisher tool 2015-07-24 23:38:36 +01:00
Parker Moore
fe36329004 Update history to reflect merge of #3858
[ci skip]
2015-07-19 20:26:11 -07:00
Parker Moore
0eee6990d1 Merge pull request #3858 from AJ-Acevedo/shebang
Merge pull request 3858
2015-07-19 20:25:42 -07:00
AJ Acevedo
b0fa2462a6 Updated the scripts shebang for portability
- Updated all of the sh and bash shebangs for consistency and portability.
- set -e to the test script for portability
Resolves #3857
2015-07-18 22:23:56 -04:00
Jordon Bedwell
5af105ca71 Try to organize dependencies into dev and test groups. 2015-07-16 16:31:30 -05:00
Jordon Bedwell
56622c7ab6 Update history.markdown to reflect the merger of #3853. 2015-07-16 14:16:47 -05:00
Jordon Bedwell
e164c2194d Merge pull request #3853 from jekyll/update-kramdown
Update Kramdown.
2015-07-16 14:15:52 -05:00
Jordon Bedwell
910cab5f84 Update history.markdown to reflect the merger of #3845. 2015-07-16 08:39:57 -05:00
Jordon Bedwell
48d6eea9b2 Merge pull request #3845 from fw42/fix_binread
Fix reading of binary metadata file
2015-07-16 08:38:57 -05:00
Jordon Bedwell
dba6df907f Update Kramdown. 2015-07-16 08:36:44 -05:00
Florian Weingarten
8bdfdae0ab Fix reading of binary metadata file 2015-07-09 13:40:36 -04:00
Jordon Bedwell
90514b3536 Allow jRuby head to fail. 2015-07-06 17:52:50 -05:00
Parker Moore
eeb6ef46f1 Update history to reflect merge of #3837
[ci skip]
2015-07-06 12:01:25 -07:00
Parker Moore
32c3089ea9 Merge pull request #3837 from jensechu/master
Merge pull request 3837
2015-07-06 12:00:37 -07:00
Günter Kits
b9f8fc1715 Fixes #3836. Fix site template header menu iteration variables 2015-07-06 21:02:56 +03:00
Jensen Kuras
f4bbbd6952 Fixed an unclear code comment 2015-07-06 10:43:28 -07:00
Jordon Bedwell
5bf5c36ce0 Close #3833 by removing execute bit. 2015-07-04 04:59:06 -05:00
Jordon Bedwell
feb84043dd Update history.markdown to reflect the merger of #3823. 2015-07-01 12:07:04 -05:00
Jordon Bedwell
3a49770ce2 Merge pull request #3823 from 18F/adapt-static-file
Adapt StaticFile for collections, config defaults
2015-07-01 12:06:08 -05:00
Lukas
6d196275fc Add build options (fixes #3744) 2015-06-30 20:53:31 +02:00
Mike Bland
250b6ebb7e Adapt StaticFile for collections, config defaults
This enables files such as images and PDFs to show up in the same relative
output directory as other HTML and Markdown documents in the same collection.

It also enables static files to be hidden using defaults from _config.yml in
the same way that other documents in the same collection and directories may
be hidden using `published: false`.
2015-06-29 19:58:27 -04:00
Parker Moore
8c9e9497a2 Release 💎 3.0.0.pre.beta8 2015-06-29 14:33:38 -07:00
chrisfinazzo
5db3b5d709 Use square brackets instead 2015-06-25 17:30:50 -04:00
chrisfinazzo
4dd66e9448 Add missing flag to disable the watcher 2015-06-25 09:54:42 -04:00
Jordon Bedwell
0125af80a3 Update history.markdown to reflect the merger of #3818. 2015-06-24 20:47:05 -05:00
Jordon Bedwell
2eae07b7d9 Merge pull request #3818 from mgiuffrida/patch-2
Update windows.md with Ruby version info
2015-06-24 20:46:12 -05:00
Michael Giuffrida
197dd184f9 Update windows.md with Ruby version info
Jekyll dependency hitimes does not support Ruby 2.2 on Windows yet
2015-06-24 13:02:02 -07:00
Parker Moore
68c3988861 Update history to reflect merge of #3811
[ci skip]
2015-06-23 15:36:51 -07:00
Parker Moore
fcb882e791 Merge pull request #3811 from fw42/bubble_up_liquid_exceptions
Merge pull request 3811
2015-06-23 15:36:13 -07:00
Florian Weingarten
3c656ae2ed Remove unnecessary 'ensure' in LiquidRenderer 2015-06-23 21:27:24 +00:00
Parker Moore
5647b91689 Release 💎 3.0.0.pre.beta7 2015-06-18 20:52:40 -07:00
Parker Moore
8cecdde288 Release 💎 3.0.0.pre.beta6 2015-06-18 20:52:15 -07:00
chrisfinazzo
a14f08b2bf Clarify CoffeeScript requirement 2015-06-18 17:55:57 -04:00
Parker Moore
4b2b5ea8b1 Update history to reflect merge of #3795
[ci skip]
2015-06-17 10:50:12 -07:00
Parker Moore
d09c4cdf79 Merge pull request #3795 from jekyll/update-dependencies
Merge pull request 3795
2015-06-17 10:37:33 -07:00
Jordon Bedwell
9c4bf19c71 Update dependencies. 2015-06-17 10:31:44 -05:00
Parker Moore
c6ee8a150a Update history to reflect merge of #3762
[ci skip]
2015-06-16 10:22:18 -07:00
Parker Moore
8b44a7bb42 Merge pull request #3762 from fw42/liquid_profiler
Merge pull request 3762
2015-06-16 10:21:33 -07:00
Parker Moore
407fc82b2d Update history to reflect merge of #3779
[ci skip]
2015-06-10 14:14:00 -07:00
Parker Moore
b6e15977de Merge pull request #3779 from jekyll/move-highlight-div-to-figure
Merge pull request 3779
2015-06-10 14:13:25 -07:00
Parker Moore
32cb87af90 remove circle.yml, because we have disabled CircleCI. 2015-06-10 13:59:36 -07:00
Jordon Bedwell
137efdc9f4 Fix: #3738; Move code wrapper from div to figure. 2015-06-10 15:20:44 -05:00
chrisfinazzo
872efb0bcc Add Python to requirements for Jekyll 2 2015-06-09 12:07:56 -04:00
Parker Moore
80f63949cd Update history to reflect merge of #3763
[ci skip]
2015-06-09 08:12:03 -07:00
Parker Moore
649399dcf8 Merge pull request #3763 from tasken/patch-1
Merge pull request 3763
2015-06-09 08:10:45 -07:00
Parker Moore
83a29e7f4e Merge pull request #3767 from cpicanco/patch-2
fixing typo on line 31
2015-06-08 09:30:32 -07:00
Rafael Picanço
e84a7aadee fixing typo on line 31
- front matter
2015-06-08 13:24:53 -03:00
Florian Weingarten
7bc9e1aae6 Add byte counter 2015-06-07 16:49:22 +00:00
Florian Weingarten
1e9163fdf4 Liquid profiler 2015-06-07 16:38:05 +00:00
Jordon Bedwell
6dbb5ac80c Update history.markdown to reflect the merger of #3732. 2015-06-06 06:31:26 -05:00
Jordon Bedwell
e9215ec047 Merge pull request #3732 from jekyll/fix-frontmatter-defaults
Fix it so that 'blog.html' matches 'blog.html'
2015-06-06 06:30:43 -05:00
Jordon Bedwell
d2fdac12c2 Update history.markdown to reflect the merger of #3760 2015-06-06 06:20:53 -05:00
Jordon Bedwell
c421a4148a Merge pull request #3760 from cpicanco/patch-1
Fix typo on line 19 of pagination.md
2015-06-06 06:20:04 -05:00
tasken
f00e217448 fix for pagination in a directory different that / 2015-06-06 03:20:56 -03:00
Parker Moore
a134e05fda Release 💎 3.0.0.pre.beta6 2015-06-04 16:57:13 -07:00
Rafael Picanço
37f373fd38 fixing typo on line 19
- `pagination_path` to `paginate_path`
2015-06-04 17:37:24 -03:00
Parker Moore
2c0a535801 Update history to reflect merge of #3750
[ci skip]
2015-06-01 15:02:30 -07:00
Parker Moore
2567c885b0 Merge pull request #3750 from mnuessler/plugins
Merge pull request 3750
2015-06-01 15:01:54 -07:00
Alfred Xing
bc806fd2a7 Update history to reflect merge of #3717 [ci skip] 2015-05-31 11:11:21 -07:00
Alfred Xing
bba7870f8b Merge pull request #3717 from alfredxing/regenerator-handle-deleted-files
Merge pull request 3717
2015-05-31 11:10:42 -07:00
Matthias Nuessler
bbd32980a1 Add asciinema liquid tag plugin 2015-05-31 14:45:49 +02:00
Matt Rogers
fb716d6b83 Update history to reflect merge of #3728 [ci skip] 2015-05-28 17:59:31 -05:00
Matt Rogers
6f2e3b8238 Merge pull request #3728 from jordanthornquest/new-website-once-again 2015-05-28 17:59:23 -05:00
Matt Rogers
174d2f98ed Update history to reflect merge of #3745 [ci skip] 2015-05-28 17:46:18 -05:00
Matt Rogers
0435871785 Merge pull request #3745 from C4K3/update_welcome_post 2015-05-28 17:46:11 -05:00
Jordan Thornquest
f04c9bb469 Moved blog with an article about Jekyll to a new location and updated the resources page to reflect the change. 2015-05-28 15:24:55 -06:00
Seb
e68d18c3cc Update link in welcome post to talk.jekyllrb.com
Previously the link pointed to the jekyll-help repository on github
which no longer accepts issues.
2015-05-28 21:19:24 +02:00
Parker Moore
c1d44fc83f Update history to reflect merge of #3743
[ci skip]
2015-05-28 09:14:06 -07:00
Parker Moore
60bdc7119a Remove Ozon from jekyllrb.com list of sites for learning
Reverts #3712.
2015-05-28 09:13:34 -07:00
Parker Moore
33fcb0a263 Merge pull request #3743 from mxstbr/master
Merge pull request 3743
2015-05-28 09:13:29 -07:00
Max
f6bc58dd30 Docs now reflect correct redcarpet version 2015-05-28 16:56:57 +02:00
Ben Balter
82bb18176f use jekyll-feed 2015-05-25 16:09:16 -04:00
Jordon Bedwell
581dee7ba9 Merge pull request #3731 from jekyll/fix-script-test-file
Fix script/test so that testing individual files works.
2015-05-25 02:20:32 -05:00
Jordon Bedwell
14ed5cc954 Fix it so that 'blog.html' matches 'blog.html' 2015-05-25 02:07:21 -05:00
Jordon Bedwell
981e32d462 Fix script/test so that testing invidual files works. 2015-05-25 02:05:39 -05:00
Alfred Xing
7a12f32078 Update history to reflect merge of #3713 [ci skip] 2015-05-19 22:54:47 -07:00
Alfred Xing
f6b34f74a9 Merge pull request #3713 from fw42/fix_marshal_bugs
Merge pull request 3713
2015-05-19 22:53:04 -07:00
Alfred Xing
a2ee820609 Regenerator: handle deleted/renamed/moved dependencies
Should fix #3716
2015-05-19 22:47:58 -07:00
Florian Weingarten
87400f2155 regression test for corrupted marshal file 2015-05-19 20:00:50 +00:00
Florian Weingarten
376c87b62e Don't crash when reading/writing Marshal 2015-05-19 15:51:55 +00:00
Parker Moore
73db98c244 Release 💎 3.0.0.pre.beta5 2015-05-19 10:54:37 +07:00
Jordon Bedwell
d99f257665 Merge pull request #3712 from loctauxphilippe/patch-1
Added new website in sites made by jekyll
2015-05-18 13:54:55 -05:00
Philippe Loctaux
b75fb37b4e Added new website in sites made by jekyll 2015-05-18 20:47:38 +02:00
Jordon Bedwell
3151aacbad Update history.markdown to reflect the merger of #3706. 2015-05-18 09:18:17 -05:00
Jordon Bedwell
498ea4fd24 Merge pull request #3706 from fw42/marshal_metadata
Performance: Marshal metadata
2015-05-18 09:17:42 -05:00
Jordon Bedwell
f764ae6a76 Update history.markdown to reflect the merger of #3707. 2015-05-18 09:17:15 -05:00
Jordon Bedwell
06777a51c8 Merge pull request #3707 from fw42/sort_files_only_once
Performance: Sort files only once
2015-05-18 09:16:39 -05:00
Florian Weingarten
3474481043 Marshal metadata 2015-05-18 14:02:43 +00:00
Florian Weingarten
5928618de1 Performance: Sort files only once 2015-05-18 13:56:56 +00:00
Jordon Bedwell
87829b3da1 Update history.markdown to reflect the merger of #3694. 2015-05-18 06:47:39 -05:00
Jordon Bedwell
c61a5adb05 Merge pull request #3694 from erlend-sh/patch-1
Added talk.jekyllrb.com to "Have questions?"
2015-05-18 06:46:47 -05:00
Jordon Bedwell
d063e6abe7 Update history.markdown to reflect merger of #3704. 2015-05-18 06:44:52 -05:00
Jordon Bedwell
8bb7861162 Merge pull request #3704 from jekyll/add-doctor-helper-for-osx-fsnotify-bug
Fix #3653: Add a doctor helper to test pwd's.
2015-05-18 06:43:08 -05:00
Jordon Bedwell
ae11cae659 Fix #3653: Add a doctor helper to test pwd's. 2015-05-17 02:46:40 -05:00
Jordon Bedwell
e4e14e8860 Update history.markdown to reflect the merger of #3658 2015-05-15 18:47:19 -05:00
Jordon Bedwell
35a7d94202 Merge pull request #3698 from erlend-sh/patch-2
Omit jekyll/jekyll-help from list of resources.
2015-05-15 18:45:55 -05:00
Jordon Bedwell
ee666e319b [ci skip] Update history.markdown to reflect merging of JRuby support. 2015-05-15 07:28:32 -05:00
Jordon Bedwell
0f447751be Merge branch 'add-support-for-jruby' 2015-05-15 07:23:13 -05:00
Jordon Bedwell
f054bae503 Add support for JRuby, it was easier than assumed. 2015-05-15 07:10:22 -05:00
Erlend Sogge Heggen
4a0a3dbf39 Omit jekyll/jekyll-help from list of resources. 2015-05-12 14:29:26 +02:00
Erlend Sogge Heggen
8a289793bb Jekyll Talk instead of plain URL + "official" 2015-05-12 14:24:40 +02:00
Parker Moore
60a811d405 Update history to reflect merge of #3696
[ci skip]
2015-05-11 19:26:25 -07:00
Parker Moore
b90f6f77e8 Merge pull request #3696 from fw42/cleaner_optimizations
Merge pull request 3696
2015-05-11 19:25:05 -07:00
Florian Weingarten
15c4d9bee2 Jekyll::Cleaner#existing_files: Call keep_file_regex and keep_dirs only once, not per iteration 2015-05-11 22:01:10 +00:00
Erlend Sogge Heggen
b69eaa34dd Added talk.jekyllrb.com to "Have questions?" 2015-05-11 11:36:35 +02:00
Parker Moore
221c0b62b6 Release 💎 3.0.0.pre.beta4 2015-05-10 01:11:01 -07:00
Parker Moore
ba12d28fbe Release 💎 v3.0.0.pre.beta4 2015-05-10 01:10:57 -07:00
Parker Moore
f34a00490f Update history to reflect merge of #3553
[ci skip]
2015-05-09 23:59:21 -07:00
Parker Moore
ce9fcfaebb Merge pull request #3553 from stevecrozz/jekyll-hooks
Merge pull request 3553
2015-05-09 23:58:46 -07:00
Parker Moore
e68609c849 Update history to reflect merge of #3693
[ci skip]
2015-05-09 21:34:58 -07:00
Parker Moore
5acac3561a Merge pull request #3693 from fw42/cache_document_to_liquid
Merge pull request 3693
2015-05-09 21:34:37 -07:00
Parker Moore
2b9ce826d6 Update history to reflect merge of #3692
[ci skip]
2015-05-09 21:34:20 -07:00
Parker Moore
9c5c9d826a Merge pull request #3692 from fw42/rubyprof
Merge pull request 3692
2015-05-09 21:33:38 -07:00
Florian Weingarten
56c38f87b2 Add script/rubyprof to generate cachegrind callgraphs 2015-05-10 04:18:04 +00:00
Florian Weingarten
f99abc5314 Cache Document#to_liquid 2015-05-10 03:51:50 +00:00
Parker Moore
015e9570cd Update history to reflect merge of #3691
[ci skip]
2015-05-09 11:00:34 -07:00
Parker Moore
3b48dd2652 Merge pull request #3691 from dimitri-koenig/master
Merge pull request 3691
2015-05-09 11:00:08 -07:00
Dimitri König
46895b46a6 Added remote_file_content tag plugin 2015-05-09 17:14:20 +02:00
Jordon Bedwell
cd912b5233 Revert using JRuby in an active matrix. 2015-05-09 02:54:52 -05:00
Jordon Bedwell
b1e984128e See if Travis still supports JRuby 2.1 and 2.0. 2015-05-09 01:36:55 -05:00
Jordon Bedwell
c19ad411a4 Start testing with JRuby too.
However, because JRuby stable does not support 2.0/21 mode on Travis (reliably as far as I'm aware) we only test on JRuby-head right now because we have dropped support for any EOL Ruby and master contains some code that might or might not fail out on 1.9.
2015-05-07 18:22:29 -05:00
Parker Moore
a1d78cdea6 Release 💎 3.0.0.pre.beta3 2015-05-06 23:19:27 -07:00
Parker Moore
4b038259c7 Release 💎 v3.0.0.pre.beta3 2015-05-06 23:19:23 -07:00
Stephen Crosby
79a178f7f1 move document.post_render hook to after render call 2015-05-03 13:53:28 -07:00
Stephen Crosby
736e6a78f1 address code review feedback from #3553
- change site:reset to site:after_reset
- raise an exception when registering uncallable hook
- set default hook priority at the public API level
2015-05-02 15:56:19 -07:00
Stephen Crosby
245d9677d7 Refine hook implementation
- hooks are registered to symbol owners rather than classes directly
- during registration, add the ability to specify owner as an array to
  register the same hook to multiple owners
- add optional priority during registration as a symbol (:low, :normal,
  :high)
- implement hooks for collections as they are in octopress-hooks, aside
  from post_init
2015-05-01 19:00:37 -07:00
Stephen Crosby
6ca9633354 prototype of jekyll hooks, encapsulated 2015-05-01 14:35:15 -07:00
Alfred Xing
ae584e43ed Update history to reflect merge of #3683 [ci skip] 2015-05-01 09:31:14 -07:00
Alfred Xing
51adebd0db Merge pull request #3683 from chrisfinazzo/troubleshooting-docs
Merge pull request 3683
2015-05-01 09:30:24 -07:00
chrisfinazzo
95a30fa51d Update instructions for Ruby 2.0.0 2015-05-01 11:06:49 -04:00
chrisfinazzo
f5351f7268 Use the proper names 2015-05-01 10:34:09 -04:00
Parker Moore
bd25c62f55 Merge pull request #3681 from nightsense/master
Fixes typo on doc page "Directory structure".
2015-04-29 17:34:25 -07:00
nightsense
cf778e2be6 Fixes typo on doc page "Directory structure". 2015-04-29 19:55:47 -04:00
Parker Moore
bda515bfc7 Update history to reflect merge of #3670 [ci skip] 2015-04-29 13:48:04 -07:00
Parker Moore
e5bbdb1c83 Merge pull request #3670 from jekyll/bernardodiasc-collections
Merge pull request 3670
2015-04-29 13:47:35 -07:00
Parker Moore
6a26907495 features: update collections features to match new iteration method 2015-04-29 10:49:06 -07:00
Bernardo Dias
8546298047 fix collections output, see #2346 2015-04-29 10:49:06 -07:00
Parker Moore
eab92d3b96 Update history to reflect merge of #3678 [ci skip] 2015-04-29 10:36:06 -07:00
Parker Moore
d3e867d4a0 Merge pull request #3678 from jekyll/minitest-5-6
Merge pull request 3678
2015-04-29 10:35:40 -07:00
Parker Moore
ee7f7baef2 Update history to reflect merge of #3679 [ci skip] 2015-04-29 10:35:23 -07:00
Parker Moore
4e34d2627b Merge pull request #3679 from alfredxing/remove-relative-permalinks
Merge pull request 3679
2015-04-29 10:34:57 -07:00
Alfred Xing
9ab3c201c8 Remove relative permalinks 2015-04-28 14:03:20 -07:00
Matt Sheehan
786f6e1985 Add "Typescript Generator by Matt Sheehan" to the list of third-party plugins. 2015-04-28 12:53:17 -07:00
Parker Moore
6597bacee8 features: Update the way we access Minitest assertions
Per https://github.com/cucumber/cucumber/wiki/Using-MiniTest.
2015-04-28 12:49:45 -07:00
Jordon Bedwell
e93e49c269 Update history.md to reflect the merger of #3671 2015-04-26 08:18:24 -05:00
Jordon Bedwell
166fdf35a3 Merge pull request #3671 from falkorichter/completeCiInstructions
Added a mention on the Gemfile to complete the instructions
2015-04-26 08:17:35 -05:00
Falko Richter
159dbd0170 feedback on jekyll#3671 2015-04-24 10:28:40 +02:00
Parker Moore
bac28fcfce Merge pull request #3672 from chrisfinazzo/remove-extra-space
Remove extra space
2015-04-21 15:12:00 -07:00
chrisfinazzo
987309917a Remove extra space 2015-04-21 17:32:49 -04:00
Falko Richter
76c1dcc791 added a mention on the Gemfile to complete the instructions
travis relies on a Gemfile tp be present.
2015-04-21 10:53:56 +02:00
Parker Moore
7be47c2c48 ci docs: Add note that the .travis.yml assumes bundle install.
Closes #3660
2015-04-20 10:23:04 -07:00
Parker Moore
c59d02d6c6 Update history to reflect merge of #3665 [ci skip] 2015-04-20 10:20:30 -07:00
Parker Moore
6ce345be59 Merge pull request #3665 from purp/master
Merge pull request 3665
2015-04-20 10:20:11 -07:00
Parker Moore
095736b5ef Update history to reflect merge of #3667 [ci skip] 2015-04-20 10:04:24 -07:00
I´m a robot
791b2eccf6 updated documentation on the excerpt_separator 2015-04-20 09:58:38 -07:00
Jim Meyer
4302604c89 remove non-essential with() statement 2015-04-18 23:36:12 -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
Parker Moore
f908051aa4 mime.types: remove extraneous hyphen before comment 2015-04-14 17:15:08 -07:00
Parker Moore
80a921ccfd Update history to reflect merge of #3649 [ci skip] 2015-04-14 17:13:03 -07:00
Parker Moore
ab83f0bf2e Merge pull request #3649 from schneems/schneems/utf8-myhomework
Merge pull request 3649
2015-04-14 16:51:21 -07:00
schneems
701617cb0e Fix header for RSS feeds with UTF8 characters.
```
$ curl http://localhost:4000/feed.xml -I
HTTP/1.1 200 OK
Etag: 64af8c-2356-552805aa
Content-Type: text/xml; charset=utf-8
Content-Length: 9046
Last-Modified: Fri, 10 Apr 2015 17:17:30 GMT
Server: WEBrick/1.3.1 (Ruby/2.2.1/2015-02-26)
Date: Fri, 10 Apr 2015 17:17:34 GMT
Connection: Keep-Alive
```

Originally contributed to https://github.com/fitztrev/jekyll-utf8/pull/3
2015-04-14 18:21:25 -04:00
Jordon Bedwell
e3ab992f75 Update history.md to reflect the merger of #3658. 2015-04-14 15:16:39 -05:00
Jordon Bedwell
a682ca1600 Merge pull request #3658 from jekyll/fix-jekyll-minitest-rspec-mocks
Create #mock_expects that goes directly to RSpec Mocks.
2015-04-14 15:15:02 -05:00
Parker Moore
fff7bb31f5 Update history to reflect merge of #3629 [ci skip] 2015-04-14 13:14:11 -07:00
Parker Moore
0072865512 Merge pull request #3629 from justinweiss/lsi_search_on_posts
Merge pull request 3629
2015-04-14 13:13:24 -07:00
Parker Moore
da80240fac Update history to reflect merge of #3596 [ci skip] 2015-04-14 13:01:03 -07:00
Parker Moore
3aaa889218 Merge pull request #3596 from jekyll/static-files-upgrade
Merge pull request 3596
2015-04-14 12:52:36 -07:00
Jordon Bedwell
f26cdd8da4 Create #mock_expects that goes directly to RSpec Mocks. 2015-04-14 14:20:55 -05:00
Parker Moore
00aa2955d8 generated site tests: put the static file mod time through a date filter 2015-04-14 11:52:26 -07:00
Parker Moore
dead70724e Fix expectation for StaticFile#to_liquid in tests. 2015-04-14 11:52:26 -07:00
Parker Moore
d15e4a9c8a Link things up to the new static files documentation. 2015-04-14 11:52:26 -07:00
Parker Moore
ff3edbc16b static files mtime liquid should return a Time obj 2015-04-14 11:52:25 -07:00
Parker Moore
68907ab833 Update history to reflect merge of #3655 [ci skip] 2015-04-14 11:51:40 -07:00
Parker Moore
7d3a5f82be Merge pull request #3655 from alfredxing/sunset-maruku
Merge pull request 3655
2015-04-14 11:51:25 -07:00
Alfred Xing
5a60adb6bd Maruku deprecation error message 2015-04-14 10:58:47 -07:00
Alfred Xing
4f06ba7884 Remove Maruku-specific tests 2015-04-14 10:58:47 -07:00
Alfred Xing
ae039663b9 Remove Maruku and references to it 2015-04-14 10:58:47 -07:00
Parker Moore
6dcdf06c8a Update history to reflect merge of #3657 [ci skip] 2015-04-14 10:15:20 -07:00
Parker Moore
e19d6c3f7e Merge pull request #3657 from arthurnn/minitest_v
Merge pull request 3657
2015-04-14 10:15:01 -07:00
Arthur Neves
62cfd45d79 Force minitest version
[related #3656]
2015-04-14 12:22:13 -04:00
Parker Moore
ab35d32feb Update history to reflect merge of #3467 [ci skip] 2015-04-13 12:17:32 -04:00
Parker Moore
d870dfedee Merge branch 'jaybe-jekyll-patch-1'
* jaybe-jekyll-patch-1:
  Reformat note in pagination docs to use proper HTML. Ref #3467
  Clarify pagination file index.html may reside in subdirectory
  Update pagination.md - Clarify only index.html
  Clarify pagination works from within HTML files
2015-04-13 12:16:47 -04:00
Parker Moore
c916f08aa3 Reformat note in pagination docs to use proper HTML. Ref #3467 2015-04-13 12:15:55 -04:00
Parker Moore
059c7c6adf Loosen redcarpet versioning dependency. Ref #3652 2015-04-13 12:09:43 -04:00
Parker Moore
7126792d85 Update history to reflect merge of #3652 [ci skip] 2015-04-13 12:06:58 -04:00
Parker Moore
f645cd3377 Merge pull request #3652 from christianv/security-fix-redcarpet
Merge pull request 3652
2015-04-13 12:05:51 -04:00
Parker Moore
b718d4ea46 Merge pull request #3650 from chrisfinazzo/collections-docs
Merge pull request 3650
2015-04-13 12:05:05 -04:00
Christian Vuerings
ec90210ed4 Security fix: OSVDB-120415 - Upgrade redcarpet to 3.2
*Note*: Please release a new gem version of jekyll after merging this.

More information at:
http://osvdb.org/show/osvdb/120415

`redcarpet Gem for Ruby contains a flaw that allows a cross-site scripting (XSS) attack. This flaw exists because the parse_inline() function in markdown.c does not validate input before returning it to users. This may allow a remote attacker to create a specially crafted request that would execute arbitrary script code in a user's browser session within the trust relationship between their browser and the server.`

9fc00d0814
8e707ebb94
http://social.schiessle.org/display/b38b1460c2b201329b1f4860008dbc6c
https://gemnasium.com/gems/redcarpet/versions/3.2.3

/cc @parkr @envygeeks
2015-04-13 08:01:16 -07:00
chrisfinazzo
9e86650df2 Remove extra word 2015-04-11 23:38:45 -04:00
chrisfinazzo
53ca3446eb Formatting 2015-04-11 18:53:19 -04:00
Parker Moore
c76c4e478b Convertible#read_yaml should return self.data.
Broken in 4b108df3ab.
2015-04-11 15:42:58 -04:00
chrisfinazzo
25af3e785f Cleanup extra space and formatting 2015-04-10 18:14:09 -04:00
Parker Moore
0374ad2668 Update history to reflect merge of #3468 [ci skip] 2015-04-10 17:29:39 -04:00
Parker Moore
66a9e6909b Merge branch 'davidsilvasmith-origin/patch-3'
* davidsilvasmith-origin/patch-3:
  docs: remove extraneous period from datafiles example.
  updated lsi docs
  changed the codefile name
  forgot a tick around a codefile name
  proofed changes
  removed personal link
  How to access a specific item in the data folder
2015-04-10 17:23:43 -04:00
Parker Moore
2f75ade1b7 docs: remove extraneous period from datafiles example. 2015-04-10 17:23:34 -04:00
Parker Moore
1b5977c018 Update history to reflect the fixing of #3643. 2015-04-10 17:08:53 -04:00
Parker Moore
4b108df3ab convertible: abort with an error if Page/Post#data isn't a hash.
when the default_proc was being assigned, it failed if it wasn't a Hash. We
expect data to be a Hash everywhere, so let's freak out if it isn't after
reading and applying the fallback.

Fixes #3643.
2015-04-10 17:07:14 -04:00
Parker Moore
279fb6af11 Update history to reflect merge of #3607 [ci skip] 2015-04-10 16:58:32 -04:00
Parker Moore
2c316188fe Merge branch 'chrisfinazzo-upgrading-docs'
* chrisfinazzo-upgrading-docs:
  Add further fixes to upgrade doc. #3607
  Use the new commands
  Fix a typo, wrap lines
  Remove reference to the watch command
  Start working on an upgrade guide for Jekyll 3
2015-04-10 16:57:00 -04:00
Parker Moore
20d48fcfe9 Add further fixes to upgrade doc. #3607 2015-04-10 16:56:55 -04:00
Parker Moore
70a3156385 Update history to reflect merge of #3608 [ci skip] 2015-04-10 16:52:50 -04:00
Parker Moore
bf98004843 Merge pull request #3608 from nickburlett/patch/incremental-build
Merge pull request 3608
2015-04-10 16:51:56 -04:00
Parker Moore
436c98ad9b Update history to reflect merge of #3623 [ci skip] 2015-04-10 16:33:03 -04:00
Parker Moore
12b16dde52 Merge pull request #3623 from chrisfinazzo/ci-docs
Merge pull request 3623
2015-04-10 16:32:28 -04:00
Parker Moore
9f55b1ff66 Update history to reflect merge of #3632 [ci skip] 2015-04-10 16:32:07 -04:00
Parker Moore
eeb13872e3 Merge branch 'delftswa2014-remove-unused-method'
* delftswa2014-remove-unused-method:
  static_file: extract extname in initializer and save as variable. #3632
  removed unused method StaticFile::extname
2015-04-10 16:31:26 -04:00
Parker Moore
f14af82da5 static_file: extract extname in initializer and save as variable. #3632 2015-04-10 16:31:19 -04:00
Parker Moore
b6ea045e1b Update history to reflect merge of #3647 [ci skip] 2015-04-10 16:28:28 -04:00
Parker Moore
6d6c15eba2 Merge pull request #3647 from nhoizey/patch-1
Merge pull request 3647
2015-04-10 16:28:03 -04:00
Parker Moore
a91775fcfe Update history to reflect merge of #3633 [ci skip] 2015-04-10 16:25:34 -04:00
Parker Moore
2c373e6fe9 Merge branch 'delftswa2014-static-file-test'
* delftswa2014-static-file-test:
  DRY up the StaticFile tests a bit. #3633.
  Added tests for Jekyll:StaticFile
2015-04-10 16:24:51 -04:00
Parker Moore
f86727c45a DRY up the StaticFile tests a bit. #3633. 2015-04-10 16:24:45 -04:00
Nicolas Hoizey
76416e50e8 Add WOFF2 font format 2015-04-10 00:13:02 +02:00
Parker Moore
90793b12e7 Update history to reflect merge of #3638 [ci skip] 2015-04-08 10:24:33 -07:00
Parker Moore
9c02353b3c Merge pull request #3638 from adunning/patch-1
Merge pull request 3638
2015-04-08 10:24:15 -07:00
Parker Moore
329ed07405 Merge pull request #3637 from Sourdoughh/patch-1
Removed inconsistency with period
2015-04-04 18:05:29 -07:00
Andrew Dunning
305a22a5bf Explain how to access collection variables.
This example also demonstrates the use of nested variables.
2015-04-04 18:40:03 -04:00
Jason Ly
a9dbb0de57 Removed inconsistency with period 2015-04-04 14:08:28 -07:00
Martijn den Hoedt
28a1d2445e Added tests for Jekyll:StaticFile 2015-04-01 17:15:44 +02:00
Martijn den Hoedt
f0cac685de removed unused method StaticFile::extname 2015-04-01 12:57:49 +02:00
Jordon Bedwell
0e52b83b6f Update history.md to reflect the merger of #3628. 2015-03-30 11:12:55 -05:00
Jordon Bedwell
1ac7f5cb15 Merge pull request #3628 from delftswa2014/profiling
Bring back minitest-profile
2015-03-30 11:11:59 -05:00
Martijn den Hoedt
397492fa38 added the --profile flag to make use of the minitest-profile tool 2015-03-30 17:53:40 +02:00
Justin Weiss
fa435fae94 Use Jekyll::Posts for both LSI indexing and lookup.
When looking for related posts, Jekyll was indexing `Jekyll::Post`
objects, but finding related posts based on `Jekyll::Post#content`. This
caused two problems:

1. Ruby 2.2 will warn on == if <=> throws an exception (and future Ruby
versions will surface that exception). Because `String`s can't be
compared with `Jekyll::Post`s, this warning was appearing all the time
while searching for related posts.

2. LSI won't return a post itself when searching for related posts. But
LSI could never tell that we were searching on a post, since Jekyll
passed post content, not a post object. With this fix, we can remove the
`- [post]` from `Jekyll::RelatedPosts#find_related`.

This is a more accurate fix for #3484.
2015-03-29 23:43:55 -07:00
Jordon Bedwell
b2aa8b6e68 Update history.md to reflect the merger of #3614. 2015-03-28 19:27:26 -05:00
Jordon Bedwell
f75346c799 Merge pull request #3614 from nickburlett/patch/incremental-build-dest-missing
Incremental build if destination file missing
2015-03-28 19:26:01 -05:00
chrisfinazzo
ec7474f55c Only use 3 sections 2015-03-27 16:50:28 -04:00
Parker Moore
799edabc3d Update history to reflect merge of #3622 [ci skip] 2015-03-27 10:15:35 -07:00
Parker Moore
6d3fc08a40 Merge pull request #3622 from fulldecent/patch-1
Merge pull request 3622
2015-03-27 10:10:12 -07:00
chrisfinazzo
e82cb3115d Line wrapping 2015-03-27 10:42:09 -04:00
chrisfinazzo
ebc6dff37e Don't repeat yourself 2015-03-27 10:31:40 -04:00
chrisfinazzo
017a26457c Add a warning label 2015-03-27 10:28:51 -04:00
William Entriken
18209ff78c Fixes #3480 Show how to install and use html-proofer without Gemfile 2015-03-27 09:09:06 -04:00
chrisfinazzo
d10c46d4fd Use the new commands 2015-03-26 17:52:35 -04:00
Parker Moore
391a672ac4 Update history to reflect merge of #3619 [ci skip] 2015-03-26 10:21:08 -07:00
Parker Moore
86211a020d Merge pull request #3619 from jekyll/no-args-exit-1
Merge pull request 3619
2015-03-26 10:20:45 -07:00
Parker Moore
c6dce1660b bin/jekyll: with no args, exit with exit code 1
fixes #3584
2015-03-25 19:03:14 -07:00
Nicholas Burlett
1f8157022a Clean up destination modified check
Clean up the destination modified check in `source_modified_or_dest_missing?` to be easier to read. Note that it can now return `nil` instead of `false` for an unmodified `source_path` and a `nil` `dest_path`, but in a discussion on 706007ead9 we decided that was okay.
2015-03-25 08:51:58 -07:00
Jordon Bedwell
d67ad64335 Update history.md to reflect the merger of #3617. 2015-03-25 07:57:20 -05:00
Jordon Bedwell
44b13f408e Merge pull request #3617 from delftswa2014/log-adapter
Removed the word 'Jekyll' a few times from the comments
2015-03-25 07:56:30 -05:00
Martijn den Hoedt
d98047ef74 Removed the word 'Jekyll' a few times from the comments 2015-03-25 08:49:05 +01:00
Nicholas Burlett
8f4194eea5 Clean up regeneration missing-destination checks
Use easier-to-follow checks for missing-destinations in the regenerator.
2015-03-24 21:21:37 -07:00
Parker Moore
a95b861d69 Update history to reflect merge of #3612 [ci skip] 2015-03-23 20:12:38 -07:00
Parker Moore
dc617767b3 Merge pull request #3612 from jekyll/remove-activesupport
Merge pull request 3612
2015-03-23 20:12:22 -07:00
Parker Moore
cc3ee868f4 Remove activesupport. 2015-03-23 20:03:21 -07:00
Parker Moore
407eda8e83 Update history to reflect merge of #3545 [ci skip] 2015-03-23 19:53:37 -07:00
Parker Moore
e7d0b6c5a5 Merge pull request #3545 from delftswa2014/site_extract_readers
Merge pull request 3545
2015-03-23 19:53:07 -07:00
Parker Moore
1503ccce7d Update history to reflect merge of #3586 [ci skip] 2015-03-23 19:37:45 -07:00
Parker Moore
5a702bfe13 Merge pull request #3586 from x43x61x69/patch-1
Merge pull request 3586
2015-03-23 19:37:11 -07:00
Parker Moore
5960069cd0 Update history to reflect merge of #3581 [ci skip] 2015-03-23 19:35:32 -07:00
Parker Moore
3a85aa0dac Merge pull request #3581 from daviewales/patch-1
Merge pull request 3581
2015-03-23 19:35:15 -07:00
Jordon Bedwell
dfb5a2f2fc Update history.markdown to reflect the merger of #3609 2015-03-23 01:05:03 -05:00
Jordon Bedwell
55c890f73a Merge pull request #3609 from nickburlett/patch/issue-3588-squashed
Create 'tmp' dir for test_tags if it doesn't exist
2015-03-23 01:04:11 -05:00
Nicholas Burlett
d39d0cea19 Create 'tmp' dir for test_tags if it doesn't exist
Rather than use script/test to create the tmp directory, create it in a setup block for the appropriate context in the `TestTags` test.
2015-03-22 22:52:16 -07:00
Nicholas Burlett
d4b8f0d9dd Process metadata for all dependencies
When adding a dependency, also add the dependency to the metadata hash.

Addresses part 1 of #3591. Prior to this fix, the regnerator only paid attention the mtime of the first dependency it checked, so for posts/pages with N multiple dependencies (i.e., every layout file used to render them), it continues to regenerate the post/page approximately N times, at which point it's seen all of the dependencies.
2015-03-22 13:33:12 -07:00
chrisfinazzo
f635f3d34b Fix a typo, wrap lines 2015-03-22 15:22:27 -04:00
chrisfinazzo
db0e1a683c Remove reference to the watch command 2015-03-22 15:04:42 -04:00
chrisfinazzo
eea4a82dc6 Start working on an upgrade guide for Jekyll 3 2015-03-22 14:47:15 -04:00
Parker Moore
334cc5a6ea Update history to reflect merge of #3592 [ci skip] 2015-03-21 19:30:24 -07:00
Parker Moore
e91527058a Merge pull request #3592 from nickburlett/patch/incremental-build
Merge pull request 3592
2015-03-21 19:29:45 -07:00
Nicholas Burlett
706007ead9 Incrementally regenerate missing destination file
Addresses the third point of #3591, in which the incremental regenerator doesn't notice that destination files have gone missing.
2015-03-21 19:25:02 -07:00
Parker Moore
fa3a912e89 Update history to reflect merge of #3601 [ci skip] 2015-03-21 17:04:37 -07:00
Parker Moore
88d9cf4816 Merge pull request #3601 from chrisfinazzo/update-collections-docs
Merge pull request 3601
2015-03-21 17:03:47 -07:00
Parker Moore
27d3efecc1 Update history to reflect merge of #3603 [ci skip] 2015-03-21 17:03:51 -07:00
Parker Moore
ed3fe2e2b4 Merge pull request #3603 from chrisfinazzo/remove-spaces
Merge pull request 3603
2015-03-21 17:03:06 -07:00
chrisfinazzo
75afac9bc0 Remove extra spaces, make the last sentence less awkward 2015-03-20 21:02:52 -04:00
Alfred Xing
7edde72523 Update history to reflect merge of #3597 [ci skip] 2015-03-20 16:07:10 -07:00
Alfred Xing
a7dff06175 Merge pull request #3597 from pathawks/jekyll-metadata
Add information .jekyll-metadata
2015-03-20 16:06:23 -07:00
chrisfinazzo
a8b7a224c8 Add missing word, phrasing 2015-03-20 12:58:25 -04:00
chrisfinazzo
6e3bba154c Fix formatting 2015-03-20 11:25:09 -04:00
Jordon Bedwell
a5b9df7287 Point to the right path for the docs folder. 2015-03-20 10:14:59 -05:00
chrisfinazzo
4ef30b3a6f Fixed a typo 2015-03-20 11:14:54 -04:00
Jordon Bedwell
f30dba8883 Update history.markdown the reflect the merger of #3599 2015-03-20 10:14:24 -05:00
Jordon Bedwell
780755a8a5 Merge pull request #3599 from chrisfinazzo/update-site-subpath
Update the subpath
2015-03-20 10:12:49 -05:00
Jordon Bedwell
2bcfdb9662 Update main CONTRIBUTING.md to reflect the usage of RSpec-Mocks. 2015-03-20 10:11:17 -05:00
Jordon Bedwell
80bd6d311d Update history.markdown to reflect the merger of #3600. 2015-03-20 10:08:32 -05:00
Jordon Bedwell
99a9e0a74d Merge pull request #3600 from pathawks/rspec-docs
RR replaced with RSpec Mocks
2015-03-20 10:07:49 -05:00
Jordon Bedwell
8d54eb8f6b Update history.markdown to reflect the merger of #3598. 2015-03-20 10:07:09 -05:00
Jordon Bedwell
77a381c542 Merge pull request #3598 from pathawks/md5
Added "liquid-md5" plugin
2015-03-20 10:06:01 -05:00
chrisfinazzo
55392fd8d2 Add Info labels to sections 2015-03-20 11:05:58 -04:00
Pat Hawks
7630f5408c RR replaced with RSpec Mocks 2015-03-20 07:50:44 -07:00
Pat Hawks
b647037643 Added "liquid-md5" plugin 2015-03-20 07:40:53 -07:00
chrisfinazzo
8d1f8ee7a0 Update the subpath 2015-03-20 10:31:22 -04:00
Martin Jorn Rogalla
63a1ec8949 Made corrections as suggested by @mattr-.
- Corrected TomDoc, added variables and fixed typos.
 - deprecated_rel_permalink -> relative_permalinks_are_deprecated.
 - Grouped calls together in @reader.read.
 - Removed dynamic and static reader subdirectories.
 - Removed unnecessary move of limit_posts.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-20 12:41:19 +01:00
Pat Hawks
d9958de9d1 Add information re: .jekyll-metadata 2015-03-19 18:00:32 -07:00
sonnym
e82eaa4b0f Add documentation for collection static files
Any file without valid front matter in a collection is available via
`collection.files`.

Inspired by #3583.
2015-03-19 17:17:16 -07:00
Nicholas Burlett
e770a080a7 Regenerator cache clearing tests
Two tests for the regenerator cache clearing changes:

1. Intrusively test that the regnerator.clear_cache actually clears the cache ( in test/test_regenerator.rb )
2. Test that incremental building regenerates files that have changed that previously were unchanged ( in test/test_site.rb )
2015-03-19 09:41:05 -07:00
Martin Rogalla
324748a5a6 Added corrections as suggested by @parkr.
- Replaced occurrences of #array += with concat
   operations.(performance)
 - Corrected alignment.
 - Removed rebase artifact.

Signed-off-by: Martin Rogalla <martin@martinrogalla.com>
2015-03-19 14:56:46 +01:00
Nicholas Burlett
15ebf929e1 Use the new clear_cache method
Instead of assigning `@cache = {}`, clear the cache using `clear_cache`
2015-03-18 22:30:31 -07:00
Parker Moore
c96062781d Release 💎 3.0.0.pre.beta2 2015-03-18 11:32:19 -07:00
Nicholas Burlett
adce349d7a Clear the regenerator cache every time we process
To address part of #3591, clear the regenerator's cache every time the
site is processed. This ensures that the regenerator doesn't incorrectly
believe a file hasn't changed based on stale information.
2015-03-18 10:27:40 -07:00
Jordon Bedwell
e268ee0f33 Whoops, forgot the pre in the beta tag. 2015-03-18 05:25:36 -05:00
David Wales
b02342312b Change phrase 'variable parameter' 2015-03-18 11:52:22 +11:00
Cai⚡️
06c4b42a5a Add new "Tag" - jekyll-files. 2015-03-18 08:35:40 +08:00
Parker Moore
6988eea9ce Update history to reflect merge of #3580 [ci skip] 2015-03-17 16:30:09 -07:00
Parker Moore
333b9f5f93 Merge pull request #3580 from jekyll/fix-3393
Merge pull request 3580
2015-03-17 16:28:04 -07:00
Parker Moore
6d20525dce Update history to reflect merge of #3585 [ci skip] 2015-03-17 16:27:10 -07:00
David Wales
16a2cfed49 Change format from all caps to strong. 2015-03-18 10:27:02 +11:00
Parker Moore
767c18e93b Merge pull request #3585 from gmile/patch-1
Merge pull request 3585
2015-03-17 16:26:04 -07:00
Eugene Pirogov
4835e9317a Fix accidental line break 2015-03-18 00:07:59 +02:00
David Wales
c83b016219 Document variable parameters for include.
The documentation has been updated to demonstrate variable parameters for an include.

    {% include footer.html param="value" variable-param=page.variable %}
2015-03-17 15:02:50 +11:00
David Wales
778429c6cc Document variable parameters for include.
The documentation has been updated to demonstrate variable parameters for an include.

    {% include footer.html param="value" variable-param=page.variable %}
2015-03-17 14:55:13 +11:00
Parker Moore
eb2fc89776 Correct the semantics of checking for jekyll-paginate 2015-03-16 15:48:50 -07:00
Parker Moore
fccc02be6f Don't be so verbose in script/test. /cc #3574 2015-03-16 14:55:50 -07:00
Parker Moore
506a1db116 Update history to reflect merge of #3574 [ci skip] 2015-03-16 14:55:34 -07:00
Parker Moore
6a387b45aa Merge pull request #3574 from jekyll/remove-legacy-loader
Merge pull request 3574
2015-03-16 14:55:12 -07:00
Parker Moore
bb57c80478 Perform jekyll-paginate deprecation warning correctly.
Fixes #3393
2015-03-16 14:54:31 -07:00
Parker Moore
b6424c9197 Update history to reflect merge of #3550 [ci skip] 2015-03-16 14:46:57 -07:00
Parker Moore
6a66a3af5a Merge branch 'stkent-patch-1'
* stkent-patch-1:
  Restructure excerpt_separator documentation for clarity
2015-03-16 14:46:07 -07:00
Parker Moore
10967d8904 Update history to reflect merge of #3556 [ci skip] 2015-03-16 14:26:28 -07:00
Parker Moore
3c9e43eb36 Merge pull request #3556 from willnorris/permalinks
Merge pull request 3556
2015-03-16 14:26:02 -07:00
Will Norris
0ca5bd3224 update permalinks docs
This adds docs for two new permalink features coming in Jekyll 3:
 - improved default permalinks for pages and collections (#3538)
 - support for extensionless URLs (#3490)
2015-03-16 13:47:53 -07:00
Parker Moore
0d288c54da Merge pull request #3576 from jekyll/fix-proofer
script/proof: ignore eduardoboucas.com
2015-03-15 18:05:29 -07:00
Parker Moore
41fb36a36f script/proof: ignore eduardoboucas.com 2015-03-15 18:05:13 -07:00
Jordon Bedwell
c6d62828ba Remove loader.rb and utilize "modernize" script/test. Fixes: #3573 2015-03-15 10:08:27 -05:00
Parker Moore
29853ab46d Merge pull request #3567 from chrisfinazzo/grammar
Wrap lines
2015-03-14 18:43:24 -07:00
Jordon Bedwell
f4a14b60ba Reflect the merge of #3572 in History.md 2015-03-14 19:23:18 -05:00
Jordon Bedwell
045f38d467 Merge pull request #3572 from pathawks/jekyll-smartify
Add Jekyll-Smartify plugin
2015-03-14 19:22:17 -05:00
Pat Hawks
00093b91fa Add Jekyll-Smartify plugin 2015-03-14 17:11:29 -07:00
chrisfinazzo
2d0d27da73 Merge 2015-03-13 12:11:49 -04:00
chrisfinazzo
7d93e3fdcd Add the link back in 2015-03-13 11:53:41 -04:00
chrisfinazzo
d3bd81361c Remove link to Eduardo's site 2015-03-13 11:52:37 -04:00
Parker Moore
06785f2bfd Update history to reflect merge of #3570 [ci skip] 2015-03-12 16:17:45 -07:00
Jordon Bedwell
d36c3b0073 Merge pull request #3570 from eduardoboucas/master
Change Ajax pagination resource link to use HTTPS
2015-03-12 17:19:54 -05:00
Eduardo Bouças
eb064b6684 Change Ajax pagination resource link to use HTTPS 2015-03-12 22:04:17 +00:00
Eduardo Bouças
d3e23c2fae Merge pull request #2 from jekyll/master
Get latest master
2015-03-12 21:58:39 +00:00
chrisfinazzo
59add4737b Use the correct URL 2015-03-12 11:49:19 -04:00
chrisfinazzo
b5a73373ff Wrap lines 2015-03-11 20:17:23 -04:00
Parker Moore
dac2b17123 Fix link to @recurser's jekyll plugins. [ci skip] 2015-03-09 14:15:30 -07:00
Parker Moore
007c059315 Update history to reflect merge of #3560 [ci skip] 2015-03-09 11:38:56 -07:00
Parker Moore
7a7ecbadea Merge pull request #3560 from maxbeizer/maxbeizer/fix-collections-docs-grammar
Fix grammar on collections docs warning
2015-03-09 11:38:21 -07:00
Max Beizer
0d96ad21d2 Fix grammar on collections docs warning 2015-03-09 13:13:21 -05:00
Parker Moore
3a3b528014 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Update history to reflect merge of #3552 [ci skip]
  Use rspec-mock instead of rr
2015-03-07 18:11:40 -08:00
Parker Moore
1100ca0782 Update link to sublime text plugin. 2015-03-07 17:27:17 -08:00
Parker Moore
0e10503259 Update history to reflect merge of #3552 [ci skip] 2015-03-06 18:29:10 -08:00
Parker Moore
9021e98721 Merge pull request #3552 from arthurnn/rm_rr
Use rspec-mock instead of rr
2015-03-06 18:28:47 -08:00
Arthur Neves
67ba8ad0cb Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
Parker Moore
269bcbb7a8 Update history to reflect merge of #3551 [ci skip] 2015-03-06 16:23:36 -08:00
Parker Moore
50a41100e7 Merge pull request #3551 from corysimmons/cs/add-pagination-warning
Add permalink warning to pagination docs
2015-03-06 16:23:06 -08:00
Martin Jorn Rogalla
b178358cf9 Merge branch 'master' into site_extract_readers
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-06 17:28:45 +01:00
Martin Jorn Rogalla
00cdcbc184 Separated some more readers from the main reader.rb file.
- Draft Reader
 - Collection Reader
 - Page Reader
 - Post Reader
 - Static File Reader

Fixed references and ran tests.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-06 17:20:25 +01:00
Martin Jorn Rogalla
bebd80342e Extracted draft, post reader into external classes.
Organized the draft, post and layout reader into the *readers* classes.
Fixed all references and ran tests.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-06 12:39:50 +01:00
Cory Simmons
013f7edc83 Add permalink warning to pagination docs
Fixes https://github.com/jekyll/jekyll-paginate/issues/25
2015-03-06 01:17:10 -05:00
Stuart Kent
c371926e09 Restructure excerpt_separator documentation for clarity 2015-03-05 23:56:25 -05:00
Parker Moore
66785b43ba Release 💎 3.0.0.beta2 2015-03-05 13:40:18 -08:00
Parker Moore
6d9258bcdc Release 💎 v3.0.0.beta2 2015-03-05 13:40:10 -08:00
Parker Moore
6b4219f0e2 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Update history to reflect merge of #3520 [ci skip]
  Corrected error message as suggested by @parkr.
  Improved clarity of sort nil input error message.
  Added test to check on nil input for sort filter.
  Sort will now raise error on nil object array input.
2015-03-05 13:14:29 -08:00
Parker Moore
bb4d47b905 Move History declaration for #3528 back up to HEAD. 2015-03-05 13:14:15 -08:00
Matt Rogers
b41ddbb8a9 Update history to reflect merge of #3520 [ci skip] 2015-03-05 14:35:42 -06:00
Matt Rogers
02e98f238e Merge pull request #3520 from delftswa2014/sort-null 2015-03-05 14:35:40 -06:00
Parker Moore
2185339ee0 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Replace `File.exists?` with `File.exist?`
  Remove duplicated range from regex
2015-03-05 11:20:55 -08:00
Parker Moore
3a4d826852 Update history to reflect merge of #3547 [ci skip] 2015-03-05 11:20:13 -08:00
Parker Moore
4a89db2102 Merge pull request #3547 from yous/resolve-warnings
Resolve warnings
2015-03-05 11:19:50 -08:00
Martin Jorn Rogalla
4b8e3cfdbd Moved the in_(source/dest)_dir back to site.rb.
After carefully looking at these two methods, as of right now they do not
belong in the reader, as they should also be used by the writer. Thus the
decision was made to move them back into the class containing the source
and dest fields, site.rb.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-05 13:34:46 +01: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
ChaYoung You
489da6784a Remove duplicated range from regex
`/\w/` is equivalent to `[a-zA-Z0-9_]`. See
http://ruby-doc.org/core-2.2.0/doc/regexp_rdoc.html#label-Character+Classes.
2015-03-05 18:19:32 +09:00
Parker Moore
117bd8a6f0 Update history to reflect merge of #3537 [ci skip] 2015-03-04 18:33:22 -08:00
Parker Moore
e229e3285f Merge pull request #3537 from kleinfreund/patch-2
Removing unused code from post layout
2015-03-04 18:32:57 -08:00
Will Norris
a608494e18 Update history to reflect merge of #3538 [ci skip] 2015-03-04 15:20:25 -08:00
Will Norris
f6f2626828 Merge pull request #3538 from willnorris/permalink
Improved permalinks for pages and collections
2015-03-04 15:18:43 -08:00
Parker Moore
252665ddc6 Update history to reflect merge of #3546 [ci skip] 2015-03-04 15:16:07 -08:00
Parker Moore
51dc0dfcf5 Merge pull request #3546 from capnfabs/patch-1
Improve consistency in site/_docs/plugins.md
2015-03-04 15:15:30 -08:00
Parker Moore
c8d23ffee2 Update history to reflect merge of #3544 [ci skip] 2015-03-04 15:14:18 -08:00
Parker Moore
ced9146c11 Merge pull request #3544 from delftswa2014/micro_refactor_url
Refactored url.rb to be compliant with Ruby Style Guide.
2015-03-04 15:13:35 -08:00
Martin Jorn Rogalla
ca7375a51b Corrected quote-usage. Replaced [-1].eql with end_with.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 22:31:19 +01:00
Martin Jorn Rogalla
9e1cb96a7e Added site reference for encoding configuration.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 22:23:47 +01:00
Fabian Tamp
c1562c8997 Improve consistency in site/_docs/plugins.md
Three plugin strategies are listed, but then only two were referenced in the following note. I've updated this doc so that all three are referenced.
2015-03-04 21:20:08 +00:00
Martin Jorn Rogalla
7114380da7 Added and improved documentation, fixed long method name.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 21:37:25 +01:00
Martin Jorn Rogalla
1b796354fb Added documentation, made method private and fixed quotes.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 21:10:26 +01:00
Martin Jorn Rogalla
f252a82afc Made the Reader responsible for the actual Reading.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 21:00:45 +01:00
Martin Jorn Rogalla
2f88a0c0a1 Extracted read_collections from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:55:53 +01:00
Martin Jorn Rogalla
2857350df1 Extracted read_directories from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com
2015-03-04 20:51:26 +01:00
Martin Jorn Rogalla
9bcad08e3a Extracted limit_posts from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com
2015-03-04 20:35:02 +01:00
Martin Jorn Rogalla
a4adeb446b Extracted read_posts from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:22:37 +01:00
Martin Jorn Rogalla
504c9a34ad Extracted read_drafts from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:19:39 +01:00
Martin Jorn Rogalla
29169aa858 Extracted aggregate_post_info from site.rb into reader.rb
- Extracted
  - Updated References
  - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:16:31 +01:00
Martin Jorn Rogalla
67a2369854 Extracted read_content from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:11:27 +01:00
Martin Jorn Rogalla
537235c38b Extracted read_data from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:07:53 +01:00
Martin Jorn Rogalla
5b0e2a294d Extracted read_data_to from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:05:10 +01:00
Martin Jorn Rogalla
e586105b46 Extracted sanitize_filename from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 20:01:27 +01:00
Martin Jorn Rogalla
ddfecb0f53 Extracted read_data_file from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 19:55:54 +01:00
Martin Jorn Rogalla
6e06fd8734 Extracted get_entries from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 19:51:44 +01:00
Martin Jorn Rogalla
05bbcddb29 Extracted filter_entries from site.rb into reader.rb
- Extracted
 - Updated References
 - Ran Tests

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 19:46:10 +01:00
Martin Jorn Rogalla
c836ec613d Extracted in_dest_dir from site.rb into reader.rb
- Extracted in_dest_dir from site.rb.
 - Updated References.
 - Ran Tests.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 19:21:24 +01:00
Martin Jorn Rogalla
bb9d43dff5 Extracted in_source_dir from site.rb and into reader.rb.
Extracted `in_source_dir` from site.rb into reader.rb.
Updated all the references and tests.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 19:16:03 +01:00
Will Norris
0d1586a5c4 Improved permalinks for pages and collections
This updates the default permalink style for pages and collections to
match the site-wide 'permalink' setting.  If the permalink setting
contains a trailing slash, either explicitly or by being set to
':pretty', then pages and collections permalinks will contain trailing
slashes by default as well.  Similarly, if the permalink setting
contains a trailing ':output_ext', so will pages and collections.  If
the permalink setting contains neither a trailing slash or extension,
neither will pages or collections.

This impacts only the default permalink structure for pages and
collections.  Permalinks set in the frontmatter of an individual page
take precedence, as does the permalink setting for a specific
collection.

Fixes #2691
2015-03-04 09:38:23 -08:00
Martin Jorn Rogalla
2ef9bae75a Refactored url.rb to compliant with Ruby Style Guide.
- Single Quotes
 - Fixed Typo's in variable names.
 - Removed Redundant Escaping in Regular Expressions.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-04 14:16:55 +01:00
Jordon Bedwell
fa31fcb3bf Update history.md to reflect the merger of #3418 [ci skip] 2015-03-04 05:22:29 -06:00
Jordon Bedwell
d40b6d6ee0 Merge pull request #3418 from tarebyte/destination-and-source
Added build --destination and --source flags
2015-03-04 05:21:36 -06:00
Will Norris
5e9b7343bf Update history to reflect merge of #3490 [ci skip] 2015-03-03 10:54:13 -08:00
Will Norris
5d1a24e291 Merge pull request #3490 from willnorris/ext
always include file extension on destination files
2015-03-03 10:53:08 -08:00
Philipp Rudloff
d56df7592c Removing unused code from post layout
The post from the site template does not have `meta` in its front matter. 

Related to #3536.
2015-03-03 09:52:23 +01:00
Will Norris
669c803912 always include file extension on destination files
This ensures that destination files for HTML posts, pages and
collections always include the proper file extension (as defined by
output_ext) regardless of permalink structure.  This allows for URLs
that contain no extension or trailing slash to still result in proper
destination files with .html extensions.

Because this change relies so heavily on output_ext accurately
identifying the extension of the destination file, this change also
removes the feature test that tested support for permalinks with a .htm
extension.  In order to support alternate file extensions, a future
patch or plugin will need to modify the output_ext value, at which point
everything else should work as expected.
2015-03-02 21:20:54 -08:00
Alfred Xing
8917ef011c Update history to reflect merge of #3535 [ci skip] 2015-03-02 15:05:37 -08:00
Alfred Xing
27a02e163b Merge pull request #3535 from delftswa2014/deprecation-inconsistency
Removed deprecation inconsistency
2015-03-02 15:04:21 -08: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
48bf711ec7 Update history to reflect merge of #3531 [ci skip] 2015-03-02 09:40:05 -08:00
Parker Moore
b3371119fd Merge pull request #3531 from jekyll/liquid-c-upgrade
Upgrade liquid-c to 3.x
2015-03-02 09:39:32 -08:00
Will Norris
dae5d30096 Update history to reflect merge of #3532 [ci skip] 2015-03-01 18:18:17 -08:00
Will Norris
bc2b87ca92 Merge pull request #3532 from willnorris/ordinal_docs
document 'ordinal' built-in permalink style
2015-03-01 18:15:46 -08:00
Will Norris
f251848283 document 'ordinal' built-in permalink style
ordinal was actually added back in April 2013 in ea753130
2015-03-01 17:27:56 -08:00
Parker Moore
2b1b7b977b Upgrade liquid-c to 3.x 2015-03-01 16:07:33 -08:00
Parker Moore
c2b613d05e Update history to reflect merge of #3469 [ci skip] 2015-03-01 16:05:53 -08:00
Parker Moore
5ee4e6d9c9 Merge pull request #3469 from jedd-ahyoung/Frontmatter-date-documentation
docs: Add frontmatter date formatting information
2015-03-01 16:05:23 -08:00
Martin Jorn Rogalla
92a9582733 Corrected error message as suggested by @parkr.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 11:16:08 +01:00
Martin Jorn Rogalla
78af3c5018 Improved clarity of sort nil input error message.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 09:51:59 +01:00
Martin Jorn Rogalla
0565308ce6 Added test to check on nil input for sort filter.
- Added a test to check if the sort filter will raise the correct
   exception on given nil input.
 - Improved error message and used "nil" consistently.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 09:40:32 +01:00
Parker Moore
9437bd4669 Update history to reflect merge of #3529 [ci skip] 2015-03-01 00:37:44 -08:00
Parker Moore
9b962dc565 Merge branch 'fabianrbz-remove_adapters_deprecation_warning'
* fabianrbz-remove_adapters_deprecation_warning:
  Add minitest/profile to profile 10 slowest tests
  Move simplecov_custom_profile to test/ & gate with TRAVIS env
  Remove unused groups from simplecov's profile
  Removes the following deprecation warning: 'method adapters is deprecated. use profiles instead'
2015-03-01 00:36:48 -08:00
Parker Moore
f1edf9e692 Add minitest/profile to profile 10 slowest tests 2015-03-01 00:36:40 -08:00
Parker Moore
fbe52bca85 Move simplecov_custom_profile to test/ & gate with TRAVIS env 2015-03-01 00:36:20 -08:00
Matt Rogers
60f0977a50 Update history to reflect merge of #3528 [ci skip] 2015-02-28 21:44:31 -06:00
Matt Rogers
7d6d29b4ca Merge pull request #3528 from willnorris/textile 2015-02-28 21:44:29 -06:00
Parker Moore
6b09d1818d Update history to reflect merge of #3516 [ci skip] 2015-02-28 18:56:13 -08:00
Parker Moore
50a4b2824b Merge pull request #3516 from jekyll/end-with
Use String#end_with?("/") instead of regexp
2015-02-28 18:55:53 -08:00
Parker Moore
6c073ec476 Remove reference to jekyll-textile-converter. 2015-02-28 17:29:39 -08:00
Parker Moore
8e87e9ebec Update history to reflect merge of #3530 [ci skip] 2015-02-28 17:28:43 -08:00
Parker Moore
e777c9b213 Merge pull request #3530 from delftswa2014/picturetag-link-fix
Replaced link caught by htmlproofer.
2015-02-28 17:27:53 -08:00
Martin Jorn Rogalla
d79c0fc4dd Replaced a picture element link with @parkr's suggestion.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-28 15:10:05 +01:00
Will Norris
dae77e9a63 switch remaining textile test files to markdown
Textile support was removed from jekyll core in #3319, and most of the
tests switched to markdown at that time.  This changes the remaining
tests to use markdown as well.  The vast majority of the test cases were
testing things in the file name or front matter, so it doesn't really
matter what markup format they use.  The one test that was claiming to
test that textile was transformed had actually been moved to markdown as
well, just not renamed.

Fixes #3507
2015-02-27 18:29:52 -08:00
Fabian Rodriguez
e4b1382bfd Remove unused groups from simplecov's profile 2015-02-27 23:09:33 -02:00
Fabian Rodriguez
cd7b3f54f1 Removes the following deprecation warning:
'method adapters is deprecated. use profiles instead'

This warning was showing up because the project was using
the gem 'simplecov-gem-adapter' which uses the old syntax.

* Remove the gem dependency
* Add a profile with the same setup that the gem has
2015-02-27 23:01:48 -02:00
Jordon Bedwell
a25f2d7dd6 Ask people to use talk.jekyllrb.com for non bugs. 2015-02-27 15:33:08 -06:00
Parker Moore
ed953e6e1f Update history to reflect merge of #3523 [ci skip] 2015-02-27 13:07:12 -08:00
Parker Moore
5a84d1960e Merge pull request #3523 from alfredxing/introducing-jekyll-talk
Add blog post introducing Jekyll Talk
2015-02-27 13:05:54 -08:00
Alfred Xing
e56f2414ae Add blog post introducing Jekyll Talk 2015-02-26 21:23:21 -08:00
Martin Jorn Rogalla
531d0fb261 Sort will now raise error on nil object array input.
Sort will now throw an error when a nil object array is given as input.
See issue #3491 for more information.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-26 22:12:06 +01:00
Parker Moore
14fa3287b7 Update history to reflect merge of #3518 [ci skip] 2015-02-25 16:16:16 -08:00
Parker Moore
8997212222 Merge branch 'alfredxing-add-talk-to-help'
* alfredxing-add-talk-to-help:
  Add Jekyll Talk to Help page on site
2015-02-25 16:11:43 -08:00
Alfred Xing
a621752425 Add Jekyll Talk to Help page on site 2015-02-25 16:11:32 -08:00
Parker Moore
90c974c4e2 Hide the 'Improve this page' message on mobile. /cc #3510 [ci skip] 2015-02-25 16:10:11 -08:00
Parker Moore
3f3b203992 Use end_with? instead of regexp for adding index.html 2015-02-25 11:59:27 -08:00
Parker Moore
4da6bfd81a Add benchmark for end_with? vs regexp 2015-02-25 11:57:49 -08:00
Parker Moore
21fa47f92b Add benchmark-ips to Gemfile. 2015-02-25 11:57:35 -08:00
Parker Moore
03d21b0cd1 Update history to reflect merge of #3489 [ci skip] 2015-02-24 23:02:48 -08:00
Parker Moore
c1f7684b92 Merge pull request #3489 from merlos/patch-1
Updated plugins: added jekyll-auto-image generator
2015-02-24 23:02:04 -08:00
Parker Moore
7fb71871cf Update history to reflect merge of #3485 [ci skip] 2015-02-24 23:01:34 -08:00
Parker Moore
b75db477e0 Merge pull request #3485 from watkyn/extra_slash_in_example_base_url
Removed the trailing slash from the example "/blog/" basurl comment.
2015-02-24 23:01:03 -08:00
Parker Moore
9e0bad7255 Update history to reflect merge of #3510 [ci skip] 2015-02-24 21:21:14 -08:00
Parker Moore
bebb75ff0e Merge branch 'delftswa2014-improve-this-page'
* delftswa2014-improve-this-page:
  Make the .improve callout a light grey.
  Put the pencil icon in front of the improve link.
  Removed unnecessary margin and simplified padding.
  Implemented the "Improve this page" feature. #3495
2015-02-24 21:19:55 -08:00
Parker Moore
a43d3d1dc8 Make the .improve callout a light grey. 2015-02-24 21:19:47 -08:00
Parker Moore
5d97ec9174 Update history to reflect merge of #3511 [ci skip] 2015-02-24 21:10:53 -08:00
Parker Moore
929d18fefc Merge pull request #3511 from alfredxing/fix-docs-tests
Use `fixture_site` for Document tests
2015-02-24 21:10:04 -08:00
Alfred Xing
422fd7d304 Use fixture_site for Document tests
Should fix #3500
2015-02-24 20:31:16 -08:00
Martin Jorn Rogalla
a4db7ec63c Put the pencil icon in front of the improve link.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-25 00:00:57 +01:00
Martin Jorn Rogalla
e2306ed79b Removed unnecessary margin and simplified padding.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-24 22:12:05 +01:00
Martin Jorn Rogalla
13f8227877 Implemented the "Improve this page" feature. #3495
Created an "Improve this page" link for all the documentation headers. The
feature uses the fa-pencil icon of font awesome. Improvement over #3504(closed).

See issue #3495 for more information.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-24 22:04:49 +01:00
Parker Moore
5c388309b2 Spacing. [ci skip] 2015-02-23 01:25:58 -08:00
Parker Moore
faa5a446ba Update history to reflect merge of #3502 [ci skip] 2015-02-23 01:25:42 -08:00
Parker Moore
0903515c39 Merge pull request #3502 from delftswa2014/update-doc-link
Changed doc link in template
2015-02-23 01:25:05 -08:00
Parker Moore
6cc298d615 Update history to reflect merge of #3496 [ci skip] 2015-02-22 21:21:31 -08:00
Parker Moore
7a93ca6f6c Merge pull request #3496 from yous/site-template-gitignore
Ignore .jekyll-metadata in site template
2015-02-22 21:21:08 -08:00
Parker Moore
1923fc39df Update history to reflect merge of #3497 [ci skip] 2015-02-22 21:20:57 -08:00
Parker Moore
e888a41b2d Merge pull request #3497 from yous/trailing-whitespace
Remove trailing whitespace
2015-02-22 21:19:55 -08:00
Joop Aué
6bc3dee98d Changed doc link in template
Changed the doc link in the template to link to /docs/home instead of /

Signed-off-by: Joop Aué <joopaue@gmail.com>
2015-02-22 18:42:12 +01:00
ChaYoung You
7db9397a9d Remove trailing whitespace 2015-02-22 20:27:15 +09:00
ChaYoung You
ae244c4425 Ignore .jekyll-metadata 2015-02-22 18:31:46 +09:00
Parker Moore
c40272cebd Update history to reflect merge of #3492 [ci skip] 2015-02-21 14:45:42 -08:00
Parker Moore
26acb3f9d9 Merge pull request #3492 from jekyll/upgrade-tests
Upgrade tests to use Minitest
2015-02-21 14:45:27 -08:00
Parker Moore
7ad0597bff Make our own Minitest::Test subclass for further subclassing 2015-02-21 00:33:47 -08:00
Parker Moore
ace1b6b8d2 Migrate the integration tests to minitest, too 2015-02-21 00:31:25 -08:00
Parker Moore
52c4ce2a5a Finish of moving the unit tests over to Minitest 2015-02-21 00:31:07 -08:00
Merlos
8186873e27 Updated plugins: added jekyll-auto-image generator
Added to the plugin list: jekyll-auto-image. A generator that makes available the first image of a post.

By installing the plugin you will be able to access the first image with {{ @page.image }}. This plugin is useful to Include an image on your list of posts or to set a twitter card for each post/page.
2015-02-21 03:17:32 +01:00
Parker Moore
4b59eb4175 Fix the test inheritance for the tests. 2015-02-20 13:35:02 -08:00
Parker Moore
d2b19963c1 Move from Test::Unit to Minitest. 2015-02-20 13:34:51 -08:00
Tony Eichelberger
47ee5db5fc Removed the trailing slash from the example "/blog/" basurl comment. Following the example would add two slashes into the url, i.e. http://yourdomain.com/blog// 2015-02-20 07:06:12 -06:00
jaybe@jekyll
3e030ea784 Clarify pagination file index.html may reside in subdirectory 2015-02-18 16:16:38 -06:00
Parker Moore
e240bbb1bf Update history to reflect merge of #3477 [ci skip] 2015-02-18 11:17:50 -08:00
Parker Moore
04430b2c17 Merge pull request #3477 from kleinfreund/patch-1 2015-02-18 11:17:26 -08:00
Parker Moore
80f64dea89 Update history to reflect merge of #3479 [ci skip] 2015-02-18 11:14:26 -08:00
Parker Moore
29534469c3 Merge pull request #3479 from tuzhucheng/update_doc_pagination_path 2015-02-18 11:13:36 -08:00
Michael Tu
705fdfb23d Add a '/' to paginate_path
If this '/' is not present, then the second pagination code snippet
under the "Render the paginated Posts" section will have a bug.

Let's say my page 1 is located at host:port/blog/index.html and my
paginate_path setting in _config.yml is "blog/page:num/". The
observation if the paginate_path does not start with a '/' is that the href generated for the page numbers will have 2 'blogs', i.e. for page 2 the href will
incorrectly appear as 'host:port/blog/blog/page2' instead of just
'host:port/blog/page2'.
2015-02-18 03:13:57 -05:00
Philipp Rudloff
cd1326d457 Update LICENSE to 2015.
The future is now.
2015-02-17 22:17:25 +01:00
Parker Moore
1beee0d59d Update history to reflect merge of #3475 [ci skip] 2015-02-17 13:12:27 -08:00
Parker Moore
4d0cb3345f Merge pull request #3475 from markphelps/master
Fix wording in code snippet highlighting section
2015-02-17 13:11:59 -08:00
Mark Phelps
9a0db42436 Updating Rogue description text based on feedback. 2015-02-17 15:27:15 -05:00
Mark Phelps
dbead70168 Fix wording in code snippet highlighting section 2015-02-17 08:17:45 -05:00
David Smith
e9638fa6a2 updated lsi docs 2015-02-17 00:12:54 -05:00
Alfred Xing
9caa47d164 Update history to reflect merge of #3466 [ci skip] 2015-02-16 16:25:21 -08:00
Alfred Xing
05dc4df7e4 Merge pull request #3466 from MartinRogalla/twitterLinkUpdate
Change Twitter link to link directly to @jekyllrb.
2015-02-16 16:24:54 -08:00
Alfred Xing
7fb3b096c3 Update history to reflect merge of #3464 [ci skip] 2015-02-16 13:05:15 -08:00
Alfred Xing
32cc745142 Merge pull request #3464 from willnorris/rebuild
write .jekyll-metadata even on full_rebuild
2015-02-16 13:03:45 -08:00
jaybe@jekyll
17e4c8ab42 Update pagination.md - Clarify only index.html
At this time, only index.html is allowed for pagination.
2015-02-16 08:48:20 -06:00
Jedd Ahyoung
5fa1aadf7f docs: Add frontmatter date formatting information 2015-02-15 18:28:52 -05:00
David Smith
edb50b81a3 changed the codefile name 2015-02-15 17:20:02 -05:00
David Smith
a2bf106c47 forgot a tick around a codefile name 2015-02-15 17:19:31 -05:00
David Smith
ae0b13b531 proofed changes 2015-02-15 17:16:54 -05:00
David Smith
f2696c1c4c removed personal link 2015-02-15 17:10:50 -05:00
David Silva Smith
ac7c1d0cd6 How to access a specific item in the data folder
It's common to want to access a specific item in the data folder. this should be documented.
2015-02-15 16:32:40 -05:00
jaybe@jekyll
e81b020d7e Clarify pagination works from within HTML files
IRC question of confusion re: wording and meaning.
2015-02-15 14:13:46 -06:00
Martin Jorn Rogalla
9f22749ebb Change twitter link to link directly to @jekyllrb.
Changed the link on the help page to directly link to the Twitter
@jekyllrb account.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-02-15 12:51:18 +01:00
Will Norris
6e89c1c02b write .jekyll-metadata even on full_rebuild
For a full rebuild, we certainly don't want to *read* from
.jeykll-metadata, but we should still write it.  Otherwise, a subsequent
incremental build would have to do a full rebuild again since there is
no metadata file to start from.
2015-02-14 22:43:43 -08:00
Alfred Xing
fa6981fb8c Update history to reflect merge of #3457 [ci skip] 2015-02-14 10:33:36 -08:00
Alfred Xing
5f38430304 Merge pull request #3457 from penibelst/jch 2015-02-14 10:33:01 -08:00
Anatol Broder
22759edf3e Change the link 2015-02-14 14:50:35 +01:00
Parker Moore
00ec13c11b Update history to reflect merge of #3456 [ci skip] 2015-02-14 01:35:00 -08:00
Parker Moore
9b50fc9f3b Merge pull request #3456 from willnorris/draft 2015-02-14 01:34:31 -08:00
Will Norris
58dc1f77e9 add draft? method to identify if Post is a draft 2015-02-14 00:01:27 -08:00
Parker Moore
461ea2f147 Update history to reflect merge of #3455 [ci skip] 2015-02-13 20:53:18 -08:00
Parker Moore
30b42c4700 Merge pull request #3455 from jekyll/read-csv-data-with-proper-encoding 2015-02-13 20:52:34 -08:00
Parker Moore
c6d5a913f1 Site#read_data_file: read CSV's with proper file encoding
Fixes #3451.
2015-02-13 19:39:15 -08:00
Parker Moore
712d8d617d Update history to reflect merge of #3452 [ci skip] 2015-02-13 17:07:33 -08:00
Parker Moore
7c9ad82b2a Merge pull request #3452 from rtomayko/serve-strip-html-suffix 2015-02-13 17:05:22 -08:00
Ryan Tomayko
491cce7a99 Avoid requiring webrick at boot time
This is a bit uglier but allows deferring loading webrick until the
serve command is invoked as opposed to when it's required.
2015-02-12 22:16:12 -05:00
Ryan Tomayko
e99a9e5821 Custom WEBrick FileHandler for stripping .html extension
This first performs the normal static file check at the exact
location. If no file is found, attempt the check again with an
".html" suffix.

See the following for base class search_file implementation:

https://github.com/ruby/ruby/blob/4607f95/lib/webrick/httpservlet/filehandler.rb#L363-L383
2015-02-12 21:58:35 -05:00
Alfred Xing
249249f76b Update history to reflect merge of #3382 [ci skip] 2015-02-11 15:52:04 -08:00
Alfred Xing
0d602018bd Merge pull request #3382 from alfredxing/site-template-kerning 2015-02-11 15:51:34 -08:00
Alfred Xing
a907addbe2 Optimize text rendering for legibility 2015-02-11 15:45:47 -08:00
Alfred Xing
7a5a90de82 Update history to reflect merge of #3440 [ci skip] 2015-02-11 13:59:53 -08:00
Alfred Xing
a64b7e7a62 Merge pull request #3440 from tkrotoff/class-text 2015-02-11 13:58:44 -08:00
Mark Tareshawty
f933164a2a use SCREAMING_SNAKE_CASE and remove --destination from --source options 2015-02-10 15:02:49 -05:00
Tanguy Krotoff
0914948099 Remove class="text"
There is no class text defined in the CSS
2015-02-10 17:09:06 +01:00
Mark Tareshawty
c96abf7e82 added -s and -d 2015-02-10 11:08:22 -05:00
Parker Moore
8fe9561f64 Update history to reflect merge of #3438 [ci skip] 2015-02-09 23:24:47 -08:00
Parker Moore
83ad59841b Merge pull request #3438 from jordanthornquest/master 2015-02-09 23:23:59 -08:00
Jordan Thornquest
33c3b41f69 Fix broken link in resources
`jordanthornque.st` should be `jordanthornquest.com`. That's been remedied!
2015-02-09 23:58:22 -07:00
Parker Moore
c08c794801 Update history to reflect merge of #3436 [ci skip] 2015-02-09 22:09:33 -08:00
Parker Moore
b81f6ed38c Merge pull request #3436 from jekyll/fix-highlight-madness 2015-02-09 22:08:33 -08:00
Parker Moore
1f503b24b3 highlight: duplicate tests for pygments for rouge
Ensure that the output we get for pygments will match
that we get for rouge in all cases except line numbers.
2015-02-09 21:57:43 -08:00
Parker Moore
bf149a0b97 highlight: fix problem with linenos and rouge.
Found by @EdMcBane in https://github.com/jekyll/jekyll/pull/3435

The strange regexp we were doing to replace the <pre><code></pre></code>
bits in the Pygments output were wreaking havoc on Rouge output
because Rouge uses <pre>'s to wrap line numbers.

To be consistent, the output from render_* should *not* include
the wrapping <div> and <pre> tags. It should just be what was
inside. We can then wrap it in our own custom tags without using
any regular expressions, as God intended. Death to regular
expressions and HTML manipulation!
2015-02-09 21:42:52 -08:00
Parker Moore
a0134dea4f Update history to reflect merge of #3401 [ci skip] 2015-02-09 16:26:48 -08:00
Parker Moore
c625b94bc0 Merge pull request #3401 from jekyll/fix-code-cleanup 2015-02-09 16:26:19 -08:00
Parker Moore
72e297366d Update history to reflect merge of #3431 [ci skip] 2015-02-08 14:51:46 -08:00
Parker Moore
11b38568fa Merge pull request #3431 from Ezmyrelda/patch-1 2015-02-08 14:50:48 -08:00
Ezmyrelda Andrade
4ce60741d9 Formatting adjustment
Deletion of a dash - between last entry of Tags and beginning of Collections.
2015-02-08 13:34:45 -08:00
Parker Moore
56102ce50c Add the omitted 'team'. [ci skip]
:top_hat:/t @kleinfreund
ea9b959c23 (commitcomment-9639789)
2015-02-08 02:02:44 -08:00
Parker Moore
4d20462da5 Update history to reflect merge of #3415 [ci skip] 2015-02-07 23:57:07 -08:00
Parker Moore
571800c8ad Use 3 places to the right of the decimal place instead of 2. 2015-02-07 23:57:07 -08:00
eksperimental
d795113e94 Update build.rb
parenthesis added to round
2015-02-07 23:57:07 -08:00
eksperimental
dbc8530068 Show only two decimals in time to generate pages
no need to display 10 decimals.
it feels up my screen with useless numbers! ;-p
2015-02-07 23:57:07 -08:00
Parker Moore
90370c0d0b Update history to reflect merge of #3428 [ci skip] 2015-02-07 23:54:24 -08:00
Parker Moore
dc9db9cbe2 Merge pull request #3428 from jekyll/help-page 2015-02-07 23:54:05 -08:00
Parker Moore
bee4d93114 Update history to reflect merge of #3426 [ci skip] 2015-02-07 23:53:11 -08:00
Parker Moore
7858f80823 Merge pull request #3426 from jekyll/release-compiled-site 2015-02-07 23:52:43 -08:00
Parker Moore
2b95fb924e Don't duplicate work. 2015-02-07 23:52:00 -08:00
Parker Moore
ea9b959c23 Add a jekyllrb.com/help page which elucidates places from which to get help. 2015-02-07 23:49:43 -08:00
Parker Moore
a87bf521c8 Update history to reflect merge of #3427 [ci skip] 2015-02-07 23:49:11 -08:00
Parker Moore
20bfdbb794 Merge pull request #3427 from jekyll/proof 2015-02-07 23:48:55 -08:00
Parker Moore
6a74c09185 Further fixes for htmlproofer. 2015-02-07 23:44:19 -08:00
Parker Moore
943070aac6 Gain some time data from htmlproof. [ci skip] 2015-02-07 23:33:24 -08:00
Parker Moore
1fa428c6e4 Fix posts per htmlproofer. 2015-02-07 23:31:15 -08:00
Parker Moore
fdc0e33ebc Proof the site with CircleCI. 2015-02-07 23:31:05 -08:00
Parker Moore
aec5ceb184 Release jekyllrb.com as a locally-compiled site. 2015-02-07 22:09:43 -08:00
Parker Moore
6d4a1ec4e6 Update history to reflect merge of #3424 [ci skip] 2015-02-07 21:57:22 -08:00
Parker Moore
e3d2578230 Merge pull request #3424 from Toddy69/documentation-correction 2015-02-07 21:53:24 -08:00
Toddy69
fbb766becc Correction of documentation 2015-02-08 05:55:03 +01:00
Alfred Xing
85a89d3e22 Update history to reflect merge of #3419 [ci skip] 2015-02-07 09:14:57 -08:00
Alfred Xing
1df8801957 Merge pull request #3419 from yous/overflow-x 2015-02-07 09:13:43 -08:00
Alfred Xing
7abc8c8025 Update history to reflect merge of #3420 [ci skip] 2015-02-07 09:05:53 -08:00
Alfred Xing
77216b61dc Merge pull request #3420 from nicwest/smallest-pr-ever 2015-02-07 09:03:55 -08:00
Nic West
4f078ee2e8 fix missing char in template docs 2015-02-07 10:31:41 +00:00
ChaYoung You
6521b84aac Change overflow-x value to auto
`overflow-x: scroll;` makes scrollbar visible always whether the content
does overflow or not.
2015-02-07 06:21:21 +09:00
Mark Tareshawty
120d3e07ca added flags from docs 2015-02-06 13:27:23 -05:00
Parker Moore
0bf17923b5 Merge pull request #3413 from eksperimental/patch-1
fix quote
2015-02-05 23:01:19 -08:00
eksperimental
5e541b5eb0 fix quote 2015-02-05 16:48:59 +07:00
Parker Moore
128427cc87 Update history to reflect merge of #3360 [ci skip] 2015-02-02 09:58:42 -08:00
Parker Moore
2bec317a2a Merge pull request #3360 from nternetinspired/font-css-syntax 2015-02-02 09:57:36 -08:00
Seth Warburton
2745be736e A lighter font declaration
Removes unnecessary Sass

Thanks @kleinfreund :)
2015-02-02 11:43:53 +00:00
Parker Moore
32c48bb78d Highlight tag: add test for not removing interstitial newlines. 2015-02-01 23:03:10 -08:00
Parker Moore
d24ea66933 The highlight tip should only clip the newlines before and after the *entire* block, not in between.
Ref: https://github.com/jneen/rouge/issues/230
2015-02-01 22:37:10 -08:00
Parker Moore
e71c23981d Update history to reflect merge of #3396 [ci skip] 2015-02-01 17:44:24 -08:00
Parker Moore
403aade8c1 Merge pull request #3396 from chrisfinazzo/grammar 2015-02-01 17:43:28 -08:00
Jordon Bedwell
8e1b9fcdf5 Update history to reflect merge of #3397 [ci skip] 2015-02-01 16:48:01 -06:00
Jordon Bedwell
c8602d7af7 Merge pull request #3397 from jekyll/recommend-pgrep-with-kill
Fixes #3339 Add `pkill -f jekyll` to ways to kill.
2015-02-01 16:46:31 -06:00
Jordon Bedwell
9e717a61e7 Use Gem::Version to get version string. Fixes #3394 2015-02-01 10:36:51 -06:00
Jordon Bedwell
9ba9c47cd6 Fixes #3339 Add pkill -f jekyll to ways to kill.
This shows people how to kill Jekyll without knowing the PID using `pkill` (you could also do `kill -9 $(pgrep -f jekyll)` but that is just the long way around doing `pkill -f` so it shouldn't be shown in the Jekyll logger but can be documented here for people.
2015-02-01 06:45:52 -06:00
chrisfinazzo
8f9d3c9647 Dumb tab-completion is dumb 2015-01-31 23:23:42 -05:00
chrisfinazzo
9815a7b0ee Add missing word, rewrap lines to fit 2015-01-31 23:09:18 -05:00
chrisfinazzo
8da7d1a5bc Grammar, hard-wrap lines at 80 characters 2015-01-31 22:52:46 -05:00
Parker Moore
0154c580cd Update history to reflect merge of #3391 [ci skip] 2015-01-31 15:42:04 -08:00
Parker Moore
3318c38eec Merge pull request #3391 from jekyll/enspeeden-include 2015-01-31 15:41:34 -08:00
Parker Moore
f55eb1f3fb Update history to reflect merge of #3323 [ci skip] 2015-01-31 14:03:27 -08:00
Parker Moore
3d843d81e6 Merge pull request #3323 from jekyll/remove-runtime-deps 2015-01-31 14:02:14 -08: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
336bb44750 Use #require_with_graceful_fail in Highlight tag. 2015-01-31 13:52:26 -08:00
Parker Moore
18e0d2fe75 Make the {% include %} tag a teensy bit faster. 2015-01-31 12:59:25 -08:00
Parker Moore
63792ad322 Always do a full rebuild. 2015-01-31 12:46:52 -08:00
Parker Moore
6883a0b397 Update history to reflect merge of #3388 [ci skip] 2015-01-31 11:26:43 -08:00
Parker Moore
922a92d67a Merge pull request #3388 from chrisfinazzo/extra-spaces-are-for-animals 2015-01-31 11:26:18 -08:00
chrisfinazzo
ec397e1629 Remove extra spaces 2015-01-31 12:27:28 -05:00
Parker Moore
ec7d2ed5b6 Update history to reflect merge of #3380 [ci skip] 2015-01-31 00:13:16 -08:00
Parker Moore
aceb5b5d53 Merge branch 'jekyll-gjtorikian-patch-1'
* jekyll-gjtorikian-patch-1:
  Use the source_dir() helper
  Add test for new extracted method
  Factor out a `read_data_file` call to keep things clean
2015-01-31 00:12:33 -08:00
Parker Moore
32a2e8b4ef Use the source_dir() helper 2015-01-31 00:12:24 -08:00
Parker Moore
9f4aeaddea Update history to reflect merge of #3383 [ci skip] 2015-01-31 00:07:31 -08:00
Parker Moore
a2b19c1d2b Merge pull request #3383 from jekyll/respect-the-title 2015-01-31 00:07:10 -08:00
Parker Moore
01f7b9ccef Update history to reflect merge of #3384 [ci skip] 2015-01-31 00:04:45 -08:00
Parker Moore
c6166ab485 Merge pull request #3384 from Ezmyrelda/patch-1 2015-01-31 00:04:20 -08:00
Ezmyrelda Andrade
18893b828b Formatting change per request 2015-01-30 23:11:24 -08:00
Garen Torikian
3bac8a2034 Add test for new extracted method 2015-01-30 15:21:45 -08:00
Ezmyrelda Andrade
51d8d5e267 Liquid tag plugin addition. 2015-01-30 10:41:21 -08:00
Parker Moore
0c624eb11b The :title URL placeholder for collections should be the filename slug.
This mimicks posts most closely. It can be overridden by the
YAML front matter.

Undoes some of #2864.
2015-01-30 01:53:11 -08:00
Parker Moore
b100b3b121 Update history to reflect merge of #3376 [ci skip] 2015-01-29 18:54:57 -08:00
Parker Moore
e2e6e7dc22 Merge pull request #3376 from tkrotoff/helvetica 2015-01-29 18:52:07 -08:00
Matt Rogers
dcd3dafdbc Update history to reflect merge of #3378 [ci skip] 2015-01-29 16:10:11 -06:00
Matt Rogers
fe08405ae1 Merge pull request #3378 from kaatt/initial-build-time 2015-01-29 16:10:05 -06:00
Alfred Xing
bfe28cbead Update history to reflect merge of #3375 [ci skip] 2015-01-29 14:09:49 -08:00
Alfred Xing
63bca94bde Merge pull request #3375 from tkrotoff/fix-nav-items-gaps 2015-01-29 14:07:49 -08:00
Garen Torikian
e1e60499b1 Factor out a read_data_file call to keep things clean 2015-01-29 12:41:19 -08:00
kaatt
ff646738fc Shows time after initial generation 2015-01-30 01:32:00 +05:30
Tanguy Krotoff
aa44c7f53d Switch default font to Helvetica Neue
Helvetica Neue (1983) features multiple improvements over the original Helvetica font (1957), 'neue' means 'new' in German
2015-01-29 16:38:12 +01:00
Tanguy Krotoff
368b862ebb Refactoring: replace !important with cleaner CSS 2015-01-29 16:18:22 +01:00
Parker Moore
69e8f1923c script/test: separate inclusion of lib and test. Ref: #3115 2015-01-25 19:12:11 -08:00
Parker Moore
5e0341c9b3 Only write the latest_version.txt file if it's non-beta/alpha/rc. 2015-01-25 19:10:28 -08:00
Parker Moore
382c54e057 Update history to reflect merge of #3329 [ci skip] 2015-01-24 11:57:10 -08:00
Parker Moore
3e609b1cd9 Merge pull request #3329 from tkrotoff/fix-nav-items-gaps 2015-01-24 11:56:52 -08:00
Alfred Xing
97797cb241 Update history to reflect merge of #3325 [ci skip] 2015-01-24 11:24:35 -08:00
Alfred Xing
31b03e9b86 Merge pull request #3325 from imathis/generate-url 2015-01-24 11:21:51 -08:00
Parker Moore
317e2f460e Release 💎 v3.0.0.beta1 2015-01-24 09:55:46 -08:00
Matt Rogers
980dbdbcc4 Update history to reflect merge of #3346 [ci skip] 2015-01-24 08:33:14 -06:00
Matt Rogers
a94ffd8eb9 Merge pull request #3346 from jekyll/release-3-0-0-beta-1 2015-01-24 08:33:11 -06:00
Parker Moore
d20df4120d Add Jekyll 3.0.0.beta1 release post 2015-01-24 00:52:10 -08:00
Parker Moore
b360154973 Update history to reflect merge of #3336 [ci skip] 2015-01-21 14:36:11 -08:00
Parker Moore
4bcb0a322c Merge pull request #3336 from hqro/patch-1 2015-01-21 14:35:22 -08:00
Guillaume LARIVIERE
ef54bfe5a1 highlighting fix 2015-01-21 17:44:28 +01:00
Joel Glovier
cecd974d8e Merge pull request #3335 from jekyll/jekyll-meetup-address-fix
Fix Google Maps link to GitHub HQ in Jekyll meetup blog post
2015-01-21 11:22:18 -05:00
Joel Glovier
3be90c7822 🔧 Google Maps link to GitHub HQ
Address was pointing to "85" Colin P Kelly, but should be "88"

cc @alfredxing (good 👀)
2015-01-21 10:57:24 -05:00
Parker Moore
d2c717c3c6 Update history to reflect merge of #3332 [ci skip] 2015-01-20 20:53:58 -08:00
Parker Moore
ef426cd490 Merge pull request #3332 from jekyll/meetup 2015-01-20 20:53:40 -08:00
Parker Moore
053ba68a15 Update history to reflect merge of #3333 [ci skip] 2015-01-20 20:53:22 -08:00
Parker Moore
51e2cb3629 Merge pull request #3333 from digitalsparky/master 2015-01-20 20:52:53 -08:00
DigitalSparky
b951696114 add jekyll-minifier 2015-01-21 12:38:45 +08:00
Parker Moore
5d750f5a71 Add a better link to GitHub HQ. 2015-01-20 20:12:41 -08:00
Parker Moore
5ed24cfd71 Add blog post about the meet up. 2015-01-20 19:40:43 -08:00
Matt Rogers
88348ae0ee Update history to reflect merge of #3331 [ci skip] 2015-01-20 19:54:52 -06:00
Matt Rogers
c4255ebc58 Merge pull request #3331 from tkrotoff/fix-site-nav-alignment 2015-01-20 19:54:49 -06:00
Tanguy Krotoff
53a59544e8 Fix site-nav alignment 2015-01-21 01:44:31 +01:00
Parker Moore
018f333973 Update history to reflect merge of #3326 [ci skip] 2015-01-19 18:12:38 -08:00
Parker Moore
c2f0b9a799 Merge pull request #3326 from alfredxing/check-regen-method 2015-01-19 18:12:18 -08:00
Alfred Xing
58e231ce40 Rename Regenerator#write to Regenerator#write_metadata 2015-01-19 16:29:50 -08:00
Alfred Xing
29aabd84bd Fix up tests 2015-01-19 16:23:51 -08:00
Tanguy Krotoff
90eecc5da6 Fix nav items alignment when in "burger" mode 2015-01-19 20:55:32 +01:00
Brandon Mathis
3d60299ea9 Test updates: Removed permalink config, updated template 2015-01-18 23:03:27 -06:00
Brandon Mathis
382049d558 Added a unit test for nil value in permalink template keys 2015-01-18 15:51:21 -06:00
Alfred Xing
fe5f0d124c Move all regenerate? checking to Regenerator 2015-01-18 11:05:06 -08:00
Brandon Mathis
589919d58a Strip slashes on nil url tokens 2015-01-18 08:31:14 -06:00
Parker Moore
e58f8776b9 Update history to reflect merge of #3319 [ci skip] 2015-01-17 17:08:33 -08:00
Parker Moore
c378f741a8 Merge pull request #3319 from jekyll/split-off-textile 2015-01-17 17:08:15 -08:00
Parker Moore
6f440f55e0 Update history to reflect merge of #3321 [ci skip] 2015-01-17 16:56:24 -08:00
Parker Moore
cbe5f8e4dd Merge pull request #3321 from jekyll/performance-upgrades 2015-01-17 16:55:51 -08:00
Parker Moore
dec27bc166 Fix last feature 2015-01-17 16:52:12 -08:00
Parker Moore
2b29e09177 Fix some cucumber features. 2015-01-17 16:52:12 -08:00
Parker Moore
9d547f74cc Make all the tests happy. 2015-01-17 16:52:12 -08:00
Parker Moore
c1da91cf5c Start removing mentions of Textile. 2015-01-17 16:51:28 -08:00
Parker Moore
877cba9811 Remove direct baked-in support for Textile. 2015-01-17 16:51:28 -08:00
Parker Moore
2547d8adf3 Update history to reflect merge of #3322 [ci skip] 2015-01-17 16:50:30 -08:00
Parker Moore
091e86aa22 Merge pull request #3322 from pborreli/patch-1 2015-01-17 16:50:09 -08:00
Parker Moore
f11837dd7b Fix cucumber failures due to merge of #3134. 2015-01-17 16:48:12 -08:00
Pascal Borreli
d28fb07bb9 Fixed typo [ci skip] 2015-01-18 00:45:28 +00:00
Parker Moore
aaf0ba15cc Use frozen regular expressions for Utils#slugify 2015-01-17 16:25:33 -08:00
Parker Moore
ef2d558874 Markdown#matches should avoid regexp 2015-01-17 16:25:10 -08:00
Parker Moore
f7271a6ef9 Update history to reflect merge of #2918 [ci skip] 2015-01-17 16:06:55 -08:00
Parker Moore
10659e1eef Merge branch 'nitoyon-slugify-new-param'
* nitoyon-slugify-new-param:
  Remove superfluous Sass declarations.
  Move the slugify options out to their own section so as to fix the formatting.
  Document the mode parameter of slugify Liquid filter
  Add tests for mode parameters of slugify Liquid filter
  Add mode parameter to slugify Liquid filter

Conflicts:
	lib/jekyll/utils.rb

        ---> Hadn't added UTF-8 support in nitoyon's PR.
2015-01-17 16:06:10 -08:00
Parker Moore
aaea08e094 Remove superfluous Sass declarations. 2015-01-17 16:02:33 -08:00
Parker Moore
6081fcd75a Move the slugify options out to their own section so as to fix the formatting. 2015-01-17 16:00:35 -08:00
Parker Moore
18fb1bafa0 Update history to reflect merge of #3320 [ci skip] 2015-01-17 15:47:18 -08:00
Parker Moore
cf2f439db1 Merge pull request #3320 from jekyll/mcallan83-test_global_post_permalinks_with_template_variables 2015-01-17 15:47:03 -08:00
Parker Moore
87500addd5 Move the test & fix it. 2015-01-17 15:46:35 -08:00
Mike Callan
5868ba1691 new test to prove permalinks in global config do not respect template variables 2015-01-17 15:28:52 -08:00
Parker Moore
3fe80929ad We have 47 posts now in the tests. 2015-01-17 15:28:03 -08:00
Parker Moore
57b43e2229 Update history to reflect merge of #3134 [ci skip] 2015-01-17 15:25:17 -08:00
Parker Moore
b2099ac763 Merge branch 'davidized-collection_yaml_dots'
* davidized-collection_yaml_dots:
  Move YAML Front Matter regexp into a constant.
  Add support for collections documents to have YAML front matter ending in dots.

Conflicts:
	test/test_collections.rb
2015-01-17 15:24:33 -08:00
Parker Moore
c7d92c4e6d Move YAML Front Matter regexp into a constant. 2015-01-17 15:23:33 -08:00
Parker Moore
7f44500b4b Update history to reflect merge of #2774 [ci skip] 2015-01-17 15:17:26 -08:00
Parker Moore
6d9b4c2aba Merge pull request #2774 from dziemian007/formatter_variables_by_relative_path 2015-01-17 15:16:50 -08:00
Parker Moore
1715956baa Update history to reflect merge of #3014 [ci skip] 2015-01-17 15:13:46 -08:00
Parker Moore
a312115a5a Merge pull request #3014 from jekyll/revert-3013-revert-2921-post-dest 2015-01-17 15:13:17 -08:00
Parker Moore
3d69582d36 Update history to reflect merge of #3274 [ci skip] 2015-01-17 15:01:58 -08:00
Parker Moore
84cfc1ceff Merge branch 'majioa-devel'
* majioa-devel:
  Ensure Post#excerpt_separator always returns a string.
  get procedure for default excerpt separator for both cases site and page was moved to the post's specific method :excerpt_separator.
  Added per post excerpt_separator functionality, so you are able to specify :excerpt_separator (as well as just :excerpt) key direct inside the post YAML, to make an excerpt based on the value in the post. Tests were also added.
2015-01-17 15:01:20 -08:00
Parker Moore
153db8a230 Update site history. [ci skip] 2015-01-17 15:01:08 -08:00
Parker Moore
18f3d76603 Ensure Post#excerpt_separator always returns a string. 2015-01-17 14:59:44 -08:00
Parker Moore
8692822631 Update history to reflect merge of #3314 [ci skip] 2015-01-17 14:56:59 -08:00
Parker Moore
07ccbd9fac Merge pull request #3314 from yoshyosh/master 2015-01-17 14:56:41 -08:00
Parker Moore
1fc3887d4f Update history to reflect merge of #2571 [ci skip] 2015-01-17 14:56:13 -08:00
Parker Moore
ba2e1390ad Merge pull request #2571 from yous/patch-mixed-case-category 2015-01-17 14:55:30 -08:00
Joseph Anderson
a1ea8b9798 Added versioning comment to configuration file
# previously `post` in Jekyll 2.2.
2015-01-16 15:58:21 -08:00
Parker Moore
f5fbf4ffd1 Update history to reflect merge of #3312 [ci skip] 2015-01-15 13:40:12 -08:00
Parker Moore
02aa2a1c33 Merge pull request #3312 from omegahm/fix-weird-spacing 2015-01-15 13:39:50 -08:00
Mads Ohm Larsen
60da4ef010 Fix weird spacing 2015-01-15 22:04:00 +01:00
Parker Moore
b1fd7377fd Update history to reflect merge of #3306 [ci skip] 2015-01-14 15:07:09 -08:00
Parker Moore
5d6fe236b2 Merge pull request #3306 from adamzr/patch-1 2015-01-14 15:06:36 -08:00
Adam Richeimer
3cb0f4f590 Formatting fixes
- Add command to list of types of plugins
- Made "command" plural to be consistent with other types
- Made the types into links within the page
2015-01-14 11:20:03 -08:00
Jordon Bedwell
2547df81a1 Allow test to be aliased as spec. 2015-01-14 06:58:08 -06:00
Jordon Bedwell
8e7d40ed90 Seriously, why was vendor/ not in the .gitignore? 2015-01-14 05:59:12 -06:00
Jordon Bedwell
99ae1023b4 Fix bad tabbing. 2015-01-14 05:45:49 -06:00
Matt Rogers
59e1e2dd84 Update history to reflect merge of #3220 [ci skip] 2015-01-13 19:02:45 -06:00
Matt Rogers
ce78ea7818 Merge pull request #3220 from inukshuk/patch-1 2015-01-13 19:02:41 -06:00
Parker Moore
b2e114ed5b Update history to reflect merge of #3292 [ci skip] 2015-01-13 13:14:25 -08:00
Parker Moore
06b6e86d52 Merge pull request #3292 from flyinprogrammer/eliminate_section_metadata 2015-01-13 13:13:43 -08:00
Parker Moore
5b50687e22 Update history to reflect merge of #3299 [ci skip] 2015-01-13 12:01:11 -08:00
Parker Moore
763118a381 Merge pull request #3299 from ryanburnette/fix_date 2015-01-13 12:00:33 -08:00
Ryan Burnette
80465efff7 Require date in filters.rb 2015-01-13 13:51:47 -05:00
Ryan Burnette
588bba39ad Add test for Date object in filters.rb 2015-01-13 13:51:36 -05:00
Ryan Burnette
936c737a32 Address #3298 2015-01-13 02:21:28 -05:00
Alan Scherger
b31d8a1ecd more concise doc array creation 2015-01-12 22:09:06 -08:00
Parker Moore
e13c800b3a Update history to reflect merge of #3295 [ci skip] 2015-01-12 18:23:42 -08:00
Parker Moore
e724622a92 Merge pull request #3295 from jaybe-jekyll/patch-1 2015-01-12 18:23:11 -08:00
jaybe@jekyll
e378b2efd3 Update usage.md
Correction; clarity.
2015-01-12 18:21:00 -06:00
jaybe@jekyll
12cbfa8cf4 Update usage.md
Clarity.
2015-01-12 18:20:17 -06:00
Parker Moore
aedff733e0 Update history to reflect merge of #3296 [ci skip] 2015-01-12 15:08:15 -08:00
Parker Moore
fa7d4cde67 Merge pull request #3296 from jaybe-jekyll/patch-2 2015-01-12 15:08:03 -08:00
jaybe@jekyll
7be49c99c1 Update configuration.md
Sync Destination folder cleansing language with Usage docs page (i.e. adding `keep_files` directive).
2015-01-12 16:52:13 -06:00
jaybe@jekyll
d2b33144a7 Update usage.md
Sync Destination folder cleansing language with Configuration docs page (i.e. adding `keep_files` directive)
2015-01-12 16:51:15 -06:00
Sylvester Keil
60921132c6 Preserve original mtime when copying static files 2015-01-12 13:00:35 +01:00
Parker Moore
e7dcc2424a Don't copy the .sass-cache to the gh-pages dir. 2015-01-12 00:37:33 -08:00
Parker Moore
7439d303c4 Update history to reflect merge of #3291 [ci skip] 2015-01-12 00:34:06 -08:00
Parker Moore
e7feae98f5 Merge pull request #3291 from flyinprogrammer/master 2015-01-12 00:33:38 -08:00
Alan Scherger
c26f040bcf Eliminate the need for prev_section and next_section metadata. 2015-01-11 21:19:14 -08:00
Alan Scherger
5e9706e2aa Break when we successfully generate nav link. 2015-01-11 20:42:34 -08:00
Parker Moore
965e3a1173 Update history to reflect merge of #3288 [ci skip] 2015-01-11 16:21:22 -08:00
Parker Moore
09230cde50 Merge pull request #3288 from jaybe-jekyll/patch-1 2015-01-11 16:19:54 -08:00
jaybe@jekyll
312717b56d Update configuration.md
Tweak and simplify language re: `keep_files` and `destination` directory.
2015-01-11 18:08:05 -06:00
jaybe@jekyll
f228b31c2e Update configuration.md
Clarify ability to retain generated content in `destination` via the `keep_files` configuration directive.
2015-01-11 13:11:29 -06:00
Parker Moore
244310fbaa Update history to reflect merge of #2767 [ci skip] 2015-01-10 01:53:40 -08:00
Parker Moore
6816b5ea76 Merge pull request #2767 from jekyll/rdiscount-2 2015-01-10 01:53:07 -08:00
Parker Moore
7c8e4d46eb Fix up new output for RDiscount 2. 2015-01-10 00:21:18 -08:00
Parker Moore
585a31d8aa Support RDiscount 2.
Fixes #2747.
2015-01-10 00:21:18 -08:00
Parker Moore
e2a5a9dbc1 Update history to reflect merge of #3256 [ci skip] 2015-01-10 00:14:34 -08:00
Parker Moore
f2650e7b0f Merge pull request #3256 from XhmikosR/accessibility-tweaks 2015-01-10 00:14:09 -08:00
Parker Moore
8b6a9d66ec Update history to reflect merge of #3258 [ci skip] 2015-01-10 00:12:40 -08:00
Parker Moore
0bf82e9cf7 Merge pull request #3258 from omegahm/symlink-local-tmp 2015-01-10 00:12:06 -08:00
Parker Moore
4e9b0663be Update history to reflect merge of #3279 [ci skip] 2015-01-10 00:09:18 -08:00
Parker Moore
b9542c5426 Merge pull request #3279 from jekyll/fix-cross-platform-testing 2015-01-10 00:08:29 -08:00
Parker Moore
0a4bd99e6b Update history to reflect merge of #3271 [ci skip] 2015-01-10 00:05:03 -08:00
Parker Moore
5536f950f9 Merge pull request #3271 from maban/patch-1 2015-01-10 00:04:16 -08:00
Parker Moore
989639256d Update history to reflect merge of #3278 [ci skip] 2015-01-10 00:00:30 -08:00
Parker Moore
9a52d56b5a Merge pull request #3278 from jekyll/kevinushey-bugfix/highlight-whitespace-stripping 2015-01-10 00:00:06 -08:00
Parker Moore
a6238c36d5 Fix script/test to be more cross-compatible with other platforms 2015-01-09 23:58:32 -08:00
Parker Moore
730aedd0a3 Add Rake's test loader because it is inconsistently installed. 2015-01-09 23:57:52 -08:00
Parker Moore
4cbd814546 Add support for Windows line feeds too. 2015-01-09 23:55:47 -08:00
Parker Moore
cae9d96cc4 Add test for stripping just newlines from code blocks.
Ref #3275.
2015-01-09 23:51:34 -08:00
Parker Moore
8a9c48c7b4 Update history to reflect merge of #3277 [ci skip] 2015-01-09 23:33:21 -08:00
Parker Moore
faccf8f802 Merge pull request #3277 from paulrayner/jekyll-asciidoc_plugin 2015-01-09 23:32:49 -08:00
Malo Skrylevo
a0f2b5f944 get procedure for default excerpt separator for both cases site and page was
moved to the post's specific method :excerpt_separator.
2015-01-10 04:05:16 +03:00
Paul Rayner
bce4680182 Add new AsciiDoc plugin gem to list of Jekyll plugins. 2015-01-09 15:41:45 -07:00
Kevin Ushey
b92274b101 only strip newlines when rendering highlight blocks (#3265) 2015-01-09 00:07:11 -08:00
Anna Debenham
e7c0e313a3 Change collection documentation based on #223
Clarifying what happens if no YAML front matter exists. The current explanation says that Jekyll will generate a file without Front Matter, but it appears this isn't the case.

I'm still not sure if this is the intended behaviour, but this clarifies how it currently works.
2015-01-08 18:39:27 +00:00
Malo Skrylevo
54d0bf47e8 Added per post excerpt_separator functionality, so you are able to
specify :excerpt_separator (as well as just :excerpt) key direct inside
the post YAML, to make an excerpt based on the value in the post. Tests
were also added.
2015-01-08 15:18:06 +03:00
Parker Moore
d47b882af2 Update history to reflect merge of #3264 [ci skip] 2015-01-07 14:27:17 -08:00
Parker Moore
2f4e5fa28b Merge pull request #3264 from tkrotoff/fix-nav-items-gaps 2015-01-07 14:25:59 -08:00
Tanguy Krotoff
c4d617e6aa Fix nav items alignment when on multiple lines 2015-01-07 12:30:48 +01:00
Parker Moore
f95d0ba840 Update history to reflect merge of #3172 [ci skip] 2015-01-05 23:19:47 -08:00
Parker Moore
502fd94f2c Merge pull request #3172 from alfredxing/docs-output-overrides 2015-01-05 23:19:12 -08:00
Alfred Xing
c58ac78a5e Expose Publisher in Site 2015-01-05 16:13:04 -08:00
Alfred Xing
7655b533c9 Allow documents to set published in front matter 2015-01-05 16:11:02 -08:00
XhmikosR
b6c197d312 Docs: Assorted accessibility tweaks. 2015-01-05 13:32:35 +02:00
Mads Ohm Larsen
1062fdf89f Use local tmp folder for symlink tests 2015-01-05 09:28:54 +01:00
Mads Ohm Larsen
a2b6aa263e Add local tmp folder 2015-01-05 09:28:54 +01:00
Parker Moore
620115a986 Update history to reflect merge of #3261 [ci skip] 2015-01-05 00:08:08 -08:00
Parker Moore
1ca06e70d3 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Use FileList instead of Dir.glob
2015-01-05 00:07:39 -08:00
Parker Moore
919d37fb37 Merge pull request #3261 from flyinprogrammer/master 2015-01-05 00:07:35 -08:00
Parker Moore
f7dafb1f04 Update history to reflect merge of #3255 [ci skip] 2015-01-05 00:06:51 -08:00
Parker Moore
6504645c60 Merge pull request #3255 from XhmikosR/readme-badges 2015-01-05 00:06:01 -08:00
Alan Scherger
fc0ea20a85 Use FileList instead of Dir.glob 2015-01-04 20:46:43 -08:00
XhmikosR
b20a175c27 Switch to shields.io for the README badges.
This way we have consistent badges.

[ci skip]
2015-01-04 13:13:16 +02:00
Parker Moore
2f06f4aad7 Update history to reflect merge of #3254 [ci skip] 2015-01-03 23:06:17 -08:00
Parker Moore
ff3fa84b8a Merge pull request #3254 from flyinprogrammer/master 2015-01-03 23:05:57 -08:00
Alan Scherger
7f370cb82f Update rake task site:publish to fix minor bugs.
*  Automate creating gh-pages directory
*  Ensure gh-pages dir always has correct branch checked out
*  Purge gh-pages of files so that a sync of site truly occurs
*  Ensure dot files are synced
*  Be exact with our exclusions to eliminate guess work
2015-01-03 19:50:33 -08:00
Matt Rogers
51951c43e8 Update history to reflect merge of #3253 [ci skip] 2015-01-03 09:49:54 -06:00
Matt Rogers
a88f2567f7 Merge pull request #3253 from SuriyaaKudoIsc/master 2015-01-03 09:49:51 -06:00
Suriyaa Kudo
d159684f87 Update LICENSE 2015-01-03 11:59:24 +01:00
Matt Rogers
d29dd11ae3 Update history to reflect merge of #3233 [ci skip] 2015-01-02 13:39:01 -06:00
Matt Rogers
8d968ebae0 Merge pull request #3233 from jessepinho/punctuation-fixes 2015-01-02 13:38:58 -06:00
Matt Rogers
86f7196ef5 Update history to reflect merge of #3251 [ci skip] 2015-01-02 13:27:10 -06:00
Matt Rogers
064d6de48d Merge pull request #3251 from nternetinspired/article-semantics 2015-01-02 13:27:07 -06:00
Seth Warburton
21bd3e6c5a [imp] Semantic structure improvements 2015-01-02 12:14:58 +00:00
Jesse Pinho
07bd3a3759 Clarify paragraph on the return value of generate 2015-01-01 23:58:40 -06:00
Parker Moore
e40e12fabd Update history to reflect merge of #3234 [ci skip] 2014-12-29 20:49:25 -05:00
Parker Moore
a098dc80cd Merge pull request #3234 from jekyll/ruby-2-2 2014-12-29 20:49:04 -05:00
Parker Moore
419aaba07c Update history to reflect merge of #3244 [ci skip] 2014-12-29 20:48:31 -05:00
Parker Moore
7cd5847826 Merge pull request #3244 from jekyll/store-messages 2014-12-29 20:48:23 -05:00
Parker Moore
9109da32f9 Update test for the date() Liquid filter. 2014-12-29 20:44:10 -05:00
Parker Moore
7bcf8d689e Always call Time#localtime to translate to TZ'd time. 2014-12-29 20:12:35 -05:00
Parker Moore
f66862c508 Install rake if the lib isn't there; upgrade to cucumber 1.3.18 2014-12-29 18:40:53 -05:00
Parker Moore
cb95a72f5a Update history to reflect merge of #2924 [ci skip] 2014-12-29 18:00:54 -05:00
Parker Moore
9b81f29625 Merge pull request #2924 from nitoyon/unescape-document 2014-12-29 18:00:44 -05:00
nitoyon
5e10958faa Unescape Document output path
Document#destination wasn't unescaped properly.

For example, when we have a document named '_langs/c#.md',
we expect its url to be '/langs/c#.html',
but it was actually '/langs/c%23.html'.

We now unecape URL at Document#destination like Post#destination and
Page#destination.
2014-12-29 22:38:50 +09:00
Parker Moore
7f034f51e3 Improvments to script/stackprof. [ci skip] 2014-12-29 02:16:04 -05:00
Parker Moore
1fc99bdd97 Test LogAdapter#messages 2014-12-29 01:21:01 -05:00
Parker Moore
7fc47bfc43 Initialize @messages at instantiation time. 2014-12-29 01:14:16 -05:00
Parker Moore
b2146e8659 Store log messages in an array of messages. 2014-12-29 01:14:16 -05:00
Parker Moore
e0a011c917 Update history to reflect merge of #3185 [ci skip] 2014-12-29 00:52:47 -05:00
Parker Moore
63ec07a062 Merge pr #3185.
add link to tutorial on building dynamic navbars

Conflicts:
	site/_docs/resources.md
2014-12-29 00:51:47 -05:00
Parker Moore
5f03314d85 Update history to reflect merge of #3186 [ci skip] 2014-12-29 00:50:57 -05:00
Parker Moore
442deb6a7e Merge pull request #3186 from eduardoboucas/master 2014-12-29 00:50:24 -05:00
Parker Moore
d7d7d924f7 Update history to reflect merge of #3189 [ci skip] 2014-12-29 00:50:12 -05:00
Parker Moore
35a5af783a Merge pull request #3189 from robschia/patch-1 2014-12-29 00:49:40 -05:00
Parker Moore
a6781bda30 Always, always rebuild (by default) in tests. 2014-12-29 00:37:16 -05:00
Parker Moore
bab7ef4b1d Use backticks here. [ci skip]. 2014-12-29 00:32:14 -05:00
Parker Moore
6f7ea381b3 Update history to reflect merge of #3047 [ci skip] 2014-12-29 00:31:53 -05:00
Parker Moore
612eb737a5 Merge pull request #3047 from karouf/slugify-non-latin 2014-12-29 00:31:34 -05:00
Parker Moore
004f923644 Revert "Revert "Make permalink parsing consistent with pages"" 2014-12-29 00:30:42 -05:00
Parker Moore
191c2279d2 Update history to reflect merge of #2908 [ci skip] 2014-12-29 00:26:58 -05:00
Parker Moore
e39dfa3f0b Merge pull request #2908 from alfredxing/document-path 2014-12-29 00:26:35 -05:00
Parker Moore
5af7694f3b Update history to reflect merge of #2790 [ci skip] 2014-12-29 00:23:57 -05:00
Parker Moore
6e5850c6ab Merge PR #2790.
Add jekyll-thumbnail-filter to plugins list
2014-12-29 00:22:55 -05:00
Parker Moore
be23e18555 Say 'since 2.0' 2014-12-28 23:54:03 -05:00
Parker Moore
928be16fab Add Ruby 2.2 to Travis build matrix. 2014-12-28 23:40:32 -05:00
Parker Moore
eac3ac095f Update history to reflect merge of #3240 [ci skip] 2014-12-28 23:36:37 -05:00
Parker Moore
aa4beda868 Merge pull request #3240 from jekyll/snake_case 2014-12-28 23:36:08 -05:00
Parker Moore
1fad3a074f Update history to reflect merge of #3241 [ci skip] 2014-12-28 23:35:54 -05:00
Parker Moore
0fe2094dd2 Merge pull request #3241 from jekyll/separate-jekyll-docs 2014-12-28 23:35:36 -05:00
Parker Moore
c576d23908 Use External instead of Deprecator for requiring gracefully 2014-12-28 14:37:49 -05:00
Parker Moore
8c19a6f430 Print an error message in bin/jekyll with no arguments 2014-12-28 14:37:14 -05:00
Parker Moore
ac41312c5d Separate jekyll-docs out into a separate gem & bless it 2014-12-28 14:37:02 -05:00
Parker Moore
232a58d5b4 Fix test use of Site#getConverterImpl. 2014-12-28 14:14:24 -05:00
Parker Moore
0c0aea3ad7 Improve Site#getConverterImpl and call it Site#find_converter_instance 2014-12-28 14:12:09 -05:00
Parker Moore
657b16519e Update history to reflect merge of #3204 [ci skip] 2014-12-26 23:10:21 -05:00
Parker Moore
f81601ee53 Merge pull request #3204 from jekyll/sort-static-files-once 2014-12-26 23:05:04 -05:00
Parker Moore
b6641be8ef Call it site_payload instead of payload. 2014-12-26 22:40:18 -05:00
Parker Moore
a8ec9cd507 Put the development dependencies in the Gemfile directly. 2014-12-26 22:37:56 -05:00
Parker Moore
2f8248a6f1 Only call #site_payload once for all collection work. 2014-12-26 22:24:18 -05:00
Parker Moore
0eb2796a66 Sort static files just once.
Ref: #2075.
2014-12-26 22:23:45 -05:00
Parker Moore
e120c255ff Update history to reflect merge of #3237 [ci skip] 2014-12-26 22:22:36 -05:00
Parker Moore
990a9e6e6d Merge pull request #3237 from jekyll/enable_coderay 2014-12-26 22:22:15 -05:00
Parker Moore
c24c6b7f3d Use 'enable_coderay' in the tests. 2014-12-26 22:17:33 -05:00
Parker Moore
039c521e8c Update the documentation. 2014-12-26 22:17:07 -05:00
Parker Moore
d35af9c1f3 Read 'enable_coderay' in the Kramdown parser 2014-12-26 22:16:57 -05: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
Parker Moore
3957efac15 Update history to reflect merge of #3002 [ci skip] 2014-12-26 22:00:45 -05:00
Parker Moore
38309569c4 Merge pull request #3002 from jekyll/liquid-3 2014-12-26 22:00:33 -05:00
Parker Moore
8bfc696569 liquid-c 0.0.3 2014-12-26 21:53:56 -05:00
Parker Moore
b68dd3a5cb Add liquid c if it's available. 2014-12-26 21:53:56 -05:00
Parker Moore
3940e1e9df Bump to Liquid 3.0 2014-12-26 21:53:56 -05:00
Parker Moore
70a331d854 Set the error mode to :strict 2014-12-26 21:53:56 -05:00
Parker Moore
5bf1596414 Refactor Highlight tag tests to use a helper method to create the tag. 2014-12-26 21:53:56 -05:00
Parker Moore
3234041510 Update history to reflect merge of #3235 [ci skip] 2014-12-26 16:46:57 -05:00
Parker Moore
37631eefac Merge pull request #3235 from jekyll/drop-ruby-1-9 2014-12-26 16:46:38 -05:00
Parker Moore
82b1ad0552 Update history to reflect merge of #3236 [ci skip] 2014-12-26 16:35:56 -05:00
Parker Moore
2c2347fac1 Merge pull request #3236 from tkrotoff/remove-end-tag 2014-12-26 16:35:33 -05:00
Tanguy Krotoff
0aa61f66a8 Remove unneeded end tag 2014-12-26 12:10:03 +01:00
Jesse Pinho
b1a517ccb6 Remove unnecessary 'where' 2014-12-25 18:29:50 -06:00
Jesse Pinho
4070143d5b Tweak sentence structure 2014-12-25 15:17:21 -06:00
Parker Moore
6e4e290ab0 Requires >= 2.0.0 2014-12-25 16:11:14 -05:00
Parker Moore
d6995d347a Drop support for Ruby 1.9.3. 2014-12-25 16:00:59 -05:00
Jesse Pinho
52085d2e34 Fix a few punctuation errors 2014-12-24 17:01:51 -06:00
Parker Moore
f3a274377a Update history to reflect merge of #3229 [ci skip] 2014-12-23 16:49:43 -05:00
Parker Moore
0fcba080c3 Merge pull request #3229 from megalomono/master 2014-12-23 16:49:25 -05:00
Fonso
922ba5d0ea Fixing the default host on docs 2014-12-23 13:26:08 +01:00
Parker Moore
cb2eea0e41 Release 💎 2.5.3 2014-12-22 09:16:40 -05:00
Parker Moore
8284714d8a Release 💎 2.5.3 2014-12-22 09:15:57 -05:00
Parker Moore
aaf6f28fde Update history to reflect merge of #3116 [ci skip] 2014-12-22 08:58:29 -05:00
Parker Moore
7227ad4ebb Merge pull request #3116 from alfredxing/incremental 2014-12-22 08:57:50 -05:00
Parker Moore
c3e47437a3 Update history to reflect merge of #3222 [ci skip] 2014-12-20 10:45:15 -08:00
Parker Moore
76301722e9 Merge pull request #3222 from jasonbellamy/jekyll-mermaid-plugin 2014-12-20 10:44:47 -08:00
Jason Bellamy
d05df326b9 Add jekyll-mermaid to the list of plugins. 2014-12-19 22:55:40 -05:00
Parker Moore
dc12bd3023 Update history to reflect merge of #3218 [ci skip] 2014-12-18 23:03:27 -08:00
Parker Moore
878c689f76 Merge pull request #3218 from jekyll/alfredxing 2014-12-18 23:02:48 -08:00
Parker Moore
68a7ebf2ee Add @alfredxing to the @jekyll/core team. 2014-12-18 23:01:16 -08:00
Parker Moore
63ed335463 Update history to reflect merge of #3212 [ci skip] 2014-12-17 19:00:57 -08:00
Parker Moore
fe14434f8d Merge pull request #3212 from bdesham/add-inline-highlight-plugin 2014-12-17 18:59:22 -08:00
Benjamin Esham
a069ad77c0 Add link to inline_highlight plugin 2014-12-14 15:36:59 -05:00
Parker Moore
5343fc3b54 Update history to reflect merge of #3196 [ci skip] 2014-12-09 18:10:02 -08:00
Parker Moore
2dad0d3304 Merge pull request #3196 from jekyll/site-troubleshooting-updates 2014-12-09 18:09:16 -08:00
Joel Glovier
f789168522 use rake instructions instead 2014-12-09 20:45:01 -05:00
Parker Moore
7656b9d295 Update history to reflect merge of #3198 [ci skip] 2014-12-09 10:55:08 -08:00
Parker Moore
176dc3cef7 Merge pull request #3198 from mehdisadeghi/master 2014-12-09 10:54:19 -08:00
Parker Moore
360412364e Update history to reflect merge of #3158 [ci skip] 2014-12-09 10:51:11 -08:00
Parker Moore
49115dbdab Merge pull request #3158 from afeld/as-liquid-refactor 2014-12-09 10:50:42 -08:00
Aidan Feldman
383a0d0aa7 modify as_liquid to use case statement 2014-12-09 07:42:14 -05:00
Mehdi Sadeghi
b735170ceb Jekyll-jalali plugin added to the plugins list. 2014-12-09 12:44:50 +01:00
robschia
59acdaab9a Fixed itemprop="author name"
You are right, I tried to oversimplify it. Also, {{ page.date | %Y-%m-%d }} doesn't output what I expected. I think it's fixed now, I tried the code with a couple of validators and everything seems fine.
2014-12-08 19:46:49 +01:00
Joel Glovier
12651c19e5 further clarify local dev steps 2014-12-08 10:15:25 -05:00
Joel Glovier
1694f8609c update site dir readme
Add some helpful info to the readme.
2014-12-08 10:08:54 -05:00
Joel Glovier
e80469b7b0 add in page nav to troubleshooting file 2014-12-08 10:08:13 -05:00
Parker Moore
032139bd2f Ensure only one converter is found for .Rmd in the tests. Ref: #3147. 2014-12-07 16:08:16 -08:00
Parker Moore
6deed4c66b Update history to reflect merge of #3180 [ci skip] 2014-12-07 15:38:45 -08:00
Parker Moore
253bcc2faf Merge pull request #3180 from jekyll/fix-coverage-reporting 2014-12-07 15:38:03 -08:00
Alfred Xing
43a28aed96 Fix indentation 2014-12-05 19:38:43 -08:00
Alfred Xing
5d9662f80f Always regenerate asset files 2014-12-05 19:07:18 -08:00
robschia
ed9cc80ff9 Update post.html 2014-12-06 00:49:04 +01:00
robschia
9b6eeba81e Added basic microdata 2014-12-06 00:32:05 +01:00
Eduardo Boucas
40e4c031e3 Add site to Resources page 2014-12-05 12:36:34 +00:00
Jordan Thornquest
f80dc07f82 add link to tutorial on building dynamic navbars 2014-12-04 21:54:02 -07:00
Alfred Xing
52f0b36558 Add incremental rebuild info to build command output 2014-12-04 20:09:49 -08:00
Matt Rogers
f8af94431d Fix coverage reporting for built-in bundles 2014-12-02 20:50:39 -06:00
Parker Moore
89bdd47ebc Update history to reflect merge of #3176 [ci skip] 2014-12-02 14:23:45 -08:00
Parker Moore
2c85f4ef24 Merge pull request #3176 from rud/bugfix/site-feed-is-rss 2014-12-02 14:23:02 -08:00
Laust Rud Jacobsen
c8fc567c8d Site /feed.xml is RSS 2.0, fix auto-discovery header
Refs #2996
2014-12-02 22:40:22 +01:00
Parker Moore
460dd81fe1 Update history to reflect merge of #3177 [ci skip] 2014-12-01 14:41:42 -08:00
Parker Moore
7c8c41f0d7 Merge pull request #3177 from rpherbig/master 2014-12-01 14:41:14 -08:00
Robert Herbig
3b57879e71 Simplified platform detection for Windows 2014-12-01 05:40:07 -06:00
Parker Moore
19527b47ab Update history to reflect merge of #3170 [ci skip] 2014-11-30 15:17:43 -08:00
Parker Moore
8298733e67 Merge pull request #3170 from tkrotoff/fix-viewport 2014-11-30 15:16:51 -08:00
Tanguy Krotoff
64b0102686 Fix viewport meta tag 2014-11-29 12:30:43 +01:00
Parker Moore
bfab00a65a Update history to reflect merge of #3163 [ci skip] 2014-11-28 21:38:49 -08:00
Parker Moore
fea79dcbab Merge pull request #3163 from lkorth/patch-1 2014-11-28 21:38:27 -08:00
Parker Moore
b4bc3b0aa0 Update history to reflect merge of #3161 [ci skip] 2014-11-28 21:38:15 -08:00
Parker Moore
ac7f592839 Merge pull request #3161 from dnozay/patch-3 2014-11-28 21:32:23 -08:00
Parker Moore
4ccf9ea683 Update history to reflect merge of #3162 [ci skip] 2014-11-28 21:27:32 -08:00
Parker Moore
7de9433fbc Merge pull request #3162 from dnozay/patch-4 2014-11-28 21:27:07 -08:00
Parker Moore
9c8acdd3ea Update history to reflect merge of #3165 [ci skip] 2014-11-28 21:22:58 -08:00
Parker Moore
e9904fd44b Merge pull request #3165 from fabschurt/fix-doc-typos 2014-11-28 21:22:32 -08:00
Damien Nozay
ba9a309572 Update configuration.md
`keep_files` is a very useful option when using tools such as `grunt-build-control`, `grunt`, `gulp` or `yeoman`.
2014-11-28 21:09:08 -08:00
Alfred Xing
d0e12d69bc Last few revisions 2014-11-28 14:05:40 -08:00
Fabien Schurter
75cf2d73f6 Fix erroneous 'next_section' value
According to /site/_data/docs.yml, the document next to
'deployment-methods' is 'continuous-integration', not 'troubleshooting'
(the 'prev_section' value in 'troubleshooting' is correctly set to
'deployment-methods' though).
2014-11-28 04:26:22 +01:00
Fabien Schurter
974fab6c9c Fix a typo
Replaced "capaibilities" with correct spelling: "capabilities".
2014-11-28 04:14:26 +01:00
Luke Korth
2a37f459d4 Add jekyll-500px-embed to tag plugins 2014-11-27 16:35:23 -08:00
Damien Nozay
5a554572e3 Update configuration.md
repeat warning about `destination` that is found in <http://jekyllrb.com/docs/usage/>
(see also pull request #3159)
2014-11-27 15:11:28 -08:00
Alfred Xing
a701e59c07 Add lots more unit tests 2014-11-27 10:40:31 -08:00
Alfred Xing
b6d81c58df Perform less expensive operation first 2014-11-27 10:00:29 -08:00
Aidan Feldman
4776b27ff3 reduce nesting of #as_liquid 2014-11-27 04:20:05 -06:00
Aidan Feldman
87d08ec827 refactor #as_liquid 2014-11-27 04:16:29 -06:00
Aidan Feldman
229303bbc8 compare resulting data in jsonify test 2014-11-27 04:01:31 -06:00
Parker Moore
8603738a89 Update history to reflect merge of #3154 [ci skip] 2014-11-27 01:14:35 -08:00
Parker Moore
932cd3b575 Merge pull request #3154 from afeld/jsonify-bool 2014-11-27 01:14:04 -08:00
Alfred Xing
02f281eef3 Add unit and cucumber tests 2014-11-26 21:15:53 -08:00
Alfred Xing
8a257aca6b Implement more suggestions 2014-11-26 20:15:42 -08:00
Parker Moore
588f21f5cd Compress SCSS when pushing to jekyllrb.com.
Fixes #3153.
Rel: #3145.
Since d26202936e.
2014-11-26 11:32:09 -08:00
Aidan Feldman
0662d31bf6 fix jsonify filter when used with boolean values 2014-11-26 02:40:41 -06:00
Matt Rogers
a6f8b6c7d6 Update history to reflect merge of #3149 [ci skip] 2014-11-25 12:34:38 -06:00
Matt Rogers
e51f94a038 Merge pull request #3149 from jekyll/document-build-serve-quiet-option 2014-11-25 12:34:34 -06:00
Parker Moore
1aa5c7a820 Update history to reflect merge of #3147 [ci skip] 2014-11-25 10:21:03 -08:00
Parker Moore
37af23b5d7 Merge pull request #3147 from blbradley/markdown-file-ext-regexp 2014-11-25 10:20:27 -08:00
Matt Rogers
df87a51ade Expand the description for the -q option. 2014-11-25 08:40:37 -06:00
Ruslan Korolev
2a138e4ca9 jekyll build/serve -q option to docs 2014-11-25 08:21:08 -06:00
Brandon Bradley
e546eb3e9f force markdown regexp to match the full extension 2014-11-24 20:08:31 -06:00
Brandon Bradley
d250efccb9 add test for broken markdown regexp 2014-11-24 19:56:26 -06:00
Alfred Xing
dc30114605 Use site.in_source_dir 2014-11-23 16:16:19 -08:00
Alfred Xing
2a5cf11ee2 Add --no-metadata option 2014-11-23 15:38:00 -08:00
Parker Moore
e23a74aad9 Release 💎 2.5.2 2014-11-23 15:02:08 -08:00
Parker Moore
5b77d02e3b Merge pull request #3141 from jekyll/bundle-require-is-borking-pygments
Fix Bundler-integration Plugin Manager
2014-11-23 14:18:06 -08:00
Parker Moore
c2b24e82e5 Refactor the case statement in highlighter for better readability. [ci skip] 2014-11-23 14:17:21 -08:00
Parker Moore
10030ae8cd Put that Bundle.require statement back. 2014-11-23 14:13:47 -08:00
Alfred Xing
75c5c16297 Handle path overrides 2014-11-23 14:06:29 -08:00
Parker Moore
ef53e677a4 Better tests for plugin manager. 2014-11-23 13:14:51 -08:00
Parker Moore
03d9396b85 Capture the output of Jekyll::Commands::New when looking for an error. 2014-11-23 12:53:36 -08:00
Alfred Xing
4acf343fea Add clean command 2014-11-23 12:51:19 -08:00
Parker Moore
665178d210 Merge pull request #3117 from jekyll/release-2-5-2 2014-11-23 12:39:58 -08:00
Parker Moore
b1bba1945a Prepare for a v2.5.2 release. 2014-11-22 15:37:07 -08:00
Parker Moore
8ed6c7b077 Update history to reflect merge of #3119 [ci skip] 2014-11-22 14:27:06 -08:00
Parker Moore
9a94829bcb Merge pull request #3119 from jekyll/fix-bundle-require 2014-11-22 14:25:07 -08:00
Parker Moore
d17b80bf2a Keep track of the required gems. 2014-11-22 12:38:36 -08:00
Alfred Xing
ac03af3229 Implement @mattr-'s suggestions 2014-11-21 22:12:21 -08:00
Alfred Xing
fe6bfc6f1b Fix failing tests 2014-11-21 22:12:21 -08:00
Alfred Xing
d438362971 Add regenerate front-matter variable 2014-11-21 22:12:21 -08:00
Alfred Xing
842470b0c4 Refinements 2014-11-21 22:12:21 -08:00
Alfred Xing
11917645f2 Incremental regeneration 2014-11-21 22:12:20 -08:00
Parker Moore
cb8a4b4d62 Update history to reflect merge of #3136 [ci skip] 2014-11-21 10:09:54 -08:00
Parker Moore
a75ed0b33d Merge pull request #3136 from knorthfield/patch-1 2014-11-21 10:09:10 -08:00
Kris Northfield
58511822e6 Add remote-include plugin to list 2014-11-21 17:37:54 +00:00
Parker Moore
876253edce Add Slack build notifications. 2014-11-20 20:50:47 -08:00
David Williamson
d7e3d4df8f Add support for collections documents to have YAML front matter ending in dots. 2014-11-20 14:38:17 -06:00
Parker Moore
0f669ba9b1 Update history to reflect merge of #3132 [ci skip] 2014-11-20 12:37:27 -08:00
Parker Moore
a9a21e6572 Merge pull request #3132 from XhmikosR/gridism 2014-11-20 12:37:06 -08:00
Parker Moore
3b05b0d867 Update history to reflect merge of #3133 [ci skip] 2014-11-20 12:36:33 -08:00
Parker Moore
b16d47a444 Merge pull request #3133 from XhmikosR/patch-11 2014-11-20 12:36:08 -08:00
XhmikosR
d2d3087d3b Slightly compress jekyll-sticker.jpg. 2014-11-20 22:18:02 +02:00
XhmikosR
b9a4cf0485 Update gridism. 2014-11-20 22:11:50 +02:00
Parker Moore
848e402937 Update history to reflect merge of #2904 [ci skip] 2014-11-20 10:36:10 -08:00
Parker Moore
c0951b0a19 Merge pull request #2904 from XhmikosR/mixins 2014-11-20 10:35:27 -08:00
Parker Moore
3592284969 Update history to reflect merge of #3127 [ci skip] 2014-11-18 12:50:28 -08:00
Parker Moore
0f458edf2b Merge pull request #3127 from aarongustafson/master 2014-11-18 12:50:07 -08:00
Aaron Gustafson
1adf8974bf Adding Webmentions in the right place this time :-) 2014-11-18 15:06:24 -05:00
XhmikosR
da443039e1 Move custom code from _font-awesome.scss to _style.scss.
Also change the order of includes so that _style.scss is last for precedence reasons.
2014-11-18 08:15:53 +02:00
XhmikosR
4aee950418 Add Sass mixins and use them.
Reduces code duplication and makes things cleaner.
2014-11-18 08:15:53 +02:00
Parker Moore
9e454d24a0 Update history to reflect merge of #3123 [ci skip] 2014-11-17 13:06:29 -08:00
Parker Moore
5185c8d72b Merge pull request #3123 from jekyll/site-sass-improvements 2014-11-17 13:05:57 -08:00
Joel Glovier
6f9d28f398 use sass selector nesting in pygments 2014-11-17 14:55:32 -05:00
Joel Glovier
2195e5e469 use sass selector nesting for styles 2014-11-17 14:48:34 -05:00
Parker Moore
60202782ea Only try bundler if the Gemfile is there. 2014-11-16 21:21:50 -08:00
Parker Moore
32b14d6402 First, setup Bundler. Then, require it.
Per a conversation in
https://github.com/bundler/bundler/issues/3252#issuecomment-63208769
2014-11-16 21:18:23 -08:00
Parker Moore
22275e571d Add note about page vs post. [ci skip]
Closes #3056.
2014-11-16 20:40:23 -08:00
Parker Moore
4142630614 Use the text lexer instead of the non-existant CSV one. [ci skip]
Ref #3101.
2014-11-16 20:29:17 -08:00
Parker Moore
3d8368fa4f Update history to reflect merge of #3058 [ci skip] 2014-11-16 20:21:09 -08:00
Parker Moore
687b9cdf19 Merge pull request #3058 from alfredxing/fix-post-url-equality 2014-11-16 20:19:37 -08:00
Parker Moore
ecca3accdc Update history to reflect merge of #3094 [ci skip] 2014-11-16 20:17:27 -08:00
Parker Moore
5aa747e99a Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Get rid of noifniof
2014-11-16 20:16:48 -08:00
Parker Moore
b5a32a6d46 Merge pull request #3094 from alfredxing/no-noifniof 2014-11-16 20:16:45 -08:00
Parker Moore
426f2a79fc Update history to reflect merge of #3091 [ci skip] 2014-11-16 20:15:13 -08:00
Parker Moore
d9cdc7992a Merge pull request #3091 from rovrov/master 2014-11-16 20:14:50 -08:00
Matt Rogers
829133cf98 Update history to reflect merge of #3101 [ci skip] 2014-11-13 21:34:48 -06:00
Matt Rogers
27362a1984 Merge pull request #3101 from ndarville/patch-1 2014-11-13 21:34:31 -06:00
Niclas Darville
3014fbd344 Added CSV example for data-file docs 2014-11-13 16:04:28 +01:00
Niclas Darville
596b9e0785 Mentioned CSV extension in docs for data files
Since CSV files are supported as collections.
2014-11-13 10:30:00 +01:00
Parker Moore
39c9fb120f Update history to reflect merge of #3089 [ci skip] 2014-11-12 18:47:03 -08:00
Parker Moore
314fb875b5 Merge pull request #3089 from jekyll/remove-duplication-in-regexp 2014-11-12 18:46:44 -08:00
Parker Moore
3b40d964fb Update history to reflect merge of #3093 [ci skip] 2014-11-11 18:22:37 -08:00
Parker Moore
a48379a715 Merge pull request #3093 from shinnn/ga 2014-11-11 18:22:14 -08:00
Alfred Xing
d4c15efff9 Cache name matching regex 2014-11-11 17:35:09 -08:00
Alfred Xing
2a41945014 Get rid of noifniof 2014-11-11 15:14:24 -08:00
Shinnosuke Watanabe
dc248345a9 Change variables of Google Analytics script
`i` `s` `o` `g` `r` `a` `m` -> `j` `e` `k` `y` `l` `L`

Generated by isogram
https://github.com/shinnn/isogram
2014-11-11 18:42:54 +09:00
rovrov
b6f3adb6e3 Add trailing slash to paginate_path example.
https://github.com/jekyll/jekyll-paginate/issues/15#issuecomment-62322554
2014-11-10 16:02:52 -05:00
Parker Moore
472c18e409 Update history to reflect merge of #3090 [ci skip] 2014-11-10 12:02:26 -08:00
Parker Moore
e42f5ac2dc Merge pull request #3090 from alfredxing/fix-error-output 2014-11-10 12:01:46 -08:00
Alfred Xing
06750b8502 Print error message in renderer 2014-11-10 11:45:56 -08:00
Parker Moore
bd907c5be6 Remove duplicate regexp phrase: ^\A.
Addresses @mastahyeti's comment in #3077: https://github.com/jekyll/jekyll/pull/3077#discussion_r20077150
2014-11-10 11:36:05 -08:00
Parker Moore
c79fe1125c Update history to reflect merge of #3088 [ci skip] 2014-11-10 10:51:01 -08:00
Parker Moore
20f0940455 Merge pull request #3088 from alfredxing/fix-error-output 2014-11-10 10:50:32 -08:00
Alfred Xing
84cef2202d Remove duplicate 'Conversion error:' message 2014-11-10 09:12:51 -08:00
Alfred Xing
eaa132c65b Fall back to old method with deprecation warning 2014-11-09 11:55:47 -08:00
Parker Moore
2d31d07602 Update site history page with v2.5.1 2014-11-09 10:39:18 -08:00
Parker Moore
d99814baa5 v2.5.1 was released on Nov 9, not Nov 8. 2014-11-09 09:48:21 -08:00
Parker Moore
ab05a2cd4f Release 💎 2.5.1 2014-11-09 09:45:05 -08:00
Parker Moore
db8163b6e8 Merge pull request #3080 from jekyll/release-2-5-1
Release v2.5.1
2014-11-09 09:42:31 -08:00
Parker Moore
22d11bef2d Prepare a 💎 v2.5.1 release. 2014-11-08 22:29:47 -08:00
Parker Moore
70159ac8cb Use paginator.(next|previous)_page_path instead of just the number.
Closes #3074
2014-11-08 22:25:05 -08:00
Parker Moore
5eb300043f Update history to reflect merge of #3077 [ci skip] 2014-11-08 22:10:03 -08:00
Parker Moore
95b62e564b Merge pull request #3077 from jekyll/fix-windows-path-sanitation 2014-11-08 22:07:52 -08:00
Parker Moore
ad745702ca New title for new times. 2014-11-08 22:05:02 -08:00
Parker Moore
4b0089712e Add the contributors to the v2.5.0 release post.
I'm such a doofus for forgetting!!!!
2014-11-08 22:03:54 -08:00
Parker Moore
264caac94c Update history to reflect merge of #3075 [ci skip] 2014-11-08 21:15:13 -08:00
Parker Moore
58180b1ac1 Merge pull request #3075 from joshk/patch-1 2014-11-08 21:14:46 -08:00
Parker Moore
067f8b6be7 Strip the drive name from both paths when checking the prefix. 2014-11-08 13:10:28 -08:00
Parker Moore
4df73ced0d Add benchmark for Jekyll.sanitized_path 2014-11-08 12:54:02 -08:00
Josh Kalderimis
c7603f3ebf use built in travis caching
also run bundle update to make sure the cache is not too old
2014-11-08 16:12:03 +13:00
Parker Moore
ae7f10b922 Something about a Travis Beta Build that @joshk mentioned 2014-11-06 18:17:28 -08:00
Parker Moore
023e4e6ceb Update history to reflect merge of #3064 [ci skip] 2014-11-06 13:19:00 -08:00
Parker Moore
742893410c Merge pull request #3064 from ribbons/cygwin-env 2014-11-06 13:18:38 -08:00
Parker Moore
c1aba46a1e Release 💎 2.5.0 2014-11-06 12:59:52 -08:00
Parker Moore
23712cf4dc Update site with 2 new v2.5.0 PR's. 2014-11-06 12:07:21 -08:00
Parker Moore
21de59a90e Update history to reflect merge of #3067 [ci skip] 2014-11-06 12:05:28 -08:00
Parker Moore
e11fb4d427 Merge pull request #3067 from jekyll/specify-log-level 2014-11-06 12:05:07 -08:00
Parker Moore
328fbd83d4 Update history to reflect merge of #3066 [ci skip] 2014-11-06 12:04:31 -08:00
Parker Moore
ffe7860625 Merge pull request #3066 from jekyll/catch-no-gemfile 2014-11-06 12:03:35 -08:00
Parker Moore
5b54f78875 Allow users to specify the log level via JEKYLL_LOG_LEVEL. 2014-11-06 12:03:07 -08:00
Parker Moore
989c70fe4a In the case that a Gemfile does not exist, ensure Jekyll doesn't fail. 2014-11-06 10:48:09 -08:00
Parker Moore
2f4448eab6 Merge pull request #3062 from jekyll/release-2-5-0
Release v2.5.0
2014-11-06 10:35:51 -08:00
Matt Robinson
90bdcaddb7 Add development dependencies for Cygwin
In the Cygwin environment, minitest and test-unit aren't bundled with
Ruby.  Add these as explicit development dependencies when running under
Cygwin.
2014-11-06 09:28:52 +00:00
Parker Moore
a0afa19e9a Release 💎 v2.5.0 2014-11-05 22:07:23 -08:00
Parker Moore
7918dad26f Update history to reflect merge of #2865 [ci skip] 2014-11-05 22:03:06 -08:00
Parker Moore
13bb7360c0 Merge pull request #2865 from jekyll/some-kind-of-bundler-thingy 2014-11-05 22:01:37 -08:00
Parker Moore
5d23760280 Documentation for Bundler group. 2014-11-05 21:53:48 -08:00
Parker Moore
5a350788e7 Test JEKYLL_NO_BUNDLER_REQUIRE. 2014-11-05 21:04:34 -08:00
Parker Moore
e543fedf3f Update history to reflect merge of #3065 [ci skip] 2014-11-05 20:49:27 -08:00
Parker Moore
b02a5ba76a Merge pull request #3065 from cllns/master 2014-11-05 20:49:05 -08:00
Sean Collins
5a288e7de4 Add 'b' and 's' aliases for build and serve, respectively 2014-11-05 23:13:08 -05:00
Parker Moore
8ee1b2a1fd Finish up the plugin manager
And so it shall be.
2014-11-05 19:29:54 -08:00
Parker Moore
b0a7f9c8c9 Require plugins from Gemfile :jekyll_plugins group. 2014-11-05 18:50:38 -08:00
Parker Moore
519b60d012 Fix 2 syntax errors. 2014-11-05 18:39:54 -08:00
Parker Moore
0ad2c338c4 Reorganize tests for plugins. 2014-11-05 18:39:54 -08:00
Parker Moore
34de676713 Require gems in :jekyll_plugins group in a Gemfile in unsafe mode.
Replaces #1658. /cc @imathis
2014-11-05 18:39:54 -08:00
Parker Moore
01b11d098e Update history to reflect merge of #3063 [ci skip] 2014-11-05 18:38:27 -08:00
Parker Moore
1b68a29f29 Merge pull request #3063 from jekyll/jsonify-on-hashes 2014-11-05 18:37:26 -08:00
Parker Moore
18930b01f6 Fix up the assertions. 2014-11-05 11:39:15 -08:00
Parker Moore
b29fd6d380 Add tests.
Need to fix up the assertions to match the output.
2014-11-05 11:37:51 -08:00
Parker Moore
9a15a09028 Add {{ | jsonify }} support for hashes. 2014-11-05 11:37:34 -08:00
Parker Moore
774c65a869 Add a rake site:generate command and use Ruby instead of a subprocess. 2014-11-05 11:13:04 -08:00
Parker Moore
a822219086 Update history to reflect merge of #2882 [ci skip] 2014-11-05 10:22:28 -08:00
Parker Moore
2ec1dc1831 Merge pull request #2882 from jekyll/security/centralize-path-sanitation 2014-11-05 10:21:57 -08:00
Alfred Xing
50d0fc3c85 Match post.name instead of slugs and dates 2014-11-04 16:13:04 -08:00
Parker Moore
90cddade53 Commit the paths one by one to Jekyll.sanitized_path with the proper initial base.
Prevents errors like these:

[39/78] TestPost#test_: A Post processing posts should not be writable outside of destination. /Users/parker/jekyll/jekyll/test/dest
/Users/parker/jekyll/jekyll/test/dest/Users/parker/jekyll/baddie.html
 = 0.01 s
  1) Failure:
TestPost#test_: A Post processing posts should not be writable outside of destination.  [/Users/parker/jekyll/jekyll/test/test_post.rb:152]:
Failed assertion, no message given.
2014-11-03 22:27:55 -08:00
Parker Moore
2ee8d690c4 More conversion of Jekyll.sanitized_path ~> site.in_(source|dest)_dir 2014-11-03 22:16:48 -08:00
Parker Moore
ca40c771d0 Only allow CWD _layouts outside of safe mode. 2014-11-03 22:16:48 -08:00
Parker Moore
0c6137b2d3 Fix site tests. 2014-11-03 22:16:48 -08:00
Parker Moore
4bccbdead4 If no overrides are passed in, just default to a Hash. 2014-11-03 22:16:48 -08:00
Parker Moore
8d02c5cd94 Allow override of destination in site_configuration in tests 2014-11-03 22:16:48 -08:00
Parker Moore
68e9c84a18 Flatten paths sent into #in_dest_dir 2014-11-03 22:16:48 -08:00
Parker Moore
f7b1782294 Fix post.rb permalink stuff in light of merge of #2925. 2014-11-03 22:16:48 -08:00
Parker Moore
2690c045ec Fix the tests so they are *PERFECT*. 2014-11-03 22:16:48 -08:00
Parker Moore
656e772388 Cache the related posts most_recent_posts
/cc @mattr- is this safe to do, you think? it only happens at render
time...
2014-11-03 22:16:47 -08:00
Parker Moore
817f6cb658 Fix problem where entries weren't stripped of their trailing slashes. 2014-11-03 22:16:47 -08:00
Parker Moore
179b5ab193 Use site.in_source_dir as @mastahyeti suggested 2014-11-03 22:16:47 -08:00
Parker Moore
b4a2788626 Just swallow it if there is no content for the excerpt to parse. 2014-11-03 22:16:47 -08:00
Parker Moore
3762878381 Correctly access the StaticFile's site variable. 2014-11-03 22:16:47 -08:00
Parker Moore
9cbc24fce5 More safety. 🔒 2014-11-03 22:16:47 -08:00
Parker Moore
4078bde3ba More passing tests. 2014-11-03 22:15:41 -08:00
Parker Moore
3b634134a0 Another test passing. 😄 2014-11-03 22:15:41 -08:00
Parker Moore
461e16f8bc More tests are passing. Hooray. 2014-11-03 22:15:40 -08:00
Parker Moore
0bc88975c8 More removal of File.join 2014-11-03 22:15:40 -08:00
Parker Moore
98182aab4a Use site.in_source_dir in Collection. 2014-11-03 22:15:40 -08:00
Parker Moore
3a3be7e5a7 Add Site#in_dest_dir 2014-11-03 22:15:40 -08:00
Parker Moore
7e1cc4b684 Add Site#in_source_dir 2014-11-03 22:15:40 -08:00
Parker Moore
0f2a3a606b Append the site to Jekyll.sites upon creation 2014-11-03 22:15:40 -08:00
Parker Moore
314dce62cf Make Site.source and Site.dest "immutable" 2014-11-03 22:15:40 -08:00
Parker Moore
bd72265e74 Reformat the Jekyll module's static methods. 2014-11-03 22:15:40 -08:00
Parker Moore
ab8441259e Update history to reflect merge of #3053 [ci skip] 2014-11-03 12:10:18 -08:00
Parker Moore
ccd1941378 Merge pull request #3053 from alfredxing/fix-serve-host 2014-11-03 12:09:34 -08:00
Parker Moore
4272537f69 Update history to reflect merge of #3052 [ci skip] 2014-11-03 12:01:02 -08:00
Parker Moore
23f4c5804c Merge pull request #3052 from vlajos/typofixes20141102 2014-11-03 12:00:02 -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
Veres Lajos
e1f7139b9c typo fixes 2014-11-02 23:00:09 +00:00
Renaud Martinet
f9e249ae20 Generalize Utils#slugify for any scripts
It replaces any non alphanumeric glyphs by an hyphen.
2014-10-31 15:56:03 +01:00
Parker Moore
81f4abdbcd Update history to reflect merge of #3040 [ci skip] 2014-10-30 09:37:24 -07:00
Parker Moore
9a82b474aa Merge pull request #3040 from mitaa/master 2014-10-30 09:35:47 -07:00
mitaa
57ca3a04d5 Update continuous-integration.md
Fix miswording
2014-10-30 10:05:19 +01:00
Parker Moore
257f852b96 Update history to reflect merge of #3031 [ci skip] 2014-10-29 15:13:51 -07:00
Parker Moore
8dcf7a6680 Merge pull request #3031 from alfredxing/frontmatter-permalinks 2014-10-29 15:13:12 -07:00
Alfred Xing
02e53fb6ff Implement @parkr's suggestions 2014-10-27 22:59:15 -07:00
Parker Moore
485f7634bd Update history to reflect merge of #3032 [ci skip] 2014-10-27 17:40:30 -07:00
Parker Moore
0fc256dbef Merge pull request #3032 from jekyll/jsonify-deeply 2014-10-27 17:40:05 -07:00
Parker Moore
3fb1356593 The jsonify filter should deep-convert to Liquid when given an Array.
Fixes https://github.com/github/choosealicense.com/issues/225
2014-10-27 15:58:42 -07:00
Alfred Xing
cd9d38c5ea Remove duplicate code 2014-10-26 21:38:19 -07:00
Alfred Xing
0fe1d0686a Allow placeholders in permalinks 2014-10-26 18:23:58 -07:00
Parker Moore
4e8ebd999a Update history to reflect merge of #3022 [ci skip] 2014-10-24 11:35:22 -07:00
Parker Moore
578f38748d Merge pull request #3022 from jekyll/perf 2014-10-24 11:34:41 -07:00
Parker Moore
ae01b1d5df 😦 2014-10-22 02:16:50 -07:00
Parker Moore
5cb0aee251 Have to go back on all these... 2014-10-22 02:10:21 -07:00
Parker Moore
2eb318a929 Replace costly Hash#fetch with arity=2 with arity=1 + block. 2014-10-22 01:43:46 -07:00
Parker Moore
ab3f27e674 Add benchmark for sequential assignment.
Calculating -------------------------------------
 parallel assignment    126425 i/100ms
multi-line assignment
                        136492 i/100ms
-------------------------------------------------
 parallel assignment  6382145.2 (±10.1%) i/s -   31606250 in   5.006184s
multi-line assignment
                      9281041.8 (±11.7%) i/s -   45724820 in   5.001599s
2014-10-22 01:40:55 -07:00
Parker Moore
e028d50b3f Add benchmark around string replacement.
Calculating -------------------------------------
                 #tr     62416 i/100ms
               #gsub     33750 i/100ms
              #gsub!     29695 i/100ms
                #sub     60774 i/100ms
               #sub!     64955 i/100ms
-------------------------------------------------
                 #tr   989348.8 (±5.0%) i/s -    4993280 in   5.060836s
               #gsub   422892.9 (±4.3%) i/s -    2126250 in   5.037741s
              #gsub!   364115.6 (±4.0%) i/s -    1841090 in   5.064496s
                #sub   964336.6 (±4.4%) i/s -    4861920 in   5.051775s
               #sub!  1016598.5 (±4.7%) i/s -    5131445 in   5.058987s
2014-10-22 01:36:43 -07:00
Parker Moore
a30498ba42 Add benchmark for #flat_map
Calculating -------------------------------------
.map.flatten with nested arrays
                          4718 i/100ms
.flat_map with nested arrays
                          6048 i/100ms
.map.flatten with no nested arrays
                          9804 i/100ms
.flat_map with no nested arrays
                          9302 i/100ms
-------------------------------------------------
.map.flatten with nested arrays
                        48118.3 (±4.8%) i/s -     240618 in   5.011942s
.flat_map with nested arrays
                        63838.6 (±5.1%) i/s -     320544 in   5.034864s
.map.flatten with no nested arrays
                       104879.3 (±4.4%) i/s -     529416 in   5.057802s
.flat_map with no nested arrays
                        99935.3 (±6.6%) i/s -     502308 in   5.049506s
2014-10-22 01:27:45 -07:00
Parker Moore
7c05312d5c Add benchmark for yield vs proc.call
Calculating -------------------------------------
               yield     70018 i/100ms
          block.call     42809 i/100ms
-------------------------------------------------
               yield  1099624.2 (±7.3%) i/s -    5531422 in   5.056107s
          block.call   604006.1 (±7.1%) i/s -    3039439 in   5.058794s
2014-10-22 01:18:09 -07:00
Parker Moore
7e37892bbd Add a benchmark for symbol-to-proc
Calculating -------------------------------------
               block      5403 i/100ms
              &:to_s      6094 i/100ms
-------------------------------------------------
               block    60023.4 (±5.3%) i/s -     302568 in   5.055537s
              &:to_s    59047.0 (±4.9%) i/s -     298606 in   5.068991s
2014-10-22 01:17:22 -07:00
Parker Moore
4e07dfef1f Add benchmark for hash-fetch
Calculating -------------------------------------
 fetch with no block     66979 i/100ms
  fetch with a block    138257 i/100ms
 brackets with an ||    145792 i/100ms
-------------------------------------------------
 fetch with no block  1255521.2 (±5.2%) i/s -    6296026 in   5.028856s
  fetch with a block  6402972.5 (±8.1%) i/s -   31799110 in   5.002554s
 brackets with an ||  8536511.4 (±8.1%) i/s -   42425472 in   5.005831s
2014-10-22 01:11:34 -07:00
Parker Moore
0511ece2f5 Use String#<< instead of String#+=
I just couldn’t believe this but look:

~/jekyll/jekyll#master$ ruby benchmark/string-concat
Calculating -------------------------------------
                  +=      6367 i/100ms
                  <<    128697 i/100ms
-------------------------------------------------
                  +=     1704.3 (±0.6%) i/s -      12734 in   7.472170s
                  <<  4381212.4 (±6.3%) i/s -   21878490 in   5.014899s

WOW.
2014-10-22 00:58:20 -07:00
Parker Moore
1395d5686b Optimize more URL#sanitize_url 2014-10-22 00:57:53 -07:00
Parker Moore
3227c4ecea Use #tr instead of #gsub 2014-10-22 00:57:25 -07:00
Parker Moore
b9c4fc93d7 Use flat_map instead of map.flatten 2014-10-22 00:57:06 -07:00
Parker Moore
95e96a0f83 Add a benchmarking script for string-concat 2014-10-22 00:56:54 -07:00
Parker Moore
c92ad3b595 Update history to reflect merge of #3018 [ci skip] 2014-10-20 21:29:31 -07:00
Parker Moore
3285aebd4f Merge pull request #3018 from jekyll/webrick-fancy-indexing 2014-10-20 21:28:35 -07:00
Parker Moore
9cc3085dd0 Turn on FancyIndexing. 2014-10-20 21:23:30 -07:00
Parker Moore
5b37ad57cc If --verbose is given, debug the sh*t out of that. 2014-10-20 21:23:22 -07:00
Parker Moore
3dedcbf894 Sort webrick_options 2014-10-20 21:23:00 -07:00
Parker Moore
2ca2990f6b Update history to reflect merge of #2997 [ci skip] 2014-10-20 20:11:26 -07:00
Parker Moore
7fd9f102c0 Merge pull request #2997 from jekyll/utils-slugify 2014-10-20 20:11:04 -07:00
Parker Moore
cc3a31e363 Update history to reflect merge of #2986 [ci skip] 2014-10-20 20:09:39 -07:00
Parker Moore
5ed4638400 Merge pull request #2986 from tamagokun/where_filters_enumerable 2014-10-20 20:09:21 -07:00
Parker Moore
a64e7e8814 Update history to reflect merge of #3011 [ci skip] 2014-10-20 20:08:04 -07:00
Parker Moore
6723db8157 Merge pull request #3011 from fhemberger/master 2014-10-20 20:07:09 -07:00
Parker Moore
996db6912d Update history to reflect merge of #3017 [ci skip] 2014-10-20 09:57:50 -07:00
Parker Moore
c77d06446d Merge pull request #3017 from glaucocustodio/master 2014-10-20 09:57:04 -07:00
Glauco Custódio
68c0e8f847 Hash#each_key instead of Hash#keys.each. Faster code. 2014-10-20 10:10:29 -02:00
Parker Moore
4b4a46579a Update history to reflect merge of #3013 [ci skip] 2014-10-18 12:30:42 -07:00
Parker Moore
c95f4c0f5b Merge pull request #3013 from jekyll/revert-2921-post-dest 2014-10-18 12:21:28 -07:00
Parker Moore
078b2785e4 Revert "Make permalink parsing consistent with pages" 2014-10-18 12:07:44 -07:00
Frederic Hemberger
1d726a87b9 Docs: Clarify behavior of 'categories' in permalinks 2014-10-18 08:29:26 +02:00
Parker Moore
90b6723288 Update history to reflect merge of #3010 [ci skip] 2014-10-17 12:30:47 -07:00
Parker Moore
a9d7031e7c Merge pull request #3010 from croaky/master 2014-10-17 12:25:22 -07:00
Dan Croak
db220a9de6 Add FormKeep to resources as Jekyll form backend
Launched by [thoughtbot] today.
Intended to be Jekyll-friendly with
no iframes, JavaScript embeds, or CSS overrides.
It just generates a URL to use as your form's `action` endpoint.

It has a very simple webhook system, which means
it can automatically forward all submissions to a webhook of your choosing.
We've been using [Zapier] to handle the heavy lifting of
sending form data along from FormKeep to MailChimp, Trello, etc.

[thoughtbot]: https://thoughtbot.com
[Zapier]: http://zapier.com
2014-10-17 11:00:44 -07:00
Parker Moore
9f5835871b Utils.slugify: Don't create new objects when gsubbing 2014-10-12 16:18:40 -07:00
Parker Moore
b62415019b Update history to reflect merge of #2994 [ci skip] 2014-10-12 15:49:51 -07:00
Parker Moore
00d29e7e77 Merge pull request #2994 from jekyll/fixes-from-benchmarking 2014-10-12 15:49:20 -07:00
Parker Moore
5b5a25a03a Install with multiple jobs. [ci skip] 2014-10-12 15:47:01 -07:00
Parker Moore
be3d723d73 Update history to reflect merge of #2996 [ci skip] 2014-10-12 15:19:29 -07:00
Parker Moore
7cad48a3ee Merge pull request #2996 from hickford/link-feed-from-head 2014-10-12 15:18:12 -07:00
Parker Moore
b564214535 Pass the context on to IncludeRelativeTag#page_path 2014-10-12 15:16:38 -07:00
Matt Hickford
63a6d595c4 Fix feed link to respect baseurl 2014-10-12 23:14:41 +01:00
Parker Moore
22cc393cd4 Ignore the stackprof tmp files. 2014-10-12 15:12:30 -07:00
Parker Moore
0400ffe377 Only re-run the stackprof if I delete the prof output file. 2014-10-12 15:11:53 -07:00
Parker Moore
b07cbcecbd Don't print the location of the stackprof executable 2014-10-12 15:11:44 -07:00
Parker Moore
626706c8c5 Cache the @includes_dir in each instance so the method isn't called all the time 2014-10-12 15:11:28 -07:00
Parker Moore
a7c0fffcec Only run script/bootstrap in stackprof if stackprof executable isn't there 2014-10-12 14:39:04 -07:00
Parker Moore
73ca205a5c Add test for Document#basename_without_ext 2014-10-12 14:33:13 -07:00
Parker Moore
4942b2947b Only compile the Converter#matches regexp when asked for 2014-10-12 14:31:49 -07:00
Parker Moore
fbe98df488 Cache variables that won't change through the life of an object 2014-10-12 14:06:17 -07:00
Parker Moore
44c9f81921 Cache the extname regexp in Converters::Markdown and Textile 2014-10-12 14:06:16 -07:00
Parker Moore
681d71ac04 Move script/benchmark to script/stackprof. [ci skip] 2014-10-12 14:05:55 -07:00
Parker Moore
3902e373d8 Update history to reflect merge of #2993 [ci skip] 2014-10-12 14:05:34 -07:00
Parker Moore
ce8d8d929c Merge pull request #2993 from jekyll/benchmarking 2014-10-12 14:04:03 -07:00
Matt Hickford
3994d9116d Link atom feed from html head
This makes it possible for browsers to autodiscover the feed. Fixes https://github.com/jekyll/jekyll/issues/2995
2014-10-12 20:09:14 +01:00
Parker Moore
c2caaeaf11 Add rbtrace and stackprof and a script/benchmark script. 2014-10-12 02:02:42 -07:00
nitoyon
ae57f693e4 Document the mode parameter of slugify Liquid filter 2014-10-12 02:50:08 +09:00
nitoyon
3c5e9f5334 Add tests for mode parameters of slugify Liquid filter 2014-10-12 02:50:08 +09:00
nitoyon
46e76bde3f Add mode parameter to slugify Liquid filter 2014-10-12 02:44:58 +09:00
Mike Kruk
56ac50c568 where filter - test return value when filtering a Hash 2014-10-08 17:02:36 -04:00
Parker Moore
25d77cb05a Update history to reflect merge of #2982 [ci skip] 2014-10-08 13:57:51 -07:00
Parker Moore
70174e8831 Merge pull request #2982 from XhmikosR/page-description 2014-10-08 13:57:19 -07:00
Mike Kruk
f6ea8b4d50 Allow Enumerables to be used with "where" filter. 2014-10-08 16:19:55 -04:00
Parker Moore
9083511de3 Remove reverted #2980 from History. 2014-10-08 12:48:36 -07:00
Parker Moore
8cc07231df Merge pull request #2985 from jekyll/revert-2980-patch-1
Revert "Allow Enumerables to be used with "where" filter"
2014-10-08 12:47:25 -07:00
Parker Moore
94a1330d61 Revert "Allow Enumerables to be used with "where" filter" 2014-10-08 12:47:17 -07:00
Parker Moore
13919b4f3c Update history to reflect merge of #2980 [ci skip] 2014-10-08 12:46:32 -07:00
Parker Moore
8fe9c76d08 Merge pull request #2980 from tamagokun/patch-1 2014-10-08 12:45:50 -07:00
Parker Moore
d674305092 Update history to reflect merge of #2984 [ci skip] 2014-10-08 11:51:32 -07:00
Parker Moore
ac1d1a4053 Merge pull request #2984 from kevgathuku/patch-1 2014-10-08 11:51:08 -07:00
Parker Moore
66578b0c90 Update history to reflect merge of #2981 [ci skip] 2014-10-08 11:50:37 -07:00
Parker Moore
a84af462d4 Merge pull request #2981 from XhmikosR/normalize 2014-10-08 11:50:21 -07:00
Parker Moore
ceaa2eb267 Fix site:update_normalize_css so it works with new integrated Sass workflow. [ci skip]
Ref: #2981
2014-10-08 11:50:07 -07:00
Kevin Ndung'u
ec0e1dcb14 Update continuous-integration.md
Fix minor typo
2014-10-08 21:44:57 +03:00
Parker Moore
fb435c2c7e Update history to reflect merge of #2979 [ci skip] 2014-10-08 11:43:16 -07:00
Parker Moore
ba31c5c387 Merge pull request #2979 from rob-murray/add-twitter-tag-plugin 2014-10-08 11:42:41 -07:00
XhmikosR
5ea3286b09 Update normalize.css to v3.0.2. 2014-10-08 10:37:44 +03:00
XhmikosR
b0c0fbd70b site_template/feed.xml: Remove unneeded space. 2014-10-08 10:37:01 +03:00
XhmikosR
28bb15d4ee site_template/_includes/head.html: Minor refactoring.
Remove unneeded end tag, and also strip newlines.
Move `X-UA-Compatible` just after `meta charset`.
2014-10-08 10:33:39 +03:00
Mike Kruk
1db62cca9e allow Enumerables to be used with "where" filter
Enumerable module responds to `select` so this shouldn't be a problem here. Typical use case would be an object from a plugin being passed through a where filter.
2014-10-07 23:05:23 -04:00
Rob Murray
ad9a656d8d Add Tag plugin link for 'Jekyll Twitter Plugin'; A Liquid tag plugin that renders Tweets from Twitter API. 2014-10-07 13:12:08 +01:00
Parker Moore
cae5958362 Update history to reflect merge of #2972 [ci skip] 2014-10-05 20:02:16 -07:00
Parker Moore
f0e22be32b Merge pull request #2972 from tkrotoff/wrapper-width-hardcoded 2014-10-05 19:23:49 -07:00
Parker Moore
6657e374b2 Update history to reflect merge of #2973 [ci skip] 2014-10-05 10:47:57 -07:00
Parker Moore
b965d44b5f Merge pull request #2973 from tkrotoff/indent-head.html 2014-10-05 10:47:28 -07:00
Tanguy Krotoff
1ccd2156c5 Fix head.html indentation 2014-10-05 18:53:53 +02:00
Tanguy Krotoff
8e481cdf8e New Sass variable $content-width instead of hardcoded value 2014-10-05 18:49:39 +02:00
Parker Moore
7aa43f37fb Update history to reflect merging of #2948
Closes #2948

See 10c8184942 for more
2014-10-04 19:56:18 -07:00
Ruslan Korolev
2a83bdccd5 jekyll build/serve -V option to docs 2014-10-04 19:55:22 -07:00
Parker Moore
97ed8622c7 Update history to reflect merge of #2964 [ci skip] 2014-10-04 19:52:57 -07:00
Parker Moore
7a2f7a569b Merge pull request #2964 from nternetinspired/meta-description 2014-10-04 19:51:32 -07:00
Parker Moore
aed5554a1b Update history to reflect merge of #2967 [ci skip] 2014-10-04 19:48:12 -07:00
Parker Moore
961a3504ba Merge pull request #2967 from tmthrgd/master 2014-10-04 19:47:39 -07:00
Parker Moore
592cee9596 Update history to reflect merge of #2969 [ci skip] 2014-10-03 10:27:32 -07:00
tmthrgd
7869586e43 Add my ditaa-ditaa plugin under Other
ditaa-ditaa is a drastic revision of jekyll-ditaa that renders diagrams drawn using ASCII art into PNG images.

It is not immediately clear where ditaa-ditaa would belong as it provides both generator functionality, tag functionality and other functionality.
2014-10-03 01:34:30 +09:30
Seth Warburton
42a8dba642 Page specific descriptions 2014-09-30 22:17:49 +01:00
Parker Moore
98b5ff0d17 Update history to reflect merge of #2959 [ci skip] 2014-09-28 20:40:33 -07:00
Parker Moore
dd25ca30d4 Update history to reflect merge of #2949 [ci skip] 2014-09-27 11:31:25 -07:00
Parker Moore
d57d248152 Merge pull request #2949 from rusikf/patch-10 2014-09-27 11:30:29 -07:00
Parker Moore
314f476d11 Update history to reflect merge of #2953 [ci skip] 2014-09-27 11:29:51 -07:00
Parker Moore
0e6dc41db5 Merge pull request #2953 from vasinov/master 2014-09-27 11:29:20 -07:00
Parker Moore
1b923fb504 Update history to reflect merge of #2954 [ci skip] 2014-09-27 11:29:04 -07:00
Parker Moore
7539e2109b Merge pull request #2954 from chrisfinazzo/remove-explicit-serve-from-docs 2014-09-27 11:28:31 -07:00
chrisfinazzo
4a5f70b315 Clarify instructions 2014-09-27 13:06:45 -04:00
chrisfinazzo
bec32b14cb Add a note about the separate commands, show an example without the watcher 2014-09-27 12:54:47 -04:00
Parker Moore
a041d50681 Update history to reflect merge of #2957 [ci skip] 2014-09-26 17:09:16 -07:00
Parker Moore
0553dc2f85 Merge pull request #2957 from walpurgisriot/master 2014-09-26 17:08:42 -07:00
feivel
0701fa7b16 Update outdated comment
incorrect as of 6 Aug 2014.
2014-09-26 19:49:58 -04:00
chrisfinazzo
f80d82cfcc Remove references to the watch command in the sample 2014-09-26 12:46:41 -04:00
Vasily Vasinov
aaf813902a Update README.markdown
Someone added Jekyll to Hakiri for monitoring gems' security. I'm adding a security shield to README.markdown in this commit.
2014-09-26 08:45:12 -06:00
Parker Moore
e3c74d5365 Update history to reflect merge of #2921 [ci skip] 2014-09-24 23:46:10 -07:00
Parker Moore
1f2250e7a4 Merge pull request #2921 from alfredxing/post-dest 2014-09-24 23:45:44 -07:00
Ruslan Korolev
6dbe112f79 Merge remote-tracking branch 'upstream/master' into patch-10 2014-09-25 10:40:10 +04:00
Alfred Xing
ccef84a803 Update Cucumber tests to match new permalink parsing 2014-09-24 22:08:25 -07:00
Alfred Xing
3a96d01e4a Make permalink parsing consistent with pages
Require permalink to end in a slash to write an index file.
Addresses #2920.
2014-09-24 22:08:25 -07:00
Parker Moore
95644a844f Update history to reflect merge of #2925 [ci skip] 2014-09-24 17:08:21 -07:00
Parker Moore
bd0eebdb05 Merge pull request #2925 from pathawks/htm-extension 2014-09-24 17:08:02 -07:00
Parker Moore
3319c0ab56 Update history to reflect merge of #2946 [ci skip] 2014-09-24 17:07:10 -07:00
Parker Moore
dc0add15af Merge pull request #2946 from kleinfreund/patch-1 2014-09-24 17:06:53 -07:00
Parker Moore
6f585e5da5 Update history to reflect merge of #2951 [ci skip] 2014-09-24 17:06:30 -07:00
Parker Moore
0c32f389bc Merge pull request #2951 from jekyll/fix-rouge 2014-09-24 17:06:00 -07:00
Parker Moore
8990d7199e Latest version of Rouge so we know the API is right. 2014-09-22 23:04:51 -07:00
Parker Moore
e6f89074d4 Rouge's Redcarpet plugin now has a different API
See for more:
- 18ec938e9c
- https://github.com/jneen/rouge/issues/182
2014-09-22 23:03:49 -07:00
Parker Moore
633c9be95c Update history to reflect merge of #2939 [ci skip] 2014-09-22 22:53:46 -07:00
Parker Moore
14c58213c7 Merge pull request #2939 from jekyll/ghp-gem 2014-09-22 22:53:25 -07:00
Parker Moore
f2689ddf8f Merge branch 'ghp-gem' of github.com:jekyll/jekyll into ghp-gem
* 'ghp-gem' of github.com:jekyll/jekyll:
  Move it down a little
2014-09-22 22:52:36 -07:00
Parker Moore
a5a8be97de Make it a little nicer. 2014-09-22 22:52:23 -07:00
Ruslan Korolev
1a88178fbf jekyll serve --skip-initial-build to docs 2014-09-22 19:16:23 +04:00
Philipp Rudloff
e013c16ba9 Fix code example for media query mixin
It was using an old variable name (`$palm`) instead of the current one (`$on-paln`).
2014-09-22 08:18:14 +02:00
Parker Moore
52c76b5d93 Update history to reflect merge of #2906 [ci skip] 2014-09-21 13:37:18 -07:00
Parker Moore
e68a584a27 Merge pull request #2906 from pathawks/escape-css-characters 2014-09-21 13:36:57 -07:00
Parker Moore
bc9699e420 Update history to reflect merge of #2943 [ci skip] 2014-09-21 13:34:11 -07:00
Parker Moore
951fa8981f Merge pull request #2943 from rusikf/patch-7 2014-09-21 13:32:58 -07:00
Ruslan Korolev
6a06a627f8 jekyll build/serve --force_polling option to docs 2014-09-21 14:52:19 +04:00
Parker Moore
a7eeeda99f Move it down a little 2014-09-19 19:58:45 -07:00
Parker Moore
0f008c02d8 Add note about using the github-pages gem properly 2014-09-19 19:56:36 -07:00
Parker Moore
3086ea3036 Update history to reflect merge of #2937 [ci skip] 2014-09-19 00:32:54 -07:00
Parker Moore
2efe14d656 Merge pull request #2937 from tmthrgd/patch-1 2014-09-19 00:32:29 -07:00
Tom Thorogood
c03dadbe2c Include my mathml.rb plugin under Tags.
mathml.rb is a plugin to convert TeX mathematics into MathML.
2014-09-19 14:29:48 +09:30
Parker Moore
9efb68f957 Update history to reflect merge of #2922 [ci skip] 2014-09-17 12:22:56 -07:00
Parker Moore
2c9f6b0bd5 Merge pull request #2922 from igas/patch-1 2014-09-17 12:22:16 -07:00
Parker Moore
84ce5c3589 Update history to reflect merge of #2911 [ci skip] 2014-09-17 12:18:32 -07:00
Parker Moore
bfe83cdec2 Merge pull request #2911 from charlesbaynham/minor-grammatical-error 2014-09-17 12:17:47 -07:00
Parker Moore
51ebd69162 Update history to reflect merge of #2931 [ci skip] 2014-09-16 16:36:06 -07:00
Parker Moore
c11edf5272 Merge pull request #2931 from snrbrnjna/master 2014-09-16 16:35:16 -07:00
snrbrnjna
a3f8336571 Jekyll Http Basic Auth Plugin added 2014-09-17 00:09:29 +02:00
Parker Moore
36baf435b5 Put #2929 History entry in the right place.
Not enough  yet today. 💤
2014-09-16 09:47:24 -07:00
Parker Moore
1416e0e0ce Update history to reflect merge of #2929 [ci skip] 2014-09-16 09:46:49 -07:00
Parker Moore
c789a93bc8 Merge pull request #2929 from rusikf/patch-5 2014-09-16 09:46:14 -07:00
Ruslan Korolev
121a06a9eb unit test for jekyll new --force 2014-09-16 16:42:33 +04:00
Parker Moore
24d13fcc55 Update history to reflect merge of #2887 [ci skip] 2014-09-14 14:54:38 -07:00
Parker Moore
bf1a2320e2 Merge pull request #2887 from pathawks/Update-Liquid-Links 2014-09-14 14:54:17 -07:00
Pat Hawks
fdf58c5ce2 Allow per post permalinks to end in .htm
Fixes #2920
2014-09-14 11:58:16 -07:00
Pat Hawks
5445a1bead Add test for Use per-post permalinks ending in .htm 2014-09-14 11:36:26 -07:00
Igor Kapkov
566eb6ef3b remove watch since it default in 2.4.0 2014-09-14 11:28:29 +08:00
Parker Moore
19b2d2eeb6 Update history to reflect merge of #2917 [ci skip] 2014-09-13 12:24:26 -07:00
Parker Moore
c08a7f3fbd Merge pull request #2917 from nitoyon/fix-template-doc 2014-09-13 12:24:05 -07:00
Parker Moore
a0d46942b9 Update history to reflect merge of #2919 [ci skip] 2014-09-13 12:23:10 -07:00
Parker Moore
7cf64b6ab5 Merge pull request #2919 from bcomnes/singular-docs 2014-09-13 12:22:16 -07:00
Parker Moore
a34dbd45cf Update latest_version.txt file on the site. 2014-09-13 12:22:00 -07:00
Bret Comnes
44506bf376 Removed github-pages warning about singular types now that gh-pages is running 2.3.0 2014-09-13 12:03:25 -07:00
nitoyon
86af9952ce Fix quote character typo in site documentation for templates 2014-09-13 23:55:17 +09:00
Parker Moore
12046270a6 Update history to reflect merge of #2913 [ci skip] 2014-09-12 09:59:38 -07:00
Parker Moore
f7ef16ba06 Merge pull request #2913 from rusikf/patch-3 2014-09-12 09:59:04 -07:00
Parker Moore
65bcf2adb2 Update history to reflect merge of #2916 [ci skip] 2014-09-12 09:58:29 -07:00
Parker Moore
7790b42f8c Merge pull request #2916 from TheFox/bigfootnotes 2014-09-12 09:58:02 -07:00
Christian Mayer
6ed54bd31a Bigfootnotes Plugin added. 2014-09-12 18:13:44 +02:00
Ruslan Korolev
d9e5fdde5b test for jekyll new --blank 2014-09-12 18:30:06 +04:00
Alfred Xing
c3ec158f2d Keep backwards compatibility
Re-add `relative_path` Liquid variable too keep compatibility
2014-09-11 18:25:21 -07:00
Charles Baynham
bf8cc236ee Correction of grammatical error and also consistent formatting/correct filename of _config.yml 2014-09-12 00:08:46 +01:00
Alfred Xing
6c0e791236 Use relative path for path Liquid variable in Documents 2014-09-10 21:04:40 -07:00
Pat Hawks
960a918330 Escape unicode characters
Fixes #2905
2014-09-10 12:28:45 -07:00
Parker Moore
671b435b3b Update history to reflect merge of #2899 [ci skip] 2014-09-10 10:21:30 -07:00
Parker Moore
219a52e37b Merge pull request #2899 from XhmikosR/master 2014-09-10 10:20:56 -07:00
Parker Moore
a4f0f0dd0c Update history to reflect merge of #2898 [ci skip] 2014-09-10 10:07:49 -07:00
Parker Moore
838753cc96 Merge pull request #2898 from XhmikosR/font-awesome 2014-09-10 10:05:19 -07:00
XhmikosR
8f41d3db61 Fix transition property.
http://caniuse.com/#feat=css-transitions
2014-09-10 13:23:01 +03:00
XhmikosR
928e5e1c07 Remove the unused fontawesome-webfont.eot. 2014-09-10 13:22:02 +03:00
XhmikosR
b99ec48407 Update Font Awesome to v4.2.0. 2014-09-10 13:21:47 +03:00
XhmikosR
7c128bc7a2 Fix link to #2895. 2014-09-10 13:18:46 +03:00
Pat Hawks
99b5569ffa Point Liquid links to Liquid’s Github wiki
Provide a more helpful resource for questions like #2883
2014-09-09 23:20:40 -07:00
Parker Moore
1c2f7cb182 Update site history. 2014-09-09 22:24:38 -07:00
Parker Moore
e72f8cf5b1 Release 💎 2.4.0 2014-09-09 22:24:09 -07:00
Parker Moore
39783a6f46 Release 💎 2.3.0 2014-09-09 22:23:46 -07:00
Parker Moore
88244ff71d Add #2895 to release post.
#2896.
2014-09-09 22:23:39 -07:00
Parker Moore
1cb1cbba50 Merge pull request #2896 from jekyll/release-2-4
Release Jekyll 💎 v2.4.0
2014-09-09 22:21:46 -07:00
Parker Moore
87f72f0c63 Update history to reflect merge of #2895 [ci skip] 2014-09-09 22:21:13 -07:00
Parker Moore
c776a657af Merge pull request #2895 from jekyll/array-filters 2014-09-09 22:20:15 -07:00
Parker Moore
568a0b0e08 Release Jekyll 💎 v2.4.0 2014-09-09 21:34:37 -07:00
Parker Moore
196a56e3ec Add push, pop, shift, and unshift Liquid filters.
Fixes #2892.
2014-09-09 21:29:23 -07:00
Parker Moore
80106f1b67 Allow use of script/cibuild outside Travis. [ci skip] 2014-09-09 21:10:17 -07:00
Parker Moore
3994faaeaa Give script/proof the ability to be force-run. [ci skip] 2014-09-09 20:54:27 -07:00
Parker Moore
95dd0dc479 Update history to reflect merge of #2884 [ci skip] 2014-09-09 00:22:04 -07:00
Parker Moore
4fb6e1cde9 Merge pull request #2884 from gjtorikian/improve-docs-for-include-relative 2014-09-09 00:21:42 -07:00
Parker Moore
cab4333f70 Update history to reflect merge of #2889 [ci skip] 2014-09-09 00:12:31 -07:00
Parker Moore
d786e81f46 Merge pull request #2889 from pdehaan/patch-1 2014-09-09 00:12:03 -07:00
Peter deHaan
06c9b1b33c Fixing "vertycal" typo
s/vertycal/vertical

Unless, like, "vertycal" was on purpose or something.
2014-09-08 22:48:23 -07:00
Garen Torikian
deb4e0d24a Set tag name as ivar
This lets us use just one syntax_example method for both classes.
2014-09-08 14:27:51 -07:00
Garen Torikian
5fe73a6671 Add some more docs on include_relative 2014-09-07 21:24:05 -07:00
Garen Torikian
0675f2a423 Update include_relative tests
This verifies you can’t go “up” in the include
2014-09-07 21:23:45 -07:00
Parker Moore
41a6037a11 Update history to reflect merge of #2870 [ci skip] 2014-09-07 13:06:13 -07:00
Parker Moore
6644c77d23 Merge pull request #2870 from gjtorikian/support-relative-include 2014-09-07 13:05:38 -07:00
Garen Torikian
a569799ffc Sanitize the resolved includes path 2014-09-07 12:18:54 -07:00
Garen Torikian
3668437c96 Rename method to resolved_includes_dir 2014-09-07 12:18:35 -07:00
Garen Torikian
afd30b0a9b Add documentation on the include_relative tag 2014-09-07 12:14:19 -07:00
Garen Torikian
4da07bb2c3 Add tests around nasty include attempts 2014-09-07 12:00:37 -07:00
Garen Torikian
e7c8bbf5df Test that includes relative to self are included 2014-09-07 11:24:44 -07:00
Garen Torikian
934c37b578 Separate include_relative test out into its own context 2014-09-07 11:21:50 -07:00
Garen Torikian
0e4549013d Define methods for shared vars between include & include_relative 2014-09-07 11:21:40 -07:00
Parker Moore
39172e53bf Update history to reflect merge of #2881 [ci skip] 2014-09-07 10:41:36 -07:00
Parker Moore
0422c5fde6 Merge pull request #2881 from penibelst/patch-1 2014-09-07 10:41:11 -07:00
Parker Moore
192e5b9188 Update history to reflect merge of #2880 [ci skip] 2014-09-07 10:40:33 -07:00
Parker Moore
c3dc5cceee Merge pull request #2880 from kansaichris/slugify-liquid-filter 2014-09-07 10:40:01 -07:00
Anatol Broder
1a11a994ea Remove Good Include
The plugin is deprecated.
2014-09-07 14:01:53 +02:00
Chris Frederick
a2fedfc615 Document the slugify Liquid filter 2014-09-07 17:01:53 +09:00
Chris Frederick
77297744ce Add a test for the slugify Liquid filter 2014-09-07 16:49:14 +09:00
Chris Frederick
394eab4a3a Add the slugify Liquid filter 2014-09-07 16:48:57 +09:00
Parker Moore
2d3ca08d91 Update history to reflect merge of #2877 [ci skip] 2014-09-07 00:38:40 -07:00
Parker Moore
d950680bbe Merge pull request #2877 from nitoyon/fix-variables-doc 2014-09-07 00:37:59 -07:00
Garen Torikian
9f558d1cec Rename tag to include_relative 2014-09-06 21:48:15 -07:00
Garen Torikian
787bb582da Trash the subclass 2014-09-06 21:48:00 -07:00
Parker Moore
b5020bc590 Update history to reflect merge of #2879 [ci skip] 2014-09-06 11:52:43 -07:00
Parker Moore
64b2e11106 Merge pull request #2879 from SpectrumPixel/patch-1 2014-09-06 11:52:25 -07:00
TJ
7215c44146 Fixed "bellow" typo
Changed "bellow" to "below"
2014-09-06 13:53:49 -04:00
nitoyon
4435bcb1f8 Fix typo in site documentation for variables 2014-09-06 17:25:13 +09:00
Parker Moore
fa86afb336 Update history to reflect merge of #2864 [ci skip] 2014-09-05 10:05:13 -07:00
Parker Moore
58a76911bb Merge pull request #2864 from kansaichris/add-title-to-collection-urls 2014-09-05 10:04:38 -07:00
Garen Torikian
aa97f1025d Support a new relative_include tag 2014-09-03 15:43:51 -07:00
Chris Frederick
62a3961739 Add tests for Utils#slugify 2014-09-02 14:33:03 +09:00
Chris Frederick
4adc35aaf3 Revise Utils#slugify with inspiration from Rails 2014-09-02 14:32:14 +09:00
Chris Frederick
702b39dec5 Replace the 'name' parameter with 'string' 2014-09-02 13:34:44 +09:00
Chris Frederick
3ca1245027 Move Document#sluggify to Utils#slugify 2014-09-02 13:29:28 +09:00
Parker Moore
5674226b68 Update history to reflect merge of #2867 [ci skip] 2014-09-01 17:32:27 -07:00
Parker Moore
6928adf501 Merge pull request #2867 from chibicode/add-inspect-filter 2014-09-01 17:32:05 -07:00
Shu Uesugi
cfd17b2e7d Add inspect filter 2014-09-01 14:51:09 -07:00
Parker Moore
e4975836f4 Update history to reflect merge of #2862 [ci skip] 2014-09-01 11:48:11 -07:00
Parker Moore
820d6b3543 Merge pull request #2862 from mischah/fix-orientation-bugs 2014-09-01 11:47:44 -07:00
Chris Frederick
05d65f0341 Rename 'slug' to 'sluggify' and clean up code 2014-09-01 16:25:42 +09:00
Chris Frederick
be2b16507e Test documents without a title 2014-09-01 13:32:31 +09:00
Chris Frederick
a5e51cfdbe Properly handle titles with trailing punctuation 2014-09-01 13:25:38 +09:00
Chris Frederick
93f63df172 Document the :title variable 2014-09-01 13:16:14 +09:00
Chris Frederick
4dec3c8c6b Test titles in document permalinks 2014-09-01 13:04:54 +09:00
Chris Frederick
cca9c50c26 Add 'title' to url_placeholders 2014-09-01 12:53:31 +09:00
Chris Frederick
bcb6798838 Pass the filename as an argument to Document#slug 2014-09-01 12:45:41 +09:00
Michael Kühnel
9e9f4f1c53 Fix orientation bugs
Maintain fontsize and and adapt width when switching to landscape mode.
2014-08-31 15:27:51 +02:00
Parker Moore
18eb8e6fb7 Update history to reflect merge of #2829 [ci skip] 2014-08-31 00:09:22 -07:00
Parker Moore
8993cbe445 Merge pull request #2829 from kansaichris/collections-permalink-docs 2014-08-31 00:07:08 -07:00
Parker Moore
5b6b558c5a Update history to reflect merge of #2858 [ci skip] 2014-08-31 00:05:57 -07:00
Parker Moore
081e34a5ab Merge pull request #2858 from jekyll/auto-enable-watch 2014-08-31 00:05:42 -07:00
Parker Moore
8f46e23aa1 Update history to reflect merge of #2849 [ci skip] 2014-08-30 23:59:42 -07:00
Parker Moore
27d3126d54 Merge pull request #2849 from jekyll/maybe-secure-doc-reading 2014-08-30 23:58:33 -07:00
Parker Moore
b5dbc36975 Use Jekyll.sanitized_path when adding static files to Collections.
h/t @benbalter https://github.com/jekyll/jekyll/pull/2737#discussion_r16713423
Not sure if the previous code can be exploited, but being super safe is never a bad thing.
2014-08-30 23:09:47 -07: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
7de681ef58 Update history to reflect merge of #2856 [ci skip] 2014-08-30 22:50:36 -07:00
Parker Moore
ba05d00ac4 Merge pull request #2856 from jekyll/fix-liquid-in-sas 2014-08-30 22:50:07 -07:00
Parker Moore
943dc27e78 Add a space because regexp. 2014-08-30 22:40:32 -07:00
Parker Moore
eea5921856 Fix test for Liquid rendering in Sass. 2014-08-30 21:54:50 -07:00
Parker Moore
ca2e291306 prettier exceptions for cucumber. [ci skip] 2014-08-30 19:42:15 -07:00
Parker Moore
7baa56e1b2 Update history to reflect merge of #2859 [ci skip] 2014-08-30 19:34:52 -07:00
Parker Moore
7ff5505e97 Merge pull request #2859 from jekyll/parallelize-tests 2014-08-30 19:34:25 -07:00
Parker Moore
106148280d Use POSIX::Spawn instead of system to launch Jekyll 2014-08-30 19:29:01 -07:00
Parker Moore
f9bc50e010 Fix the custom Cucumber output. 2014-08-30 19:28:37 -07:00
Parker Moore
efd2c17eba Don't print out docstrings. 2014-08-30 18:37:00 -07:00
Parker Moore
f90d8db827 Run the scripts properly. 2014-08-30 18:27:42 -07:00
Parker Moore
2d485ab6fe It's a matrix env. 2014-08-30 17:16:03 -07:00
Parker Moore
30d1f90b44 Allow Travis to 'parallelize' our tests. 2014-08-30 17:14:47 -07:00
Parker Moore
cd50388781 Update history to reflect merge of #2830 [ci skip] 2014-08-28 19:40:49 -07:00
Parker Moore
190ab7f6b8 Merge pull request #2830 from kansaichris/render-liquid-in-coffeescript 2014-08-28 19:35:44 -07:00
Parker Moore
0c42174917 Merge pull request #2845 from farukaydin/where_filter
refactored where filter comment
2014-08-28 14:19:02 -07:00
Faruk AYDIN
d395183ee2 refactored where filter comment 2014-08-28 22:46:53 +03:00
Parker Moore
5330980c5f Update history to reflect merge of #2839 [ci skip] 2014-08-27 14:07:19 -07:00
Parker Moore
5475c64d89 Merge pull request #2839 from jglovier/patch-1 2014-08-27 14:05:34 -07:00
Joel Glovier
41311841f4 Adds info about installing jekyll in current dir
Closes #2838
2014-08-27 16:42:24 -04:00
Chris Frederick
98ed3b1c8f Might as well hard-wrap this to be consistent 2014-08-27 22:58:31 +09:00
Chris Frederick
d84b801fec Add a note about Liquid and template languages 2014-08-27 22:22:24 +09:00
Chris Frederick
1238ccefcc Fix Cucumber scenario 2014-08-26 22:24:18 +09:00
Chris Frederick
55de135467 Test Liquid syntax in CoffeeScript files 2014-08-26 17:24:27 +09:00
Chris Frederick
79992fc3c8 Fix inaccurate comments 2014-08-26 17:17:13 +09:00
Chris Frederick
71b10e2d4a Make render_with_liquid? true for CoffeeScript 2014-08-26 17:14:33 +09:00
Chris Frederick
927edfc078 Mention :name for collections in the documentation 2014-08-26 16:23:15 +09:00
Parker Moore
568464bc0e Add note to datafiles docs around CSV's.
Ref: #2761
2014-08-25 23:18:03 -07:00
Parker Moore
37db35dc10 Update history to reflect merge of #2799 [ci skip] 2014-08-25 23:16:32 -07:00
Parker Moore
56cd73eb35 Merge pull request #2799 from kansaichris/add-title-to-collection-permalinks 2014-08-25 23:15:23 -07:00
Chris Frederick
a72706ace6 Add Document#slug 2014-08-26 11:46:01 +09:00
Chris Frederick
cc4a0d1704 Change :title to :name 2014-08-26 11:26:19 +09:00
Parker Moore
67422e42c6 Update history to reflect merge of #2817 [ci skip] 2014-08-25 10:37:27 -07:00
Parker Moore
ac1f2e2049 Merge pull request #2817 from rusikf/patch-2 2014-08-25 10:36:53 -07:00
Ruslan Korolev
d9da7cbd76 add class << self idiom to new command 2014-08-25 10:59:58 +04:00
Chris Frederick
e8b00fb6f2 Add the 'title' variable to collection permalinks 2014-08-23 14:50:55 +09:00
Parker Moore
069805c6f7 Add note about GitHub Pages using Jekyll 2.2.0 and thus singular types for FMD.
Closes #2796.
2014-08-22 15:02:43 -07:00
Parker Moore
caec5339e8 Update history to reflect merge of #2791 [ci skip] 2014-08-21 12:54:30 -07:00
Parker Moore
9560429ac3 Merge pull request #2791 from gjtorikian/patch-2 2014-08-21 12:53:28 -07:00
Garen Torikian
ca1e6071e3 Make this phrase use HTML 2014-08-21 12:28:19 -07:00
Carlos Matallín
1aa9d6255e Add jekyll-thumbnail-filter to plugins list 2014-08-20 22:34:43 +02:00
Kamil Dziemianowicz
3b7091aab7 Find variables in _config.yaml by searching with relative file path. 2014-08-20 00:07:51 +02:00
Parker Moore
00c898b2e9 Update history to reflect merge of #2771 [ci skip] 2014-08-19 17:53:49 -04:00
Parker Moore
25f5bb2795 Merge pull request #2771 from ghprince/minor-tweaks-to-site-template 2014-08-19 17:53:24 -04:00
Gordon Gao
9df020f7e9 add .sass-cache to .gitignore and fix main.scss fileformat 2014-08-19 17:39:22 +08:00
Parker Moore
9b5f766333 Update history to reflect merge of #2768 [ci skip] 2014-08-18 01:42:05 -04:00
Parker Moore
11f629b00e Merge pull request #2768 from jekyll/remove-docs 2014-08-18 01:41:52 -04:00
Parker Moore
a90a7b2fba Remove docs/ directory.
Japanese docs available at http://jekyllrb-ja.github.io
2014-08-18 01:41:26 -04:00
Parker Moore
c54fb1aa20 Update history to reflect merge of #2761 [ci skip] 2014-08-18 01:39:46 -04:00
Parker Moore
c4a2ac2c4b Merge pull request #2761 from theodi/csv-data 2014-08-18 01:39:40 -04:00
Parker Moore
e8f2272918 Update history to reflect merge of #2765 [ci skip] 2014-08-17 14:39:09 -04:00
Parker Moore
be74029960 Merge pull request #2765 from alfredxing/fix-site-plugins-typo 2014-08-17 14:38:56 -04:00
Alfred Xing
74c812b565 Fix minor typo on plugins docs page 2014-08-17 11:35:29 -07:00
Parker Moore
8959ec448d Update history to reflect merge of #2764 [ci skip] 2014-08-17 14:09:13 -04:00
Parker Moore
034b3e94a5 Merge pull request #2764 from MinnSoe/doc-typo 2014-08-17 14:08:55 -04:00
Parker Moore
ce37de30a5 Update history to reflect merge of #2763 [ci skip] 2014-08-17 13:58:03 -04:00
Parker Moore
f7a4cdbf2b Merge pull request #2763 from zhuochun/master 2014-08-17 13:57:42 -04:00
Minn Soe
133463235a Fix typo in site documentation for collections. 2014-08-17 18:42:05 +02:00
Zhuochun
5d67438612 add markdown-writer package
add markdown-writer package for Atom editor
2014-08-17 18:22:25 +08:00
James Smith
cccfda7de8 hashrockets in CSV loading 2014-08-17 08:34:38 +01:00
Parker Moore
4fb022ce33 Update history to reflect merge of #2751 [ci skip] 2014-08-16 22:13:57 -04:00
Parker Moore
9d4c3fbbdf Merge pull request #2751 from pathawks/kill-redundant-plugins 2014-08-16 22:13:43 -04:00
Parker Moore
5931b80ef3 Update history to reflect merge of #2748 [ci skip] 2014-08-16 20:34:25 -04:00
Parker Moore
7b09a80dc7 Merge pull request #2748 from rusikf/hack 2014-08-16 20:34:05 -04:00
James Smith
866935dadf map with proc for CSV loading 2014-08-16 20:26:29 +01:00
James Smith
3a89923142 link issue number 2014-08-16 14:55:37 +01:00
James Smith
687176e22c Autoload csv files from data directory 2014-08-16 14:54:14 +01:00
Pat Hawks
166298e3f5 Remove tag plugins that are built in to Jekyll 2014-08-14 10:41:22 -07:00
Ruslan Korolev
f2b9154fa9 update simplecov gem to 0.9 2014-08-14 18:17:50 +04:00
Parker Moore
59b6cafef7 Update history to reflect merge of #2742 [ci skip] 2014-08-13 18:01:13 -04:00
Parker Moore
f4726d0ebc Merge pull request #2742 from fhemberger/patch-1 2014-08-13 18:00:49 -04:00
Parker Moore
1591557bc4 Nix that newline. [ci skip] 2014-08-13 18:00:36 -04:00
Frederic Hemberger
20f1cce6a5 Remove deprecated plugin 'jekyll-projectlist'
My plugin 'jekyll-projectlist' has been replaced by the data file feature in Jekyll 2.0 and thus became obsolete.
2014-08-13 09:35:38 +02:00
Parker Moore
7f6b1dd458 Release 💎 2.3.0 2014-08-13 01:49:46 -04:00
Parker Moore
bc954683cb Add mention of Parker Moore (@parkr) in README.
By now, I have almost entirely rewritten Jekyll with the help of our awesome
contributors. Taking a look at the contributions graphs GitHub provides,
I have to date pushed 1,452 commits to master with 24,991 additions and
17,330 deletions. In contrast, Tom Preston-Werner has pushed 295 commits
and 13,461 additions and 6,806 deletions. I don't need to have my name all
over it, but I think I have worked hard enough over the last 21 months
to deserve to put my name alongside Tom's and Nick's.

The lovely thing about version control is that changes can always be reverted.

Thanks for launching this great product, @mojombo and @qrush. I hope I haven't
let you down.
2014-08-13 01:46:37 -04:00
Parker Moore
1f877fde1e Make the intro text on the site template post a bit nicer. 2014-08-13 01:27:36 -04:00
Parker Moore
d70f9d4a29 Layout for site template feed.xml should be 'null'. 2014-08-13 01:23:19 -04:00
Parker Moore
17a4d15d3b Update site history. [ci skip] 2014-08-13 01:19:36 -04:00
Parker Moore
135c5f313b Update history to reflect merge of #2740 [ci skip] 2014-08-13 01:19:19 -04:00
Parker Moore
72cfee7ea6 Merge pull request #2740 from jekyll/latest-version 2014-08-13 01:18:56 -04:00
Parker Moore
7c266e0fb9 Add latest_version.txt file to the site. 2014-08-13 01:18:12 -04:00
Parker Moore
a97659a4a1 Add docs for https://github.com/jekyll/jekyll/issues/2691 2014-08-13 01:09:44 -04:00
Parker Moore
4e7dd8a563 Add emoji to the release commit message. 2014-08-13 01:09:37 -04:00
Parker Moore
038baa12c7 Update history to reflect merge of #2721 [ci skip] 2014-08-13 00:59:41 -04:00
Parker Moore
e5306284ff Merge pull request #2721 from jekyll/fork-classifier 2014-08-13 00:59:19 -04:00
Parker Moore
c4abe6ec8f Add linke to https://github.com/jekyll/jekyll/issues/2676 in Jekyll 2.3.0 release post. 2014-08-13 00:31:59 -04:00
Parker Moore
4d8e335da1 The mighty classifier --- reborn!!!!!
Use classifier-reborn v2.0 in place of classifier 1.3.
Code at https://github.com/jekyll/classifier-reborn
2014-08-13 00:29:40 -04:00
Parker Moore
f84cd4e4ed Update 2.3.0 release post. [ci skip] 2014-08-13 00:07:20 -04:00
Parker Moore
adb6d4d2d7 Update site history. 2014-08-13 00:04:47 -04:00
Parker Moore
9738ea452f Merge pull request #2723 from jekyll/release-2-3-0 2014-08-13 00:04:15 -04:00
Parker Moore
839501e012 Add some minimal docs for scssify and sassify filters. #2739 [ci skip] 2014-08-13 00:03:57 -04:00
Parker Moore
59b32626a8 Update history to reflect merge of #2739 [ci skip] 2014-08-12 23:54:50 -04:00
Parker Moore
fac5a2eb02 Merge pull request #2739 from DynamicDyno/sassify-filters 2014-08-12 23:54:17 -04:00
Kevin
566d3718b0 added sassify and scssify filters fot converting sass and scss strings to css 2014-08-12 21:24:04 -06:00
Parker Moore
2b81e5ed19 Update history to reflect merge of #2737 [ci skip] 2014-08-12 21:05:08 -04:00
Parker Moore
315cc386e5 Merge pull request #2737 from jekyll/fix-reading-imgs 2014-08-12 21:04:50 -04:00
Parker Moore
10cc45fc45 Add StaticFile#destination_rel_dir 2014-08-12 18:07:13 -04:00
Parker Moore
141ce32382 Custom formatter. 2014-08-12 18:06:47 -04:00
Parker Moore
56b9238af5 Fix up script/cucumber and script/test 2014-08-12 16:38:39 -04:00
Parker Moore
5031dfa3b9 Update history to reflect merge of #2735 [ci skip] 2014-08-12 16:07:58 -04:00
Parker Moore
c0df4b1047 Merge pull request #2735 from jekyll/multitask-defaut 2014-08-12 16:07:40 -04:00
Parker Moore
530e049d2d Read in static files info collection.files as StaticFiles. 2014-08-12 15:59:45 -04:00
Parker Moore
f16a5cbae1 Add Utils.has_yaml_header? so we can check the front matter existence in one place 2014-08-12 15:58:02 -04:00
Parker Moore
bcc539999b Allow for parallel test execution. 2014-08-12 15:56:56 -04:00
Parker Moore
7b1763a124 Release 💎 v2.3.0 2014-08-12 14:39:21 -04:00
Parker Moore
b0e144065c Update history to reflect merge of #2733 [ci skip] 2014-08-12 14:36:32 -04:00
Parker Moore
eabde41267 Merge pull request #2733 from jekyll/sass-in-liquid 2014-08-12 14:36:15 -04:00
Parker Moore
14b73667b8 Make default rake task a multitask so tests run in parallel. 2014-08-12 14:34:17 -04:00
Parker Moore
707278f099 Use the proper extname getter. 2014-08-12 14:11:27 -04:00
Parker Moore
a330bb0801 Update history to reflect merge of #2731 [ci skip] 2014-08-12 13:49:26 -04:00
Parker Moore
5c9eb324e8 Update history to reflect merge of #2731 [ci skip] 2014-08-12 13:47:45 -04:00
Parker Moore
ba63a2c6d1 Merge pull request #2731 from jekyll/doc-to_s 2014-08-12 13:47:32 -04:00
Parker Moore
8ff9074ce5 Allow Sass files to be rendered, but never place them in layouts.
Fixes #2573.
2014-08-12 13:38:53 -04:00
Parker Moore
db34c48927 Just like for Convertible, place the un-layouted content in document.content. 2014-08-12 12:52:38 -04:00
Parker Moore
5367bc3416 Update history to reflect merge of #2732 [ci skip] 2014-08-12 12:48:09 -04:00
Parker Moore
871e425fa0 Merge pull request #2732 from jekyll/type-should-be-similar-in-number 2014-08-12 12:46:42 -04:00
Parker Moore
90ec93373b Ensure the new type works. 2014-08-12 12:24:28 -04:00
Parker Moore
2fd155615f Forgot a question mark == broken tests. 2014-08-12 12:22:48 -04:00
Parker Moore
e36d433100 FrontmatterDefaults#update_deprecated_types deals with a set, not a scope 2014-08-12 12:22:39 -04:00
Parker Moore
9c090c862f Ask about 'Draft' before asking about 'Post'
`Draft`s are a subclass of `Post` so `draft.is_a?(Post)` will return
`true`, thus making all `Draft`s `Post`s, which is not desired. If
asking about `Draft` first, then we avoid this problem.

Fixes #2726
2014-08-12 11:52:16 -04:00
Parker Moore
60c29561f2 Use plural 'type' in front matter defaults for pages/posts/drafts
Fixes #2657
2014-08-12 11:50:02 -04:00
Parker Moore
d57c4f1c01 Document#to_s should produce just the content of the document.
Fixes #2655
2014-08-12 11:25:28 -04:00
Parker Moore
f190a960a1 Update history to reflect merge of #2722 [ci skip] 2014-08-12 11:20:20 -04:00
Parker Moore
1dcf241677 Merge pull request #2722 from jekyll/don-t-concat-extnames 2014-08-12 11:19:53 -04:00
Parker Moore
1de1ab9303 Update history to reflect merge of #2729 [ci skip] 2014-08-12 11:19:02 -04:00
Parker Moore
7b9d392d6f Merge pull request #2729 from jekyll/to_liquid_before_jsonify 2014-08-12 11:18:30 -04:00
Parker Moore
1666bbc52e Call #to_liquid before calling #to_json in jsonify filter. 2014-08-11 20:16:42 -04:00
Parker Moore
ebb4a4c1b6 Specify Ruby Dev Headers on Installation docs page.
Closes #2728
2014-08-11 17:55:21 -04:00
Parker Moore
fd2d7df9b7 Don't concat extnames in output for multiple converters 2014-08-10 20:32:29 -04:00
Parker Moore
8c0cd10b07 Update history to reflect merge of #2704 [ci skip] 2014-08-10 20:30:07 -04:00
Parker Moore
6f8b8816f5 Merge pull request #2704 from jekyll/mult-converters 2014-08-10 20:29:37 -04:00
Parker Moore
6470804a51 Update history to reflect merge of #2716 [ci skip] 2014-08-10 20:28:49 -04:00
Parker Moore
47b38cf9ee Merge pull request #2716 from jekyll/reform-watch 2014-08-10 20:28:38 -04:00
Parker Moore
e4b829da3b Update history to reflect merge of #2708 [ci skip] 2014-08-10 17:06:29 -04:00
Parker Moore
3ad202429c Merge pull request #2708 from felixkiss/patch-1 2014-08-10 17:05:58 -04:00
Parker Moore
fb02ce1e33 Update history to reflect merge of #2720 [ci skip] 2014-08-10 16:45:42 -04:00
Parker Moore
11373acb15 Merge pull request #2720 from jekyll/read-in-utf8 2014-08-10 16:45:11 -04:00
Parker Moore
9b3ccee3dd Pass in options to File.open in Document. 2014-08-10 16:23:33 -04:00
Parker Moore
f0e91b3667 Update history to reflect merge of #2719 [ci skip] 2014-08-10 16:19:19 -04:00
Parker Moore
966b22488c Merge pull request #2719 from pathawks/null-not-nil 2014-08-10 16:18:56 -04:00
Parker Moore
67da09e5e0 Update history to reflect merge of #2718 [ci skip] 2014-08-10 16:18:17 -04:00
Parker Moore
e5463b41f2 Merge pull request #2718 from jekyll/case-insensitive-extnames 2014-08-10 16:17:45 -04:00
Parker Moore
68fb130fd0 Add magic comments for UTF-8 2014-08-10 16:16:48 -04:00
Parker Moore
45a347c022 Read in every Document's content as UTF-8 2014-08-10 16:16:41 -04:00
Pat Hawks
b2eae2e676 Use null in YAML instead of nil 2014-08-10 13:05:23 -07:00
Parker Moore
29254150b1 Update history to reflect merge of #2717 [ci skip] 2014-08-10 16:00:23 -04:00
Parker Moore
d74b179ecd Merge pull request #2717 from hockeybuggy/fenced-paragraphs 2014-08-10 15:59:56 -04:00
Parker Moore
69cc414c1b Don't need to capture the group. 2014-08-10 15:44:36 -04:00
Parker Moore
533ed6eb38 Remove tests for the Command.ignored_paths method which now lives in jekyll-watch. 2014-08-10 14:46:06 -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
c7c1eddd47 It's called Jekyll::Watcher 2014-08-10 14:33:11 -04:00
Douglas Anderson
d0d8759c10 Removing indentation that was causing some paragraphs to be interpreted as code blocks 2014-08-10 13:51:42 -04:00
Parker Moore
1261c1cd66 Bump jekyll-watch version to 1.1. 2014-08-09 00:15:20 -04:00
Parker Moore
5a0c066845 Update history to reflect merge of #2707 [ci skip] 2014-08-09 00:13:59 -04:00
Parker Moore
d4fbf5c056 Merge pull request #2707 from jekyll/jekyll-help 2014-08-09 00:13:29 -04:00
Parker Moore
a2dfd6eddc Refactor based on jekyll-watch clean-up.
https://github.com/jekyll/jekyll-watch/pull/5
2014-08-09 00:13:18 -04:00
Felix Kiss
d452fa65ba Update continuous-integration.md
Fix typo
2014-08-07 03:26:42 -04:00
ChaYoung You
c8d1c3d264 Remove duplicated mixed case categories 2014-08-07 11:27:42 +09:00
ChaYoung You
3768d90278 Use category in downcase only for URL (Resolves #1739) 2014-08-07 11:27:41 +09:00
Parker Moore
939c67222a Check to make sure the command is valid. 2014-08-06 21:28:21 -04:00
Parker Moore
23515acc31 Slim down help command. 2014-08-06 21:20:39 -04:00
Parker Moore
a0f449d613 Add 'jekyll help' command.
Ref: #2695
2014-08-06 21:17:44 -04:00
Parker Moore
565bbada08 Update history to reflect merge of #2705 [ci skip] 2014-08-06 20:15:25 -04:00
Parker Moore
a0b30a9cc7 Merge pull request #2705 from bcomnes/dont_read_categories_from_path 2014-08-06 20:14:43 -04:00
Bret Comnes
311f3be63b Fixed ignore subir test. 2014-08-06 16:45:34 -07:00
Bret Comnes
f29884593b Reverted deleted test and modified ensure subdirs are ignored. 2014-08-06 16:05:53 -07:00
Bret Comnes
d0ac4915cb Reverts 18c033dc5c
The merge that is reverted assigned categories to posts
based on the subfolders in the _posts directory and 
was merged under the understanding that it was fixing a bug.

Subfolders in the _posts directory should not assign 
metadata information to posts at this point in time and 
was not a bug.
2014-08-06 14:20:03 -07:00
Parker Moore
d004bc4ea5 Allow Convertibles to be converted by >= 1 converters. 2014-08-06 16:20:24 -04:00
Parker Moore
b00c5e9587 Update history to reflect closing of #2456. [ci skip] 2014-08-06 16:02:22 -04:00
Parker Moore
229cedfc50 Reorganize and update default configuration settings. #2456. 2014-08-06 16:01:47 -04:00
Parker Moore
5796690827 Update history to reflect merge of #2682 [ci skip] 2014-08-06 15:31:20 -04:00
Parker Moore
cb671acd0c Merge pull request #2682 from alfredxing/date-parser-util 2014-08-06 15:30:02 -04:00
Parker Moore
85bd3836d0 Update history to reflect merge of #2688 [ci skip] 2014-08-06 15:29:43 -04:00
Parker Moore
a959c06e44 Merge pull request #2688 from barryclark/add_smashing_mag_tutorial_to_resources_page 2014-08-06 15:29:19 -04:00
Parker Moore
99a48499c7 Update history to reflect merge of #2693 [ci skip] 2014-08-06 15:28:32 -04:00
Parker Moore
21b6a01980 Merge pull request #2693 from ivantsepp/2142_partial_liquid_output_tag_in_include_tag 2014-08-06 15:28:07 -04:00
Parker Moore
df91299550 Update history to reflect merge of #2696 [ci skip] 2014-08-06 15:27:26 -04:00
Parker Moore
5eacc9e831 Merge pull request #2696 from jekyll/jekyll-autogeneration-disabled 2014-08-06 15:27:16 -04:00
Parker Moore
9e679e7d4a Update history to reflect merge of #2687 [ci skip] 2014-08-06 15:24:16 -04:00
Parker Moore
f0105158bf Merge pull request #2687 from kleinfreund/sassify_site_template 2014-08-06 15:24:01 -04:00
kleinfreund
8999df2f46 Adding markdown setting back to _config.yml 2014-08-06 21:12:36 +02:00
kleinfreund
441a2496b8 Usind 3 instead of 7 SCSS files now 2014-08-06 19:20:06 +02:00
kleinfreund
e5a7f842be Add sentence about jekyll-help repo 2014-08-06 19:11:36 +02:00
kleinfreund
7f92e7ce00 Reverting back to using content box and calc 2014-08-06 11:08:28 +02:00
Parker Moore
b3069c0802 Update history to reflect merge of #2697 [ci skip] 2014-08-05 17:02:03 -04:00
Parker Moore
f39c2610ee Merge pull request #2697 from jekyll/classifier-fix 2014-08-05 17:01:50 -04:00
Parker Moore
4c4f803df2 Remove preemptive loading of the 'classifier' gem. 2014-08-05 16:47:30 -04:00
Parker Moore
a27313b1d0 Use helper method #deprecation_message in Deprecator.no_subcommand. 2014-08-05 16:43:38 -04:00
Parker Moore
9fd872e7b8 Notify the user when auto-regeneration is disabled. 2014-08-05 15:55:43 -04:00
Parker Moore
6ca8baa572 Update history to reflect merge of #2694 [ci skip] 2014-08-05 15:02:24 -04:00
Parker Moore
018390cf64 Merge pull request #2694 from MartinSeeler/patch-1 2014-08-05 15:01:53 -04:00
Martin Seeler
13425266eb Fixed Typo in error message 2014-08-05 15:37:09 +02:00
kleinfreund
738dd502b4 Adding fill attribute to SVG's as fallback 2014-08-05 09:46:39 +02:00
Ivan Tse
0594adb8fd Allow VARIABLE_SYNTAX to collect partial variables 2014-08-05 01:04:36 -04:00
Ivan Tse
83f726f503 Add tests for include tag with partial variables 2014-08-05 01:04:20 -04:00
Parker Moore
36006fa68a Update history to reflect merge of #2689 [ci skip] 2014-08-04 22:05:38 -04:00
Parker Moore
a49244f4dd Merge pull request #2689 from minad/patch-1 2014-08-04 22:05:04 -04:00
kleinfreund
020f684093 Adjusting heading hierarchy to reflect site-title change 2014-08-04 09:42:46 +02:00
kleinfreund
101d614351 Removing h1 from site-title 2014-08-04 09:35:18 +02:00
Barry Clark
af1cc06184 blockquote needs spaces before it 2014-08-03 19:14:39 -04:00
Barry Clark
d1b9dfc6c9 Adds Smashing Magazine tutorial to resources page 2014-08-03 18:51:36 -04:00
kleinfreund
d8c330b215 Removing unused column class 2014-08-03 23:15:22 +02:00
kleinfreund
e4029426de Adding and using media-query mixin 2014-08-03 23:07:47 +02:00
kleinfreund
7d865269fd Replacing CSS comments with Sass comments 2014-08-03 23:06:59 +02:00
kleinfreund
b24b870ec6 Update welcome post to clarify front matter usage 2014-08-03 23:06:14 +02:00
kleinfreund
74974979ba Reworking site template to utilize Sass 2014-08-03 19:35:43 +02:00
Daniel Mendler
4336e8e4b9 Link to jekyll-slim
Link to https://github.com/slim-template/jekyll-slim
2014-08-03 02:03:14 +02:00
Alfred Xing
c7f8c70935 Add tests for Utils.parse_date method 2014-08-02 15:03:31 -07:00
Alfred Xing
4cfbdb07bb Show input in error message
Show date input in error message to make it easier for user
to find infringing date/file
2014-08-02 11:51:04 -07:00
Parker Moore
3e98860241 Update history to reflect merge of #2615 [ci skip] 2014-08-02 14:45:01 -04:00
Parker Moore
81807cb5af Merge pull request #2615 from alfredxing/collections-static-files 2014-08-02 14:44:45 -04:00
Alfred Xing
d5322a73bf Move instances of Time.parse into a Utils method 2014-08-02 09:38:50 -07:00
Alfred Xing
bd59fa14f3 Add tests for static files in collections 2014-08-02 09:00:03 -07:00
Alfred Xing
5fdf637c6a Cache information about document YAML header existence 2014-08-01 22:03:29 -07:00
Parker Moore
9a6dc7b520 Update history to reflect merge of #2649 [ci skip] 2014-08-02 00:09:18 -04:00
Parker Moore
e75dc74bb1 Merge pull request #2649 from alfredxing/friendly-date-error 2014-08-02 00:06:20 -04:00
Parker Moore
ea7e8951d8 Update history to reflect merge of #2680 [ci skip] 2014-08-02 00:05:26 -04:00
Parker Moore
b906bff832 Merge pull request #2680 from jekyll/no-pretty 2014-08-02 00:05:03 -04:00
Parker Moore
e44cfe29a8 No longer set "permalink: pretty" in the _config.yml for the site template
This causes unintuitive behaviour that doesn’t align with the
documentation.

Fixes #2399.
2014-08-02 00:01:59 -04:00
Alfred Xing
989d5d357b Use relative_path in error message instead of path 2014-08-01 21:00:17 -07:00
Alfred Xing
f8c19df79a Add friendly error message for invalid dates
Catch the `ArgumentError` when parsing dates from the YAML front
matter
2014-08-01 21:00:17 -07:00
Parker Moore
02b60d6d00 Add helpful comments to site template _config.yml 2014-08-01 23:59:57 -04:00
Parker Moore
cfe9983741 Update history to reflect merge of #2664 [ci skip] 2014-08-01 23:28:22 -04:00
Parker Moore
4ca3fe5137 Merge pull request #2664 from alfredxing/replace-deprecated-methods 2014-08-01 23:27:58 -04:00
Parker Moore
8db8b19ea0 Update history to reflect merge of #2673 [ci skip] 2014-08-01 23:27:42 -04:00
Parker Moore
503e54779a Merge pull request #2673 from lucianosousa/patch-1 2014-08-01 23:27:13 -04:00
Parker Moore
fd0c1f2273 Update history to reflect merge of #2679 [ci skip] 2014-08-01 23:18:42 -04:00
Parker Moore
36996107e1 Merge pull request #2679 from budparr/master 2014-08-01 23:18:00 -04:00
Bud Parr
cf2fe606a6 fix quote 2014-08-01 22:50:14 -04:00
Bud Parr
27f2d75d88 change links from Markdown to HTML 2014-08-01 22:44:38 -04:00
Alfred Xing
a902fefed5 Add blank frontmatter to feature test 2014-08-01 13:24:27 -07:00
Alfred Xing
274c6d3667 Allow static files in collections
Allow Documents to be static files so static files can exist in collections
2014-08-01 13:24:27 -07:00
Parker Moore
99f99169a4 Add quick troubleshooting docs for 'Could not find a JavaScript runtime.'
Fixes #2327.
2014-08-01 14:20:29 -04:00
Parker Moore
1c8ae63ec3 Update site history. 2014-08-01 14:19:48 -04:00
Parker Moore
da98869327 Update history to reflect merge of #2669 [ci skip] 2014-08-01 14:16:12 -04:00
Parker Moore
cf44052b0f Merge pull request #2669 from budparr/master 2014-08-01 14:15:50 -04:00
Parker Moore
febf2ea3cf Explain where Main files go and whereone can find an example site. 2014-08-01 14:13:44 -04:00
Parker Moore
df9c2f8371 Update history to reflect merge of #2674 [ci skip] 2014-08-01 13:48:31 -04:00
Parker Moore
b63d113fe0 Merge pull request #2674 from kleinfreund/master 2014-08-01 13:48:18 -04:00
Parker Moore
7f5e04980c Update history to reflect merge of #2659 [ci skip] 2014-08-01 13:47:54 -04:00
Parker Moore
bc3b82850d Merge pull request #2659 from alfredxing/front-matter-defaults-defaults 2014-08-01 13:47:42 -04:00
Alfred Xing
89e45afcc1 Add tests for front matter defaults 2014-08-01 10:28:53 -07:00
Parker Moore
7e2298b8d0 Update history to reflect merge of #2667 [ci skip] 2014-08-01 13:17:36 -04:00
Parker Moore
96b1778434 Merge pull request #2667 from jekyll/use-page 2014-08-01 13:17:17 -04:00
Parker Moore
5fc3361720 Update history to reflect merge of #2672 [ci skip] 2014-08-01 13:12:48 -04:00
Parker Moore
d8bb7f7ad7 Merge pull request #2672 from alfredxing/fix-ci-git-diff 2014-08-01 13:12:27 -04:00
Alfred Xing
ff14d7b853 Fix git diff command in CI script 2014-08-01 09:08:20 -07:00
kleinfreund
650d78c2cf Fixing anchor references to #front-matter-defaults 2014-08-01 10:54:23 +02:00
kleinfreund
0ed02e9c1e Replacing front-matter/frontmatter with front matter 2014-08-01 10:07:09 +02:00
Luciano Sousa
33cd956e4e improving strftime call
set non padded config to avoid parse string type twice
2014-08-01 00:02:41 -03:00
Parker Moore
413e22ce2b Don't include test_files in gemspec. #2671. 2014-07-31 20:22:38 -04:00
Parker Moore
579a18c93b Update history to reflect merge of #2671 [ci skip] 2014-07-31 20:13:28 -04:00
Parker Moore
f6682de390 Merge pull request #2671 from gjtorikian/patch-1 2014-07-31 20:13:16 -04:00
Garen Torikian
470d3a2a23 Update to a better, more gitty way 2014-07-31 16:04:55 -07:00
Bud Parr
1d669ed34b add back info class 2014-07-31 19:00:56 -04:00
Garen Torikian
8dd54b9ec3 Only include lib files in the gem
Resolves https://github.com/jekyll/jekyll/issues/2670
2014-07-31 16:00:11 -07:00
Bud Parr
cf94820e1a fix warning flag (move from wrong note) 2014-07-31 18:37:50 -04:00
Parker Moore
3f6b8468f2 Update history to reflect closing of #2522. 2014-07-31 18:29:34 -04:00
Parker Moore
d050fd11b5 Be more ambiguous about 'page.content'. But more transparent.
Fixes #2522.
2014-07-31 18:29:03 -04:00
Parker Moore
9ccbfa0bae Fix broken links now that docs is a collection in site. 2014-07-31 18:21:43 -04:00
Parker Moore
f57f1c7eef Use .scss for site_template styles. 2014-07-31 17:59:27 -04:00
Bud Parr
d8a7d770b4 add warning flag to note 2014-07-31 17:54:56 -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
Alfred Xing
9437a7abcd Don't require the scope key in front matter defaults
Set defaults for `scope` in front matter defaults as per #2656
2014-07-31 11:17:35 -07:00
Parker Moore
2642bd7415 chdir into site/_docs to update history. [ci skip] 2014-07-31 04:50:30 -04:00
Parker Moore
30da34358b Update history to reflect merge of #2651 [ci skip] 2014-07-31 04:48:22 -04:00
Parker Moore
ab4b05127e Merge pull request #2651 from jekyll/site-on-2-0 2014-07-31 04:48:00 -04:00
Parker Moore
2953a7c663 Rearrange _config.yml 2014-07-31 04:43:33 -04:00
Parker Moore
b53b4a5e5a Move to Sass. 2014-07-31 04:40:07 -04:00
Parker Moore
e57cd0031d Use site.docs instead of site.pages. 2014-07-31 04:34:38 -04:00
Parker Moore
03bca72af6 Release 2.2.0 2014-07-29 19:23:00 -04:00
Parker Moore
2d3d65a930 Always run the full test suite. 2014-07-29 19:08:40 -04:00
Parker Moore
5767346e9d Merge pull request #2643 from jekyll/v2-2-0-release 2014-07-29 19:06:19 -04:00
Parker Moore
dc894e41af Prep for v2.2.0 release. 2014-07-29 19:02:51 -04:00
Parker Moore
5f828c6c2e Fix spelling error. [ci skip] 2014-07-29 17:34:51 -04:00
Parker Moore
2045984cee Update history to reflect merge of #2642 [ci skip] 2014-07-29 17:34:32 -04:00
Parker Moore
4df274f96d Merge pull request #2642 from jekyll/pygments-opts-sanitize 2014-07-29 17:33:34 -04:00
Parker Moore
ee5828b2f7 Try to clarify the way sass imports happen.
/cc @mrzool
https://github.com/jekyll/jekyll-help/issues/104
2014-07-29 17:32:36 -04:00
Parker Moore
3cb2e74b5c Add further testing for Highlight#sanitized_opts 2014-07-29 16:30:44 -04:00
Parker Moore
a4c9925e99 Whitelist three Pygments options.
- startinline
- hl_lines
- linenos
2014-07-29 14:20:49 -04:00
Parker Moore
502f7991ad Update history to reflect merge of #2620 [ci skip] 2014-07-29 00:12:00 -04:00
Parker Moore
592afc270e Merge pull request #2620 from alfredxing/warn-on-layout-nonexistent 2014-07-29 00:11:41 -04:00
Alfred Xing
2785d702e2 Remove 'none' as a valid layout 2014-07-28 18:35:47 -07:00
Parker Moore
0fbdc69440 Update history to reflect merge of #2639 [ci skip] 2014-07-28 16:21:09 -04:00
Parker Moore
c99af68967 Merge pull request #2639 from wdenton/add-co2-plugin-to-docs 2014-07-28 16:20:38 -04:00
William Denton
56a82b1e8a Move to "other" section 2014-07-28 12:21:01 -04:00
William Denton
e9ae079fc3 Add jekyll-co2 plugin to list 2014-07-28 12:18:35 -04:00
Parker Moore
fab2b1d3a0 Update history to reflect merge of #2633 [ci skip] 2014-07-26 22:15:28 -04:00
Parker Moore
18c033dc5c Merge pull request #2633 from redox/read_categories_from_path 2014-07-26 22:14:40 -04:00
Sylvain UTARD
592630d48c Do not forget to downcase the categories here as well 2014-07-27 00:29:31 +02:00
Parker Moore
d2aa8dcc43 Actually print properly. 2014-07-25 15:18:55 -04:00
Parker Moore
9b107a129a gcnovus and bahuvrihi no longer exist on GitHub. 2014-07-24 15:21:36 -04:00
Parker Moore
10d6dcc4a9 Fix link to Jekyll v1.0.0 release post.
What are timezones.
2014-07-24 15:18:25 -04:00
Sylvain UTARD
16dbe54560 When using subdirs to reflect categories, the underlying categories attribute was not set 2014-07-24 18:59:26 +02:00
Parker Moore
812c0e9281 Fix post_url in 2.0.0 release post. [ci skip] 2014-07-23 17:20:37 -04:00
Parker Moore
7c021657e1 Try removing the timezone altogether. [ci skip] 2014-07-23 17:13:42 -04:00
Parker Moore
5dff30d90c Go back to UTC. 2014-07-23 17:12:29 -04:00
Parker Moore
3cc1b56810 Add jekyll-hook to deployment methods.
Port of #2617 to the master branch.
2014-07-23 16:58:34 -04:00
Parker Moore
fea4af0e63 Update history to reflect merge of #2625 [ci skip] 2014-07-22 17:23:44 -04:00
Parker Moore
a776fdabb9 Merge pull request #2625 from fw42/remove_unnecessary_blank_method 2014-07-22 17:23:16 -04:00
Florian Weingarten
2eb57279fe Remove unnecessary Jekyll::Tags::IncludeTag#blank? method 2014-07-22 21:06:43 +00:00
Parker Moore
863ae5652f Update history to reflect merge of #2622 [ci skip] 2014-07-22 10:40:22 -04:00
Parker Moore
d0faba12a3 Merge pull request #2622 from alfredxing/fix-markdown-docs 2014-07-22 10:39:50 -04:00
Parker Moore
63991822e7 Update history to reflect merge of #2623 [ci skip] 2014-07-22 10:33:36 -04:00
Parker Moore
1404e041e8 Merge pull request #2623 from mvdbos/master 2014-07-22 10:33:10 -04:00
Parker Moore
55d78f3c9f Update the history I guess. 2014-07-22 10:32:57 -04:00
Matthijs van den Bos
e9f427c75b Added kramdown-with-pygments plugin
This plugin enables Pygments syntax highlighting for Kramdown-parsed fenced code blocks
2014-07-22 12:23:35 +02:00
Alfred Xing
a661cd8295 Remove resolved RedCloth issue from troubleshooting 2014-07-21 11:38:04 -07:00
Alfred Xing
1be83e4e33 Fix URL
Copy & paste error introduced a `.dev` local domain; change
to a relative path instead
2014-07-21 11:12:57 -07:00
Alfred Xing
9109495894 Update outdated "Extras" page and remove duplicate documentation 2014-07-21 10:58:57 -07:00
Alfred Xing
7586538432 Use is_a? instead of class 2014-07-21 09:23:21 -07:00
Alfred Xing
4bd5614f4c Exclude excerpts from layout checks 2014-07-20 12:57:40 -07:00
Alfred Xing
c8e0fcfcdf Fix up errors in CI build 2014-07-20 12:56:54 -07:00
Alfred Xing
7fa30c0dec Add path of file requesting nonexistent layout 2014-07-20 12:17:04 -07:00
Alfred Xing
a0d679439f Move layout validity logic to separate method 2014-07-20 10:01:09 -07:00
Alfred Xing
072ddb799f Do the same for documents 2014-07-20 09:18:35 -07:00
Alfred Xing
ac744a6313 Give a build warning if a layout does not exist
Throw a warning if a non-"none" layout is specified but the corresponding
layout file does not exist.
2014-07-20 09:17:19 -07:00
Parker Moore
c8b22a19ad Update history to reflect merge of #2617 [ci skip] 2014-07-18 14:12:59 -04:00
Parker Moore
a262ea02d9 THOSE LINKS THO 2014-07-17 02:18:41 -04:00
Parker Moore
de9c591ffc Run travis tests if TRAVIS_PULL_REQUEST is set and set to a number. 2014-07-16 19:46:25 -04:00
Parker Moore
70e535bee3 Update history to reflect merge of #2611 [ci skip] 2014-07-16 18:59:00 -04:00
Parker Moore
749def2ef5 Merge pull request #2611 from alfredxing/delete-rubyforge-links 2014-07-16 18:58:27 -04:00
Alfred Xing
c0750c1a3f Fix rest of broken links 2014-07-16 14:43:43 -07:00
Alfred Xing
475e08bba3 Replace all RubyForge links with new residences 2014-07-16 13:43:09 -07:00
Parker Moore
2a1e7cb5c9 Update history to reflect merge of #2610 [ci skip] 2014-07-16 16:14:29 -04:00
Parker Moore
c4ae4aee2b Merge pull request #2610 from alfredxing/proof-use-bundle-exec 2014-07-16 16:14:14 -04:00
Alfred Xing
8e3ad082e2 Add set -e to top of proof and cibuild
Exit immediately on any non-zero exit code
2014-07-16 13:13:45 -07:00
Alfred Xing
b48123c1e1 We need to use bundle exec jekyll in script/proof 2014-07-16 13:08:27 -07:00
Parker Moore
aa3b001a04 Update history to reflect merge of #2608 [ci skip] 2014-07-16 15:24:43 -04:00
Parker Moore
c0707844e6 Merge pull request #2608 from alfredxing/fix-proof-grep 2014-07-16 15:24:18 -04:00
Alfred Xing
bf465cd904 Fix grep pattern in script/test as well 2014-07-16 11:17:19 -07:00
Alfred Xing
d8140f4142 Fix up grep pattern
Change from `^/site` to `^site/`
2014-07-16 11:03:26 -07:00
Parker Moore
e6698fc65a Run bundle exec rake tho. 2014-07-15 21:57:33 -04:00
Parker Moore
ab66326f97 Cleaning up the cibuild stuff. 2014-07-15 21:53:50 -04:00
Parker Moore
9d07a97945 Update history to reflect merge of #2605 [ci skip] 2014-07-15 21:44:02 -04:00
Parker Moore
86cbffbae0 Merge pull request #2605 from alfredxing/proof-site 2014-07-15 21:43:17 -04:00
Alfred Xing
10d4e023c8 Simpler way to install nokogiri with system extensions 2014-07-15 17:05:59 -07:00
Alfred Xing
51c7757543 Uncomment the exit 2014-07-15 17:02:11 -07:00
Alfred Xing
27f307b428 Proof site with html-proofer
Proof site with html-proofer when the site directory is changed
2014-07-15 17:01:36 -07:00
Alfred Xing
a92fe17ae0 Add script/proof to cibuild 2014-07-15 16:27:53 -07:00
Parker Moore
275a2e79ee Update history to reflect merge of #2601 [ci skip] 2014-07-15 15:41:58 -04:00
Parker Moore
7f48331ed4 Merge pull request #2601 from alfredxing/master 2014-07-15 11:47:37 -04:00
Parker Moore
e511550c91 Add slugs to the release sub headers, too! 2014-07-15 11:31:43 -04:00
Parker Moore
7f68b471aa Add ids to history blocks which are useful. 2014-07-15 10:51:20 -04:00
Alfred Xing
73893a921c Fix loads of other broken links 2014-07-14 16:36:52 -07:00
Alfred Xing
70ca41dd44 Fix Textile link
Fix broken link to Textile site to point to RedCloth
2014-07-14 16:36:31 -07:00
Parker Moore
22af1f07bf Update history to reflect merge of #2596 [ci skip] 2014-07-14 14:40:43 -04:00
Parker Moore
cfecc151d9 Merge pull request #2596 from ivantsepp/add_ivantsepp_plugins 2014-07-14 14:40:08 -04:00
Ivan Tse
fde3a02b71 Add Jekyll::AutolinkEmail and Jekyll::GitMetadata
Add these plugins to the list of plugins.
2014-07-14 04:35:09 -04:00
Parker Moore
56b0582272 Update history to reflect merge of #2584 [ci skip] 2014-07-13 00:11:10 -04:00
Parker Moore
b67dae1f65 Merge pull request #2584 from yous/patch-categories-feature 2014-07-13 00:10:01 -04:00
Parker Moore
d1057e821a Update history to reflect merge of #2591 [ci skip] 2014-07-12 19:22:31 -05:00
Parker Moore
5314bbf952 Merge pull request #2591 from jekyll/extract-list 2014-07-12 19:22:10 -05:00
Parker Moore
c7cc36abdb Put errors/exceptions into Jekyll::Errors module 2014-07-12 13:47:59 -07:00
Parker Moore
a97ae67552 Gracefully require 2014-07-12 13:46:49 -07:00
Parker Moore
4cc6a0f263 Mark certain gems as eventually-non-core. 2014-07-12 13:08:35 -07:00
Parker Moore
04d744fda3 Updated site history 2014-07-12 10:10:59 -07:00
Parker Moore
4b67c31277 Update history to reflect merge of #2588 [ci skip] 2014-07-12 10:10:33 -07:00
Parker Moore
84e0b1c904 Merge pull request #2588 from raboof/patch-2 2014-07-12 10:09:30 -07:00
Arnout Engelen
61a8512805 fix kramdown urls 2014-07-12 18:47:56 +02:00
Parker Moore
08a4c02d38 Release 2.1.1 2014-07-10 09:54:44 -07:00
Parker Moore
1cbff6b771 Merge pull request #2564 from jekyll/release-2-1-1 2014-07-10 09:44:17 -07:00
Parker Moore
9df9edc4c7 Finished the Jekyll 2.1.1 release post. [ci skip] 2014-07-10 09:43:55 -07:00
Parker Moore
685cdbe124 Release Jekyll v2.1.1 2014-07-10 09:40:36 -07:00
ChaYoung You
2716f65010 Add tests for duplicated categories 2014-07-10 18:03:50 +09:00
ChaYoung You
8006024715 Add missed tests for categories 2014-07-10 18:03:41 +09:00
ChaYoung You
2616a4cf5e Replace duplicated category feature with categories 2014-07-10 17:44:51 +09:00
Parker Moore
57a9deb98d Update history to reflect merge of #2576 [ci skip] 2014-07-09 23:44:26 -07:00
Parker Moore
ece22497dd Merge pull request #2576 from bhollis/maruku-update 2014-07-09 23:44:03 -07:00
Parker Moore
fb170007c8 Update history to reflect merge of #2575 [ci skip] 2014-07-09 23:43:47 -07:00
Parker Moore
36c5017300 Merge pull request #2575 from alfredxing/test-document-permalink 2014-07-09 23:43:01 -07:00
Parker Moore
e8e245e20f Fix Data Files example around iterative over files in a subfolder of _data.
Addresses @fkostadinov's comment in #2395:
https://github.com/jekyll/jekyll/pull/2395#issuecomment-48151478
2014-07-09 08:24:33 -07:00
Parker Moore
2141ea6564 Update history to reflect merge of #2578 [ci skip] 2014-07-08 23:16:58 -07:00
Parker Moore
d3959d5899 Merge pull request #2578 from juthilo/patch-1 2014-07-08 23:16:37 -07:00
Ben Hollis
cbb4b10ce6 Update Maruku dependency to allow use of the latest version.
All Maruku releases post-0.6 follow semver, so they should be backwards-compatible on minor versions. In this case, the only test that needed to change was one that was asserting buggy behavior that was fixed in 0.7.1.
2014-07-08 19:44:40 -07:00
Julian Thilo
861c81b590 Update link to Windows installation guide
I've just released a new version of Run Jekyll on Windows and it's now got its own domain!
2014-07-09 01:44:11 +02:00
Alfred Xing
28131624b8 Don't use old @url variable
Fix for #2557
2014-07-07 10:54:19 -07:00
Alfred Xing
ce1f01c494 Modify tests a bit 2014-07-07 10:49:36 -07:00
Alfred Xing
a13a4ca532 Solidify document permalink tests 2014-07-07 10:39:22 -07:00
Alfred Xing
f830120044 Add test for document permalink 2014-07-07 10:28:03 -07:00
Parker Moore
7645a72b2f Update history to reflect merge of #2572 [ci skip] 2014-07-05 13:46:14 -07:00
Parker Moore
ff8a8b8302 Merge pull request #2572 from AJ-Acevedo/master 2014-07-05 13:44:58 -07:00
AJ Acevedo
a7cc026e2c Fixed broken link to Permalinks page [ci skip]
The Permalinks link was generating a 404 error due to the link using a capital P in the link path.
2014-07-05 14:20:30 -04:00
Parker Moore
c78bf2775f Update history to reflect merge of #2567 [ci skip] 2014-07-04 03:19:41 -04:00
Parker Moore
0082bb22fb Merge pull request #2567 from austinpray/beefUpDox 2014-07-04 03:19:09 -04:00
Austin Pray
febf80cccd Merge branch 'master' of github.com:jekyll/jekyll into beefUpDox 2014-07-03 10:36:16 -05:00
Parker Moore
4d8dab6e33 Update history to reflect merge of #2563 [ci skip] 2014-07-01 20:15:54 -04:00
Parker Moore
f385fd9efd Merge pull request #2563 from jekyll/fix-read-vuln 2014-07-01 20:14:45 -04:00
Parker Moore
a66d96ce0a Use Jekyll.sanitized_path more. 2014-07-01 18:29:15 -04:00
Ben Balter
05f1fac2a7 Add feature for layouts vuln. 2014-07-01 18:29:01 -04:00
Parker Moore
03ae38a41e Merge pull request #2561 from jshawl/fix-typo
Fix typo
2014-06-30 14:12:17 -04:00
Jesse Shawl
fbb8c056d4 Fix typo 2014-06-30 13:26:22 -04:00
Parker Moore
0e68d34e1b Update history to reflect merge of #2558 [ci skip] 2014-06-29 02:52:49 -04:00
Parker Moore
a62027d5f3 Merge pull request #2558 from kleinfreund/patch-1 2014-06-29 02:52:19 -04:00
Philipp Rudloff
db38498d06 Add vertical margin to highlight
…so multiple code blocks are distinctive.
2014-06-29 08:41:59 +02:00
Parker Moore
af11f66646 Minor improvements to the rakefile. 2014-06-28 22:49:03 -04:00
Parker Moore
2a422e1d83 Add contributor list to 2.1.0 release post.
I forgot! I'm really sorry!
2014-06-28 22:48:44 -04:00
Parker Moore
f463aea399 Release 2.1.0 2014-06-28 22:27:57 -04:00
Parker Moore
f93da3cfb1 Add 3 more lines to 2.1.0 release post. 2014-06-28 21:54:56 -04:00
Parker Moore
253b10818c add #2554 to history on site 2014-06-28 21:38:17 -04:00
Parker Moore
2c0e086761 Update history to reflect merge of #2554 [ci skip] 2014-06-28 21:37:59 -04:00
Parker Moore
8882f4dd14 Merge pull request #2554 from alfredxing/fix-build-tomdoc 2014-06-28 21:37:25 -04:00
Parker Moore
2cf76cb701 Merge pull request #2553 from jekyll/release-2.1.0
Release 2.1.0
2014-06-28 21:37:01 -04:00
Alfred Xing
bb9517b73f Fill in a bit of missing TomDoc
Fill in a piece of missing doc for the `build` function in `commands/build.rb`
2014-06-28 17:48:19 -07:00
Parker Moore
f681b35b65 Booooom, 2.1.0 in history on site. 2014-06-28 17:42:53 -04:00
Parker Moore
8c5d36f0ee update history to reflect release of 2.1.0 2014-06-28 17:42:33 -04:00
Parker Moore
08d0ff0922 Bump version in gem. 2014-06-28 17:41:29 -04:00
Parker Moore
e5683b1da5 Release post for 2.1.0 2014-06-28 17:41:22 -04:00
Parker Moore
3dffa8284f Update history to reflect closing of #2520. 2014-06-28 17:20:09 -04:00
Parker Moore
e332197660 Be quiet very quickly. Fixes #2520. 2014-06-28 17:19:40 -04:00
Parker Moore
8b36b71833 Update history to reflect merge of #2552 [ci skip] 2014-06-28 16:59:08 -04:00
Parker Moore
7eb5e07e9d Merge pull request #2552 from jekyll/collections-with-dots 2014-06-28 16:58:11 -04:00
Parker Moore
0b9eb3c111 Ensure collections with dots work. 2014-06-28 16:51:44 -04:00
Parker Moore
5f7a3f2b69 Filter out directories from entries in the collection 2014-06-28 16:51:30 -04:00
Parker Moore
02676572dd Allow dots in collection labels. 2014-06-28 16:51:19 -04:00
Parker Moore
404661fc72 You need NodeJS in order to install jekyll-coffeescript. 2014-06-28 16:09:19 -04:00
Parker Moore
5c3f013325 Upgrade to jekyll-watch 1.0. 2014-06-27 17:52:54 -04:00
Parker Moore
ea4aa4f149 Update history to reflect merge of #2550 [ci skip] 2014-06-27 17:51:16 -04:00
Parker Moore
0c8fc63b33 Merge pull request #2550 from jekyll/extract-watch 2014-06-27 17:50:51 -04:00
Parker Moore
c239746363 Use bundle exec in CI guide. [ci skip]
h/t @ndarville
Ref: #2432
2014-06-27 17:10:06 -04:00
Parker Moore
12b47cc037 Spike out jekyll <cmd> --watch into a separate gem. 2014-06-27 16:41:10 -04:00
Parker Moore
2c636086bd Update history to reflect merge of #2432 [ci skip] 2014-06-27 16:40:02 -04:00
Parker Moore
6a7386e6ba Merge pull request #2432 from jekyll/docs-4-ci 2014-06-27 16:39:19 -04:00
Parker Moore
21ab9f8b9e Speak English good. h/t @gjtorikian 2014-06-27 16:35:21 -04:00
Parker Moore
eab113e4f5 html-proof ~> htmlproof 2014-06-27 15:43:37 -04:00
Parker Moore
bd4a8c1ce2 Fixes, fixes. 2014-06-27 15:32:16 -04:00
Parker Moore
e2de7ab0c7 Finish CI guide. 2014-06-27 15:25:33 -04:00
Parker Moore
a6e80b2bc1 Update history to reflect merge of #2547 [ci skip] 2014-06-27 03:56:39 -04:00
Parker Moore
3f5a55e240 Merge pull request #2547 from penibelst/docs-url 2014-06-27 03:56:23 -04:00
Parker Moore
b79be6d320 updates to CI page. [ci skip] 2014-06-27 03:53:41 -04:00
Anatol Broder
60bb78e25b Remove wrong statement 2014-06-27 09:44:39 +02:00
Parker Moore
281fb549f8 Update history to reflect merge of #2542 [ci skip] 2014-06-25 16:56:49 -04:00
Parker Moore
d16f62cb38 Ensure exclude and include arrays are arrays of strings.
Fixes #2542.
2014-06-25 16:56:27 -04:00
Parker Moore
912bd84629 A little more work. 2014-06-25 16:17:42 -04:00
Anatol Broder
d77078518d Add new page 2014-06-25 16:17:42 -04:00
Parker Moore
e310af00b4 Update history to reflect merge of #2532 [ci skip] 2014-06-25 16:14:56 -04:00
Parker Moore
cedbdf43ca Merge pull request #2532 from alexmedearis/hl_lines 2014-06-25 16:14:14 -04:00
Parker Moore
911559fe05 Update history to reflect merge of #2544 [ci skip] 2014-06-25 16:13:58 -04:00
Parker Moore
c958eae551 Merge pull request #2544 from mikecole/patch-2 2014-06-25 16:13:31 -04:00
mikecole
053ba9a9ca Provide an updated, more comprehensive link...
to Windows installation instructions.
2014-06-25 13:50:07 -05:00
Parker Moore
c5aa74f823 Update history to reflect merge of #2490 [ci skip] 2014-06-24 23:04:53 -04:00
Parker Moore
20180923cf Merge pull request #2490 from penibelst/deep-defaults 2014-06-24 23:04:38 -04:00
Parker Moore
6e104c3ed0 Ensure the post categories are unique (only one). Ref: #2527 #2531
h/t @Nicholas-Perry
https://github.com/jekyll/jekyll/issues/2527#issuecomment-47041756
2014-06-24 19:15:02 -04:00
Anatol Broder
880a503094 Add a test 2014-06-24 20:27:01 +02:00
Anatol Broder
edbc273829 Use Utils.deep_merge_hashes 2014-06-24 20:24:26 +02:00
Anatol Broder
5f807e7421 Merge deep 2014-06-24 20:20:15 +02:00
Alex Medearis
b202b508f2 handles line numbers with more than 1 digit 2014-06-18 17:48:50 -07:00
Alex Medearis
a7d20df95a unit tests 2014-06-18 17:29:07 -07:00
Alex Medearis
674b540c6f unit tests 2014-06-18 17:27:27 -07:00
Alex Medearis
8b860d3f0e Fixes highlight.rb to correctly parse list values 2014-06-18 17:08:50 -07:00
Austin Pray
a79279b1cc Beefs up variables.md
Adds site.data
Adds site.collections
Adds site.html_pages
2014-05-11 16:21:47 -05:00
333 changed files with 15152 additions and 7226 deletions

5
.gitignore vendored
View File

@@ -12,4 +12,9 @@ gh-pages/
site/_site/
coverage
.ruby-version
.ruby-gemset
.sass-cache
tmp/*
.jekyll-metadata
/vendor
/test/source/file_name.txt

6
.jrubyrc Normal file
View File

@@ -0,0 +1,6 @@
backtrace.mask=true
compile.invokedynamic=true
objectspace.enabled=true
backtrace.color=true
compat.version=2.2
backtrace.style=mri

View File

@@ -1,27 +1,35 @@
language: ruby
cache: bundler
install:
- script/rebund download
- travis_retry bundle install --path vendor/bundle
sudo: false
rvm:
- 2.2
- 2.1
- 2.0
- 1.9.3
- ruby-head
- jruby-9.0.3.0
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-9.0.3.0
exclude:
- rvm: jruby-9.0.3.0
env: TEST_SUITE=cucumber
env:
matrix:
- TEST_SUITE=test
- TEST_SUITE=cucumber
before_script: bundle update
script: script/cibuild
after_script:
- script/rebund upload
notifications:
irc:
on_success: change
on_failure: change
channels:
- irc.freenode.org#jekyll
- irc.freenode.org#jekyll
template:
- '%{repository}#%{build_number} (%{branch}) %{message} %{build_url}'
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
email:
on_success: never
on_failure: never
env:
global:
- secure: bt5nglPTdsc0N5fB1dOJz2WbM81dGpDuVD8PnhEsxgUfoo6xavhU4+pNrUADlSUqQ1aJrdU+MKW4x+JZ2ZnJS8vOpNzRymuMZSbFaljK4pgFGiKFgBdMKxVikvoYcxKCjLAl7NJZ11W6hUw+JtJScClDZwrJJAQB6I7Isp/LsdM=
- secure: Ym8nx7nbfGYGo47my92M+deJykaiMkdZdb615EO51liv/xy/0aQ919Jpfieugc9d3zVnm+zFGPbpv4YzRpsik6OlVBNa4lP+BnQ27ptf5YcLWD8Hksi7845WFLecXMoaTCoYer/TvYZsIWJb2nSDMH9qbfZhnd1YZKuvUpK0rEU=
slack:
secure: dNdKk6nahNURIUbO3ULhA09/vTEQjK0fNbgjVjeYPEvROHgQBP1cIP3AJy8aWs8rl5Yyow4YGEilNRzKPz18AsFptVXofpwyqcBxaCfmHP809NX5PHBaadydveLm+TNVao2XeLXSWu+HUNAYO1AanCUbJSEyJTju347xCBGzESU=

22
CONDUCT.md Normal file
View File

@@ -0,0 +1,22 @@
# Contributor Code of Conduct
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
* Other unethical or unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

View File

@@ -4,18 +4,19 @@ Contribute
So you've got an awesome idea to throw into Jekyll. Great! Please keep the
following in mind:
* **Use https://talk.jekyllrb.com for non-technical or indirect Jekyll questions that are not bugs.**
* **Contributions will not be accepted without tests or necessary documentation updates.**
* If you're creating a small fix or patch to an existing feature, just a simple
test will do. Please stay in the confines of the current test suite and use
[Shoulda](https://github.com/thoughtbot/shoulda/tree/master) and
[RR](https://github.com/rr/rr).
[RSpec-Mocks](https://github.com/rspec/rspec-mocks).
* If it's a brand new feature, make sure to create a new
[Cucumber](https://github.com/cucumber/cucumber/) feature and reuse steps
where appropriate. Also, whipping up some documentation in your fork's `site`
would be appreciated, and once merged it will be transferred over to the main
`site`, jekyllrb.com.
* If your contribution changes any Jekyll behavior, make sure to update the
documentation. It lives in `site/docs`. If the docs are missing information,
documentation. It lives in `site/_docs`. If the docs are missing information,
please feel free to add it in. Great docs make a great project!
* Please follow the [GitHub Ruby Styleguide](https://github.com/styleguide/ruby)
when modifying Ruby code.
@@ -30,16 +31,25 @@ Test Dependencies
-----------------
To run the test suite and build the gem you'll need to install Jekyll's
dependencies. Jekyll uses Bundler, so a quick run of the bundle command and
you're all set!
dependencies. Simply run this command to get all setup:
$ bundle
$ script/bootstrap
Before you start, run the tests and make sure that they pass (to confirm your
environment is configured properly):
$ bundle exec rake test
$ bundle exec rake features
$ script/cibuild
If you are only updating a file in `test/`, you can use the command:
$ script/test test/blah_test.rb
If you are only updating a `.feature` file, you can use the command:
$ script/cucumber features/blah.feature
Both `script/test` and `script/cucumber` can be run without arguments to
run its entire respective suite.
Workflow
--------
@@ -47,10 +57,10 @@ Workflow
Here's the most direct way to get your work merged into the project:
* Fork the project.
* Clone down your fork ( `git clone git@github.com:<username>/jekyll.git` ).
* Clone down your fork ( `git clone git@github.com:[username]/jekyll.git` ).
* Create a topic branch to contain your change ( `git checkout -b my_awesome_feature` ).
* Hack away, add tests. Not necessarily in that order.
* Make sure everything still passes by running `rake`.
* Make sure everything still passes by running `script/cibuild`.
* If necessary, rebase your commits into logical chunks, without errors.
* Push the branch up ( `git push origin my_awesome_feature` ).
* Create a pull request against jekyll/jekyll and describe what your change
@@ -67,17 +77,22 @@ You can find the documentation for jekyllrb.com in the
[site](https://github.com/jekyll/jekyll/tree/master/site) directory of
Jekyll's repo on GitHub.com.
All documentation pull requests should be directed at `master`. Pull
All documentation pull requests should be directed at `master`. Pull
requests directed at another branch will not be accepted.
The [Jekyll wiki](https://github.com/jekyll/jekyll/wiki) on GitHub
can be freely updated without a pull request as all GitHub users have access.
If you want to add your plugin to the
[list of plugins](http://jekyllrb.com/docs/plugins/#available-plugins),
please submit a pull request modifying the
[plugins page source file](site/_docs/plugins.md) by adding a
link to your plugin under the proper subheading depending upon its type.
Gotchas
-------
* If you want to bump the gem version, please put that in a separate commit.
This way, the maintainers can control when the gem gets released.
* Please do not bump the gem version in your pull requests.
* Try to keep your patch(es) based from the latest commit on jekyll/jekyll.
The easier it is to apply your work, the less work the maintainers have to do,
which is always a good thing.

55
Gemfile
View File

@@ -1,2 +1,55 @@
source 'https://rubygems.org'
gemspec
gemspec name: 'jekyll'
gem 'rake', '~> 10.1'
group :development do
gem 'rdoc', '~> 4.2'
gem 'launchy', '~> 2.3'
gem 'toml', '~> 0.1.0'
gem 'pry'
end
group :test do
gem 'redgreen', '~> 1.2'
gem 'shoulda', '~> 3.5'
gem 'cucumber', '~> 2.0', '< 2.1'
gem 'simplecov', '~> 0.9'
gem 'jekyll_test_plugin'
gem 'jekyll_test_plugin_malicious'
gem 'minitest-reporters'
gem 'minitest-profile'
gem 'minitest'
gem 'rspec-mocks'
if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2")
gem 'test-unit'
end
if ENV['PROOF']
gem 'html-proofer', '~> 2.0'
end
end
group :benchmark do
if ENV['BENCHMARK']
gem 'ruby-prof'
gem 'rbtrace'
gem 'stackprof'
gem 'benchmark-ips'
end
end
gem 'jekyll-paginate', '~> 1.0'
gem 'jekyll-coffeescript', '~> 1.0'
gem 'jekyll-feed'
gem 'jekyll-gist', '~> 1.0'
gem 'mime-types', '~> 2.6'
gem 'kramdown', '~> 1.9'
platform :ruby, :mswin, :mingw do
gem 'rdiscount', '~> 2.0'
gem 'pygments.rb', '~> 0.6.0'
gem 'redcarpet', '~> 3.2', '>= 3.2.3'
gem 'classifier-reborn', '~> 2.0'
gem 'liquid-c', '~> 3.0'
end

View File

@@ -1,7 +1,610 @@
## HEAD
## 3.0.2 / 2016-01-20
### Bug Fixes
* Document: throw a useful error when an invalid date is given (#4378)
### Development Fixes
* `jekyll-docs` should be easily release-able (#4152)
## 3.0.1 / 2015-11-17
### Bug Fixes
* Document: only superdirectories of the collection are categories (#4110)
* `Convertible#render_liquid` should use `render!` to cause failure on bad Liquid (#4077)
* Don't generate `.jekyll-metadata` in non-incremental build (#4079)
* Set `highlighter` config val to `kramdown.syntax_highlighter` (#4090)
* Align hooks implementation with documentation (#4104)
* Fix the deprecation warning in the doctor command (#4114)
* Fix case in `:title` and add `:slug` which is downcased (#4100)
### Development Fixes
* Fix test warnings when doing rake {test,spec} or script/test (#4078)
### Site Enhancements
* Update normalize.css to v3.0.3. (#4085)
* Update Font Awesome to v4.4.0. (#4086)
* Adds a note about installing the jekyll-gist gem to make gist tag work (#4101)
* Align hooks documentation with implementation (#4104)
* Add Jekyll Flickr Plugin to the list of third party plugins (#4111)
* Remove link to now-deleted blog post (#4125)
* Update the liquid syntax in the pagination docs (#4130)
* Add jekyll-language-plugin to plugins.md (#4134)
* Updated to reflect feedback in #4129 (#4137)
* Clarify assets.md based on feedback of #4129 (#4142)
* Re-correct the liquid syntax in the pagination docs (#4140)
## 3.0.0 / 2015-10-26
### Major Enhancements
* Liquid profiler (i.e. know how fast or slow your templates render) (#3762)
* Incremental regeneration (#3116)
* Add Hooks: a new kind of plugin (#3553)
* Upgrade to Liquid 3.0.0 (#3002)
* `site.posts` is now a Collection instead of an Array (#4055)
* Add basic support for JRuby (commit: 0f4477)
* Drop support for Ruby 1.9.3. (#3235)
* Support Ruby v2.2 (#3234)
* Support RDiscount 2 (#2767)
* Remove most runtime deps (#3323)
* Move to Rouge as default highlighter (#3323)
* Mimic GitHub Pages `.html` extension stripping behavior in WEBrick (#3452)
* Always include file extension on output files (#3490)
* Improved permalinks for pages and collections (#3538)
* Sunset (i.e. remove) Maruku (#3655)
* Remove support for relative permalinks (#3679)
* Iterate over `site.collections` as an array instead of a hash. (#3670)
* Adapt StaticFile for collections, config defaults (#3823)
* Add a Code of Conduct for the Jekyll project (#3925)
* Added permalink time variables (#3990)
* Add `--incremental` flag to enable incremental regen (disabled by default) (#4059)
### Minor Enhancements
* Deprecate access to Document#data properties and Collection#docs methods (#4058)
* Sort static files just once, and call `site_payload` once for all collections (#3204)
* Separate `jekyll docs` and optimize external gem handling (#3241)
* Improve `Site#getConverterImpl` and call it `Site#find_converter_instance` (#3240)
* Use relative path for `path` Liquid variable in Documents for consistency (#2908)
* Generalize `Utils#slugify` for any scripts (#3047)
* Added basic microdata to post template in site template (#3189)
* Store log messages in an array of messages. (#3244)
* Allow collection documents to override `output` property in front matter (#3172)
* Keep file modification times between builds for static files (#3220)
* Only downcase mixed-case categories for the URL (#2571)
* Added per post `excerpt_separator` functionality (#3274)
* Allow collections YAML to end with three dots (#3134)
* Add mode parameter to `slugify` Liquid filter (#2918)
* Perf: `Markdown#matches` should avoid regexp (#3321)
* Perf: Use frozen regular expressions for `Utils#slugify` (#3321)
* Split off Textile support into jekyll-textile-converter (#3319)
* Improve the navigation menu alignment in the site template on small
screens (#3331)
* Show the regeneration time after the initial generation (#3378)
* Site template: Switch default font to Helvetica Neue (#3376)
* Make the `include` tag a teensy bit faster. (#3391)
* Add `pkill -f jekyll` to ways to kill. (#3397)
* Site template: collapsed, variable-driven font declaration (#3360)
* Site template: Don't always show the scrollbar in code blocks (#3419)
* Site template: Remove undefined `text` class from `p` element (#3440)
* Site template: Optimize text rendering for legibility (#3382)
* Add `draft?` method to identify if Post is a Draft & expose to Liquid (#3456)
* Write regeneration metadata even on full rebuild (#3464)
* Perf: Use `String#end_with?("/")` instead of regexp when checking paths (#3516)
* Docs: document 'ordinal' built-in permalink style (#3532)
* Upgrade liquid-c to 3.x (#3531)
* Use consistent syntax for deprecation warning (#3535)
* Added build --destination and --source flags (#3418)
* Site template: remove unused `page.meta` attribute (#3537)
* Improve the error message when sorting null objects (#3520)
* Added liquid-md5 plugin (#3598)
* Documentation: RR replaced with RSpec Mocks (#3600)
* Documentation: Fix subpath. (#3599)
* Create 'tmp' dir for test_tags if it doesn't exist (#3609)
* Extract reading of data from `Site` to reduce responsibilities. (#3545)
* Removed the word 'Jekyll' a few times from the comments (#3617)
* `bin/jekyll`: with no args, exit with exit code 1 (#3619)
* Incremental build if destination file missing (#3614)
* Static files `mtime` liquid should return a `Time` obj (#3596)
* Use `Jekyll::Post`s for both LSI indexing and lookup. (#3629)
* Add `charset=utf-8` for HTML and XML pages in WEBrick (#3649)
* Set log level to debug when verbose flag is set (#3665)
* Added a mention on the Gemfile to complete the instructions (#3671)
* Perf: Cache `Document#to_liquid` and invalidate where necessary (#3693)
* Perf: `Jekyll::Cleaner#existing_files`: Call `keep_file_regex` and
`keep_dirs` only once, not once per iteration (#3696)
* Omit jekyll/jekyll-help from list of resources. (#3698)
* Add basic `jekyll doctor` test to detect fsnotify (OSX) anomalies. (#3704)
* Added talk.jekyllrb.com to "Have questions?" (#3694)
* Performance: Sort files only once (#3707)
* Performance: Marshal metadata (#3706)
* Upgrade highlight wrapper from `div` to `figure` (#3779)
* Upgrade mime-types to `~> 2.6` (#3795)
* Update windows.md with Ruby version info (#3818)
* Make the directory for includes configurable (#3782)
* Rename directory configurations to match `*_dir` convention for consistency (#3782)
* Internal: trigger hooks by owner symbol (#3871)
* Update MIME types from mime-db (#3933)
* Add header to site template `_config.yml` for clarity & direction (#3997)
* Site template: add timezone offset to post date frontmatter (#4001)
* Make a constant for the regex to find hidden files (#4032)
* Site template: refactor github & twitter icons into includes (#4049)
* Site template: add background to Kramdown Rouge-ified backtick code blocks (#4053)
### Bug Fixes
* `post_url`: fix access deprecation warning & fix deprecation msg (#4060)
* Perform jekyll-paginate deprecation warning correctly. (#3580)
* Make permalink parsing consistent with pages (#3014)
* `time()`pre-filter method should accept a `Date` object (#3299)
* Remove unneeded end tag for `link` in site template (#3236)
* Kramdown: Use `enable_coderay` key instead of `use_coderay` (#3237)
* Unescape `Document` output path (#2924)
* Fix nav items alignment when on multiple rows (#3264)
* Highlight: Only Strip Newlines/Carriage Returns, not Spaces (#3278)
* Find variables in front matter defaults by searching with relative file path. (#2774)
* Allow variables (e.g `:categories`) in YAML front matter permalinks (#3320)
* Handle nil URL placeholders in permalinks (#3325)
* Template: Fix nav items alignment when in "burger" mode (#3329)
* Template: Remove `!important` from nav SCSS introduced in #3329 (#3375)
* The `:title` URL placeholder for collections should be the filename slug. (#3383)
* Trim the generate time diff to just 3 places past the decimal place (#3415)
* The highlight tag should only clip the newlines before and after the *entire* block, not in between (#3401)
* highlight: fix problem with linenos and rouge. (#3436)
* `Site#read_data_file`: read CSV's with proper file encoding (#3455)
* Ignore `.jekyll-metadata` in site template (#3496)
* Template: Point documentation link to the documentation pages (#3502)
* Removed the trailing slash from the example `/blog` baseurl comment (#3485)
* Clear the regenerator cache every time we process (#3592)
* Readd (bring back) minitest-profile (#3628)
* Add WOFF2 font MIME type to Jekyll server MIME types (#3647)
* Be smarter about extracting the extname in `StaticFile` (#3632)
* Process metadata for all dependencies (#3608)
* Show error message if the YAML front matter on a page/post is invalid. (#3643)
* Upgrade redcarpet to 3.2 (Security fix: OSVDB-120415) (#3652)
* Create #mock_expects that goes directly to RSpec Mocks. (#3658)
* Open `.jekyll-metadata` in binary mode to read binary Marshal data (#3713)
* Incremental regeneration: handle deleted, renamed, and moved dependencies (#3717)
* Fix typo on line 19 of pagination.md (#3760)
* Fix it so that 'blog.html' matches 'blog.html' (#3732)
* Remove occasionally-problematic `ensure` in `LiquidRenderer` (#3811)
* Fixed an unclear code comment in site template SCSS (#3837)
* Fix reading of binary metadata file (#3845)
* Remove var collision with site template header menu iteration variable (#3838)
* Change non-existent `hl_linenos` to `hl_lines` to allow passthrough in safe mode (#3787)
* Add missing flag to disable the watcher (#3820)
* Update CI guide to include more direct explanations of the flow (#3891)
* Set `future` to `false` in the default config (#3892)
* filters: `where` should compare stringified versions of input & comparator (#3935)
* Read build options for `jekyll clean` command (#3828)
* Fix #3970: Use Gem::Version to compare versions, not `>`.
* Abort if no subcommand. Fixes confusing message. (#3992)
* Whole-post excerpts should match the post content (#4004)
* Change default font weight to 400 to fix bold/strong text issues (#4050)
* Document: Only auto-generate the excerpt if it's not overridden (#4062)
* Utils: `deep_merge_hashes` should also merge `default_proc` (45f69bb)
* Defaults: compare paths in `applies_path?` as `String`s to avoid confusion (7b81f00)
### Development Fixes
* Remove loader.rb and "modernize" `script/test`. (#3574)
* Improve the grammar in the documentation (#3233)
* Update the LICENSE text to match the MIT license exactly (#3253)
* Update rake task `site:publish` to fix minor bugs. (#3254)
* Switch to shields.io for the README badges. (#3255)
* Use `FileList` instead of `Dir.glob` in `site:publish` rake task (#3261)
* Fix test script to be platform-independent (#3279)
* Instead of symlinking `/tmp`, create and symlink a local `tmp` in the tests (#3258)
* Fix some spacing (#3312)
* Fix comment typo in `lib/jekyll/frontmatter_defaults.rb` (#3322)
* Move all `regenerate?` checking to `Regenerator` (#3326)
* Factor out a `read_data_file` call to keep things clean (#3380)
* Proof the site with CircleCI. (#3427)
* Update LICENSE to 2015. (#3477)
* Upgrade tests to use Minitest (#3492)
* Remove trailing whitespace (#3497)
* Use `fixture_site` for Document tests (#3511)
* Remove adapters deprecation warning (#3529)
* Minor fixes to `url.rb` to follow GitHub style guide (#3544)
* Minor changes to resolve deprecation warnings (#3547)
* Convert remaining textile test documents to markdown (#3528)
* Migrate the tests to use rspec-mocks (#3552)
* Remove `activesupport` (#3612)
* Added tests for `Jekyll:StaticFile` (#3633)
* Force minitest version to 5.5.1 (#3657)
* Update the way cucumber accesses Minitest assertions (#3678)
* Add `script/rubyprof` to generate cachegrind callgraphs (#3692)
* Upgrade cucumber to 2.x (#3795)
* Update Kramdown. (#3853)
* Updated the scripts shebang for portability (#3858)
* Update JRuby testing to 9K ([3ab386f](https://github.com/jekyll/jekyll/commit/3ab386f1b096be25a24fe038fc70fd0fb08d545d))
* Organize dependencies into dev and test groups. (#3852)
* Contributing.md should refer to `script/cucumber` (#3894)
* Update contributing documentation to reflect workflow updates (#3895)
* Add script to vendor mime types (#3933)
* Ignore .bundle dir in SimpleCov (#4033)
### Site Enhancements
* Add 'info' labels to certain notes in collections docs (#3601)
* Remove extra spaces, make the last sentence less awkward in permalink docs (#3603)
* Update the permalinks documentation to reflect the updates for 3.0 (#3556)
* Add blog post announcing Jekyll Help (#3523)
* Add Jekyll Talk to Help page on site (#3518)
* Change Ajax pagination resource link to use HTTPS (#3570)
* Fixing the default host on docs (#3229)
* Add `jekyll-thumbnail-filter` to list of third-party plugins (#2790)
* Add link to 'Adding Ajax pagination to Jekyll' to Resources page (#3186)
* Add a Resources link to tutorial on building dynamic navbars (#3185)
* Semantic structure improvements to the post and page layouts (#3251)
* Add new AsciiDoc plugin to list of third-party plugins. (#3277)
* Specify that all transformable collection documents must contain YAML front matter (#3271)
* Assorted accessibility fixes (#3256)
* Update configuration docs to mention `keep_files` for `destination` (#3288, #3296)
* Break when we successfully generate nav link to save CPU cycles. (#3291)
* Update usage docs to mention `keep_files` and a warning about `destination` cleaning (#3295)
* Add logic to automatically generate the `next_section` and `prev_section` navigation items (#3292)
* Some small fixes for the Plugins TOC. (#3306)
* Added versioning comment to configuration file (#3314)
* Add `jekyll-minifier` to list of third-party plugins (#3333)
* Add blog post about the Jekyll meet-up (#3332)
* Use `highlight` Liquid tag instead of the four-space tabs for code (#3336)
* 3.0.0.beta1 release post (#3346)
* Add `twa` to the list of third-party plugins (#3384)
* Remove extra spaces (#3388)
* Fix small grammar errors on a couple pages (#3396)
* Fix typo on Templates docs page (#3420)
* s/three/four for plugin type list (#3424)
* Release jekyllrb.com as a locally-compiled site. (#3426)
* Add a jekyllrb.com/help page which elucidates places from which to get help (#3428)
* Remove extraneous dash on Plugins doc page which caused a formatting error (#3431)
* Fix broken link to Jordan Thornquest's website. (#3438)
* Change the link to an extension (#3457)
* Fix Twitter link on the help page (#3466)
* Fix wording in code snippet highlighting section (#3475)
* Add a `/` to `paginate_path` in the Pagination documentation (#3479)
* Add a link on all the docs pages to "Improve this page". (#3510)
* Add jekyll-auto-image generator to the list of third-party plugins (#3489)
* Replace link to the proposed `picture` element spec (#3530)
* Add frontmatter date formatting information (#3469)
* Improve consistency and clarity of plugins options note (#3546)
* Add permalink warning to pagination docs (#3551)
* Fix grammar in Collections docs API stability warning (#3560)
* Restructure `excerpt_separator` documentation for clarity (#3550)
* Fix accidental line break in collections docs (#3585)
* Add information about the `.jekyll-metadata` file (#3597)
* Document addition of variable parameters to an include (#3581)
* Add `jekyll-files` to the list of third-party plugins. (#3586)
* Define the `install` step in the CI example `.travis.yml` (#3622)
* Expand collections documentation. (#3638)
* Add the "warning" note label to excluding `vendor` in the CI docs page (#3623)
* Upgrade pieces of the Ugrading guide for Jekyll 3 (#3607)
* Showing how to access specific data items (#3468)
* Clarify pagination works from within HTML files (#3467)
* Add note to `excerpt_separator` documentation that it can be set globally (#3667)
* Fix some names on Troubleshooting page (#3683)
* Add `remote_file_content` tag plugin to list of third-party plugins (#3691)
* Update the Redcarpet version on the Configuration page. (#3743)
* Update the link in the welcome post to point to Jekyll Talk (#3745)
* Update link for navbars with data attributes tutorial (#3728)
* Add `jekyll-asciinema` to list of third-party plugins (#3750)
* Update pagination example to be agnostic to first pagination dir (#3763)
* Detailed instructions for rsync deployment method (#3848)
* Add Jekyll Portfolio Generator to list of plugins (#3883)
* Add `site.html_files` to variables docs (#3880)
* Add Static Publisher tool to list of deployment methods (#3865)
* Fix a few typos. (#3897)
* Add `jekyll-youtube` to the list of third-party plugins (#3931)
* Add Views Router plugin (#3950)
* Update install docs (Core dependencies, Windows reqs, etc) (#3769)
* Use Jekyll Feed for jekyllrb.com (#3736)
* Add jekyll-umlauts to plugins.md ($3966)
* Troubleshooting: fix broken link, add other mac-specific info (#3968)
* Add a new site for learning purposes (#3917)
* Added documentation for Jekyll environment variables (#3989)
* Fix broken configuration documentation page (#3994)
* Add troubleshooting docs for installing on El Capitan (#3999)
* Add Lazy Tweet Embedding to the list of third-party plugins (#4015)
* Add installation instructions for 2 of 3 options for plugins (#4013)
* Add alternative jekyll gem installation instructions (#4018)
* Fix a few typos and formatting problems. (#4022)
* Fix pretty permalink example (#4029)
* Note that `_config.yml` is not reloaded during regeneration (#4034)
* Apply code block figure syntax to blocks in CONTRIBUTING (#4046)
* Add jekyll-smartify to the list of third-party plugins (#3572)
## 2.5.3 / 2014-12-22
### Bug Fixes
* When checking a Markdown extname, include position of the `.` (#3147)
* Fix `jsonify` Liquid filter handling of boolean values (#3154)
* Add comma to value of `viewport` meta tag (#3170)
* Set the link type for the RSS feed to `application/rss+xml` (#3176)
* Refactor `#as_liquid` (#3158)
### Development Fixes
* Exclude built-in bundles from being added to coverage report (#3180)
### Site Enhancements
* Add `@alfredxing` to the `@jekyll/core` team. :tada: (#3218)
* Document the `-q` option for the `build` and `serve` commands (#3149)
* Fix some minor typos/flow fixes in documentation website content (#3165)
* Add `keep_files` to configuration documentation (#3162)
* Repeat warning about cleaning of the `destination` directory (#3161)
* Add jekyll-500px-embed to list of third-party plugins (#3163)
* Simplified platform detection in Gemfile example for Windows (#3177)
* Add the `jekyll-jalali` plugin added to the list of third-party plugins. (#3198)
* Add Table of Contents to Troubleshooting page (#3196)
* Add `inline_highlight` plugin to list of third-party plugins (#3212)
* Add `jekyll-mermaid` plugin to list of third-party plugins (#3222)
## 2.5.2 / 2014-11-17
### Minor Enhancements
* `post_url` should match `post.name` instead of slugs and dates (#3058)
### Bug Fixes
* Fix bundle require for `:jekyll_plugins` (#3119)
* Remove duplicate regexp phrase: `^\A` (#3089)
* Remove duplicate `Conversion error:` message in `Convertible` (#3088)
* Print full conversion error message in `Renderer#convert` (#3090)
### Site Enhancements
* Change variable names in Google Analytics script (#3093)
* Mention CSV files in the docs for data files (#3101)
* Add trailing slash to `paginate_path` example. (#3091)
* Get rid of noifniof (`excerpt_separator`) (#3094)
* Sass improvements, around nesting mostly. (#3123)
* Add webmentions.io plugin to the list of third-party plugins (#3127)
* Add Sass mixins and use them. (#2904)
* Slightly compress jekyll-sticker.jpg. (#3133)
* Update gridism and separate out related but custom styles. (#3132)
* Add remote-include plugin to list of third-party plugins (#3136)
## 2.5.1 / 2014-11-09
### Bug Fixes
* Fix path sanitation bug related to Windows drive names (#3077)
### Development Fixes
* Add development time dependencies on minitest and test-unit to gemspec for cygwin (#3064)
* Use Travis's built-in caching. (#3075)
## 2.5.0 / 2014-11-06
### Minor Enhancements
* Require gems in `:jekyll_plugins` Gemfile group unless `JEKYLL_NO_BUNDLER_REQUIRE` is specified in the environment. (#2865)
* Centralize path sanitation in the `Site` object (#2882)
* Allow placeholders in permalinks (#3031)
* Allow users to specify the log level via `JEKYLL_LOG_LEVEL`. (#3067)
* Fancy Indexing with WEBrick (#3018)
* Allow Enumerables to be used with `where` filter. (#2986)
* Meta descriptions in the site template now use `page.excerpt` if it's available (#2964)
* Change indentation in `head.html` of site template to 2 spaces from 4 (#2973)
* Use a `$content-width` variable instead of a fixed value in the site template CSS (#2972)
* Strip newlines in site template `<meta>` description. (#2982)
* Add link to atom feed in `head` of site template files (#2996)
* Performance optimizations (#2994)
* Use `Hash#each_key` instead of `Hash#keys.each` to speed up iteration
over hash keys. (#3017)
* Further minor performance enhancements. (#3022)
* Add 'b' and 's' aliases for build and serve, respectively (#3065)
### Bug Fixes
* Fix Rouge's RedCarpet plugin interface integration (#2951)
* Remove `--watch` from the site template blog post since it defaults
to watching in in 2.4.0 (#2922)
* Fix code for media query mixin in site template (#2946)
* Allow post URL's to have `.htm` extensions (#2925)
* `Utils.slugify`: Don't create new objects when gsubbing (#2997)
* The jsonify filter should deep-convert to Liquid when given an Array. (#3032)
* Apply `jsonify` filter to Hashes deeply and effectively (#3063)
* Use `127.0.0.1` as default host instead of `0.0.0.0` (#3053)
* In the case that a Gemfile does not exist, ensure Jekyll doesn't fail on requiring the Gemfile group (#3066)
### Development Fixes
* Fix a typo in the doc block for `Jekyll::URL.escape_path` (#3052)
* Add integration test for `jekyll new --blank` in TestUnit (#2913)
* Add unit test for `jekyll new --force` logic (#2929)
* Update outdated comment for `Convertible#transform` (#2957)
* Add Hakiri badge to README. (#2953)
* Add some simple benchmarking tools. (#2993)
### Site Enhancements
* `NOKOGIRI_USE_SYSTEM_LIBRARIES=true` **decreases** installation time. (#3040)
* Add FormKeep to resources as Jekyll form backend (#3010)
* Fixing a mistake in the name of the new Liquid tag (#2969)
* Update Font Awesome to v4.2.0. (#2898)
* Fix link to #2895 in 2.4.0 release post. (#2899)
* Add Big Footnotes for Kramdown plugin to list of third-party plugins (#2916)
* Remove warning regarding GHP use of singular types for front matter defaults (#2919)
* Fix quote character typo in site documentation for templates (#2917)
* Point Liquid links to Liquids Github wiki (#2887)
* Add HTTP Basic Auth (.htaccess) plugin to list of third-party plugins (#2931)
* (Minor) Grammar & `_config.yml` filename fixes (#2911)
* Added `mathml.rb` to the list of third-party plugins. (#2937)
* Add `--force_polling` to the list of configuration options (#2943)
* Escape unicode characters in site CSS (#2906)
* Add note about using the github-pages gem via pages.github.com/versions.json (#2939)
* Update usage documentation to reflect 2.4 auto-enabling of `--watch`. (#2954)
* Add `--skip-initial-build` to configuration docs (#2949)
* Fix a minor typo in Templates docs page (#2959)
* Add a ditaa-ditaa plugin under Other section on the Plugins page (#2967)
* Add `build/serve -V` option to configuration documentation (#2948)
* Add 'Jekyll Twitter Plugin' to list of third-party plugins (#2979)
* Docs: Update normalize.css to v3.0.2. (#2981)
* Fix typo in Continuous Integration documentation (#2984)
* Clarify behavior of `:categories` in permalinks (#3011)
## 2.4.0 / 2014-09-09
### Minor Enhancements
* Support a new `relative_include` tag (#2870)
* Auto-enable watch on 'serve' (#2858)
* Render Liquid in CoffeeScript files (#2830)
* Array Liquid filters: `push`, `pop`, `unshift`, `shift` (#2895)
* Add `:title` to collection URL template fillers (#2864)
* Add support for CSV files in the `_data` directory (#2761)
* Add the `name` variable to collection permalinks (#2799)
* Add `inspect` liquid filter. (#2867)
* Add a `slugify` Liquid filter (#2880)
### Bug Fixes
* Use `Jekyll.sanitized_path` when adding static files to Collections (#2849)
* Fix encoding of `main.scss` in site template (#2771)
* Fix orientation bugs in default site template (#2862)
### Development Fixes
* Update simplecov gem to 0.9 (#2748)
* Remove `docs/` dir (#2768)
* add class `<< self` idiom to `New` command (#2817)
* Allow Travis to 'parallelize' our tests (#2859)
* Fix test for Liquid rendering in Sass (#2856)
* Fixing "vertycal" typo in site template's `_base.scss` (#2889)
### Site Enhancements
* Document the `name` variable for collection permalinks (#2829)
* Adds info about installing jekyll in current dir (#2839)
* Remove deprecated `jekyll-projectlist` plugin from list of third-party
plugins (#2742)
* Remove tag plugins that are built in to Jekyll (#2751)
* Add `markdown-writer` package for Atom Editor to list of third-party
plugins (#2763)
* Fix typo in site documentation for collections (#2764)
* Fix minor typo on plugins docs page (#2765)
* Replace markdown with HTML in `sass_dir` note on assets page (#2791)
* Fixed "bellow" typo in datafiles docs (#2879)
* Fix code/markdown issue in documentation for variables (#2877)
* Remove Good Include third-party plugin from plugins page (#2881)
* Add some more docs on `include_relative` (#2884)
## 2.3.0 / 2014-08-10
### Minor Enhancements
* Allow Convertibles to be converted by >= 1 converters (#2704)
* Allow Sass files to be rendered in Liquid, but never place them in layouts. (#2733)
* Add `jekyll help` command (#2707)
* Use `.scss` for `site_template` styles. (#2667)
* Don't require the `scope` key in front matter defaults (#2659)
* No longer set `permalink: pretty` in the `_config.yml` for the site template (#2680)
* Rework site template to utilize Sass (#2687)
* Notify the user when auto-regeneration is disabled. (#2696)
* Allow partial variables in include tag filename argument (#2693)
* Move instances of `Time.parse` into a Utils method (#2682)
* Ignore subfolders in the `_posts` folder (#2705) REVERTS (#2633)
* Front Matter default types should always be pluralized (#2732)
* Read in static files into `collection.files` as `StaticFile`s (#2737)
* Add `sassify` and `scssify` Liquid filters (#2739)
* Replace `classifier` gem with `classifier-reborn` (#2721)
### Bug Fixes
* Use only the last extname when multiple converters exist (#2722)
* Call `#to_liquid` before calling `#to_json` in jsonify filter (#2729)
* Use non padded config in `strftime` to avoid parse string twice (#2673)
* Replace deprecated Ruby methods with undeprecated ones (#2664)
* Catch errors when parsing Post `date` front matter value & produce nice error message (#2649)
* Allow static files in Collections (#2615)
* Fixed typo in `Deprecator#gracefully_require` error message (#2694)
* Remove preemptive loading of the 'classifier' gem. (#2697)
* Use case-insensitive checking for the file extensions when loading config files (#2718)
* When Reading Documents, Respect `encoding` Option (#2720)
* Refactor based on jekyll-watch clean-up. (#2716)
* `Document#to_s` should produce just the content of the document (#2731)
### Development Fixes
* Only include lib files in the gem (#2671)
* Fix `git diff` command in `proof` script (#2672)
* Make default rake task a multitask so tests run in parallel (#2735)
### Site Enhancements
* Use Sass and a Docs Collection (#2651)
* Add `latest_version.txt` file to the site (#2740)
* Be more ambiguous about `page.content`. But more transparent. (#2522)
* Streamlining front matter wording (instead of front-matter/frontmatter) (#2674)
* Add note that source directory cannot be modified in GitHub Pages (#2669)
* Fix links from #2669 to be actual HTML. Whoops. (#2679)
* Add link to `jekyll-slim` in list of third-party plugins (#2689)
* Add Barry Clark's Smashing Magazine tutorial to resources page (#2688)
* Reorganize and update default configuration settings (#2456)
* Fixing indentation in the configuration docs about Redcarpet exts (#2717)
* Use `null` in YAML instead of `nil` in default config list (#2719)
* Fix typo in Continuous Integration docs (#2708)
## 2.2.0 / 2014-07-29
### Minor Enhancements
* Throw a warning if the specified layout does not exist (#2620)
* Whitelist Pygments options in safe mode (#2642)
### Bug Fixes
* Remove unnecessary `Jekyll::Tags::IncludeTag#blank?` method (#2625)
* Categories in the path are ignored (#2633)
### Development Fixes
* Refactoring Errors & Requires of Third-Party stuff (#2591)
* Add further tests for categories (#2584)
* Proof site with html-proofer on change (#2605)
* Fix up bug in #2605 which caused proofing the site not to function (#2608)
* Use `bundle exec` in `script/proof` (#2610)
### Site Enhancements
* Update Kramdown urls (#2588)
* Add `Jekyll::AutolinkEmail` and `Jekyll::GitMetadata` to the list of
third-party plugins (#2596)
* Fix a bunch of broken links in the site (#2601)
* Replace dead links with working links (#2611)
* Add jekyll-hook to deployment methods (#2617)
* Added kramdown-with-pygments plugin to the list of third-party plugins (#2623)
* Update outdated "Extras" page and remove duplicate documentation (#2622)
* Add co2 plugin to list of third-party plugins (#2639)
* Attempt to clarify the way Sass imports happen (#2642)
## 2.1.1 / 2014-07-01
### Bug Fixes
* Patch read vulnerabilities for data & confirm none for layouts (#2563)
* Update Maruku dependency to allow use of the latest version (#2576)
* Remove conditional assignment from document URL to prevent stale urls (#2575)
### Site Enhancements
* Add vertical margin to `highlight` to separate code blocks (#2558)
* Add `html_pages` to Variables docs (#2567)
* Fixed broken link to Permalinks page (#2572)
* Update link to Windows installation guide (#2578)
## 2.1.0 / 2014-06-28
### Minor Enhancements
* Bump to the latest Liquid version, 2.6.1 (#2495)
@@ -22,11 +625,13 @@
* Upgrade listen to `2.7.6 <= x < 3.0.0` (#2492)
* Allow configuration of different Twitter and GitHub usernames in site template (#2485)
* Bump Pygments to v0.6.0 (#2504)
* Front-matter defaults for documents in collections (#2419)
* Front matter defaults for documents in collections (#2419)
* Include files with a url which ends in `/` in the `site.html_pages` list (#2524)
* Make `highlight` tag use `language-` prefix in CSS class (#2511)
* Lookup item property via `item#to_liquid` before `#data` or `#[]` in filters (#2493)
* Skip initial build of site on serve with flag (#2477)
* Add support for `hl_lines` in `highlight` tag (#2532)
* Spike out `--watch` flag into a separate gem (#2550)
### Bug Fixes
@@ -38,7 +643,7 @@
* Prevent code from overflowing container in site template (#2429)
* Encode URLs in UTF-8 when escaping and unescaping (#2420)
* No Layouts or Liquid for Asset Files (#2431)
* Allow front-matter defaults to set post categories (#2373)
* Allow front matter defaults to set post categories (#2373)
* Fix command in subcommand deprecation warning (#2457)
* Keep all parent directories of files/dirs in `keep_files` (#2458)
* When using RedCarpet and Rouge without Rouge installed, fixed erroneous
@@ -46,6 +651,11 @@
* Ignore *all* directories and files that merit it on auto-generation (#2459)
* Before copying file, explicitly remove the old one (#2535)
* Merge file system categories with categories from YAML. (#2531)
* Deep merge front matter defaults (#2490)
* Ensure exclude and include arrays are arrays of strings (#2542)
* Allow collections to have dots in their filenames (#2552)
* Collections shouldn't try to read in directories as files (#2552)
* Be quiet very quickly. (#2520)
### Development Fixes
@@ -53,6 +663,7 @@
* Add test for sorting UTF-8 characters (#2384)
* Use `https` for GitHub links in documentation (#2470)
* Remove coverage reporting with Coveralls (#2494)
* Fix a bit of missing TomDoc to `Jekyll::Commands::Build#build` (#2554)
### Site Enhancements
@@ -65,7 +676,7 @@
* Prevent table from extending parent width in permalink style table (#2424)
* Add collections to info about pagination support (#2389)
* Add `jekyll_github_sample` plugin to list of third-party plugins (#2463)
* Clarify documentation around front-matter defaults and add details
* Clarify documentation around front matter defaults and add details
about defaults for collections. (#2439)
* Add Jekyll Project Version Tag to list of third-party plugins (#2468)
* Use `https` for GitHub links across whole site (#2470)
@@ -74,6 +685,9 @@
* Add link to jekyll-compress-html to list of third-party plugins (#2514)
* Add Piwigo Gallery to list of third-party plugins (#2526)
* Set `show_drafts` to `false` in default configuration listing (#2536)
* Provide an updated link for Windows installation instructions (#2544)
* Remove `url` from configuration docs (#2547)
* Documentation for Continuous Integration for your Jekyll Site (#2432)
## 2.0.3 / 2014-05-08
@@ -97,7 +711,7 @@
* Update docs to reflect new `baseurl` default (#2341)
* Add links to headers who have an ID. (#2342)
* Use symbol instead of HTML number in `upgrading.md` (#2351)
* Fix link to frontmatter defaults docs (#2353)
* Fix link to front matter defaults docs (#2353)
* Fix for `History.markdown` in order to fix history page in docs (#2363)
## 2.0.2 / 2014-05-07
@@ -137,7 +751,7 @@
* Expose `site.static_files` to Liquid (#2075)
* Complete redesign of the template site generated by `jekyll new` (#2050)
* Update Listen from 1.x to 2.x (#2097)
* Front-matter defaults (#2205)
* Front matter defaults (#2205)
* Deprecate `relative_permalinks` configuration option (default to `false`) (#2307)
* Exclude files based on prefix as well as `fnmatch?` (#2303)
@@ -182,12 +796,12 @@
* Permit YAML blocks to end with three dots to better conform with the
YAML spec (#2110)
* Use `File.exist?` instead of deprecated `File.exists?` (#2214)
* Require newline after start of YAML front-matter header (#2211)
* Require newline after start of YAML Front Matter header (#2211)
* Add the ability for pages to be marked as `published: false` (#1492)
* Add `Jekyll::LiquidExtensions` with `.lookup_variable` method for easy
looking up of variable values in a Liquid context. (#2253)
* Remove literal lang name from class (#2292)
* Return `utf-8` encoding in header for webrick error page response (#2289)
* Return `utf-8` encoding in header for webrick error page response (#2289)
* Make template site easier to customize (#2268)
* Add two-digit year to permalink template option (#2301)
* Add `site.documents` to Liquid payload (list of all docs) (#2295)
@@ -855,7 +1469,7 @@
* Bullet-proof `limit_posts` option (#1004)
* Read in YAML as UTF-8 to accept non-ASCII chars (#836)
* Fix the CLI option `--plugins` to actually accept dirs and files (#993)
* Allow 'excerpt' in YAML Front-Matter to override the extracted excerpt (#946)
* Allow 'excerpt' in YAML front matter to override the extracted excerpt (#946)
* Fix cascade problem with site.baseurl, site.port and site.host. (#935)
* Filter out directories with valid post names (#875)
* Fix symlinked static files not being correctly built in unsafe mode (#909)
@@ -867,7 +1481,7 @@
* Patch for multibyte URI problem with `jekyll serve` (#723)
* Order plugin execution by priority (#864)
* Fixed Page#dir and Page#url for edge cases (#536)
* Fix broken `post_url` with posts with a time in their YAML Front-Matter (#831)
* Fix broken `post_url` with posts with a time in their YAML front matter (#831)
* Look for plugins under the source directory (#654)
* Tumblr Migrator: finds `_posts` dir correctly, fixes truncation of long
post names (#775)
@@ -926,7 +1540,7 @@
* Fix error with `limit_posts` (#442)
* Properly select dotfile during directory scan (#363, #431, #377)
* Allow setting of Kramdown `smart_quotes` (#482)
* Ensure front-matter is at start of file (#562)
* Ensure front matter is at start of file (#562)
## 0.11.2 / 2011-12-27
* Bug Fixes
@@ -1047,7 +1661,7 @@
## 0.5.6 / 2010-01-08
* Bug Fixes
* Require redcloth >= 4.2.1 in tests (#92)
* Don't break on triple dashes in yaml frontmatter (#93)
* Don't break on triple dashes in yaml front matter (#93)
### Minor Enhancements
* Allow .mkd as markdown extension
@@ -1082,9 +1696,9 @@
* Configuration options set in config.yml are now available through the
site payload (@vilcans)
* Posts can now have an empty YAML front matter or none at all
(@bahuvrihi)
(@ bahuvrihi)
* Bug Fixes
* Fixing Ruby 1.9 issue that requires to_s on the err object
* Fixing Ruby 1.9 issue that requires `#to_s` on the err object
(@Chrononaut)
* Fixes for pagination and ordering posts on the same day (@ujh)
* Made pages respect permalinks style and permalinks in yml front matter
@@ -1094,8 +1708,8 @@
* Added trailing slash to pretty permalink style so Apache is happy
(@eugenebolshakov)
* Bad markdown processor in config fails sooner and with better message
(@gcnovus)
* Allow CRLFs in yaml frontmatter (@juretta)
(@ gcnovus)
* Allow CRLFs in yaml front matter (@juretta)
* Added Date#xmlschema for Ruby versions < 1.9
## 0.5.1 / 2009-05-06

View File

@@ -1,9 +1,9 @@
(The MIT License)
The MIT License (MIT)
Copyright (c) 2008-2014 Tom Preston-Werner
Copyright (c) 2008-2015 Tom Preston-Werner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

View File

@@ -1,11 +1,12 @@
# [Jekyll](http://jekyllrb.com/)
[![Gem Version](https://badge.fury.io/rb/jekyll.svg)](https://rubygems.org/gems/jekyll)
[![Build Status](https://secure.travis-ci.org/jekyll/jekyll.svg?branch=master)](https://travis-ci.org/jekyll/jekyll)
[![Code Climate](http://img.shields.io/codeclimate/github/jekyll/jekyll.svg)](https://codeclimate.com/github/jekyll/jekyll)
[![Dependency Status](https://gemnasium.com/jekyll/jekyll.svg)](https://gemnasium.com/jekyll/jekyll)
[![Gem Version](https://img.shields.io/gem/v/jekyll.svg)](https://rubygems.org/gems/jekyll)
[![Build Status](https://img.shields.io/travis/jekyll/jekyll/master.svg)](https://travis-ci.org/jekyll/jekyll)
[![Code Climate](https://img.shields.io/codeclimate/github/jekyll/jekyll.svg)](https://codeclimate.com/github/jekyll/jekyll)
[![Dependency Status](https://img.shields.io/gemnasium/jekyll/jekyll.svg)](https://gemnasium.com/jekyll/jekyll)
[![Security](https://hakiri.io/github/jekyll/jekyll/master.svg)](https://hakiri.io/github/jekyll/jekyll/master)
By Tom Preston-Werner, Nick Quaranto, and many [awesome contributors](https://github.com/jekyll/jekyll/graphs/contributors)!
By Tom Preston-Werner, Nick Quaranto, Parker Moore, and many [awesome contributors](https://github.com/jekyll/jekyll/graphs/contributors)!
Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind [GitHub Pages](http://pages.github.com), which you can use to host sites right from your GitHub repositories.
@@ -13,13 +14,29 @@ Jekyll is a simple, blog-aware, static site generator perfect for personal, proj
Jekyll does what you tell it to do — no more, no less. It doesn't try to outsmart users by making bold assumptions, nor does it burden them with needless complexity and configuration. Put simply, Jekyll gets out of your way and allows you to concentrate on what truly matters: your content.
## Having trouble with OS X El Capitan?
See: http://jekyllrb.com/docs/troubleshooting/#jekyll-amp-mac-os-x-1011
## Getting Started
* [Install](http://jekyllrb.com/docs/installation/) the gem
* Read up about its [Usage](http://jekyllrb.com/docs/usage/) and [Configuration](http://jekyllrb.com/docs/configuration/)
* Take a gander at some existing [Sites](https://wiki.github.com/jekyll/jekyll/sites)
* Fork and [Contribute](http://jekyllrb.com/docs/contributing/) your own modifications
* Have questions? Check out [`#jekyll` on irc.freenode.net](https://botbot.me/freenode/jekyll/).
* Have questions? Check out our official forum community [Jekyll Talk](https://talk.jekyllrb.com/) or [`#jekyll` on irc.freenode.net](https://botbot.me/freenode/jekyll/)
## Code of Conduct
In order to have a more open and welcoming community, Jekyll adheres to a
[code of conduct](CONDUCT.md) adapted from the Ruby on Rails code of
conduct.
Please adhere to this code of conduct in any interactions you have in the
Jekyll community. It is strictly enforced on all official Jekyll
repositories, websites, and resources. If you encounter someone violating
these terms, please let a maintainer (@parkr, @envygeeks, or @mattr-) know
and we will address it as soon as possible.
## Diving In

144
Rakefile
View File

@@ -14,19 +14,23 @@ require 'jekyll/version'
#############################################################################
def name
@name ||= Dir['*.gemspec'].first.split('.').first
"jekyll"
end
def version
Jekyll::VERSION
end
def docs_name
"#{name}-docs"
end
def gemspec_file
"#{name}.gemspec"
end
def gem_file
"#{name}-#{version}.gem"
"#{name}-#{Gem::Version.new(version).to_s}.gem"
end
def normalize_bullets(markdown)
@@ -53,13 +57,32 @@ def liquid_escape(markdown)
markdown.gsub(/(`{[{%].+[}%]}`)/, "{% raw %}\\1{% endraw %}")
end
def custom_release_header_anchors(markdown)
header_regexp = /^(\d{1,2})\.(\d{1,2})\.(\d{1,2}) \/ \d{4}-\d{2}-\d{2}/
section_regexp = /^### \w+ \w+$/
markdown.split(/^##\s/).map do |release_notes|
_, major, minor, patch = *release_notes.match(header_regexp)
release_notes
.gsub(header_regexp, "\\0\n{: #v\\1-\\2-\\3}")
.gsub(section_regexp) { |section| "#{section}\n{: ##{sluffigy(section)}-v#{major}-#{minor}-#{patch}}" }
end.join("\n## ")
end
def sluffigy(header)
header.gsub(/#/, '').strip.downcase.gsub(/\s+/, '-')
end
def remove_head_from_history(markdown)
index = markdown =~ /^##\s+\d+\.\d+\.\d+/
markdown[index..-1]
end
def converted_history(markdown)
remove_head_from_history(liquid_escape(linkify(normalize_bullets(markdown))))
remove_head_from_history(
custom_release_header_anchors(
liquid_escape(
linkify(
normalize_bullets(markdown)))))
end
#############################################################################
@@ -68,8 +91,9 @@ end
#
#############################################################################
task :default => [:test, :features]
multitask :default => [:test, :features]
task :spec => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
@@ -113,8 +137,9 @@ end
namespace :site do
desc "Generate and view the site locally"
task :preview do
task :preview => [:history, :version_file] do
require "launchy"
require "jekyll"
# Yep, it's a hack! Wait a few seconds for the Jekyll site to generate and
# then open it in a browser. Someday we can do better than this, I hope.
@@ -126,47 +151,76 @@ namespace :site do
# Generate the site in server mode.
puts "Running Jekyll..."
Dir.chdir("site") do
sh "#{File.expand_path('bin/jekyll', File.dirname(__FILE__))} serve --watch"
end
options = {
"source" => File.expand_path("site"),
"destination" => File.expand_path("site/_site"),
"watch" => true,
"serving" => true
}
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
desc "Generate the site"
task :generate => [:history, :version_file] do
require "jekyll"
Jekyll::Commands::Build.process({
"source" => File.expand_path("site"),
"destination" => File.expand_path("site/_site")
})
end
desc "Update normalize.css library to the latest version and minify"
task :update_normalize_css do
Dir.chdir("site/_includes/css") do
Dir.chdir("site/_sass") do
sh 'curl "http://necolas.github.io/normalize.css/latest/normalize.css" -o "normalize.scss"'
sh 'sass "normalize.scss":"normalize.css" --style compressed'
sh 'rm "normalize.scss"'
sh 'sass "normalize.scss":"_normalize.scss" --style compressed'
rm ['normalize.scss', Dir.glob('*.map')].flatten
end
end
desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"
task :publish => [:history] do
task :publish => [:history, :version_file] do
# Ensure the gh-pages dir exists so we can generate into it.
puts "Checking for gh-pages dir..."
unless File.exist?("./gh-pages")
puts "No gh-pages directory found. Run the following commands first:"
puts " `git clone git@github.com:jekyll/jekyll gh-pages"
puts " `cd gh-pages"
puts " `git checkout gh-pages`"
exit(1)
puts "Creating gh-pages dir..."
sh "git clone git@github.com:jekyll/jekyll gh-pages"
end
# Ensure gh-pages branch is up to date.
# Ensure latest gh-pages branch history.
Dir.chdir('gh-pages') do
sh "git checkout gh-pages"
sh "git pull origin gh-pages"
end
# Copy to gh-pages dir.
puts "Copying site to gh-pages branch..."
Dir.glob("site/*") do |path|
next if path.include? "_site"
sh "cp -R #{path} gh-pages/"
# Proceed to purge all files in case we removed a file in this release.
puts "Cleaning gh-pages directory..."
purge_exclude = %w[
gh-pages/.
gh-pages/..
gh-pages/.git
gh-pages/.gitignore
]
FileList["gh-pages/{*,.*}"].exclude(*purge_exclude).each do |path|
sh "rm -rf #{path}"
end
# Copy site to gh-pages dir.
puts "Building site into gh-pages branch..."
ENV['JEKYLL_ENV'] = 'production'
require "jekyll"
Jekyll::Commands::Build.process({
"source" => File.expand_path("site"),
"destination" => File.expand_path("gh-pages"),
"sass" => { "style" => "compressed" }
})
File.open('gh-pages/.nojekyll', 'wb') { |f| f.puts(":dog: food.") }
# Commit and push.
puts "Committing and pushing to GitHub Pages..."
sha = `git log`.match(/[a-z0-9]{40}/)[0]
sha = `git rev-parse HEAD`.strip
Dir.chdir('gh-pages') do
sh "git add ."
sh "git commit --allow-empty -m 'Updating to #{sha}.'"
@@ -182,10 +236,9 @@ namespace :site do
front_matter = {
"layout" => "docs",
"title" => "History",
"permalink" => "/docs/history/",
"prev_section" => "contributing"
"permalink" => "/docs/history/"
}
Dir.chdir('site/docs/') do
Dir.chdir('site/_docs/') do
File.open("history.md", "w") do |file|
file.write("#{front_matter.to_yaml}---\n\n")
file.write(converted_history(history_file))
@@ -196,6 +249,11 @@ namespace :site do
end
end
desc "Write the site latest_version.txt file"
task :version_file do
File.open('site/latest_version.txt', 'wb') { |f| f.puts(version) } unless version =~ /(beta|rc|alpha)/i
end
namespace :releases do
desc "Create new release post"
task :new, :version do |t, args|
@@ -228,20 +286,46 @@ end
#
#############################################################################
desc "Release #{name} v#{version}"
task :release => :build do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
unless `git branch` =~ /^\* 3\.0-stable$/
puts "You must be on the 3.0-stable branch to release!"
exit!
end
sh "git commit --allow-empty -m 'Release #{version}'"
sh "git commit --allow-empty -m 'Release :gem: #{version}'"
sh "git tag v#{version}"
sh "git push origin master"
sh "git push origin v#{version}"
sh "gem push pkg/#{name}-#{version}.gem"
end
desc "Build #{name} v#{version} into pkg/"
task :build do
mkdir_p "pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end
#############################################################################
#
# Packaging tasks for jekyll-docs
#
#############################################################################
namespace :docs do
desc "Release #{docs_name} v#{version}"
task :release => :build do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
exit!
end
sh "gem push pkg/#{docs_name}-#{version}.gem"
end
desc "Build #{docs_name} v#{version} into pkg/"
task :build do
mkdir_p "pkg"
sh "gem build #{docs_name}.gemspec"
sh "mv #{docs_name}-#{version}.gem pkg"
end
end

View File

@@ -0,0 +1,13 @@
require 'benchmark/ips'
Benchmark.ips do |x|
path_without_ending_slash = '/some/very/very/long/path/to/a/file/i/like'
x.report('no slash regexp') { path_without_ending_slash =~ /\/$/ }
x.report('no slash end_with?') { path_without_ending_slash.end_with?("/") }
end
Benchmark.ips do |x|
path_with_ending_slash = '/some/very/very/long/path/to/a/file/i/like/'
x.report('slash regexp') { path_with_ending_slash =~ /\/$/ }
x.report('slash end_with?') { path_with_ending_slash.end_with?("/") }
end

16
benchmark/flat-map Normal file
View File

@@ -0,0 +1,16 @@
require 'benchmark/ips'
enum = (0..50).to_a
nested = enum.map { |i| [i] }
def do_thing(blah)
blah * 1
end
Benchmark.ips do |x|
x.report('.map.flatten with nested arrays') { nested.map { |i| do_thing(i) }.flatten(1) }
x.report('.flat_map with nested arrays') { nested.flat_map { |i| do_thing(i) } }
x.report('.map.flatten with no nested arrays') { enum.map { |i| do_thing(i) }.flatten(1) }
x.report('.flat_map with no nested arrays') { enum.flat_map { |i| do_thing(i) } }
end

9
benchmark/hash-fetch Normal file
View File

@@ -0,0 +1,9 @@
require 'benchmark/ips'
h = {:bar => 'uco'}
Benchmark.ips do |x|
x.report('fetch with no block') { h.fetch(:bar, (0..9).to_a) }
x.report('fetch with a block') { h.fetch(:bar) { (0..9).to_a } }
x.report('brackets with an ||') { h[:bar] || (0..9).to_a }
end

View File

@@ -0,0 +1,46 @@
#!/usr/bin/env ruby
require_relative '../lib/jekyll'
require 'benchmark/ips'
base_directory = Dir.pwd
Benchmark.ips do |x|
#
# Does not include the base_directory
#
x.report('with no questionable path') do
Jekyll.sanitized_path(base_directory, '')
end
x.report('with a single-part questionable path') do
Jekyll.sanitized_path(base_directory, 'thingy')
end
x.report('with a multi-part questionable path') do
Jekyll.sanitized_path(base_directory, 'thingy/in/my/soup')
end
x.report('with a single-part traversal path') do
Jekyll.sanitized_path(base_directory, '../thingy')
end
x.report('with a multi-part traversal path') do
Jekyll.sanitized_path(base_directory, '../thingy/in/my/../../soup')
end
#
# Including the base_directory
#
x.report('with the exact same paths') do
Jekyll.sanitized_path(base_directory, base_directory)
end
x.report('with a single-part absolute path including the base_directory') do
Jekyll.sanitized_path(base_directory, File.join(base_directory, 'thingy'))
end
x.report('with a multi-part absolute path including the base_directory') do
Jekyll.sanitized_path(base_directory, File.join(base_directory, 'thingy/in/my/soup'))
end
x.report('with a single-part traversal path including the base_directory') do
Jekyll.sanitized_path(base_directory, File.join(base_directory, 'thingy/..'))
end
x.report('with a multi-part traversal path including the base_directory') do
Jekyll.sanitized_path(base_directory, File.join('thingy/in/my/../../soup'))
end
end

View File

@@ -0,0 +1,14 @@
require 'benchmark/ips'
def fast
yield
end
def slow(&block)
block.call
end
Benchmark.ips do |x|
x.report('yield') { fast { (0..9).to_a } }
x.report('block.call') { slow { (0..9).to_a } }
end

View File

@@ -0,0 +1,11 @@
require 'benchmark/ips'
Benchmark.ips do |x|
x.report('parallel assignment') do
a, b = 1, 2
end
x.report('multi-line assignment') do
a = 1
b = 2
end
end

8
benchmark/string-concat Normal file
View File

@@ -0,0 +1,8 @@
require 'benchmark/ips'
url = "http://jekyllrb.com"
Benchmark.ips do |x|
x.report('+=') { url += '/' }
x.report('<<') { url << '/' }
end

View File

@@ -0,0 +1,13 @@
require 'benchmark/ips'
def str
'http://baruco.org/2014/some-talk-with-some-amount-of-value'
end
Benchmark.ips do |x|
x.report('#tr') { str.tr('some', 'a') }
x.report('#gsub') { str.gsub('some', 'a') }
x.report('#gsub!') { str.gsub!('some', 'a') }
x.report('#sub') { str.sub('some', 'a') }
x.report('#sub!') { str.sub!('some', 'a') }
end

6
benchmark/symbol-to-proc Normal file
View File

@@ -0,0 +1,6 @@
require 'benchmark/ips'
Benchmark.ips do |x|
x.report('block') { (1..100).map { |i| i.to_s } }
x.report('&:to_s') { (1..100).map(&:to_s) }
end

View File

@@ -6,12 +6,11 @@ $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
require 'jekyll'
require 'mercenary'
%w[jekyll-import].each do |blessed_gem|
begin
require blessed_gem
rescue LoadError
end
end
Jekyll::External.require_if_present(
Jekyll::External.blessed_gems
)
Jekyll::PluginManager.require_from_bundler
Jekyll::Deprecator.process(ARGV)
@@ -23,14 +22,17 @@ Mercenary.program(:jekyll) do |p|
p.option 'source', '-s', '--source [DIR]', 'Source directory (defaults to ./)'
p.option 'destination', '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)'
p.option 'safe', '--safe', 'Safe mode (defaults to false)'
p.option 'plugins', '-p', '--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]', Array, 'Plugins directory (defaults to ./_plugins)'
p.option 'layouts', '--layouts DIR', String, 'Layouts directory (defaults to ./_layouts)'
p.option 'plugins_dir', '-p', '--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]', Array, 'Plugins directory (defaults to ./_plugins)'
p.option 'layouts_dir', '--layouts DIR', String, 'Layouts directory (defaults to ./_layouts)'
p.option 'profile', '--profile', 'Generate a Liquid rendering profile'
Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
p.action do |args, options|
if args.empty?
Jekyll.logger.error "A subcommand is required."
puts p
abort
else
unless p.has_command?(args.first)
Jekyll.logger.abort_with "Invalid command. Use --help for more information"

View File

@@ -1,3 +0,0 @@
default: --format pretty
travis: --format progress
html_report: --format progress --format html --out=features_report.html

View File

@@ -1,93 +0,0 @@
コントリビュート
==========
あなたは Jekyll に投じるすばらしいアイディアを持っています。
すばらしいことです!次の事柄を心に留めてください。
* **テストなしではコントリビュートはできません。**
* もし、既存の機能への小さな修正やパッチを作成したなら、シンプルなテストを行います。
現在のテストスイートの範囲にとどまり、そして
[Shoulda](https://github.com/thoughtbot/shoulda/tree/master) や
[RR](https://github.com/btakita/rr/tree/master) を使用してください。
* もし、それが新しい機能の場合は、必ず新しい
[Cucumber](https://github.com/cucumber/cucumber/) の機能を作成し、
必要に応じて手順を再利用します。
また、あなたがフォークした `site`
急ぎいくつかのドキュメントを用意し、一度マージを行い
メイン `site` の jekyllrb.com に転送していただければ幸いです。
* あなたのコントリビュートによって Jekyll の振る舞いが変わった場合、ドキュメントを更新すべきです。
それは `site/docs` にあります。
もし、 docs に情報の誤りがあった場合、遠慮なく追加してください。
すばらしいドキュメントはすばらしいプロジェクトを作ります!
* Ruby のコードを変更するときは、 [GitHub Ruby Styleguide](https://github.com/styleguide/ruby)
に従ってください。
* **小さなプルリクエスト** に最善を尽くしてください。
簡単に提案された変更はレビューされ、マージされる可能性が高いです。
* プルリクエストを送信するとき、プルリクエストのボディを賢明に使用してください。
変更されたかどうかの記述、変更の背後にある動機、 [完了したかどうかのタスクリスト](http://git.io/gfm-tasks)
もレビュー時間を早めます。
テストの依存関係
-----------------
テストスイートの実行や gem のビルドのために、
Jekyll の依存ツールをインストールする必要があります。
Jekyll は Bundler を使用しており、 `bundle` コマンドを実行すると全ての設定が迅速に行われます!
$ bundle
はじめる前に、テストを実行し、必ずテストが通ることを
確認してください(あなたの環境が適切に設定されているかを確認するために):
$ bundle exec rake test
$ bundle exec rake features
ワークフロー
--------
これは、あなたの作業がプロジェクトにマージされるもっとも直接的な方法です:
* プロジェクトをフォークします。
* あなたのフォークプロジェクトをクローンします ( `git clone git@github.com:<username>/jekyll.git` )。
* トピックブランチを作成し、あなたの変更を含んでください ( `git checkout -b my_awesome_feature` )。
* ハックし、テストを追加します。必ずしもこの順番でなくてかまいません
* `rake` を実行し、テストが必ず全て通ることを確認してください
* 必要に応じて、エラーがないようにコミットを論理的な塊にリベースしてください
* ブランチをプッシュしてください ( `git push origin my_awesome_feature` ).
* jekyll/jekyll プロジェクトの master ブランチに対してプルリクエストを作成し、
あなたの変更内容と、なぜそれをマージすべきかを記述してください
ドキュメントの更新
----------------------
私たちは Jekyll のドキュメントについて最善を尽くしたいです。
私たちはドキュメントをオープンソース化しました、そして
あなたが Jekyll に欠けているものを見つけた場合、私たちはプルリクエストを歓迎しています。
あなたは、 GitHub.com 上の Jekyll リポジトリの [site]({{ site.repository }}/tree/master/site) で
jekyllrb.comのドキュメントを見つけることができます。
全てのドキュメントのプルリクエストは `master` に向けられる必要があります。
他のブランチに向けたプルリクエストは受け入れられません。
GitHub の [Jekyll wiki](https://github.com/jekyll/jekyll/wiki) は、
自由に更新することができるように、プルリクエストなしで
全ての GitHub ユーザがアクセス権を持つことができます。
落とし穴
-------
* もし、 gem のバージョンがかちあった場合、コミットを分けてください。
この方法だと、メンテナが gem をリリースするときに制御できます。
* jekyll/jekyll の最新コミットに基づいて(複数の)パッチを維持してください。
それは適用するためのあなたの仕事で、メンテナがしなければならないことを少なくするのは
とてもよいことです。
* あなたの GitHub issue で [fix], [feature] などのタグをつけないでください。
メンテナは積極的に issue を読み、彼らが問題に出くわしたらラベルをつけるでしょう。
最後に…
----------
ありがとう! Jekyll のハックは楽しいものでなければなりません。
もし、あなたがこのハードを理解するための何かを発見した場合、知らせてください。
我々のプロセスやドキュメントを改善することができます!

View File

@@ -1,68 +0,0 @@
# [Jekyll](http://jekyllrb.com/)
[![Gem Version](https://badge.fury.io/rb/jekyll.png)](http://badge.fury.io/rb/jekyll)
[![Build Status](https://secure.travis-ci.org/jekyll/jekyll.png?branch=master)](https://travis-ci.org/jekyll/jekyll)
[![Code Climate](https://codeclimate.com/github/jekyll/jekyll.png)](https://codeclimate.com/github/jekyll/jekyll)
[![Dependency Status](https://gemnasium.com/jekyll/jekyll.png)](https://gemnasium.com/jekyll/jekyll)
Tom Preston-Werner, Nick Quaranto や多くの[素晴らしいコントリビュータ](https://github.com/jekyll/jekyll/graphs/contributors)によって作成されています!
Jekyll は個人プロジェクトや組織のサイトに最適な、シンプルで、ブログを意識した静的サイトジェネレータです。
複雑さを排除したファイルベースのCMSのようなものと考えてください。
Jekyll はコンテンツを受け取り、 Markdown や Liquid テンプレート をレンダリングし、
Apache や Nginx やその他の Web サーバに提供する準備ができた静的な Web サイトを完全に出力してくれます。
Jekyll は [GitHub Pages](http://pages.github.com) の背後にあるエンジンなので、
あなたの GitHub リポジトリからサイトをホストするために使用する事ができます。
## 原理
Jekyll あなたがするように伝えたことをします ― それ以上でもそれ以下でもありません。
それは、大胆な仮定によってユーザの裏をかこうとせず、
また、不必要な複雑さや設定をユーザに負担しません。
簡単に言えば、 Jekyll はあなたの道を開け、
真に重要なもの: コンテンツに集中することができます。
## 開始方法
* gem を[インストール](http://jekyllrb.com/docs/installation/)します
* [使用方法](http://jekyllrb.com/docs/usage/) と [設定方法](http://jekyllrb.com/docs/configuration/) を読みます
* 既存の [Jekyll で作られたサイト](https://wiki.github.com/jekyll/jekyll/sites) をチラッと見ます
* Fork し、あなたの変更を [コントリビュート](http://jekyllrb.com/docs/contributing/) します
* 質問があったら? irc.freenode.net の `#jekyll` チャンネルをチェックしてください
## より深く
* 以前のシステムからの[移行](http://jekyllrb.com/docs/migrations/)
* [YAML Front Matter](http://jekyllrb.com/docs/frontmatter/) がどのように働くかを学ぶ
* [変数](http://jekyllrb.com/docs/variables/)を使ってサイトに情報を表示する
* posts が生成される時の[パーマリンク](http://jekyllrb.com/docs/permalinks/)をカスタマイズ
* 人生を容易にするために、組み込みの [Liquid 拡張](http://jekyllrb.com/docs/templates/)を使用する
* あなたのサイト固有のコンテンツを生成するために、カスタム[プラグイン](http://jekyllrb.com/docs/plugins/)を使用する
## 実行時の依存関係
* Commander: コマンドラインインターフェース構築 (Ruby)
* Colorator: コマンドライン出力に色付け (Ruby)
* Classifier: posts の関連を生成 (Ruby)
* Directory Watcher: サイトの自動再生成 (Ruby)
* Kramdown: デフォルトの Markdown エンジン (Ruby)
* Liquid: テンプレートシステム (Ruby)
* Pygments.rb: シンタックスハイライト (Ruby/Python)
* RedCarpet: Markdown エンジン (Ruby)
* Safe YAML: セキュリティのために構築された YAML パーサ (Ruby)
## 開発時の依存関係
* Launchy: クロスプラットフォーム ファイルランチャ (Ruby)
* Maruku: Markdown スーパーセット インタプリタ (Ruby)
* RDiscount: Discount Markdown プロセッサ (Ruby)
* RedCloth: Textile サポート (Ruby)
* RedGreen: よりよいテスト出力 (Ruby)
* RR: モック (Ruby)
* Shoulda: テストフレームワーク (Ruby)
* SimpleCov: カバレッジフレームワーク (Ruby)
## ライセンス
[ライセンス](https://github.com/jekyll/jekyll/blob/master/LICENSE)を見てください。

View File

@@ -9,12 +9,12 @@ Feature: Collections
And I have a configuration file with "collections" set to "['methods']"
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p><code>Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html"
And I should see "Collections: <p>Use <code class=\"highlighter-rouge\">Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p>Signs are nice</p>\n<p><code class=\"highlighter-rouge\">Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html"
And the "_site/methods/configuration.html" file should not exist
Scenario: Rendered collection
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have an "collection_metadata.html" page that contains "Methods metadata: {{ site.collections.methods.foo }} {{ site.collections.methods }}"
And I have an "collection_metadata.html" page that contains "Methods metadata: {{ site.collections[0].foo }} {{ site.collections[0] }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
@@ -25,7 +25,8 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
And I should see "Collections: {\"output\"=>true" in "_site/index.html"
And I should see "\"label\"=>\"methods\"," in "_site/index.html"
And I should see "Methods metadata: bar" in "_site/collection_metadata.html"
And I should see "<p>Whatever: foo.bar</p>" in "_site/methods/configuration.html"
@@ -56,7 +57,8 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
And I should see "Collections: {\"output\"=>true" in "_site/index.html"
And I should see "\"label\"=>\"methods\"," in "_site/index.html"
And I should see "<p>Run your generators! default</p>" in "_site/methods/site/generate.html"
And I should see "<div class='title'>Tom Preston-Werner</div>" in "_site/methods/site/generate.html"
@@ -70,7 +72,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "Collections: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: Collections specified as an hash
Given I have an "index.html" page that contains "Collections: {% for method in site.methods %}{{ method.relative_path }} {% endfor %}"
@@ -82,7 +84,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "Collections: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: All the documents
Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}"
@@ -94,7 +96,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "All documents: _methods/configuration.md _methods/escape-\+ #%20\[\].md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: Documents have an output attribute, which is the converted HTML
Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}"
@@ -106,7 +108,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "First document's output: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>" in "_site/index.html"
And I should see "First document's output: <p>Use <code class=\"highlighter-rouge\">Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>" in "_site/index.html"
Scenario: Filter documents by where
Given I have an "index.html" page that contains "{% assign items = site.methods | where: 'whatever','foo.bar' %}Item count: {{ items.size }}"
@@ -118,7 +120,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Item count: 1" in "_site/index.html"
And I should see "Item count: 2" in "_site/index.html"
Scenario: Sort by title
Given I have an "index.html" page that contains "{% assign items = site.methods | sort: 'title' %}1. of {{ items.size }}: {{ items.first.output }}"
@@ -130,7 +132,7 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "1. of 5: <p>Page without title.</p>" in "_site/index.html"
And I should see "1. of 7: <p>Page without title.</p>" in "_site/index.html"
Scenario: Sort by relative_path
Given I have an "index.html" page that contains "Collections: {% assign methods = site.methods | sort: 'relative_path' %}{% for method in methods %}{{ method.title }}, {% endfor %}"
@@ -142,4 +144,4 @@ Feature: Collections
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: Jekyll.configuration, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html"
And I should see "Collections: Jekyll.configuration, Jekyll.escape, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html"

View File

@@ -112,16 +112,16 @@ Feature: Create sites
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
Scenario: Basic site with internal post linking
Given I have an "index.html" page that contains "URL: {% post_url 2020-01-31-entry2 %}"
Given I have an "index.html" page that contains "URL: {% post_url 2008-01-01-entry2 %}"
And I have a configuration file with "permalink" set to "pretty"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
| entry2 | 2008-01-01 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
And I should see "URL: /2008/01/01/entry2/" in "_site/index.html"
Scenario: Basic site with whitelisted dotfile
Given I have an ".htaccess" file that contains "SomeDirective"
@@ -156,3 +156,17 @@ Feature: Create sites
And the "_site/index.html" file should exist
And the "_site/public.html" file should exist
And the "_site/secret.html" file should exist
Scenario: Basic site with page with future date
Given I have a _posts directory
And I have the following post:
| title | date | layout | content |
| entry1 | 2020-12-31 | post | content for entry1. |
| entry2 | 2007-12-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "content for entry2" in "_site/2007/12/31/entry2.html"
And the "_site/2020/12/31/entry1.html" file should not exist
When I run jekyll build --future
Then the _site directory should exist
And the "_site/2020/12/31/entry1.html" file should exist

View File

@@ -45,6 +45,20 @@ Feature: Data
And I should see "Jack" in "_site/index.html"
And I should see "Leon" in "_site/index.html"
Scenario: autoload *.csv files in _data directory
Given I have a _data directory
And I have a "_data/members.csv" file with content:
"""
name,age
Jack,28
Leon,34
"""
And I have an "index.html" page that contains "{% for member in site.data.members %}{{member.name}}{% endfor %}"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "Jack" in "_site/index.html"
And I should see "Leon" in "_site/index.html"
Scenario: autoload *.yml files in _data directory with space in file name
Given I have a _data directory
And I have a "_data/team members.yml" file with content:

View File

@@ -43,4 +43,4 @@ Feature: Draft Posts
| Recipe | 2009-03-27 | simple | Post path: {{ page.path }} |
When I run jekyll build --drafts
Then the _site directory should exist
And I should see "Post path: _drafts/recipe.textile" in "_site/recipe.html"
And I should see "Post path: _drafts/recipe.markdown" in "_site/recipe.html"

View File

@@ -20,8 +20,6 @@ Feature: Embed filters
And I have the following post:
| title | date | layout | content |
| Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ page.title | xml_escape }}"
When I run jekyll build
Then the _site directory should exist
@@ -33,7 +31,7 @@ Feature: Embed filters
And I have the following post:
| title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ content | xml_escape }}"
And I have a default layout that contains "{{ content | number_of_words }}"
When I run jekyll build
Then the _site directory should exist
And I should see "7" in "_site/2009/03/27/star-wars.html"
@@ -49,13 +47,13 @@ Feature: Embed filters
Then the _site directory should exist
And I should see "scifi, movies, and force" in "_site/2009/03/27/star-wars.html"
Scenario: Textilize a given string
Scenario: Markdownify a given string
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}"
And I have a default layout that contains "By {{ '_Obi-wan_' | markdownify }}"
When I run jekyll build
Then the _site directory should exist
And I should see "By <p><em>Obi-wan</em></p>" in "_site/2009/03/27/star-wars.html"

View File

@@ -25,7 +25,7 @@ Feature: frontmatter defaults
And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {custom: "some special data", author: "Ben"}}]"
When I run jekyll build
Then the _site directory should exist
And I should see "<p>some special data</p><div>Ben</div>" in "_site/2013/09/11/default-data.html"
And I should see "<p>some special data</p>\n<div>Ben</div>" in "_site/2013/09/11/default-data.html"
And I should see "just some special data by Ben" in "_site/index.html"
Scenario: Override frontmatter defaults by path
@@ -54,6 +54,28 @@ Feature: frontmatter defaults
And I should see "root: Overview for the webpage" in "_site/index.html"
And I should see "subfolder: Overview for the special section" in "_site/special/index.html"
Scenario: Use frontmatter variables by relative path
Given I have a _layouts directory
And I have a main layout that contains "main: {{ content }}"
And I have a _posts directory
And I have the following post:
| title | date | content |
| about | 2013-10-14 | content of site/2013/10/14/about.html |
And I have a special/_posts directory
And I have the following post in "special":
| title | date | path | content |
| about1 | 2013-10-14 | local | content of site/special/2013/10/14/about1.html |
| about2 | 2013-10-14 | local | content of site/special/2013/10/14/about2.html |
And I have a configuration file with "defaults" set to "[{scope: {path: "special"}, values: {layout: "main"}}, {scope: {path: "special/_posts"}, values: {layout: "main"}}, {scope: {path: "_posts"}, values: {layout: "main"}}]"
When I run jekyll build
Then the _site directory should exist
And I should see "main: <p>content of site/2013/10/14/about.html</p>" in "_site/2013/10/14/about.html"
And I should see "main: <p>content of site/special/2013/10/14/about1.html</p>" in "_site/special/2013/10/14/about1.html"
And I should see "main: <p>content of site/special/2013/10/14/about2.html</p>" in "_site/special/2013/10/14/about2.html"
Scenario: Override frontmatter defaults by type
Given I have a _posts directory
And I have the following post:
@@ -78,11 +100,22 @@ Feature: frontmatter defaults
And I should see "nothing" in "_site/override.html"
But the "_site/perma.html" file should not exist
Scenario: Define permalink default for posts
Given I have a _posts directory
And I have the following post:
| title | date | category | content |
| testpost | 2013-10-14 | blog | blabla |
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "posts"}, values: {permalink: "/:categories/:title/"}}]"
When I run jekyll build
Then I should see "blabla" in "_site/blog/testpost/index.html"
Scenario: Use frontmatter defaults in collections
Given I have a _slides directory
And I have a "index.html" file that contains "nothing"
And I have a "_slides/slide1.html" file with content:
And I have a "_slides/slide1.html" file with content:
"""
---
---
Value: {{ page.myval }}
"""
And I have a "_config.yml" file with content:
@@ -105,7 +138,7 @@ Feature: frontmatter defaults
Scenario: Override frontmatter defaults inside a collection
Given I have a _slides directory
And I have a "index.html" file that contains "nothing"
And I have a "_slides/slide2.html" file with content:
And I have a "_slides/slide2.html" file with content:
"""
---
myval: Override
@@ -128,3 +161,9 @@ Feature: frontmatter defaults
When I run jekyll build
Then the _site directory should exist
And I should see "Value: Override" in "_site/slides/slide2.html"
Scenario: Deep merge frontmatter defaults
Given I have an "index.html" page with fruit "{orange: 1}" that contains "Fruits: {{ page.fruit.orange | plus: page.fruit.apple }}"
And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {fruit: {apple: 2}}}]"
When I run jekyll build
Then I should see "Fruits: 3" in "_site/index.html"

326
features/hooks.feature Normal file
View File

@@ -0,0 +1,326 @@
Feature: Hooks
As a plugin author
I want to be able to run code during various stages of the build process
Scenario: Run some code after site reset
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :site, :after_reset do |site|
pageklass = Class.new(Jekyll::Page) do
def initialize(site, base)
@site = site
@base = base
@data = {}
@dir = '/'
@name = 'foo.html'
@content = 'mytinypage'
self.process(@name)
end
end
site.pages << pageklass.new(site, site.source)
end
"""
When I run jekyll build
Then the _site directory should exist
And I should see "mytinypage" in "_site/foo.html"
Scenario: Modify the payload before rendering the site
Given I have a _plugins directory
And I have a "index.html" page that contains "{{ site.injected }}!"
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :site, :pre_render do |site, payload|
payload['site']['injected'] = 'myparam'
end
"""
When I run jekyll build
Then the _site directory should exist
And I should see "myparam!" in "_site/index.html"
Scenario: Modify the site contents after reading
Given I have a _plugins directory
And I have a "page1.html" page that contains "page1"
And I have a "page2.html" page that contains "page2"
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :site, :post_read do |site|
site.pages.delete_if { |p| p.name == 'page1.html' }
end
"""
When I run jekyll build
Then the _site directory should exist
And the "_site/page1.html" file should not exist
And I should see "page2" in "_site/page2.html"
Scenario: Work with the site files after they've been written to disk
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :site, :post_write do |site|
firstpage = site.pages.first
content = File.read firstpage.destination(site.dest)
File.write(File.join(site.dest, 'firstpage.html'), content)
end
"""
And I have a "page1.html" page that contains "page1"
When I run jekyll build
Then the _site directory should exist
And I should see "page1" in "_site/firstpage.html"
Scenario: Alter a page right after it is initialized
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :pages, :post_init do |page|
page.name = 'renamed.html'
page.process(page.name)
end
"""
And I have a "page1.html" page that contains "page1"
When I run jekyll build
Then the _site directory should exist
And I should see "page1" in "_site/renamed.html"
Scenario: Alter the payload for one page but not another
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :pages, :pre_render do |page, payload|
payload['myparam'] = 'special' if page.name == 'page1.html'
end
"""
And I have a "page1.html" page that contains "{{ myparam }}"
And I have a "page2.html" page that contains "{{ myparam }}"
When I run jekyll build
Then I should see "special" in "_site/page1.html"
And I should not see "special" in "_site/page2.html"
Scenario: Modify page contents before writing to disk
Given I have a _plugins directory
And I have a "index.html" page that contains "WRAP ME"
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :pages, :post_render do |page|
page.output = "{{{{{ #{page.output.chomp} }}}}}"
end
"""
When I run jekyll build
Then I should see "{{{{{ WRAP ME }}}}}" in "_site/index.html"
Scenario: Work with a page after writing it to disk
Given I have a _plugins directory
And I have a "index.html" page that contains "HELLO FROM A PAGE"
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :pages, :post_write do |page|
require 'fileutils'
filename = page.destination(page.site.dest)
FileUtils.mv(filename, "#{filename}.moved")
end
"""
When I run jekyll build
Then I should see "HELLO FROM A PAGE" in "_site/index.html.moved"
Scenario: Alter a post right after it is initialized
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :posts, :post_init do |post|
post.data['harold'] = "content for entry1.".tr!('abcdefghijklmnopqrstuvwxyz',
'nopqrstuvwxyzabcdefghijklm')
end
"""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2015-03-14 | nil | {{ page.harold }} |
When I run jekyll build
Then the _site directory should exist
And I should see "pbagrag sbe ragel1." in "_site/2015/03/14/entry1.html"
Scenario: Alter the payload for certain posts
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
# Add myvar = 'old' to posts before 2015-03-15, and myvar = 'new' for
# others
Jekyll::Hooks.register :posts, :pre_render do |post, payload|
if post.date < Time.new(2015, 3, 15)
payload['myvar'] = 'old'
else
payload['myvar'] = 'new'
end
end
"""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2015-03-14 | nil | {{ myvar }} post |
| entry2 | 2015-03-15 | nil | {{ myvar }} post |
When I run jekyll build
Then I should see "old post" in "_site/2015/03/14/entry1.html"
And I should see "new post" in "_site/2015/03/15/entry2.html"
Scenario: Modify post contents before writing to disk
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
# Replace content after rendering
Jekyll::Hooks.register :posts, :post_render do |post|
post.output.gsub! /42/, 'the answer to life, the universe and everything'
end
"""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2015-03-14 | nil | {{ 6 \| times: 7 }} |
| entry2 | 2015-03-15 | nil | {{ 6 \| times: 8 }} |
When I run jekyll build
Then I should see "the answer to life, the universe and everything" in "_site/2015/03/14/entry1.html"
And I should see "48" in "_site/2015/03/15/entry2.html"
Scenario: Work with a post after writing it to disk
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
# Log all post filesystem writes
Jekyll::Hooks.register :posts, :post_write do |post|
filename = post.destination(post.site.dest)
open('_site/post-build.log', 'a') do |f|
f.puts "Wrote #{filename} at #{Time.now}"
end
end
"""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2015-03-14 | nil | entry one |
| entry2 | 2015-03-15 | nil | entry two |
When I run jekyll build
Then I should see "_site/2015/03/14/entry1.html at" in "_site/post-build.log"
Then I should see "_site/2015/03/15/entry2.html at" in "_site/post-build.log"
Scenario: Register a hook on multiple owners at the same time
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register [:pages, :posts], :post_render do |owner|
owner.output = "{{{{{ #{owner.output.chomp} }}}}}"
end
"""
And I have a "index.html" page that contains "WRAP ME"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2015-03-14 | nil | entry one |
When I run jekyll build
Then I should see "{{{{{ WRAP ME }}}}}" in "_site/index.html"
And I should see "{{{{{ <p>entry one</p> }}}}}" in "_site/2015/03/14/entry1.html"
Scenario: Allow hooks to have a named priority
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :pages, :post_render, priority: :normal do |owner|
# first normal runs second
owner.output = "1 #{owner.output.chomp}"
end
Jekyll::Hooks.register :pages, :post_render, priority: :high do |owner|
# high runs last
owner.output = "2 #{owner.output.chomp}"
end
Jekyll::Hooks.register :pages, :post_render do |owner|
# second normal runs third (normal is default)
owner.output = "3 #{owner.output.chomp}"
end
Jekyll::Hooks.register :pages, :post_render, priority: :low do |owner|
# low runs first
owner.output = "4 #{owner.output.chomp}"
end
"""
And I have a "index.html" page that contains "WRAP ME"
When I run jekyll build
Then I should see "2 3 1 4 WRAP ME" in "_site/index.html"
Scenario: Alter a document right after it is initialized
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :documents, :pre_render do |doc, payload|
doc.data['text'] = doc.data['text'] << ' are belong to us'
end
"""
And I have a "_config.yml" file that contains "collections: [ memes ]"
And I have a _memes directory
And I have a "_memes/doc1.md" file with content:
"""
---
text: all your base
---
"""
And I have an "index.md" file with content:
"""
---
---
{{ site.memes.first.text }}
"""
When I run jekyll build
Then the _site directory should exist
And I should see "all your base are belong to us" in "_site/index.html"
Scenario: Update a document after rendering it, but before writing it to disk
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :documents, :post_render do |doc|
doc.output.gsub! /<p>/, '<p class="meme">'
end
"""
And I have a "_config.yml" file with content:
"""
collections:
memes:
output: true
"""
And I have a _memes directory
And I have a "_memes/doc1.md" file with content:
"""
---
text: all your base are belong to us
---
{{ page.text }}
"""
When I run jekyll build
Then the _site directory should exist
And I should see "<p class=\"meme\">all your base are belong to us" in "_site/memes/doc1.html"
Scenario: Perform an action after every document is written
Given I have a _plugins directory
And I have a "_plugins/ext.rb" file with content:
"""
Jekyll::Hooks.register :documents, :post_write do |doc|
open('_site/document-build.log', 'a') do |f|
f.puts "Wrote document #{doc.collection.docs.index doc} at #{Time.now}"
end
end
"""
And I have a "_config.yml" file with content:
"""
collections:
memes:
output: true
"""
And I have a _memes directory
And I have a "_memes/doc1.md" file with content:
"""
---
text: all your base are belong to us
---
{{ page.text }}
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Wrote document 0" in "_site/document-build.log"

View File

@@ -9,15 +9,15 @@ Feature: Include tags
And I have an "_includes/params.html" file that contains "Parameters:<ul>{% for param in include %}<li>{{param[0]}} = {{param[1]}}</li>{% endfor %}</ul>"
And I have an "_includes/ignore.html" file that contains "<footer>My blog footer</footer>"
And I have a _posts directory
And I have the following post:
| title | date | layout | content |
| Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
| Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
| List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
| Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
| Allow params with spaces and quotes | 2013-04-07 | default | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} |
| Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
| Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
And I have the following posts:
| title | date | type | content |
| Include Files | 2013-03-21 | html | {% include header.html param="myparam" %} |
| Ignore params if unused | 2013-03-21 | html | {% include ignore.html date="today" %} |
| List multiple parameters | 2013-03-21 | html | {% include params.html date="today" start="tomorrow" %} |
| Dont keep parameters | 2013-03-21 | html | {% include ignore.html param="test" %}\n{% include header.html %} |
| Allow params with spaces and quotes | 2013-04-07 | html | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} |
| Parameter syntax | 2013-04-12 | html | {% include params.html param1_or_2="value" %} |
| Pass a variable | 2013-06-22 | html | {% assign var = 'some text' %}{% include params.html local=var title=page.title %} |
When I run jekyll build
Then the _site directory should exist
And I should see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/include-files.html"
@@ -27,12 +27,12 @@ Feature: Include tags
And I should not see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/dont-keep-parameters.html"
But I should see "<header>My awesome blog header: </header>" in "_site/2013/03/21/dont-keep-parameters.html"
And I should see "<li>cool = param with spaces</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>super = &#8220;quoted&#8221;</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>single = has &#8220;quotes&#8221;</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>escaped = &#8216;single&#8217; quotes</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>super = \"quoted\"</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>single = has \"quotes\"</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>escaped = 'single' quotes</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>param1_or_2 = value</li>" in "_site/2013/04/12/parameter-syntax.html"
And I should see "<li>local = some text</li>" in "_site/2013/06/22/pass-a-variable.html"
And I should see "<li>layout = default</li>" in "_site/2013/06/22/pass-a-variable.html"
And I should see "<li>title = Pass a variable</li>" in "_site/2013/06/22/pass-a-variable.html"
Scenario: Include a file from a variable
Given I have an _includes directory
@@ -66,3 +66,14 @@ Feature: Include tags
When I run jekyll build
Then the _site directory should exist
And I should see "one included" in "_site/index.html"
Scenario: Include a file with partial variables
Given I have an _includes directory
And I have an "_includes/one.html" file that contains "one included"
And I have a configuration file with:
| key | value |
| include_file | one |
And I have an "index.html" page that contains "{% include {{ site.include_file }}.html %}"
When I run jekyll build
Then the _site directory should exist
And I should see "one included" in "_site/index.html"

View File

@@ -0,0 +1,60 @@
Feature: Incremental rebuild
As an impatient hacker who likes to blog
I want to be able to make a static site
Without waiting too long for it to build
Scenario: Produce correct output site
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
And I have a default layout that contains "Post Layout: {{ content }}"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
Scenario: Generate a metadata file
Given I have an "index.html" file that contains "Basic Site"
When I run jekyll build -I
Then the ".jekyll-metadata" file should exist
Scenario: Rebuild when content is changed
Given I have an "index.html" file that contains "Basic Site"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Basic Site" in "_site/index.html"
When I wait 1 second
Then I have an "index.html" file that contains "Bacon Site"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Bacon Site" in "_site/index.html"
Scenario: Rebuild when layout is changed
Given I have a _layouts directory
And I have an "index.html" page with layout "default" that contains "Basic Site with Layout"
And I have a default layout that contains "Page Layout: {{ content }}"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Page Layout: Basic Site with Layout" in "_site/index.html"
When I wait 1 second
Then I have a default layout that contains "Page Layout Changed: {{ content }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout Changed: Basic Site with Layout" in "_site/index.html"
Scenario: Rebuild when an include is changed
Given I have a _includes directory
And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
When I wait 1 second
Then I have an "_includes/about.textile" file that contains "Regenerated by Jekyll"
When I run jekyll build -I
Then the _site directory should exist
And I should see "Basic Site with include tag: Regenerated by Jekyll" in "_site/index.html"

View File

@@ -17,7 +17,10 @@ Feature: Markdown
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
Scenario: Markdown in pagination on index
Given I have a configuration file with "paginate" set to "5"
Given I have a configuration file with:
| key | value |
| paginate | 5 |
| gems | [jekyll-paginate] |
And I have an "index.html" page that contains "Index - {% for post in paginator.posts %} {{ post.content }} {% endfor %}"
And I have a _posts directory
And I have the following post:
@@ -27,41 +30,3 @@ Feature: Markdown
Then the _site directory should exist
And I should see "Index" in "_site/index.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```
My awesome code
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome code" in "_site/index.html"
And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```ruby
puts "My awesome string"
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html"
And I should see "<pre class="ruby"><code class="ruby">\nputs &quot;My awesome string&quot;\n</code></pre>" in "_site/index.html"

View File

@@ -4,7 +4,10 @@ Feature: Site pagination
I want divide the posts in several pages
Scenario Outline: Paginate with N posts per page
Given I have a configuration file with "paginate" set to "<num>"
Given I have a configuration file with:
| key | value |
| paginate | <num> |
| gems | [jekyll-paginate] |
And I have a _layouts directory
And I have an "index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
@@ -32,6 +35,7 @@ Feature: Site pagination
| paginate | 1 |
| paginate_path | /blog/page-:num |
| permalink | /blog/:year/:month/:day/:title |
| gems | [jekyll-paginate] |
And I have a blog directory
And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
@@ -59,6 +63,7 @@ Feature: Site pagination
| paginate | 1 |
| paginate_path | /blog/page/:num |
| permalink | /blog/:year/:month/:day/:title |
| gems | [jekyll-paginate] |
And I have a blog directory
And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}"
And I have an "index.html" page that contains "Don't pick me!"

View File

@@ -39,7 +39,7 @@ Feature: Fancy permalinks
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title/"
When I run jekyll build
Then the _site directory should exist
And I should see "Totally custom." in "_site/blog/2009/03/27/custom-permalink-schema/index.html"
@@ -64,11 +64,24 @@ Feature: Fancy permalinks
Then the _site directory should exist
And I should see "Totally custom." in "_site/03-27-2009/custom-permalink-schema.html"
Scenario: Use custom permalink schema with date and time
Given I have a _posts directory
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 22:31:07 | Totally custom. |
And I have a configuration file with:
| key | value |
| permalink | "/:year:month:day:hour:minute:second.html" |
| timezone | UTC |
When I run jekyll build
Then the _site directory should exist
And I should see "Totally custom." in "_site/20090327223107.html"
Scenario: Use per-post permalink
Given I have a _posts directory
And I have the following post:
| title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/1 | bla bla |
| Some post | 2013-04-14 | /custom/posts/1/ | bla bla |
When I run jekyll build
Then the _site directory should exist
And the _site/custom/posts/1 directory should exist
@@ -83,3 +96,27 @@ Feature: Fancy permalinks
Then the _site directory should exist
And the _site/custom/posts directory should exist
And I should see "bla bla" in "_site/custom/posts/some.html"
Scenario: Use pretty permalink schema with cased file name
Given I have a _posts directory
And I have an "_posts/2009-03-27-Pretty-Permalink-Schema.md" page that contains "Totally wordpress"
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll build
Then the _site directory should exist
And I should see "Totally wordpress." in "_site/2009/03/27/Pretty-Permalink-Schema/index.html"
Scenario: Use custom permalink schema with cased file name
Given I have a _posts directory
And I have an "_posts/2009-03-27-Custom-Schema.md" page with title "Custom Schema" that contains "Totally awesome"
And I have a configuration file with "permalink" set to "/:year/:month/:day/:slug/"
When I run jekyll build
Then the _site directory should exist
And I should see "Totally awesome" in "_site/2009/03/27/custom-schema/index.html"
Scenario: Use pretty permalink schema with title containing underscore
Given I have a _posts directory
And I have an "_posts/2009-03-27-Custom_Schema.md" page with title "Custom Schema" that contains "Totally awesome"
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll build
Then the _site directory should exist
And I should see "Totally awesome" in "_site/2009/03/27/Custom_Schema/index.html"

34
features/plugins.feature Normal file
View File

@@ -0,0 +1,34 @@
Feature: Configuring and using plugins
As a hacker
I want to specify my own plugins that can modify Jekyll's behaviour
Scenario: Add a gem-based plugin
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with "gems" set to "[jekyll_test_plugin]"
When I run jekyll build
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And I should see "this is a test" in "_site/test.txt"
Scenario: Add an empty whitelist to restrict all gems
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin] |
| whitelist | [] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should not exist
Scenario: Add a whitelist to restrict some gems but allow others
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] |
| whitelist | [jekyll_test_plugin] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should exist
And I should see "this is a test" in "_site/test.txt"

View File

@@ -36,6 +36,20 @@ Feature: Post data
Then the _site directory should exist
And I should see "Post date: 27 Mar 2009" in "_site/2009/03/27/star-wars.html"
Scenario: Use post.date variable with invalid
Given I have a _posts directory
And I have a "_posts/2016-01-01-test.md" page with date "tuesday" that contains "I have a bad date."
When I run jekyll build
Then the _site directory should not exist
And I should see "Document '_posts/2016-01-01-test.md' does not have a valid date in the YAML front matter." in the build output
Scenario: Invalid date in filename
Given I have a _posts directory
And I have a "_posts/2016-22-01-test.md" page that contains "I have a bad date."
When I run jekyll build
Then the _site directory should not exist
And I should see "Document '_posts/2016-22-01-test.md' does not have a valid date in the filename." in the build output
Scenario: Use post.id variable
Given I have a _posts directory
And I have a _layouts directory
@@ -70,17 +84,41 @@ Feature: Post data
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in a folder and has category in YAML
Given I have a movies directory
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | film | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/film/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in a folder and has categories in YAML
Given I have a movies directory
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | [film] | Luke, I am your father. |
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | [film, scifi] | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/film/2009/03/27/star-wars.html"
And I should see "Post category: movies" in "_site/movies/film/scifi/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in a folder and duplicated category is in YAML
Given I have a movies directory
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.tags variable
Given I have a _posts directory
@@ -117,7 +155,7 @@ Feature: Post data
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
And I should see "Post categories: scifi and Movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in YAML
Given I have a _posts directory
@@ -139,14 +177,43 @@ Feature: Post data
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
And I should see "Post category: Movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in YAML
Scenario: Use post.categories variable when categories are in YAML
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | ['scifi', 'movies'] | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when categories are in YAML and are duplicated
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | ['movies', 'movies'] | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Superdirectories of _posts applied to post.categories
Given I have a movies/_posts directory
And I have a "movies/_posts/2009-03-27-star-wars.html" page with layout "simple" that contains "hi"
And I have a _layouts directory
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Subdirectories of _posts not applied to post.categories
Given I have a movies/_posts/scifi directory
And I have a "movies/_posts/scifi/2009-03-27-star-wars.html" page with layout "simple" that contains "hi"
And I have a _layouts directory
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
@@ -162,8 +229,8 @@ Feature: Post data
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2013/03/17/star-trek.html"
And I should see "Post categories: scifi and Movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
And I should see "Post categories: SciFi and movies" in "_site/scifi/movies/2013/03/17/star-trek.html"
Scenario Outline: Use page.path variable
Given I have a <dir>/_posts directory

View File

@@ -46,5 +46,5 @@ Feature: Post excerpts
And the _site/2007/12 directory should exist
And the _site/2007/12/31 directory should exist
And the "_site/2007/12/31/entry1.html" file should exist
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
And I should see exactly "<html><head></head><body><p>content for entry1.</p></body></html>" in "_site/2007/12/31/entry1.html"
And I should see "<p>content for entry1.</p>" in "_site/index.html"
And I should see "<html><head></head><body><p>content for entry1.</p>\n</body></html>" in "_site/2007/12/31/entry1.html"

View File

@@ -5,6 +5,13 @@ Feature: Rendering
But I want to make it as simply as possible
So render with Liquid and place in Layouts
Scenario: When receiving bad Liquid
Given I have a "index.html" page with layout "simple" that contains "{% include invalid.html %}"
And I have a simple layout that contains "{{ content }}"
When I run jekyll build
Then I should get a non-zero exit-status
And I should see "Liquid Exception" in the build output
Scenario: Render Liquid and place in layout
Given I have a "index.html" page with layout "simple" that contains "Hi there, Jekyll {{ jekyll.environment }}!"
And I have a simple layout that contains "{{ content }}Ahoy, indeed!"
@@ -15,20 +22,29 @@ Feature: Rendering
Scenario: Don't place asset files in layout
Given I have an "index.scss" page with layout "simple" that contains ".foo-bar { color:black; }"
And I have an "index.coffee" page with layout "simple" that contains "whatever()"
And I have a configuration file with "gems" set to "[jekyll-coffeescript]"
And I have a simple layout that contains "{{ content }}Ahoy, indeed!"
When I run jekyll build
Then the _site directory should exist
And I should not see "Ahoy, indeed!" in "_site/index.css"
And I should not see "Ahoy, indeed!" in "_site/index.js"
Scenario: Don't render liquid in Sass
Scenario: Render liquid in Sass
Given I have an "index.scss" page that contains ".foo-bar { color:{{site.color}}; }"
When I run jekyll build
Then the _site directory should not exist
And I should see "Invalid CSS after" in the build output
Scenario: Don't render liquid in CoffeeScript
Given I have an "index.coffee" page that contains "hey='for {{site.animal}}'"
And I have a configuration file with "color" set to "red"
When I run jekyll build
Then the _site directory should exist
And I should see "hey = 'for {{site.animal}}';" in "_site/index.js"
And I should see ".foo-bar {\n color: red; }" in "_site/index.css"
Scenario: Not render liquid in CoffeeScript without explicitly including jekyll-coffeescript
Given I have an "index.coffee" page with animal "cicada" that contains "hey='for {{page.animal}}'"
When I run jekyll build
Then the _site directory should exist
And the "_site/index.js" file should not exist
Scenario: Render liquid in CoffeeScript with jekyll-coffeescript enabled
Given I have an "index.coffee" page with animal "cicada" that contains "hey='for {{page.animal}}'"
And I have a configuration file with "gems" set to "[jekyll-coffeescript]"
When I run jekyll build
Then the _site directory should exist
And I should see "hey = 'for cicada';" in "_site/index.js"

View File

@@ -83,13 +83,6 @@ Feature: Site configuration
Then the _site directory should exist
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use Maruku for markup
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
And I have a configuration file with "markdown" set to "maruku"
When I run jekyll build
Then the _site directory should exist
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Highlight code with pygments
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
When I run jekyll build
@@ -170,8 +163,8 @@ Feature: Site configuration
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p> built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p> built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
Scenario: Generate proper dates with explicitly set timezone (different than posts' time)
Given I have a _layouts directory
@@ -180,19 +173,19 @@ Feature: Site configuration
And I have an "index.html" page with layout "page" that contains "site index page"
And I have a configuration file with:
| key | value |
| timezone | Australia/Melbourne |
| timezone | Pacific/Honolulu |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
| entry1 | 2013-04-09 23:22 +0400 | post | content for entry1. |
| entry2 | 2013-04-10 03:14 +0400 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And the "_site/2013/04/10/entry1.html" file should exist
And the "_site/2013/04/10/entry2.html" file should exist
And I should see escaped "Post Layout: <p>content for entry1.</p> built at 2013-04-10T13:22:00+10:00" in "_site/2013/04/10/entry1.html"
And I should see escaped "Post Layout: <p>content for entry2.</p> built at 2013-04-10T17:14:00+10:00" in "_site/2013/04/10/entry2.html"
And the "_site/2013/04/09/entry1.html" file should exist
And the "_site/2013/04/09/entry2.html" file should exist
And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T09:22:00-10:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-09T13:14:00-10:00" in "_site/2013/04/09/entry2.html"
Scenario: Limit the number of posts generated by most recent date
Given I have a _posts directory
@@ -231,7 +224,7 @@ Feature: Site configuration
| key | value |
| time | 2010-01-01 |
| future | true |
| layouts | _theme |
| layouts_dir | _theme |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
@@ -243,33 +236,10 @@ Feature: Site configuration
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>" in "_site/2020/01/31/entry2.html"
Scenario: Add a gem-based plugin
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with "gems" set to "[jekyll_test_plugin]"
Scenario: arbitrary file reads via layouts
Given I have an "index.html" page with layout "page" that contains "FOO"
And I have a "_config.yml" file that contains "layouts: '../../../../../../../../../../../../../../usr/include'"
When I run jekyll build
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And I should see "this is a test" in "_site/test.txt"
Scenario: Add an empty whitelist to restrict all gems
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin] |
| whitelist | [] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should not exist
Scenario: Add a whitelist to restrict some gems but allow others
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] |
| whitelist | [jekyll_test_plugin] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should exist
And I should see "this is a test" in "_site/test.txt"
And I should see "FOO" in "_site/index.html"
And I should not see " " in "_site/index.html"

View File

@@ -8,7 +8,7 @@ def file_content_from_hash(input_hash)
input_hash['content']
end
<<EOF
<<-EOF
---
#{matter}
---
@@ -22,11 +22,15 @@ Before do
end
After do
FileUtils.rm_rf(TEST_DIR) if File.exists?(TEST_DIR)
FileUtils.rm(JEKYLL_COMMAND_OUTPUT_FILE) if File.exists?(JEKYLL_COMMAND_OUTPUT_FILE)
FileUtils.rm_rf(TEST_DIR) if File.exist?(TEST_DIR)
FileUtils.rm(JEKYLL_COMMAND_OUTPUT_FILE) if File.exist?(JEKYLL_COMMAND_OUTPUT_FILE)
FileUtils.rm(JEKYLL_COMMAND_STATUS_FILE) if File.exist?(JEKYLL_COMMAND_STATUS_FILE)
Dir.chdir(File.dirname(TEST_DIR))
end
World(Test::Unit::Assertions)
World do
MinitestWorld.new
end
Given /^I have a blank site in "(.*)"$/ do |path|
FileUtils.mkdir_p(path) unless File.exist?(path)
@@ -39,7 +43,7 @@ end
# Like "I have a foo file" but gives a yaml front matter so jekyll actually processes it
Given /^I have an? "(.*)" page(?: with (.*) "(.*)")? that contains "(.*)"$/ do |file, key, value, text|
File.open(file, 'w') do |f|
f.write <<EOF
f.write <<-EOF
---
#{key || 'layout'}: #{value || 'nil'}
---
@@ -83,7 +87,7 @@ end
Given /^I have the following (draft|page|post)s?(?: (in|under) "([^"]+)")?:$/ do |status, direction, folder, table|
table.hashes.each do |input_hash|
title = slug(input_hash['title'])
ext = input_hash['type'] || 'textile'
ext = input_hash['type'] || 'markdown'
before, after = location(folder, direction)
case status
@@ -133,6 +137,10 @@ Given /^I have fixture collections$/ do
FileUtils.cp_r File.join(JEKYLL_SOURCE_DIR, "test", "source", "_methods"), source_dir
end
Given /^I wait (\d+) second(s?)$/ do |time, plural|
sleep(time.to_f)
end
##################
#
# Changing stuff
@@ -146,6 +154,13 @@ When /^I run jekyll(.*)$/ do |args|
end
end
When /^I run bundle(.*)$/ do |args|
status = run_bundle(args)
if args.include?("--verbose") || ENV['DEBUG']
puts jekyll_run_output
end
end
When /^I change "(.*)" to contain "(.*)"$/ do |file, text|
File.open(file, 'a') do |f|
f.write(text)
@@ -156,6 +171,12 @@ When /^I delete the file "(.*)"$/ do |file|
File.delete(file)
end
##################
#
# Checking stuff
#
##################
Then /^the (.*) directory should +exist$/ do |dir|
assert File.directory?(dir), "The directory \"#{dir}\" does not exist"
end
@@ -173,7 +194,7 @@ Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file|
end
Then /^I should not see "(.*)" in "(.*)"$/ do |text, file|
assert_no_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
refute_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end
Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file|
@@ -181,7 +202,15 @@ Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file|
end
Then /^the "(.*)" file should +exist$/ do |file|
assert File.file?(file), "The file \"#{file}\" does not exist"
file_does_exist = File.file?(file)
unless file_does_exist
all_steps_to_path(file).each do |dir|
STDERR.puts ""
STDERR.puts "Dir #{dir}:"
STDERR.puts Dir["#{dir}/**/*"]
end
end
assert file_does_exist, "The file \"#{file}\" does not exist.\n"
end
Then /^the "(.*)" file should not exist$/ do |file|
@@ -199,3 +228,7 @@ end
Then /^I should see "(.*)" in the build output$/ do |text|
assert_match Regexp.new(text), jekyll_run_output
end
Then /^I should get a non-zero exit(?:\-| )status$/ do
assert jekyll_run_status > 0
end

View File

@@ -1,27 +1,78 @@
require 'fileutils'
require 'rr'
require 'test/unit'
require 'posix-spawn'
require 'minitest/spec'
require 'time'
class MinitestWorld
extend Minitest::Assertions
attr_accessor :assertions
def initialize
self.assertions = 0
end
end
JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__)))
TEST_DIR = File.expand_path(File.join('..', '..', 'tmp', 'jekyll'), File.dirname(__FILE__))
JEKYLL_PATH = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll')
JEKYLL_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll'))
JEKYLL_COMMAND_OUTPUT_FILE = File.join(File.dirname(TEST_DIR), 'jekyll_output.txt')
JEKYLL_COMMAND_STATUS_FILE = File.join(File.dirname(TEST_DIR), 'jekyll_status.txt')
def source_dir(*files)
File.join(TEST_DIR, *files)
end
def all_steps_to_path(path)
source = Pathname.new(source_dir('_site')).expand_path
dest = Pathname.new(path).expand_path
paths = []
dest.ascend do |f|
break if f.eql? source
paths.unshift f.to_s
end
paths
end
def jekyll_output_file
JEKYLL_COMMAND_OUTPUT_FILE
end
def jekyll_status_file
JEKYLL_COMMAND_STATUS_FILE
end
def jekyll_run_output
File.read(jekyll_output_file)
File.read(jekyll_output_file) if File.file?(jekyll_output_file)
end
def jekyll_run_status
(File.read(jekyll_status_file) rescue 0).to_i
end
def run_bundle(args)
run_in_shell('bundle', *args.strip.split(' '))
end
def run_jekyll(args)
system "#{JEKYLL_PATH} #{args} --trace > #{jekyll_output_file} 2>&1"
child = run_in_shell(JEKYLL_PATH, *args.strip.split(' '), "--trace")
child.status.exitstatus == 0
end
# -----------------------------------------------------------------------------
# XXX: POSIX::Spawn::Child does not write output when the exit status is > 0
# for example when doing [:out, :err] => [file, "w"] it will skip
# writing the file entirely, we sould switch to Open.
# -----------------------------------------------------------------------------
def run_in_shell(*args)
spawned = POSIX::Spawn::Child.new(*args)
status = spawned.status.exitstatus
File.write(JEKYLL_COMMAND_STATUS_FILE, status)
File.open(JEKYLL_COMMAND_OUTPUT_FILE, "w+") do |file|
status == 0 ? file.write(spawned.out) : file.write(spawned.err)
end
spawned
end
def slug(title)

View File

@@ -0,0 +1,147 @@
require 'fileutils'
require 'colorator'
require 'cucumber/formatter/console'
require 'cucumber/formatter/io'
require 'gherkin/formatter/escaping'
module Features
module Support
# The formatter used for <tt>--format pretty</tt> (the default formatter).
#
# This formatter prints features to plain text - exactly how they were parsed,
# just prettier. That means with proper indentation and alignment of table columns.
#
# If the output is STDOUT (and not a file), there are bright colours to watch too.
#
class Overview
include FileUtils
include Cucumber::Formatter::Console
include Cucumber::Formatter::Io
include Gherkin::Formatter::Escaping
attr_writer :indent
attr_reader :runtime
def initialize(runtime, path_or_io, options)
@runtime, @io, @options = runtime, ensure_io(path_or_io, "pretty"), options
@exceptions = []
@indent = 0
@prefixes = options[:prefixes] || {}
@delayed_messages = []
end
def before_features(features)
print_profile_information
end
def after_features(features)
@io.puts
print_summary(features)
end
def before_feature(feature)
@exceptions = []
@indent = 0
end
def comment_line(comment_line)
end
def after_tags(tags)
end
def tag_name(tag_name)
end
def before_feature_element(feature_element)
@indent = 2
@scenario_indent = 2
end
def after_feature_element(feature_element)
end
def before_background(background)
@indent = 2
@scenario_indent = 2
@in_background = true
end
def after_background(background)
@in_background = nil
end
def background_name(keyword, name, file_colon_line, source_indent)
print_feature_element_name(keyword, name, file_colon_line, source_indent)
end
def scenario_name(keyword, name, file_colon_line, source_indent)
print_feature_element_name(keyword, name, file_colon_line, source_indent)
end
def before_step(step)
@current_step = step
end
def before_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line)
@hide_this_step = false
if exception
if @exceptions.include?(exception)
@hide_this_step = true
return
end
@exceptions << exception
end
if status != :failed && @in_background ^ background
@hide_this_step = true
return
end
@status = status
end
CHARS = {
:failed => "x".red,
:pending => "?".yellow,
:undefined => "x".red,
:passed => ".".green,
:skipped => "-".blue
}
def step_name(keyword, step_match, status, source_indent, background, file_colon_line)
@io.print CHARS[status]
end
def exception(exception, status)
return if @hide_this_step
@io.puts
print_exception(exception, status, @indent)
@io.flush
end
private
def print_feature_element_name(keyword, name, file_colon_line, source_indent)
@io.puts
names = name.empty? ? [name] : name.split("\n")
line = " #{keyword}: #{names[0]}"
if @options[:source]
line_comment = "#{file_colon_line}"
@io.print(line_comment)
end
@io.print(line)
@io.print " "
@io.flush
end
def cell_prefix(status)
@prefixes[status]
end
def print_summary(features)
@io.puts
print_stats(features, @options)
print_snippets(@options)
print_passing_wip(@options)
end
end
end
end

22
jekyll-docs.gemspec Normal file
View File

@@ -0,0 +1,22 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'jekyll/version'
Gem::Specification.new do |spec|
spec.name = 'jekyll-docs'
spec.version = Jekyll::VERSION
spec.authors = ['Parker Moore']
spec.email = ['parkrmoore@gmail.com']
spec.summary = %q{Offline usage documentation for Jekyll.}
spec.homepage = 'http://jekyllrb.com'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").grep(%r{^site/})
spec.require_paths = ['lib']
spec.add_dependency 'jekyll', Jekyll::VERSION
spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake', '~> 10.0'
end

View File

@@ -5,59 +5,35 @@ require 'jekyll/version'
Gem::Specification.new do |s|
s.specification_version = 2 if s.respond_to? :specification_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
s.rubygems_version = '2.2.2'
s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 2.0.0'
s.name = 'jekyll'
s.version = Jekyll::VERSION
s.license = 'MIT'
s.name = 'jekyll'
s.version = Jekyll::VERSION
s.license = 'MIT'
s.summary = "A simple, blog aware, static site generator."
s.description = "Jekyll is a simple, blog aware, static site generator."
s.summary = 'A simple, blog aware, static site generator.'
s.description = 'Jekyll is a simple, blog aware, static site generator.'
s.authors = ["Tom Preston-Werner"]
s.email = 'tom@mojombo.com'
s.homepage = 'https://github.com/jekyll/jekyll'
s.authors = ['Tom Preston-Werner']
s.email = 'tom@mojombo.com'
s.homepage = 'https://github.com/jekyll/jekyll'
s.files = `git ls-files`.split($/)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ["lib"]
all_files = `git ls-files -z`.split("\x0")
s.files = all_files.grep(%r{^(bin|lib)/})
s.executables = all_files.grep(%r{^bin/}) { |f| File.basename(f) }
s.require_paths = ['lib']
s.rdoc_options = ["--charset=UTF-8"]
s.rdoc_options = ['--charset=UTF-8']
s.extra_rdoc_files = %w[README.markdown LICENSE]
s.add_runtime_dependency('liquid', "~> 2.6.1")
s.add_runtime_dependency('classifier', "~> 1.3")
s.add_runtime_dependency('listen', [">= 2.7.6", "< 3.0.0"])
s.add_runtime_dependency('kramdown', "~> 1.3")
s.add_runtime_dependency('pygments.rb', "~> 0.6.0")
s.add_runtime_dependency('mercenary', "~> 0.3.3")
s.add_runtime_dependency('safe_yaml', "~> 1.0")
s.add_runtime_dependency('colorator', "~> 0.1")
s.add_runtime_dependency('redcarpet', "~> 3.1")
s.add_runtime_dependency('toml', '~> 0.1.0')
s.add_runtime_dependency('jekyll-paginate', '~> 1.0')
s.add_runtime_dependency('jekyll-gist', '~> 1.0')
s.add_runtime_dependency('jekyll-coffeescript', '~> 1.0')
s.add_runtime_dependency('liquid', '~> 3.0')
s.add_runtime_dependency('kramdown', '~> 1.3')
s.add_runtime_dependency('mercenary', '~> 0.3.3')
s.add_runtime_dependency('safe_yaml', '~> 1.0')
s.add_runtime_dependency('colorator', '~> 0.1')
s.add_runtime_dependency('rouge', '~> 1.7')
s.add_runtime_dependency('jekyll-sass-converter', '~> 1.0')
s.add_development_dependency('rake', "~> 10.1")
s.add_development_dependency('rdoc', "~> 3.11")
s.add_development_dependency('redgreen', "~> 1.2")
s.add_development_dependency('shoulda', "~> 3.5")
s.add_development_dependency('rr', "~> 1.1")
s.add_development_dependency('cucumber', "1.3.11")
s.add_development_dependency('RedCloth', "~> 4.2")
s.add_development_dependency('maruku', "0.7.0")
s.add_development_dependency('rdiscount', "~> 1.6")
s.add_development_dependency('launchy', "~> 2.3")
s.add_development_dependency('simplecov', "~> 0.7")
s.add_development_dependency('simplecov-gem-adapter', "~> 1.0.1")
s.add_development_dependency('mime-types', "~> 1.5")
s.add_development_dependency('activesupport', '~> 3.2.13')
s.add_development_dependency('jekyll_test_plugin')
s.add_development_dependency('jekyll_test_plugin_malicious')
s.add_development_dependency('rouge', '~> 1.3')
s.add_runtime_dependency('jekyll-watch', '~> 1.1')
end

View File

@@ -18,53 +18,156 @@ require 'rubygems'
# stdlib
require 'fileutils'
require 'time'
require 'safe_yaml/load'
require 'English'
require 'pathname'
require 'logger'
require 'set'
# 3rd party
require 'safe_yaml/load'
require 'liquid'
require 'kramdown'
require 'colorator'
require 'toml'
# internal requires
require 'jekyll/version'
require 'jekyll/utils'
require 'jekyll/hooks'
require 'jekyll/log_adapter'
require 'jekyll/stevenson'
require 'jekyll/deprecator'
require 'jekyll/configuration'
require 'jekyll/document'
require 'jekyll/collection'
require 'jekyll/plugin_manager'
require 'jekyll/frontmatter_defaults'
require 'jekyll/site'
require 'jekyll/convertible'
require 'jekyll/url'
require 'jekyll/layout'
require 'jekyll/page'
require 'jekyll/post'
require 'jekyll/excerpt'
require 'jekyll/draft'
require 'jekyll/filters'
require 'jekyll/static_file'
require 'jekyll/errors'
require 'jekyll/related_posts'
require 'jekyll/cleaner'
require 'jekyll/entry_filter'
require 'jekyll/layout_reader'
require 'jekyll/publisher'
require 'jekyll/renderer'
SafeYAML::OPTIONS[:suppress_warnings] = true
# extensions
require 'jekyll/plugin'
require 'jekyll/converter'
require 'jekyll/generator'
require 'jekyll/command'
require 'jekyll/liquid_extensions'
module Jekyll
# internal requires
autoload :Cleaner, 'jekyll/cleaner'
autoload :Collection, 'jekyll/collection'
autoload :Configuration, 'jekyll/configuration'
autoload :Convertible, 'jekyll/convertible'
autoload :Deprecator, 'jekyll/deprecator'
autoload :Document, 'jekyll/document'
autoload :Draft, 'jekyll/draft'
autoload :EntryFilter, 'jekyll/entry_filter'
autoload :Errors, 'jekyll/errors'
autoload :Excerpt, 'jekyll/excerpt'
autoload :External, 'jekyll/external'
autoload :Filters, 'jekyll/filters'
autoload :FrontmatterDefaults, 'jekyll/frontmatter_defaults'
autoload :Hooks, 'jekyll/hooks'
autoload :Layout, 'jekyll/layout'
autoload :CollectionReader, 'jekyll/readers/collection_reader'
autoload :DataReader, 'jekyll/readers/data_reader'
autoload :LayoutReader, 'jekyll/readers/layout_reader'
autoload :PostReader, 'jekyll/readers/post_reader'
autoload :PageReader, 'jekyll/readers/page_reader'
autoload :StaticFileReader, 'jekyll/readers/static_file_reader'
autoload :LogAdapter, 'jekyll/log_adapter'
autoload :Page, 'jekyll/page'
autoload :PluginManager, 'jekyll/plugin_manager'
autoload :Publisher, 'jekyll/publisher'
autoload :Reader, 'jekyll/reader'
autoload :Regenerator, 'jekyll/regenerator'
autoload :RelatedPosts, 'jekyll/related_posts'
autoload :Renderer, 'jekyll/renderer'
autoload :LiquidRenderer, 'jekyll/liquid_renderer'
autoload :Site, 'jekyll/site'
autoload :StaticFile, 'jekyll/static_file'
autoload :Stevenson, 'jekyll/stevenson'
autoload :URL, 'jekyll/url'
autoload :Utils, 'jekyll/utils'
autoload :VERSION, 'jekyll/version'
# extensions
require 'jekyll/plugin'
require 'jekyll/converter'
require 'jekyll/generator'
require 'jekyll/command'
require 'jekyll/liquid_extensions'
class << self
# Public: Tells you which Jekyll environment you are building in so you can skip tasks
# if you need to. This is useful when doing expensive compression tasks on css and
# images and allows you to skip that when working in development.
def env
ENV["JEKYLL_ENV"] || "development"
end
# Public: Generate a Jekyll configuration Hash by merging the default
# options with anything in _config.yml, and adding the given options on top.
#
# override - A Hash of config directives that override any options in both
# the defaults and the config file. See Jekyll::Configuration::DEFAULTS for a
# list of option names and their defaults.
#
# Returns the final configuration Hash.
def configuration(override = Hash.new)
config = Configuration[Configuration::DEFAULTS]
override = Configuration[override].stringify_keys
unless override.delete('skip_config_files')
config = config.read_config_files(config.config_files(override))
end
# Merge DEFAULTS < _config.yml < override
config = Utils.deep_merge_hashes(config, override).stringify_keys
set_timezone(config['timezone']) if config['timezone']
config
end
# Public: Set the TZ environment variable to use the timezone specified
#
# timezone - the IANA Time Zone
#
# Returns nothing
def set_timezone(timezone)
ENV['TZ'] = timezone
end
# Public: Fetch the logger instance for this Jekyll process.
#
# Returns the LogAdapter instance.
def logger
@logger ||= LogAdapter.new(Stevenson.new, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
end
# Public: Set the log writer.
# New log writer must respond to the same methods
# as Ruby's interal Logger.
#
# writer - the new Logger-compatible log transport
#
# Returns the new logger.
def logger=(writer)
@logger = LogAdapter.new(writer, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
end
# Public: An array of sites
#
# Returns the Jekyll sites created.
def sites
@sites ||= []
end
# Public: Ensures the questionable path is prefixed with the base directory
# and prepends the questionable path with the base directory if false.
#
# base_directory - the directory with which to prefix the questionable path
# questionable_path - the path we're unsure about, and want prefixed
#
# Returns the sanitized path.
def sanitized_path(base_directory, questionable_path)
return base_directory if base_directory.eql?(questionable_path)
clean_path = File.expand_path(questionable_path, "/")
clean_path = clean_path.sub(/\A\w\:\//, '/')
unless clean_path.start_with?(base_directory.sub(/\A\w\:\//, '/'))
File.join(base_directory, clean_path)
else
clean_path
end
end
# Conditional optimizations
Jekyll::External.require_if_present('liquid-c')
end
end
require_all 'jekyll/commands'
require_all 'jekyll/converters'
@@ -72,75 +175,4 @@ require_all 'jekyll/converters/markdown'
require_all 'jekyll/generators'
require_all 'jekyll/tags'
# plugins
require 'jekyll-coffeescript'
require 'jekyll-sass-converter'
require 'jekyll-paginate'
require 'jekyll-gist'
SafeYAML::OPTIONS[:suppress_warnings] = true
module Jekyll
# Public: Tells you which Jekyll environment you are building in so you can skip tasks
# if you need to. This is useful when doing expensive compression tasks on css and
# images and allows you to skip that when working in development.
def self.env
ENV["JEKYLL_ENV"] || "development"
end
# Public: Generate a Jekyll configuration Hash by merging the default
# options with anything in _config.yml, and adding the given options on top.
#
# override - A Hash of config directives that override any options in both
# the defaults and the config file. See Jekyll::Configuration::DEFAULTS for a
# list of option names and their defaults.
#
# Returns the final configuration Hash.
def self.configuration(override)
config = Configuration[Configuration::DEFAULTS]
override = Configuration[override].stringify_keys
config = config.read_config_files(config.config_files(override))
# Merge DEFAULTS < _config.yml < override
config = Utils.deep_merge_hashes(config, override).stringify_keys
set_timezone(config['timezone']) if config['timezone']
config
end
# Static: Set the TZ environment variable to use the timezone specified
#
# timezone - the IANA Time Zone
#
# Returns nothing
def self.set_timezone(timezone)
ENV['TZ'] = timezone
end
def self.logger
@logger ||= LogAdapter.new(Stevenson.new)
end
def self.logger=(writer)
@logger = LogAdapter.new(writer)
end
# Public: File system root
#
# Returns the root of the filesystem as a Pathname
def self.fs_root
@fs_root ||= "/"
end
def self.sanitized_path(base_directory, questionable_path)
clean_path = File.expand_path(questionable_path, fs_root)
clean_path.gsub!(/\A\w\:\//, '/')
unless clean_path.start_with?(base_directory)
File.join(base_directory, clean_path)
else
clean_path
end
end
end

View File

@@ -1,95 +1,105 @@
require 'set'
module Jekyll
class Site
# Handles the cleanup of a site's destination before it is built.
class Cleaner
attr_reader :site
# Handles the cleanup of a site's destination before it is built.
class Cleaner
HIDDEN_FILE_REGEX = /\/\.{1,2}$/
attr_reader :site
def initialize(site)
@site = site
def initialize(site)
@site = site
end
# Cleans up the site's destination directory
def cleanup!
FileUtils.rm_rf(obsolete_files)
FileUtils.rm_rf(metadata_file) if !@site.incremental?
end
private
# Private: The list of files and directories to be deleted during cleanup process
#
# Returns an Array of the file and directory paths
def obsolete_files
(existing_files - new_files - new_dirs + replaced_files).to_a
end
# Private: The metadata file storing dependency tree and build history
#
# Returns an Array with the metdata file as the only item
def metadata_file
[site.regenerator.metadata_file]
end
# Private: The list of existing files, apart from those included in keep_files and hidden files.
#
# Returns a Set with the file paths
def existing_files
files = Set.new
regex = keep_file_regex
dirs = keep_dirs
Dir.glob(site.in_dest_dir("**", "*"), File::FNM_DOTMATCH) do |file|
next if file =~ HIDDEN_FILE_REGEX || file =~ regex || dirs.include?(file)
files << file
end
# Cleans up the site's destination directory
def cleanup!
FileUtils.rm_rf(obsolete_files)
end
files
end
private
# Private: The list of files to be created when site is built.
#
# Returns a Set with the file paths
def new_files
files = Set.new
site.each_site_file { |item| files << item.destination(site.dest) }
files
end
# Private: The list of files and directories to be deleted during cleanup process
#
# Returns an Array of the file and directory paths
def obsolete_files
(existing_files - new_files - new_dirs + replaced_files).to_a
end
# Private: The list of directories to be created when site is built.
# These are the parent directories of the files in #new_files.
#
# Returns a Set with the directory paths
def new_dirs
new_files.map { |file| parent_dirs(file) }.flatten.to_set
end
# Private: The list of existing files, apart from those included in keep_files and hidden files.
#
# Returns a Set with the file paths
def existing_files
files = Set.new
Dir.glob(File.join(site.dest, "**", "*"), File::FNM_DOTMATCH) do |file|
files << file unless file =~ /\/\.{1,2}$/ || file =~ keep_file_regex || keep_dirs.include?(file)
end
files
# Private: The list of parent directories of a given file
#
# Returns an Array with the directory paths
def parent_dirs(file)
parent_dir = File.dirname(file)
if parent_dir == site.dest
[]
else
[parent_dir] + parent_dirs(parent_dir)
end
end
# Private: The list of files to be created when site is built.
#
# Returns a Set with the file paths
def new_files
files = Set.new
site.each_site_file { |item| files << item.destination(site.dest) }
files
end
# Private: The list of existing files that will be replaced by a directory during build
#
# Returns a Set with the file paths
def replaced_files
new_dirs.select { |dir| File.file?(dir) }.to_set
end
# Private: The list of directories to be created when site is built.
# These are the parent directories of the files in #new_files.
#
# Returns a Set with the directory paths
def new_dirs
new_files.map { |file| parent_dirs(file) }.flatten.to_set
end
# Private: The list of directories that need to be kept because they are parent directories
# of files specified in keep_files
#
# Returns a Set with the directory paths
def keep_dirs
site.keep_files.map { |file| parent_dirs(site.in_dest_dir(file)) }.flatten.to_set
end
# Private: The list of parent directories of a given file
#
# Returns an Array with the directory paths
def parent_dirs(file)
parent_dir = File.dirname(file)
if parent_dir == site.dest
[]
else
[parent_dir] + parent_dirs(parent_dir)
end
end
# Private: The list of existing files that will be replaced by a directory during build
#
# Returns a Set with the file paths
def replaced_files
new_dirs.select { |dir| File.file?(dir) }.to_set
end
# Private: The list of directories that need to be kept because they are parent directories
# of files specified in keep_files
#
# Returns a Set with the directory paths
def keep_dirs
site.keep_files.map{|file| parent_dirs(File.join(site.dest, file))}.flatten.to_set
end
# Private: Creates a regular expression from the config's keep_files array
#
# Examples
# ['.git','.svn'] creates the following regex: /\/(\.git|\/.svn)/
#
# Returns the regular expression
def keep_file_regex
or_list = site.keep_files.join("|")
pattern = "\/(#{or_list.gsub(".", "\.")})"
Regexp.new pattern
end
# Private: Creates a regular expression from the config's keep_files array
#
# Examples
# ['.git','.svn'] creates the following regex: /\/(\.git|\/.svn)/
#
# Returns the regular expression
def keep_file_regex
Regexp.union(site.keep_files)
end
end
end

View File

@@ -1,6 +1,7 @@
module Jekyll
class Collection
attr_reader :site, :label, :metadata
attr_writer :docs
# Create a new Collection.
#
@@ -22,14 +23,46 @@ module Jekyll
@docs ||= []
end
# Override of normal respond_to? to match method_missing's logic for
# looking in @data.
def respond_to?(method, include_private = false)
docs.respond_to?(method.to_sym, include_private) || super
end
# Override of method_missing to check in @data for the key.
def method_missing(method, *args, &blck)
if docs.respond_to?(method.to_sym)
Jekyll.logger.warn "Deprecation:", "Collection##{method} should be called on the #docs array directly."
Jekyll.logger.warn "", "Called by #{caller.first}."
docs.public_send(method.to_sym, *args, &blck)
else
super
end
end
# Fetch the static files in this collection.
# Defaults to an empty array if no static files have been read in.
#
# Returns an array of Jekyll::StaticFile objects.
def files
@files ||= []
end
# Read the allowed documents into the collection's array of docs.
#
# Returns the sorted array of docs.
def read
filtered_entries.each do |file_path|
doc = Jekyll::Document.new(Jekyll.sanitized_path(directory, file_path), { site: site, collection: self })
doc.read
docs << doc
full_path = collection_dir(file_path)
next if File.directory?(full_path)
if Utils.has_yaml_header? full_path
doc = Jekyll::Document.new(full_path, { site: site, collection: self })
doc.read
docs << doc if site.publisher.publish?(doc) || !write?
else
relative_dir = Jekyll.sanitized_path(relative_directory, File.dirname(file_path)).chomp("/.")
files << StaticFile.new(site, site.source, relative_dir, File.basename(full_path), self)
end
end
docs.sort!
end
@@ -40,9 +73,10 @@ module Jekyll
# relative to the collection's directory
def entries
return Array.new unless exists?
Dir.glob(File.join(directory, "**", "*.*")).map do |entry|
entry[File.join(directory, "")] = ''; entry
end
@entries ||=
Dir.glob(collection_dir("**", "*.*")).map do |entry|
entry["#{collection_dir}/"] = ''; entry
end
end
# Filtered version of the entries in this collection.
@@ -51,9 +85,13 @@ module Jekyll
# Returns a list of filtered entry paths.
def filtered_entries
return Array.new unless exists?
Dir.chdir(directory) do
entry_filter.filter(entries)
end
@filtered_entries ||=
Dir.chdir(directory) do
entry_filter.filter(entries).reject do |f|
path = collection_dir(f)
File.directory?(path) || (File.symlink?(f) && site.safe)
end
end
end
# The directory for this Collection, relative to the site source.
@@ -61,15 +99,28 @@ module Jekyll
# Returns a String containing the directory name where the collection
# is stored on the filesystem.
def relative_directory
"_#{label}"
@relative_directory ||= "_#{label}"
end
# The full path to the directory containing the
# The full path to the directory containing the collection.
#
# Returns a String containing th directory name where the collection
# is stored on the filesystem.
def directory
Jekyll.sanitized_path(site.source, relative_directory)
@directory ||= site.in_source_dir(relative_directory)
end
# The full path to the directory containing the collection, with
# optional subpaths.
#
# *files - (optional) any other path pieces relative to the
# directory to append to the path
#
# Returns a String containing th directory name where the collection
# is stored on the filesystem.
def collection_dir(*files)
return directory if files.empty?
site.in_source_dir(relative_directory, *files)
end
# Checks whether the directory "exists" for this collection.
@@ -105,7 +156,7 @@ module Jekyll
#
# Returns a sanitized version of the label.
def sanitize_label(label)
label.gsub(/[^a-z0-9_\-]/i, '')
label.gsub(/[^a-z0-9_\-\.]/i, '')
end
# Produce a representation of this Collection for use in Liquid.
@@ -118,6 +169,7 @@ module Jekyll
metadata.merge({
"label" => label,
"docs" => docs,
"files" => files,
"directory" => directory,
"output" => write?,
"relative_directory" => relative_directory
@@ -129,14 +181,16 @@ module Jekyll
#
# Returns true if the 'write' metadata is true, false otherwise.
def write?
!!metadata['output']
!!metadata.fetch('output', false)
end
# The URL template to render collection's documents at.
#
# Returns the URL template to render collection's documents at.
def url_template
metadata.fetch('permalink', "/:collection/:path:output_ext")
metadata.fetch('permalink') do
Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
end
end
# Extract options for this collection from the site configuration.
@@ -149,6 +203,5 @@ module Jekyll
{}
end
end
end
end

View File

@@ -19,31 +19,6 @@ module Jekyll
super(base)
end
# Paths to ignore for the watch option
#
# options - A Hash of options passed to the command
#
# Returns a list of relative paths from source that should be ignored
def ignore_paths(options)
source = options['source']
destination = options['destination']
config_files = Configuration[options].config_files(options)
paths = config_files + Array(destination)
ignored = []
source_abs = Pathname.new(source).expand_path
paths.each do |p|
path_abs = Pathname.new(p).expand_path
begin
rel_path = path_abs.relative_path_from(source_abs).to_s
ignored << Regexp.new(Regexp.escape(rel_path)) unless rel_path.start_with?('../')
rescue ArgumentError
# Could not find a relative path
end
end
ignored
end
# Run Site#process and catch errors
#
# site - the Jekyll::Site object
@@ -51,7 +26,7 @@ module Jekyll
# Returns nothing
def process_site(site)
site.process
rescue Jekyll::FatalException => e
rescue Jekyll::Errors::FatalException => e
Jekyll.logger.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:"
Jekyll.logger.error "", "------------------------------------"
Jekyll.logger.error "", e.message
@@ -74,15 +49,18 @@ module Jekyll
# Returns nothing
def add_build_options(c)
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.option 'destination', '-d', '--destination DESTINATION', 'The current folder will be generated into DESTINATION'
c.option 'source', '-s', '--source SOURCE', 'Custom source directory'
c.option 'future', '--future', 'Publishes posts with a future date'
c.option 'limit_posts', '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option 'watch', '-w', '--watch', 'Watch for changes and rebuild'
c.option 'watch', '-w', '--[no-]watch', 'Watch for changes and rebuild'
c.option 'force_polling', '--force_polling', 'Force watch to use polling'
c.option 'lsi', '--lsi', 'Use LSI for improved related posts'
c.option 'show_drafts', '-D', '--drafts', 'Render posts in the _drafts folder'
c.option 'unpublished', '--unpublished', 'Render posts that were marked as unpublished'
c.option 'quiet', '-q', '--quiet', 'Silence output.'
c.option 'verbose', '-V', '--verbose', 'Print verbose output.'
c.option 'incremental', '-I', '--incremental', 'Enable incremental rebuild.'
end
end

View File

@@ -9,6 +9,7 @@ module Jekyll
prog.command(:build) do |c|
c.syntax 'build [options]'
c.description 'Build your site'
c.alias :b
add_build_options(c)
@@ -22,7 +23,8 @@ module Jekyll
# Build your jekyll site
# Continuously watch if `watch` is set to true in the config.
def process(options)
Jekyll.logger.log_level = :error if options['quiet']
# Adjust verbosity quickly
Jekyll.logger.adjust_verbosity(options)
options = configuration_from_options(options)
site = Jekyll::Site.new(options)
@@ -32,23 +34,31 @@ module Jekyll
else
build(site, options)
end
watch(site, options) if options['watch']
if options.fetch('watch', false)
watch(site, options)
else
Jekyll.logger.info "Auto-regeneration:", "disabled. Use --watch to enable."
end
end
# Build your Jekyll site.
#
# site - the Jekyll::Site instance to build
# options - the
# options - A Hash of options passed to the command
#
# Returns nothing.
def build(site, options)
t = Time.now
source = options['source']
destination = options['destination']
incremental = options['incremental']
Jekyll.logger.info "Source:", source
Jekyll.logger.info "Destination:", destination
Jekyll.logger.info "Incremental build:", (incremental ? "enabled" : "disabled. Enable with --incremental")
Jekyll.logger.info "Generating..."
process_site(site)
Jekyll.logger.info "", "done."
Jekyll.logger.info "", "done in #{(Time.now - t).round(3)} seconds."
end
# Private: Watch for file changes and rebuild the site.
@@ -58,38 +68,8 @@ module Jekyll
#
# Returns nothing.
def watch(site, options)
require 'listen'
listener = Listen.to(
options['source'],
:ignore => ignore_paths(options),
:force_polling => options['force_polling']
) do |modified, added, removed|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
n = modified.length + added.length + removed.length
print Jekyll.logger.formatted_topic("Regenerating:") + "#{n} files at #{t} "
begin
process_site(site)
puts "...done."
rescue => e
puts "...error:"
Jekyll.logger.warn "Error:", e.message
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
end
end
listener.start
Jekyll.logger.info "Auto-regeneration:", "enabled for '#{source}'"
unless options['serving']
trap("INT") do
listener.stop
puts " Halting auto-regeneration."
exit 0
end
loop { sleep 1000 }
end
External.require_with_graceful_fail 'jekyll-watch'
Jekyll::Watcher.watch(options)
end
end # end of class << self

View File

@@ -0,0 +1,44 @@
module Jekyll
module Commands
class Clean < Command
class << self
def init_with_program(prog)
prog.command(:clean) do |c|
c.syntax 'clean [subcommand]'
c.description 'Clean the site (removes site output and metadata file) without building.'
add_build_options(c)
c.action do |args, _|
Jekyll::Commands::Clean.process({})
end
end
end
def process(options)
options = configuration_from_options(options)
destination = options['destination']
metadata_file = File.join(options['source'], '.jekyll-metadata')
if File.directory? destination
Jekyll.logger.info "Cleaning #{destination}..."
FileUtils.rm_rf(destination)
Jekyll.logger.info "", "done."
else
Jekyll.logger.info "Nothing to do for #{destination}."
end
if File.file? metadata_file
Jekyll.logger.info "Removing #{metadata_file}..."
FileUtils.rm_rf(metadata_file)
Jekyll.logger.info "", "done."
else
Jekyll.logger.info "Nothing to do for #{metadata_file}."
end
end
end
end
end
end

View File

@@ -1,30 +0,0 @@
module Jekyll
module Commands
class Docs < Command
class << self
def init_with_program(prog)
prog.command(:docs) do |c|
c.syntax 'docs'
c.description "Launch local server with docs for Jekyll v#{Jekyll::VERSION}"
c.option 'port', '-P', '--port [PORT]', 'Port to listen on'
c.option 'host', '-H', '--host [HOST]', 'Host to bind to'
c.action do |args, options|
options.merge!({
'source' => File.expand_path("../../../site", File.dirname(__FILE__)),
'destination' => File.expand_path("../../../site/_site", File.dirname(__FILE__))
})
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
end
end
end
end
end
end

View File

@@ -30,29 +30,26 @@ module Jekyll
def healthy?(site)
[
fsnotify_buggy?(site),
!deprecated_relative_permalinks(site),
!conflicting_urls(site)
].all?
end
def deprecated_relative_permalinks(site)
contains_deprecated_pages = false
site.pages.each do |page|
if page.uses_relative_permalinks
Jekyll.logger.warn "Deprecation:", "'#{page.path}' uses relative" +
" permalinks which will be deprecated in" +
" Jekyll v2.0.0 and beyond."
contains_deprecated_pages = true
end
if site.config['relative_permalinks']
Jekyll::Deprecator.deprecation_message "Your site still uses relative" +
" permalinks, which was removed in" +
" Jekyll v3.0.0."
return true
end
contains_deprecated_pages
end
def conflicting_urls(site)
conflicting_urls = false
urls = {}
urls = collect_urls(urls, site.pages, site.dest)
urls = collect_urls(urls, site.posts, site.dest)
urls = collect_urls(urls, site.posts.docs, site.dest)
urls.each do |url, paths|
if paths.size > 1
conflicting_urls = true
@@ -63,8 +60,23 @@ module Jekyll
conflicting_urls
end
private
def fsnotify_buggy?(site)
return true if !Utils::Platforms.osx?
if Dir.pwd != `pwd`.strip
Jekyll.logger.error " " + <<-STR.strip.gsub(/\n\s+/, "\n ")
We have detected that there might be trouble using fsevent on your
operating system, you can read https://github.com/thibaudgg/rb-fsevent/wiki/no-fsevents-fired-(OSX-bug)
for possible work arounds or you can work around it immediately
with `--force-polling`.
STR
false
end
true
end
private
def collect_urls(urls, things, destination)
things.each do |thing|
dest = thing.destination(destination)

View File

@@ -0,0 +1,33 @@
module Jekyll
module Commands
class Help < Command
class << self
def init_with_program(prog)
prog.command(:help) do |c|
c.syntax 'help [subcommand]'
c.description 'Show the help message, optionally for a given subcommand.'
c.action do |args, _|
cmd = (args.first || "").to_sym
if args.empty?
puts prog
elsif prog.has_command? cmd
puts prog.commands[cmd]
else
invalid_command(prog, cmd)
abort
end
end
end
end
def invalid_command(prog, cmd)
Jekyll.logger.error "Error:", "Hmm... we don't know what the '#{cmd}' command is."
Jekyll.logger.info "Valid commands:", prog.commands.keys.join(", ")
end
end
end
end
end

View File

@@ -3,77 +3,79 @@ require 'erb'
module Jekyll
module Commands
class New < Command
def self.init_with_program(prog)
prog.command(:new) do |c|
c.syntax 'new PATH'
c.description 'Creates a new Jekyll site scaffold in PATH'
class << self
def init_with_program(prog)
prog.command(:new) do |c|
c.syntax 'new PATH'
c.description 'Creates a new Jekyll site scaffold in PATH'
c.option 'force', '--force', 'Force creation even if PATH already exists'
c.option 'blank', '--blank', 'Creates scaffolding but with empty files'
c.option 'force', '--force', 'Force creation even if PATH already exists'
c.option 'blank', '--blank', 'Creates scaffolding but with empty files'
c.action do |args, options|
Jekyll::Commands::New.process(args, options)
end
end
end
def self.process(args, options = {})
raise ArgumentError.new('You must specify a path.') if args.empty?
new_blog_path = File.expand_path(args.join(" "), Dir.pwd)
FileUtils.mkdir_p new_blog_path
if preserve_source_location?(new_blog_path, options)
Jekyll.logger.abort_with "Conflict:", "#{new_blog_path} exists and is not empty."
end
if options["blank"]
create_blank_site new_blog_path
else
create_sample_files new_blog_path
File.open(File.expand_path(initialized_post_name, new_blog_path), "w") do |f|
f.write(scaffold_post_content)
c.action do |args, options|
Jekyll::Commands::New.process(args, options)
end
end
end
Jekyll.logger.info "New jekyll site installed in #{new_blog_path}."
end
def process(args, options = {})
raise ArgumentError.new('You must specify a path.') if args.empty?
def self.create_blank_site(path)
Dir.chdir(path) do
FileUtils.mkdir(%w(_layouts _posts _drafts))
FileUtils.touch("index.html")
new_blog_path = File.expand_path(args.join(" "), Dir.pwd)
FileUtils.mkdir_p new_blog_path
if preserve_source_location?(new_blog_path, options)
Jekyll.logger.abort_with "Conflict:", "#{new_blog_path} exists and is not empty."
end
if options["blank"]
create_blank_site new_blog_path
else
create_sample_files new_blog_path
File.open(File.expand_path(initialized_post_name, new_blog_path), "w") do |f|
f.write(scaffold_post_content)
end
end
Jekyll.logger.info "New jekyll site installed in #{new_blog_path}."
end
end
def self.scaffold_post_content
ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result
end
def create_blank_site(path)
Dir.chdir(path) do
FileUtils.mkdir(%w(_layouts _posts _drafts))
FileUtils.touch("index.html")
end
end
# Internal: Gets the filename of the sample post to be created
#
# Returns the filename of the sample post, as a String
def self.initialized_post_name
"_posts/#{Time.now.strftime('%Y-%m-%d')}-welcome-to-jekyll.markdown"
end
def scaffold_post_content
ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result
end
private
# Internal: Gets the filename of the sample post to be created
#
# Returns the filename of the sample post, as a String
def initialized_post_name
"_posts/#{Time.now.strftime('%Y-%m-%d')}-welcome-to-jekyll.markdown"
end
def self.preserve_source_location?(path, options)
!options["force"] && !Dir["#{path}/**/*"].empty?
end
private
def self.create_sample_files(path)
FileUtils.cp_r site_template + '/.', path
FileUtils.rm File.expand_path(scaffold_path, path)
end
def preserve_source_location?(path, options)
!options["force"] && !Dir["#{path}/**/*"].empty?
end
def self.site_template
File.expand_path("../../site_template", File.dirname(__FILE__))
end
def create_sample_files(path)
FileUtils.cp_r site_template + '/.', path
FileUtils.rm File.expand_path(scaffold_path, path)
end
def self.scaffold_path
"_posts/0000-00-00-welcome-to-jekyll.markdown.erb"
def site_template
File.expand_path("../../site_template", File.dirname(__FILE__))
end
def scaffold_path
"_posts/0000-00-00-welcome-to-jekyll.markdown.erb"
end
end
end
end

View File

@@ -10,6 +10,7 @@ module Jekyll
c.syntax 'serve [options]'
c.description 'Serve your site locally'
c.alias :server
c.alias :s
add_build_options(c)
@@ -20,7 +21,8 @@ module Jekyll
c.option 'skip_initial_build', '--skip-initial-build', 'Skips the initial site build which occurs before the server is started.'
c.action do |args, options|
options["serving"] ||= true
options["serving"] = true
options["watch"] = true unless options.key?("watch")
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
@@ -38,7 +40,7 @@ module Jekyll
s.mount(
options['baseurl'],
WEBrick::HTTPServlet::FileHandler,
custom_file_handler,
destination,
file_handler_options
)
@@ -48,7 +50,7 @@ module Jekyll
if options['detach'] # detach the server
pid = Process.fork { s.start }
Process.detach(pid)
Jekyll.logger.info "Server detached with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
Jekyll.logger.info "Server detached with pid '#{pid}'.", "Run `pkill -f jekyll' or `kill -9 #{pid}' to stop the server."
else # create a new server thread, then join it with current terminal
t = Thread.new { s.start }
trap("INT") { s.shutdown }
@@ -74,16 +76,20 @@ module Jekyll
def webrick_options(config)
opts = {
:DocumentRoot => config['destination'],
:Port => config['port'],
:BindAddress => config['host'],
:MimeTypes => mime_types,
:DirectoryIndex => %w(index.html index.htm index.cgi index.rhtml index.xml),
:DocumentRoot => config['destination'],
:DoNotReverseLookup => true,
:StartCallback => start_callback(config['detach']),
:DirectoryIndex => %w(index.html index.htm index.cgi index.rhtml index.xml)
:MimeTypes => mime_types,
:Port => config['port'],
:StartCallback => start_callback(config['detach'])
}
if !config['verbose']
if config['verbose']
opts.merge!({
:Logger => WEBrick::Log.new($stdout, WEBrick::Log::DEBUG)
})
else
opts.merge!({
:AccessLog => [],
:Logger => WEBrick::Log.new([], WEBrick::Log::WARN)
@@ -93,6 +99,21 @@ module Jekyll
opts
end
# Custom WEBrick FileHandler servlet for serving "/file.html" at "/file"
# when no exact match is found. This mirrors the behavior of GitHub
# Pages and many static web server configs.
def custom_file_handler
Class.new WEBrick::HTTPServlet::FileHandler do
def search_file(req, res, basename)
if file = super
file
else
super(req, res, "#{basename}.html")
end
end
end
end
def start_callback(detached)
unless detached
Proc.new { Jekyll.logger.info "Server running...", "press ctrl-c to stop." }
@@ -117,9 +138,10 @@ module Jekyll
# recreate NondisclosureName under utf-8 circumstance
def file_handler_options
fh_option = WEBrick::Config::FileHandler
fh_option[:NondisclosureName] = ['.ht*','~*']
fh_option
WEBrick::Config::FileHandler.merge({
:FancyIndexing => true,
:NondisclosureName => ['.ht*','~*']
})
end
end

View File

@@ -5,56 +5,55 @@ module Jekyll
# Default options. Overridden by values in _config.yml.
# Strings rather than symbols are used for compatibility with YAML.
DEFAULTS = {
DEFAULTS = Configuration[{
# Where things are
'source' => Dir.pwd,
'destination' => File.join(Dir.pwd, '_site'),
'plugins' => '_plugins',
'layouts' => '_layouts',
'data_source' => '_data',
'keep_files' => ['.git','.svn'],
'gems' => [],
'collections' => nil,
'timezone' => nil, # use the local timezone
'encoding' => 'utf-8', # always use utf-8 encoding. NEVER FORGET
'plugins_dir' => '_plugins',
'layouts_dir' => '_layouts',
'data_dir' => '_data',
'includes_dir' => '_includes',
'collections' => {},
# Handling Reading
'safe' => false,
'detach' => false, # default to not detaching the server
'show_drafts' => nil,
'limit_posts' => 0,
'lsi' => false,
'future' => true, # remove and make true just default
'unpublished' => false,
'relative_permalinks' => false,
'markdown' => 'kramdown',
'highlighter' => 'pygments',
'permalink' => 'date',
'baseurl' => '',
'include' => ['.htaccess'],
'exclude' => [],
'paginate_path' => '/page:num',
'keep_files' => ['.git','.svn'],
'encoding' => 'utf-8',
'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md',
'textile_ext' => 'textile',
'port' => '4000',
'host' => '0.0.0.0',
# Filtering Content
'show_drafts' => nil,
'limit_posts' => 0,
'future' => false,
'unpublished' => false,
# Plugins
'whitelist' => [],
'gems' => [],
# Conversion
'markdown' => 'kramdown',
'highlighter' => 'rouge',
'lsi' => false,
'excerpt_separator' => "\n\n",
'incremental' => false,
'defaults' => [],
# Serving
'detach' => false, # default to not detaching the server
'port' => '4000',
'host' => '127.0.0.1',
'baseurl' => '',
'maruku' => {
'use_tex' => false,
'use_divs' => false,
'png_engine' => 'blahtex',
'png_dir' => 'images/latex',
'png_url' => '/images/latex',
'fenced_code_blocks' => true
},
# Output Configuration
'permalink' => 'date',
'paginate_path' => '/page:num',
'timezone' => nil, # use the local timezone
'quiet' => false,
'verbose' => false,
'defaults' => [],
'rdiscount' => {
'extensions' => []
@@ -65,12 +64,12 @@ module Jekyll
},
'kramdown' => {
'auto_ids' => true,
'footnote_nr' => 1,
'entity_output' => 'as_char',
'toc_levels' => '1..6',
'smart_quotes' => 'lsquo,rsquo,ldquo,rdquo',
'use_coderay' => false,
'auto_ids' => true,
'footnote_nr' => 1,
'entity_output' => 'as_char',
'toc_levels' => '1..6',
'smart_quotes' => 'lsquo,rsquo,ldquo,rdquo',
'enable_coderay' => false,
'coderay' => {
'coderay_wrap' => 'div',
@@ -80,12 +79,8 @@ module Jekyll
'coderay_bold_every' => 10,
'coderay_css' => 'style'
}
},
'redcloth' => {
'hard_breaks' => true
}
}
}]
# Public: Turn all keys into string
#
@@ -94,20 +89,35 @@ module Jekyll
reduce({}) { |hsh,(k,v)| hsh.merge(k.to_s => v) }
end
def get_config_value_with_override(config_key, override)
override[config_key] || self[config_key] || DEFAULTS[config_key]
end
# Public: Directory of the Jekyll source folder
#
# override - the command-line options hash
#
# Returns the path to the Jekyll source directory
def source(override)
override['source'] || self['source'] || DEFAULTS['source']
get_config_value_with_override('source', override)
end
def quiet(override = {})
get_config_value_with_override('quiet', override)
end
alias_method :quiet?, :quiet
def verbose(override = {})
get_config_value_with_override('verbose', override)
end
alias_method :verbose?, :verbose
def safe_load_file(filename)
case File.extname(filename)
when '.toml'
when /\.toml/i
Jekyll::External.require_with_graceful_fail('toml') unless defined?(TOML)
TOML.load_file(filename)
when /\.y(a)?ml/
when /\.ya?ml/i
SafeYAML.load_file(filename)
else
raise ArgumentError, "No parser for '#{filename}' is available. Use a .toml or .y(a)ml file instead."
@@ -120,11 +130,14 @@ module Jekyll
#
# Returns an Array of config files
def config_files(override)
# Adjust verbosity quickly
Jekyll.logger.adjust_verbosity(:quiet => quiet?(override), :verbose => verbose?(override))
# Get configuration from <source>/_config.yml or <source>/<config_file>
config_files = override.delete('config')
if config_files.to_s.empty?
default = %w[yml yaml].find(Proc.new { 'yml' }) do |ext|
File.exists? Jekyll.sanitized_path(source(override), "_config.#{ext}")
File.exist?(Jekyll.sanitized_path(source(override), "_config.#{ext}"))
end
config_files = Jekyll.sanitized_path(source(override), "_config.#{default}")
@default_config_file = true
@@ -173,7 +186,7 @@ module Jekyll
$stderr.puts "#{err}"
end
configuration.fix_common_issues.backwards_compatibilize
configuration.fix_common_issues.backwards_compatibilize.add_default_collections
end
# Public: Split a CSV string into an array containing its values
@@ -192,32 +205,28 @@ module Jekyll
def backwards_compatibilize
config = clone
# Provide backwards-compatibility
if config.has_key?('auto') || config.has_key?('watch')
Jekyll.logger.warn "Deprecation:", "Auto-regeneration can no longer" +
if config.key?('auto') || config.key?('watch')
Jekyll::Deprecator.deprecation_message "Auto-regeneration can no longer" +
" be set from your configuration file(s). Use the"+
" --watch/-w command-line option instead."
" --[no-]watch/-w command-line option instead."
config.delete('auto')
config.delete('watch')
end
if config.has_key? 'server'
Jekyll.logger.warn "Deprecation:", "The 'server' configuration option" +
if config.key? 'server'
Jekyll::Deprecator.deprecation_message "The 'server' configuration option" +
" is no longer accepted. Use the 'jekyll serve'" +
" subcommand to serve your site with WEBrick."
config.delete('server')
end
if config.has_key? 'server_port'
Jekyll.logger.warn "Deprecation:", "The 'server_port' configuration option" +
" has been renamed to 'port'. Please update your config" +
" file accordingly."
# copy but don't overwrite:
config['port'] = config['server_port'] unless config.has_key?('port')
config.delete('server_port')
end
renamed_key 'server_port', 'port', config
renamed_key 'plugins', 'plugins_dir', config
renamed_key 'layouts', 'layouts_dir', config
renamed_key 'data_source', 'data_dir', config
if config.has_key? 'pygments'
Jekyll.logger.warn "Deprecation:", "The 'pygments' configuration option" +
if config.key? 'pygments'
Jekyll::Deprecator.deprecation_message "The 'pygments' configuration option" +
" has been renamed to 'highlighter'. Please update your" +
" config file accordingly. The allowed values are 'rouge', " +
"'pygments' or null."
@@ -228,26 +237,36 @@ module Jekyll
%w[include exclude].each do |option|
if config.fetch(option, []).is_a?(String)
Jekyll.logger.warn "Deprecation:", "The '#{option}' configuration option" +
Jekyll::Deprecator.deprecation_message "The '#{option}' configuration option" +
" must now be specified as an array, but you specified" +
" a string. For now, we've treated the string you provided" +
" as a list of comma-separated values."
config[option] = csv_to_array(config[option])
end
config[option].map!(&:to_s)
end
if (config['kramdown'] || {}).key?('use_coderay')
Jekyll::Deprecator.deprecation_message "Please change 'use_coderay'" +
" to 'enable_coderay' in your configuration file."
config['kramdown']['use_coderay'] = config['kramdown'].delete('enable_coderay')
end
if config.fetch('markdown', 'kramdown').to_s.downcase.eql?("maruku")
Jekyll::Deprecator.deprecation_message "You're using the 'maruku' " +
"Markdown processor. Maruku support has been deprecated and will " +
"be removed in 3.0.0. We recommend you switch to Kramdown."
Jekyll.logger.abort_with "Error:", "You're using the 'maruku' " +
"Markdown processor, which has been removed as of 3.0.0. " +
"We recommend you switch to Kramdown. To do this, replace " +
"`markdown: maruku` with `markdown: kramdown` in your " +
"`_config.yml` file."
end
config
end
def fix_common_issues
config = clone
if config.has_key?('paginate') && (!config['paginate'].is_a?(Integer) || config['paginate'] < 1)
if config.key?('paginate') && (!config['paginate'].is_a?(Integer) || config['paginate'] < 1)
Jekyll.logger.warn "Config Warning:", "The `paginate` key must be a" +
" positive integer or nil. It's currently set to '#{config['paginate'].inspect}'."
config['paginate'] = nil
@@ -255,5 +274,45 @@ module Jekyll
config
end
def add_default_collections
config = clone
return config if config['collections'].nil?
if config['collections'].is_a?(Array)
config['collections'] = Hash[config['collections'].map{|c| [c, {}]}]
end
config['collections']['posts'] ||= {}
config['collections']['posts']['output'] = true
config['collections']['posts']['permalink'] = style_to_permalink(config['permalink'])
config
end
def renamed_key(old, new, config, allowed_values = nil)
if config.key?(old)
Jekyll::Deprecator.deprecation_message "The '#{old}' configuration" +
"option has been renamed to '#{new}'. Please update your config " +
"file accordingly."
config[new] = config.delete(old)
end
end
private
def style_to_permalink(permalink_style)
case permalink_style.to_sym
when :pretty
"/:categories/:year/:month/:day/:title/"
when :none
"/:categories/:title.html"
when :date
"/:categories/:year/:month/:day/:title.html"
when :ordinal
"/:categories/:year/:y_day/:title.html"
else
permalink_style.to_s
end
end
end
end

View File

@@ -11,25 +11,44 @@ module Jekyll
@parser =
case @config['markdown'].downcase
when 'redcarpet' then RedcarpetParser.new(@config)
when 'kramdown' then KramdownParser.new(@config)
when 'kramdown' then KramdownParser.new(@config)
when 'rdiscount' then RDiscountParser.new(@config)
when 'maruku' then MarukuParser.new(@config)
else
# So they can't try some tricky bullshit or go down the ancestor chain, I hope.
if allowed_custom_class?(@config['markdown'])
self.class.const_get(@config['markdown']).new(@config)
else
Jekyll.logger.error "Invalid Markdown Processor:", "#{@config['markdown']}"
Jekyll.logger.error "", "Valid options are [ maruku | rdiscount | kramdown | redcarpet ]"
raise FatalException, "Invalid Markdown Processor: #{@config['markdown']}"
Jekyll.logger.error "", "Valid options are [ #{valid_processors.join(" | ")} ]"
raise Errors::FatalException, "Invalid Markdown Processor: #{@config['markdown']}"
end
end
@setup = true
end
def valid_processors
%w[
rdiscount
kramdown
redcarpet
] + third_party_processors
end
def third_party_processors
self.class.constants - %w[
KramdownParser
RDiscountParser
RedcarpetParser
PRIORITIES
].map(&:to_sym)
end
def extname_list
@extname_list ||= @config['markdown_ext'].split(',').map { |e| ".#{e.downcase}" }
end
def matches(ext)
rgx = '^\.(' + @config['markdown_ext'].gsub(',','|') +')$'
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
extname_list.include? ext.downcase
end
def output_ext(ext)

View File

@@ -5,22 +5,27 @@ module Jekyll
def initialize(config)
require 'kramdown'
@config = config
# If kramdown supported highlighter enabled, use that
highlighter = @config['highlighter']
if highlighter == 'rouge' || highlighter == 'coderay'
@config['kramdown']['syntax_highlighter'] ||= highlighter
end
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install kramdown'
raise FatalException.new("Missing dependency: kramdown")
raise Errors::FatalException.new("Missing dependency: kramdown")
end
def convert(content)
# Check for use of coderay
if @config['kramdown']['use_coderay']
if @config['kramdown']['enable_coderay']
%w[wrap line_numbers line_numbers_start tab_width bold_every css default_lang].each do |opt|
key = "coderay_#{opt}"
@config['kramdown'][key] = @config['kramdown']['coderay'][key] unless @config['kramdown'].has_key?(key)
@config['kramdown'][key] = @config['kramdown']['coderay'][key] unless @config['kramdown'].key?(key)
end
end
Kramdown::Document.new(content, Utils.symbolize_hash_keys(@config["kramdown"])).to_html
Kramdown::Document.new(content, Utils.symbolize_hash_keys(@config['kramdown'])).to_html
end
end

View File

@@ -1,55 +0,0 @@
module Jekyll
module Converters
class Markdown
class MarukuParser
def initialize(config)
require 'maruku'
@config = config
@errors = []
load_divs_library if @config['maruku']['use_divs']
load_blahtext_library if @config['maruku']['use_tex']
# allow fenced code blocks (new in Maruku 0.7.0)
MaRuKu::Globals[:fenced_code_blocks] = !!@config['maruku']['fenced_code_blocks']
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install maruku'
raise FatalException.new("Missing dependency: maruku")
end
def load_divs_library
require 'maruku/ext/div'
STDERR.puts 'Maruku: Using extended syntax for div elements.'
end
def load_blahtext_library
require 'maruku/ext/math'
STDERR.puts "Maruku: Using LaTeX extension. Images in `#{@config['maruku']['png_dir']}`."
# Switch off MathML output
MaRuKu::Globals[:html_math_output_mathml] = false
MaRuKu::Globals[:html_math_engine] = 'none'
# Turn on math to PNG support with blahtex
# Resulting PNGs stored in `images/latex`
MaRuKu::Globals[:html_math_output_png] = true
MaRuKu::Globals[:html_png_engine] = @config['maruku']['png_engine']
MaRuKu::Globals[:html_png_dir] = @config['maruku']['png_dir']
MaRuKu::Globals[:html_png_url] = @config['maruku']['png_url']
end
def print_errors_and_fail
print @errors.join
raise MaRuKu::Exception, "MaRuKu encountered problem(s) while converting your markup."
end
def convert(content)
converted = Maruku.new(content, :error_stream => @errors).to_html.strip
print_errors_and_fail unless @errors.empty?
converted
end
end
end
end
end

View File

@@ -3,13 +3,9 @@ module Jekyll
class Markdown
class RDiscountParser
def initialize(config)
require 'rdiscount'
Jekyll::External.require_with_graceful_fail "rdiscount"
@config = config
@rdiscount_extensions = @config['rdiscount']['extensions'].map { |e| e.to_sym }
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install rdiscount'
raise FatalException.new("Missing dependency: rdiscount")
end
def convert(content)

View File

@@ -14,7 +14,7 @@ module Jekyll
module WithPygments
include CommonMethods
def block_code(code, lang)
require 'pygments'
Jekyll::External.require_with_graceful_fail("pygments")
lang = lang && lang.split.first || "text"
add_code_tags(
Pygments.highlight(code, :lexer => lang, :options => { :encoding => 'utf-8' }),
@@ -29,7 +29,7 @@ module Jekyll
include CommonMethods
def code_wrap(code)
"<div class=\"highlight\"><pre>#{CGI::escapeHTML(code)}</pre></div>"
"<figure class=\"highlight\"><pre>#{CGI::escapeHTML(code)}</pre></figure>"
end
def block_code(code, lang)
@@ -48,52 +48,47 @@ module Jekyll
end
protected
def rouge_formatter(opts = {})
Rouge::Formatters::HTML.new(opts.merge(wrap: false))
def rouge_formatter(lexer)
Rouge::Formatters::HTML.new(:wrap => false)
end
end
def initialize(config)
require 'redcarpet'
External.require_with_graceful_fail("redcarpet")
@config = config
@redcarpet_extensions = {}
@config['redcarpet']['extensions'].each { |e| @redcarpet_extensions[e.to_sym] = true }
@renderer ||= case @config['highlighter']
when 'pygments'
Class.new(Redcarpet::Render::HTML) do
include WithPygments
end
when 'rouge'
Class.new(Redcarpet::Render::HTML) do
begin
require 'rouge'
require 'rouge/plugins/redcarpet'
rescue LoadError => e
Jekyll.logger.error "You are missing the 'rouge' gem. Please run:"
Jekyll.logger.error " $ [sudo] gem install rouge"
Jekyll.logger.error "Or add 'rouge' to your Gemfile."
raise FatalException.new("Missing dependency: rouge")
end
@renderer ||= class_with_proper_highlighter(@config['highlighter'])
end
if Rouge.version < '1.3.0'
abort "Please install Rouge 1.3.0 or greater and try running Jekyll again."
end
def class_with_proper_highlighter(highlighter)
case highlighter
when "pygments"
Class.new(Redcarpet::Render::HTML) do
include WithPygments
end
when "rouge"
Class.new(Redcarpet::Render::HTML) do
Jekyll::External.require_with_graceful_fail(%w[
rouge
rouge/plugins/redcarpet
])
include Rouge::Plugins::Redcarpet
include CommonMethods
include WithRouge
end
else
Class.new(Redcarpet::Render::HTML) do
include WithoutHighlighting
end
end
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem install redcarpet'
raise FatalException.new("Missing dependency: redcarpet")
unless Gem::Version.new(Rouge.version) > Gem::Version.new("1.3.0")
abort "Please install Rouge 1.3.0 or greater and try running Jekyll again."
end
include Rouge::Plugins::Redcarpet
include CommonMethods
include WithRouge
end
else
Class.new(Redcarpet::Render::HTML) do
include WithoutHighlighting
end
end
end
def convert(content)

View File

@@ -1,50 +0,0 @@
module Jekyll
module Converters
class Textile < Converter
safe true
highlighter_prefix '<notextile>'
highlighter_suffix '</notextile>'
def setup
return if @setup
require 'redcloth'
@setup = true
rescue LoadError
STDERR.puts 'You are missing a library required for Textile. Please run:'
STDERR.puts ' $ [sudo] gem install RedCloth'
raise FatalException.new("Missing dependency: RedCloth")
end
def matches(ext)
rgx = '(' + @config['textile_ext'].gsub(',','|') +')'
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
end
def output_ext(ext)
".html"
end
def convert(content)
setup
# Shortcut if config doesn't contain RedCloth section
return RedCloth.new(content).to_html if @config['redcloth'].nil?
# List of attributes defined on RedCloth
# (from http://redcloth.rubyforge.org/classes/RedCloth/TextileDoc.html)
attrs = ['filter_classes', 'filter_html', 'filter_ids', 'filter_styles',
'hard_breaks', 'lite_mode', 'no_span_caps', 'sanitize_html']
r = RedCloth.new(content)
# Set attributes in r if they are NOT nil in the config
attrs.each do |attr|
r.instance_variable_set("@#{attr}".to_sym, @config['redcloth'][attr]) unless @config['redcloth'][attr].nil?
end
r.to_html
end
end
end
end

View File

@@ -25,7 +25,7 @@ module Jekyll
# Whether the file is published or not, as indicated in YAML front-matter
def published?
!(data.has_key?('published') && data['published'] == false)
!(data.key?('published') && data['published'] == false)
end
# Returns merged option hash for File.read of self.site (if exists)
@@ -43,7 +43,7 @@ module Jekyll
# Returns nothing.
def read_yaml(base, name, opts = {})
begin
self.content = File.read(File.join(base, name),
self.content = File.read(site.in_source_dir(base, name),
merged_file_read_opts(opts))
if content =~ /\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)/m
self.content = $POSTMATCH
@@ -56,17 +56,27 @@ module Jekyll
end
self.data ||= {}
unless self.data.is_a?(Hash)
Jekyll.logger.abort_with "Fatal:", "Invalid YAML front matter in #{File.join(base, name)}"
end
self.data
end
# Transform the contents based on the content type.
#
# Returns nothing.
# Returns the transformed contents.
def transform
self.content = converter.convert(content)
rescue => e
Jekyll.logger.error "Conversion error:", "There was an error converting" +
" '#{path}'."
raise e
converters.reduce(content) do |output, converter|
begin
converter.convert output
rescue => e
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error while converting '#{path}':"
Jekyll.logger.error("", e.to_s)
raise e
end
end
end
# Determine the extension depending on content_type.
@@ -74,15 +84,21 @@ module Jekyll
# Returns the String extension for the output file.
# e.g. ".html" for an HTML output file.
def output_ext
converter.output_ext(ext)
if converters.all? { |c| c.is_a?(Jekyll::Converters::Identity) }
ext
else
converters.map { |c|
c.output_ext(ext) unless c.is_a?(Jekyll::Converters::Identity)
}.compact.last
end
end
# Determine which converter to use based on this convertible's
# extension.
#
# Returns the Converter instance.
def converter
@converter ||= site.converters.find { |c| c.matches(ext) }
def converters
@converters ||= site.converters.select { |c| c.matches(ext) }.sort
end
# Render Liquid in the content
@@ -92,8 +108,8 @@ module Jekyll
# info - the info for Liquid
#
# Returns the converted content
def render_liquid(content, payload, info, path = nil)
Liquid::Template.parse(content).render!(payload, info)
def render_liquid(content, payload, info, path)
site.liquid_renderer.file(path).parse(content).render!(payload, info)
rescue Tags::IncludeTagError => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{e.path}, included in #{path || self.path}"
raise e
@@ -119,12 +135,15 @@ module Jekyll
#
# Returns the type of self.
def type
if is_a?(Post)
:post
elsif is_a?(Page)
:page
elsif is_a?(Draft)
:draft
if is_a?(Page)
:pages
end
end
# returns the owner symbol for hook triggering
def hook_owner
if is_a?(Page)
:pages
end
end
@@ -134,25 +153,46 @@ module Jekyll
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
%w[.sass .scss .coffee].include?(ext)
sass_file? || coffeescript_file?
end
# Determine whether the document is a Sass file.
#
# Returns true if extname == .sass or .scss, false otherwise.
def sass_file?
%w[.sass .scss].include?(ext)
end
# Determine whether the document is a CoffeeScript file.
#
# Returns true if extname == .coffee, false otherwise.
def coffeescript_file?
'.coffee'.eql?(ext)
end
# Determine whether the file should be rendered with Liquid.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
# Always returns true.
def render_with_liquid?
!asset_file?
true
end
# Determine whether the file should be placed into layouts.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
# Returns false if the document is an asset file.
def place_in_layout?
!asset_file?
end
# Checks if the layout specified in the document actually exists
#
# layout - the layout to check
#
# Returns true if the layout is invalid, false if otherwise
def invalid_layout?(layout)
!data["layout"].nil? && layout.nil? && !(self.is_a? Jekyll::Excerpt)
end
# Recursively render layouts
#
# layouts - a list of the layouts
@@ -163,15 +203,25 @@ module Jekyll
def render_all_layouts(layouts, payload, info)
# recursively render layouts
layout = layouts[data["layout"]]
Jekyll.logger.warn("Build Warning:", "Layout '#{data["layout"]}' requested in #{path} does not exist.") if invalid_layout? layout
used = Set.new([layout])
while layout
Jekyll.logger.debug "Rendering Layout:", path
payload = Utils.deep_merge_hashes(payload, {"content" => output, "page" => layout.data})
self.output = render_liquid(layout.content,
payload,
info,
File.join(site.config['layouts'], layout.name))
File.join(site.config['layouts_dir'], layout.name))
# Add layout to dependency tree
site.regenerator.add_dependency(
site.in_source_dir(path),
site.in_source_dir(layout.path)
)
if layout = layouts[layout.data["layout"]]
if used.include?(layout)
@@ -190,19 +240,29 @@ module Jekyll
#
# Returns nothing.
def do_layout(payload, layouts)
Jekyll.logger.debug "Rendering:", self.relative_path
Jekyll.logger.debug "Pre-Render Hooks:", self.relative_path
Jekyll::Hooks.trigger hook_owner, :pre_render, self, payload
info = { :filters => [Jekyll::Filters], :registers => { :site => site, :page => payload['page'] } }
# render and transform content (this becomes the final content of the object)
payload["highlighter_prefix"] = converter.highlighter_prefix
payload["highlighter_suffix"] = converter.highlighter_suffix
payload["highlighter_prefix"] = converters.first.highlighter_prefix
payload["highlighter_suffix"] = converters.first.highlighter_suffix
self.content = render_liquid(content, payload, info) if render_with_liquid?
transform
if render_with_liquid?
Jekyll.logger.debug "Rendering Liquid:", self.relative_path
self.content = render_liquid(content, payload, info, path)
end
Jekyll.logger.debug "Rendering Markup:", self.relative_path
self.content = transform
# output keeps track of what will finally be written
self.output = content
render_all_layouts(layouts, payload, info) if place_in_layout?
Jekyll.logger.debug "Post-Render Hooks:", self.relative_path
Jekyll::Hooks.trigger hook_owner, :post_render, self
end
# Write the generated page file to the destination directory.
@@ -216,6 +276,7 @@ module Jekyll
File.open(path, 'wb') do |f|
f.write(output)
end
Jekyll::Hooks.trigger hook_owner, :post_write, self
end
# Accessor for data properties by Liquid.

View File

@@ -1,9 +1,12 @@
module Jekyll
class Deprecator
def self.process(args)
no_subcommand(args)
module Deprecator
extend self
def process(args)
arg_is_present? args, "--server", "The --server command has been replaced by the \
'serve' subcommand."
arg_is_present? args, "--serve", "The --server command has been replaced by the \
'serve' subcommand."
arg_is_present? args, "--no-server", "To build Jekyll without launching a server, \
use the 'build' subcommand."
arg_is_present? args, "--auto", "The switch '--auto' has been replaced with '--watch'."
@@ -14,23 +17,30 @@ module Jekyll
arg_is_present? args, "--paginate", "The 'paginate' setting can only be set in your \
config files."
arg_is_present? args, "--url", "The 'url' setting can only be set in your config files."
no_subcommand(args)
end
def self.no_subcommand(args)
def no_subcommand(args)
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
Jekyll.logger.error "Deprecation:", "Jekyll now uses subcommands instead of just \
switches. Run `jekyll --help' to find out more."
deprecation_message "Jekyll now uses subcommands instead of just switches. Run `jekyll --help` to find out more."
abort
end
end
def self.arg_is_present?(args, deprecated_argument, message)
def arg_is_present?(args, deprecated_argument, message)
if args.include?(deprecated_argument)
deprecation_message(message)
end
end
def self.deprecation_message(message)
def deprecation_message(message)
Jekyll.logger.error "Deprecation:", message
end
def defaults_deprecate_type(old, current)
Jekyll.logger.warn "Defaults:", "The '#{old}' type has become '#{current}'."
Jekyll.logger.warn "Defaults:", "Please update your front-matter defaults to use 'type: #{current}'."
end
end
end

View File

@@ -1,9 +1,14 @@
# encoding: UTF-8
module Jekyll
class Document
include Comparable
attr_reader :path, :site
attr_accessor :content, :collection, :output
attr_reader :path, :site, :extname, :output_ext, :content, :output, :collection
YAML_FRONT_MATTER_REGEXP = /\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)/m
DATELESS_FILENAME_MATCHER = /^(.*)(\.[^.]+)$/
DATE_FILENAME_MATCHER = /^(.+\/)*(\d+-\d+-\d+)-(.*)(\.[^.]+)$/
# Create a new Document.
#
@@ -14,7 +19,32 @@ module Jekyll
def initialize(path, relations)
@site = relations[:site]
@path = path
@extname = File.extname(path)
@output_ext = Jekyll::Renderer.new(site, self).output_ext
@collection = relations[:collection]
@has_yaml_header = nil
if draft?
categories_from_path("_drafts")
else
categories_from_path(collection.relative_directory)
end
data.default_proc = proc do |hash, key|
site.frontmatter_defaults.find(relative_path, collection.label, key)
end
trigger_hooks(:post_init)
end
def output=(output)
@to_liquid = nil
@output = output
end
def content=(content)
@to_liquid = nil
@content = content
end
# Fetch the Document's data.
@@ -25,28 +55,56 @@ module Jekyll
@data ||= Hash.new
end
# Merge some data in with this document's data.
#
# Returns the merged data.
def merge_data!(other, source: "YAML front matter")
if other.key?('categories') && !other['categories'].nil?
if other['categories'].is_a?(String)
other['categories'] = other['categories'].split(" ").map(&:strip)
end
other['categories'] = (data['categories'] || []) | other['categories']
end
Utils.deep_merge_hashes!(data, other)
if data.key?('date') && !data['date'].is_a?(Time)
data['date'] = Utils.parse_date(data['date'].to_s, "Document '#{relative_path}' does not have a valid date in the #{source}.")
end
data
end
def date
data['date'] ||= site.time
end
# Returns whether the document is a draft. This is only the case if
# the document is in the 'posts' collection but in a different
# directory than '_posts'.
#
# Returns whether the document is a draft.
def draft?
data['draft'] ||= relative_path.index(collection.relative_directory).nil? && collection.label == "posts"
end
# The path to the document, relative to the site source.
#
# Returns a String path which represents the relative path
# from the site source to this document
def relative_path
Pathname.new(path).relative_path_from(Pathname.new(site.source)).to_s
@relative_path ||= Pathname.new(path).relative_path_from(Pathname.new(site.source)).to_s
end
# The base filename of the document, without the file extname.
#
# Returns the basename without the file extname.
def basename_without_ext
@basename_without_ext ||= File.basename(path, '.*')
end
# The base filename of the document.
#
# suffix - (optional) the suffix to be removed from the end of the filename
#
# Returns the base filename of the document.
def basename(suffix = "")
File.basename(path, suffix)
end
# The extension name of the document.
#
# Returns the extension name of the document.
def extname
File.extname(path)
def basename
@basename ||= File.basename(path)
end
# Produces a "cleaned" relative path.
@@ -61,7 +119,8 @@ module Jekyll
#
# Returns the cleaned relative path of the document.
def cleaned_relative_path
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
@cleaned_relative_path ||=
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
end
# Determine whether the document is a YAML file.
@@ -77,7 +136,21 @@ module Jekyll
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
%w[.sass .scss .coffee].include?(extname)
sass_file? || coffeescript_file?
end
# Determine whether the document is a Sass file.
#
# Returns true if extname == .sass or .scss, false otherwise.
def sass_file?
%w[.sass .scss].include?(extname)
end
# Determine whether the document is a CoffeeScript file.
#
# Returns true if extname == .coffee, false otherwise.
def coffeescript_file?
'.coffee'.eql?(extname)
end
# Determine whether the file should be rendered with Liquid.
@@ -85,7 +158,7 @@ module Jekyll
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def render_with_liquid?
!(asset_file? || yaml_file?)
!(coffeescript_file? || yaml_file?)
end
# Determine whether the file should be placed into layouts.
@@ -109,9 +182,25 @@ module Jekyll
# Returns the Hash of key-value pairs for replacement in the URL.
def url_placeholders
{
collection: collection.label,
path: cleaned_relative_path,
output_ext: Jekyll::Renderer.new(site, self).output_ext
collection: collection.label,
path: cleaned_relative_path,
output_ext: output_ext,
name: Utils.slugify(basename_without_ext),
title: Utils.slugify(data['slug'], mode: "pretty", cased: true) || Utils
.slugify(basename_without_ext, mode: "pretty", cased: true),
slug: Utils.slugify(data['slug']) || Utils.slugify(basename_without_ext),
year: date.strftime("%Y"),
month: date.strftime("%m"),
day: date.strftime("%d"),
hour: date.strftime("%H"),
minute: date.strftime("%M"),
second: date.strftime("%S"),
i_day: date.strftime("%-d"),
i_month: date.strftime("%-m"),
categories: (data['categories'] || []).map { |c| c.to_s.downcase }.uniq.join('/'),
short_month: date.strftime("%b"),
short_year: date.strftime("%y"),
y_day: date.strftime("%j"),
}
end
@@ -127,21 +216,27 @@ module Jekyll
#
# Returns the computed URL for the document.
def url
@url ||= URL.new({
@url = URL.new({
template: url_template,
placeholders: url_placeholders,
permalink: permalink
}).to_s
end
def [](key)
data[key]
end
# The full path to the output file.
#
# base_directory - the base path of the output directory
#
# Returns the full path to the output file of this document.
def destination(base_directory)
path = Jekyll.sanitized_path(base_directory, url)
path = File.join(path, "index.html") if url =~ /\/$/
dest = site.in_dest_dir(base_directory)
path = site.in_dest_dir(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if url.end_with?("/")
path << output_ext unless path.end_with?(output_ext)
path
end
@@ -156,6 +251,8 @@ module Jekyll
File.open(path, 'wb') do |f|
f.write(output)
end
trigger_hooks(:post_write)
end
# Returns merged option hash for File.read of self.site (if exists)
@@ -172,7 +269,7 @@ module Jekyll
#
# Returns true if the 'published' key is specified in the YAML front-matter and not `false`.
def published?
!(data.has_key?('published') && data['published'] == false)
!(data.key?('published') && data['published'] == false)
end
# Read in the file and assign the content and data based on the file contents.
@@ -181,43 +278,98 @@ module Jekyll
#
# Returns nothing.
def read(opts = {})
@to_liquid = nil
Jekyll.logger.debug "Reading:", relative_path
if yaml_file?
@data = SafeYAML.load_file(path)
else
begin
defaults = @site.frontmatter_defaults.all(url, collection.label.to_sym)
unless defaults.empty?
@data = defaults
end
@content = File.read(path, merged_file_read_opts(opts))
if content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
@content = $POSTMATCH
merge_data!(defaults, source: "front matter defaults") unless defaults.empty?
self.content = File.read(path, merged_file_read_opts(opts))
if content =~ YAML_FRONT_MATTER_REGEXP
self.content = $POSTMATCH
data_file = SafeYAML.load($1)
unless data_file.nil?
@data = Utils.deep_merge_hashes(defaults, data_file)
end
merge_data!(data_file, source: "YAML front matter") if data_file
end
post_read
rescue SyntaxError => e
puts "YAML Exception reading #{path}: #{e.message}"
Jekyll.logger.error "Error:", "YAML Exception reading #{path}: #{e.message}"
rescue Exception => e
puts "Error reading file #{path}: #{e.message}"
if e.is_a? Jekyll::Errors::FatalException
raise e
end
Jekyll.logger.error "Error:", "could not read file #{path}: #{e.message}"
end
end
end
def post_read
if DATE_FILENAME_MATCHER =~ relative_path
m, cats, date, slug, ext = *relative_path.match(DATE_FILENAME_MATCHER)
merge_data!({
"slug" => slug,
"ext" => ext
}, source: "filename")
if data['date'].nil? || data['date'].to_i == site.time.to_i
merge_data!({"date" => date}, source: "filename")
end
data['title'] ||= slug.split('-').select {|w| w.capitalize! || w }.join(' ')
end
populate_categories
populate_tags
if generate_excerpt?
data['excerpt'] ||= Jekyll::Excerpt.new(self)
end
end
# Add superdirectories of the special_dir to categories.
# In the case of es/_posts, 'es' is added as a category.
# In the case of _posts/es, 'es' is NOT added as a category.
#
# Returns nothing.
def categories_from_path(special_dir)
superdirs = relative_path.sub(/#{special_dir}(.*)/, '').split(File::SEPARATOR).reject do |c|
c.empty? || c.eql?(special_dir) || c.eql?(basename)
end
merge_data!({ 'categories' => superdirs }, source: "file path")
end
def populate_categories
merge_data!({
'categories' => (
Array(data['categories']) + Utils.pluralized_array_from_hash(data, 'category', 'categories')
).map { |c| c.to_s }.flatten.uniq
})
end
def populate_tags
merge_data!({
"tags" => Utils.pluralized_array_from_hash(data, "tag", "tags").flatten
})
end
# Create a Liquid-understandable version of this Document.
#
# Returns a Hash representing this Document's data.
def to_liquid
if data.is_a?(Hash)
Utils.deep_merge_hashes data, {
@to_liquid ||= if data.is_a?(Hash)
Utils.deep_merge_hashes Utils.deep_merge_hashes({
"output" => output,
"content" => content,
"path" => path,
"relative_path" => relative_path,
"path" => relative_path,
"url" => url,
"collection" => collection.label
}
"collection" => collection.label,
"next" => next_doc,
"previous" => previous_doc,
"id" => id,
}, data), { 'excerpt' => data['excerpt'].to_s }
else
data
end
@@ -235,7 +387,7 @@ module Jekyll
#
# Returns the content of the document
def to_s
output || content
output || content || 'NO CONTENT'
end
# Compare this document against another document.
@@ -243,8 +395,11 @@ module Jekyll
#
# Returns -1, 0, +1 or nil depending on whether this doc's path is less than,
# equal or greater than the other doc's path. See String#<=> for more details.
def <=>(anotherDocument)
path <=> anotherDocument.path
def <=>(other)
return nil if !other.respond_to?(:data)
cmp = data['date'] <=> other.data['date']
cmp = path <=> other.path if cmp == 0
cmp
end
# Determine whether this document should be written.
@@ -256,5 +411,70 @@ module Jekyll
collection && collection.write?
end
# The Document excerpt_separator, from the YAML Front-Matter or site
# default excerpt_separator value
#
# Returns the document excerpt_separator
def excerpt_separator
(data['excerpt_separator'] || site.config['excerpt_separator']).to_s
end
# Whether to generate an excerpt
#
# Returns true if the excerpt separator is configured.
def generate_excerpt?
!excerpt_separator.empty?
end
def next_doc
pos = collection.docs.index {|post| post.equal?(self) }
if pos && pos < collection.docs.length - 1
collection.docs[pos + 1]
else
nil
end
end
def previous_doc
pos = collection.docs.index {|post| post.equal?(self) }
if pos && pos > 0
collection.docs[pos - 1]
else
nil
end
end
def trigger_hooks(hook_name, *args)
Jekyll::Hooks.trigger collection.label.to_sym, hook_name, self, *args if collection
Jekyll::Hooks.trigger :documents, hook_name, self, *args
end
def id
@id ||= File.join(File.dirname(url), (data['slug'] || basename_without_ext).to_s)
end
# Calculate related posts.
#
# Returns an Array of related Posts.
def related_posts
Jekyll::RelatedPosts.new(self).build
end
# Override of normal respond_to? to match method_missing's logic for
# looking in @data.
def respond_to?(method, include_private = false)
data.key?(method.to_s) || super
end
# Override of method_missing to check in @data for the key.
def method_missing(method, *args, &blck)
if data.key?(method.to_s)
Jekyll.logger.warn "Deprecation:", "Document##{method} is now a key in the #data hash."
Jekyll.logger.warn "", "Called by #{caller.first}."
data[method.to_s]
else
super
end
end
end
end

View File

@@ -1,40 +0,0 @@
module Jekyll
class Draft < Post
# Valid post name regex (no date)
MATCHER = /^(.*)(\.[^.]+)$/
# Draft name validator. Draft filenames must be like:
# my-awesome-post.textile
#
# Returns true if valid, false if not.
def self.valid?(name)
name =~ MATCHER
end
# Get the full path to the directory containing the draft files
def containing_dir(source, dir)
File.join(source, dir, '_drafts')
end
# The path to the draft source file, relative to the site source
def relative_path
File.join(@dir, '_drafts', @name)
end
# Extract information from the post filename.
#
# name - The String filename of the post file.
#
# Returns nothing.
def process(name)
m, slug, ext = *name.match(MATCHER)
self.date = File.mtime(File.join(@base, name))
self.slug = slug
self.ext = ext
end
end
end

View File

@@ -47,7 +47,7 @@ module Jekyll
def excluded?(entry)
excluded = glob_include?(site.exclude, relative_to_source(entry))
Jekyll.logger.debug "excluded?(#{relative_to_source(entry)}) ==> #{excluded}"
Jekyll.logger.debug "EntryFilter:", "excluded?(#{relative_to_source(entry)}) ==> #{excluded}"
excluded
end

View File

@@ -1,4 +1,9 @@
module Jekyll
class FatalException < StandardError
module Errors
class FatalException < RuntimeError
end
class MissingDependencyException < FatalException
end
end
end

View File

@@ -1,48 +1,44 @@
require 'jekyll/convertible'
require 'forwardable'
module Jekyll
class Excerpt
include Convertible
extend Forwardable
attr_accessor :post
attr_accessor :content, :output, :ext
attr_accessor :doc
attr_accessor :content, :ext
attr_writer :output
def_delegator :@post, :site, :site
def_delegator :@post, :name, :name
def_delegator :@post, :ext, :ext
def_delegators :@doc, :site, :name, :ext, :relative_path, :extname,
:render_with_liquid?, :collection, :related_posts
# Initialize this Post instance.
# Initialize this Excerpt instance.
#
# site - The Site.
# base - The String path to the dir containing the post file.
# name - The String filename of the post file.
# doc - The Document.
#
# Returns the new Post.
def initialize(post)
self.post = post
self.content = extract_excerpt(post.content)
# Returns the new Excerpt.
def initialize(doc)
self.doc = doc
self.content = extract_excerpt(doc.content)
end
def to_liquid
post.to_liquid(post.class::EXCERPT_ATTRIBUTES_FOR_LIQUID)
end
# Fetch YAML front-matter data from related post, without layout key
# Fetch YAML front-matter data from related doc, without layout key
#
# Returns Hash of post data
# Returns Hash of doc data
def data
@data ||= post.data.dup
@data ||= doc.data.dup
@data.delete("layout")
@data.delete("excerpt")
@data
end
def trigger_hooks(*)
end
# 'Path' of the excerpt.
#
# Returns the path for the post this excerpt belongs to with #excerpt appended
# Returns the path for the doc this excerpt belongs to with #excerpt appended
def path
File.join(post.path, "#excerpt")
File.join(doc.path, "#excerpt")
end
# Check if excerpt includes a string
@@ -52,28 +48,43 @@ module Jekyll
(output && output.include?(something)) || content.include?(something)
end
# The UID for this post (useful in feeds).
# e.g. /2008/11/05/my-awesome-post
# The UID for this doc (useful in feeds).
# e.g. /2008/11/05/my-awesome-doc
#
# Returns the String UID.
def id
File.join(post.dir, post.slug, "#excerpt")
"#{doc.id}#excerpt"
end
def to_s
output || content
end
# Returns the shorthand String identifier of this Post.
def to_liquid
doc.data['excerpt'] = nil
@to_liquid ||= doc.to_liquid
doc.data['excerpt'] = self
@to_liquid
end
# Returns the shorthand String identifier of this doc.
def inspect
"<Excerpt: #{self.id}>"
end
def output
@output ||= Renderer.new(doc.site, self, site.site_payload).run
end
def place_in_layout?
false
end
protected
# Internal: Extract excerpt from the content
#
# By default excerpt is your first paragraph of a post: everything before
# By default excerpt is your first paragraph of a doc: everything before
# the first two new lines:
#
# ---
@@ -87,16 +98,16 @@ module Jekyll
# [1]: http://example.com/
#
# This is fairly good option for Markdown and Textile files. But might cause
# problems for HTML posts (which is quite unusual for Jekyll). If default
# problems for HTML docs (which is quite unusual for Jekyll). If default
# excerpt delimiter is not good for you, you might want to set your own via
# configuration option `excerpt_separator`. For example, following is a good
# alternative for HTML posts:
# alternative for HTML docs:
#
# # file: _config.yml
# excerpt_separator: "<!-- more -->"
#
# Notice that all markdown-style link references will be appended to the
# excerpt. So the example post above will have this excerpt source:
# excerpt. So the example doc above will have this excerpt source:
#
# First paragraph with [link][1].
#
@@ -105,11 +116,14 @@ module Jekyll
# Excerpts are rendered same time as content is rendered.
#
# Returns excerpt String
def extract_excerpt(post_content)
separator = site.config['excerpt_separator']
head, _, tail = post_content.partition(separator)
def extract_excerpt(doc_content)
head, _, tail = doc_content.to_s.partition(doc.excerpt_separator)
"" << head << "\n\n" << tail.scan(/^\[[^\]]+\]:.+$/).join("\n")
if tail.empty?
head
else
"" << head << "\n\n" << tail.scan(/^\[[^\]]+\]:.+$/).join("\n")
end
end
end
end

59
lib/jekyll/external.rb Normal file
View File

@@ -0,0 +1,59 @@
module Jekyll
module External
class << self
#
# Gems that, if installed, should be loaded.
# Usually contain subcommands.
#
def blessed_gems
%w{
jekyll-docs
jekyll-import
}
end
#
# Require a gem or file if it's present, otherwise silently fail.
#
# names - a string gem name or array of gem names
#
def require_if_present(names)
Array(names).each do |name|
begin
require name
rescue LoadError
Jekyll.logger.debug "Couldn't load #{name}. Skipping."
false
end
end
end
#
# Require a gem or gems. If it's not present, show a very nice error
# message that explains everything and is much more helpful than the
# normal LoadError.
#
# names - a string gem name or array of gem names
#
def require_with_graceful_fail(names)
Array(names).each do |name|
begin
require name
rescue LoadError => e
Jekyll.logger.error "Dependency Error:", <<-MSG
Yikes! It looks like you don't have #{name} or one of its dependencies installed.
In order to use Jekyll as currently configured, you'll need to install this gem.
The full error message from Ruby is: '#{e.message}'
If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
MSG
raise Jekyll::Errors::MissingDependencyException.new(name)
end
end
end
end
end
end

View File

@@ -1,19 +1,9 @@
require 'uri'
require 'json'
require 'date'
module Jekyll
module Filters
# Convert a Textile string into HTML output.
#
# input - The Textile String to convert.
#
# Returns the HTML formatted String.
def textilize(input)
site = @context.registers[:site]
converter = site.getConverterImpl(Jekyll::Converters::Textile)
converter.convert(input)
end
# Convert a Markdown string into HTML output.
#
# input - The Markdown String to convert.
@@ -21,10 +11,43 @@ module Jekyll
# Returns the HTML formatted String.
def markdownify(input)
site = @context.registers[:site]
converter = site.getConverterImpl(Jekyll::Converters::Markdown)
converter = site.find_converter_instance(Jekyll::Converters::Markdown)
converter.convert(input)
end
# Convert a Sass string into CSS output.
#
# input - The Sass String to convert.
#
# Returns the CSS formatted String.
def sassify(input)
site = @context.registers[:site]
converter = site.find_converter_instance(Jekyll::Converters::Sass)
converter.convert(input)
end
# Convert a Scss string into CSS output.
#
# input - The Scss String to convert.
#
# Returns the CSS formatted String.
def scssify(input)
site = @context.registers[:site]
converter = site.find_converter_instance(Jekyll::Converters::Scss)
converter.convert(input)
end
# Slugify a filename or title.
#
# input - The filename or title to slugify.
# mode - how string is slugified
#
# Returns the given filename or title as a lowercase URL String.
# See Utils.slugify for more detail.
def slugify(input, mode=nil)
Utils.slugify(input, mode: mode)
end
# Format a date in short format e.g. "27 Jan 2011".
#
# date - the Time to format.
@@ -155,7 +178,7 @@ module Jekyll
#
# Returns the converted json string
def jsonify(input)
input.to_json
as_liquid(input).to_json
end
# Group an array of items by a property
@@ -181,13 +204,14 @@ module Jekyll
# Filter an array of objects
#
# input - the object array
# key - key within each object to filter by
# property - property within each object to filter by
# value - desired value
#
# Returns the filtered array of objects
def where(input, property, value)
return input unless input.is_a?(Array)
input.select { |object| item_property(object, property) == value }
return input unless input.is_a?(Enumerable)
input = input.values if input.is_a?(Hash)
input.select { |object| item_property(object, property).to_s == value.to_s }
end
# Sort an array of objects
@@ -198,6 +222,9 @@ module Jekyll
#
# Returns the filtered array of objects
def sort(input, property = nil, nils = "first")
if input.nil?
raise ArgumentError.new("Cannot sort a null object.")
end
if property.nil?
input.sort
else
@@ -226,11 +253,50 @@ module Jekyll
end
end
def pop(array, input = 1)
return array unless array.is_a?(Array)
new_ary = array.dup
new_ary.pop(input.to_i || 1)
new_ary
end
def push(array, input)
return array unless array.is_a?(Array)
new_ary = array.dup
new_ary.push(input)
new_ary
end
def shift(array, input = 1)
return array unless array.is_a?(Array)
new_ary = array.dup
new_ary.shift(input.to_i || 1)
new_ary
end
def unshift(array, input)
return array unless array.is_a?(Array)
new_ary = array.dup
new_ary.unshift(input)
new_ary
end
# Convert an object into its String representation for debugging
#
# input - The Object to be converted
#
# Returns a String representation of the object.
def inspect(input)
CGI.escapeHTML(input.inspect)
end
private
def time(input)
case input
when Time
input
when Date
input.to_time
when String
Time.parse(input) rescue Time.at(input.to_i)
when Numeric
@@ -238,7 +304,7 @@ module Jekyll
else
Jekyll.logger.error "Invalid Date:", "'#{input}' is not a valid datetime."
exit(1)
end
end.localtime
end
def groupable?(element)
@@ -254,5 +320,27 @@ module Jekyll
item[property.to_s]
end
end
def as_liquid(item)
case item
when Hash
pairs = item.map { |k, v| as_liquid([k, v]) }
Hash[pairs]
when Array
item.map{ |i| as_liquid(i) }
else
if item.respond_to?(:to_liquid)
liquidated = item.to_liquid
# prevent infinite recursion for simple types (which return `self`)
if liquidated == item
item
else
as_liquid(liquidated)
end
else
item
end
end
end
end
end

View File

@@ -1,148 +1,180 @@
module Jekyll
class Configuration
# This class handles custom defaults for YAML frontmatter settings.
# These are set in _config.yml and apply both to internal use (e.g. layout)
# and the data available to liquid.
# This class handles custom defaults for YAML frontmatter settings.
# These are set in _config.yml and apply both to internal use (e.g. layout)
# and the data available to liquid.
#
# It is exposed via the frontmatter_defaults method on the site class.
class FrontmatterDefaults
# Initializes a new instance.
def initialize(site)
@site = site
end
def update_deprecated_types(set)
return set unless set.key?('scope') && set['scope'].key?('type')
set['scope']['type'] = case set['scope']['type']
when 'page'
Deprecator.defaults_deprecate_type('page', 'pages')
'pages'
when 'post'
Deprecator.defaults_deprecate_type('post', 'posts')
'posts'
when 'draft'
Deprecator.defaults_deprecate_type('draft', 'drafts')
'drafts'
else
set['scope']['type']
end
set
end
# Finds a default value for a given setting, filtered by path and type
#
# It is exposed via the frontmatter_defaults method on the site class.
class FrontmatterDefaults
# Initializes a new instance.
def initialize(site)
@site = site
end
# path - the path (relative to the source) of the page, post or :draft the default is used in
# type - a symbol indicating whether a :page, a :post or a :draft calls this method
#
# Returns the default value or nil if none was found
def find(path, type, setting)
value = nil
old_scope = nil
# Finds a default value for a given setting, filtered by path and type
#
# path - the path (relative to the source) of the page, post or :draft the default is used in
# type - a symbol indicating whether a :page, a :post or a :draft calls this method
#
# Returns the default value or nil if none was found
def find(path, type, setting)
value = nil
old_scope = nil
matching_sets(path, type).each do |set|
if set['values'].has_key?(setting) && has_precedence?(old_scope, set['scope'])
value = set['values'][setting]
old_scope = set['scope']
end
end
value
end
# Collects a hash with all default values for a page or post
#
# path - the relative path of the page or post
# type - a symbol indicating the type (:post, :page or :draft)
#
# Returns a hash with all default values (an empty hash if there are none)
def all(path, type)
defaults = {}
old_scope = nil
matching_sets(path, type).each do |set|
if has_precedence?(old_scope, set['scope'])
defaults.merge! set['values']
old_scope = set['scope']
else
defaults = set['values'].merge(defaults)
end
end
defaults
end
private
# Checks if a given default setting scope matches the given path and type
#
# scope - the hash indicating the scope, as defined in _config.yml
# path - the path to check for
# type - the type (:post, :page or :draft) to check for
#
# Returns true if the scope applies to the given path and type
def applies?(scope, path, type)
applies_path?(scope, path) && applies_type?(scope, type)
end
def applies_path?(scope, path)
return true if scope['path'].empty?
scope_path = Pathname.new(scope['path'])
Pathname.new(sanitize_path(path)).ascend do |path|
if path == scope_path
return true
end
matching_sets(path, type).each do |set|
if set['values'].key?(setting) && has_precedence?(old_scope, set['scope'])
value = set['values'][setting]
old_scope = set['scope']
end
end
value
end
def applies_type?(scope, type)
!scope.has_key?('type') || scope['type'] == type.to_s
end
# Checks if a given set of default values is valid
#
# set - the default value hash, as defined in _config.yml
#
# Returns true if the set is valid and can be used in this class
def valid?(set)
set.is_a?(Hash) && set['scope'].is_a?(Hash) && set['scope']['path'].is_a?(String) && set['values'].is_a?(Hash)
end
# Determines if a new scope has precedence over an old one
#
# old_scope - the old scope hash, or nil if there's none
# new_scope - the new scope hash
#
# Returns true if the new scope has precedence over the older
def has_precedence?(old_scope, new_scope)
return true if old_scope.nil?
new_path = sanitize_path(new_scope['path'])
old_path = sanitize_path(old_scope['path'])
if new_path.length != old_path.length
new_path.length >= old_path.length
elsif new_scope.has_key? 'type'
true
# Collects a hash with all default values for a page or post
#
# path - the relative path of the page or post
# type - a symbol indicating the type (:post, :page or :draft)
#
# Returns a hash with all default values (an empty hash if there are none)
def all(path, type)
defaults = {}
old_scope = nil
matching_sets(path, type).each do |set|
if has_precedence?(old_scope, set['scope'])
defaults = Utils.deep_merge_hashes(defaults, set['values'])
old_scope = set['scope']
else
!old_scope.has_key? 'type'
defaults = Utils.deep_merge_hashes(set['values'], defaults)
end
end
defaults
end
# Collects a list of sets that match the given path and type
#
# Returns an array of hashes
def matching_sets(path, type)
valid_sets.select do |set|
applies?(set['scope'], path, type)
end
end
private
# Returns a list of valid sets
#
# This is not cached to allow plugins to modify the configuration
# and have their changes take effect
#
# Returns an array of hashes
def valid_sets
sets = @site.config['defaults']
return [] unless sets.is_a?(Array)
# Checks if a given default setting scope matches the given path and type
#
# scope - the hash indicating the scope, as defined in _config.yml
# path - the path to check for
# type - the type (:post, :page or :draft) to check for
#
# Returns true if the scope applies to the given path and type
def applies?(scope, path, type)
applies_path?(scope, path) && applies_type?(scope, type)
end
sets.select do |set|
unless valid?(set)
Jekyll.logger.warn "Default:", "An invalid default set was found"
end
valid?(set)
end
end
def applies_path?(scope, path)
return true if !scope.has_key?('path') || scope['path'].empty?
# Sanitizes the given path by removing a leading and addding a trailing slash
def sanitize_path(path)
if path.nil? || path.empty?
""
else
path.gsub(/\A\//, '').gsub(/([^\/])\z/, '\1/')
scope_path = Pathname.new(scope['path'])
Pathname.new(sanitize_path(path)).ascend do |path|
if path.to_s == scope_path.to_s
return true
end
end
end
# Determines whether the scope applies to type.
# The scope applies to the type if:
# 1. no 'type' is specified
# 2. the 'type' in the scope is the same as the type asked about
#
# scope - the Hash defaults set being asked about application
# type - the type of the document being processed / asked about
# its defaults.
#
# Returns true if either of the above conditions are satisfied,
# otherwise returns false
def applies_type?(scope, type)
!scope.key?('type') || scope['type'].eql?(type.to_s)
end
# Checks if a given set of default values is valid
#
# set - the default value hash, as defined in _config.yml
#
# Returns true if the set is valid and can be used in this class
def valid?(set)
set.is_a?(Hash) && set['values'].is_a?(Hash)
end
# Determines if a new scope has precedence over an old one
#
# old_scope - the old scope hash, or nil if there's none
# new_scope - the new scope hash
#
# Returns true if the new scope has precedence over the older
def has_precedence?(old_scope, new_scope)
return true if old_scope.nil?
new_path = sanitize_path(new_scope['path'])
old_path = sanitize_path(old_scope['path'])
if new_path.length != old_path.length
new_path.length >= old_path.length
elsif new_scope.key? 'type'
true
else
!old_scope.key? 'type'
end
end
# Collects a list of sets that match the given path and type
#
# Returns an array of hashes
def matching_sets(path, type)
valid_sets.select do |set|
!set.has_key?('scope') || applies?(set['scope'], path, type)
end
end
# Returns a list of valid sets
#
# This is not cached to allow plugins to modify the configuration
# and have their changes take effect
#
# Returns an array of hashes
def valid_sets
sets = @site.config['defaults']
return [] unless sets.is_a?(Array)
sets.map do |set|
if valid?(set)
update_deprecated_types(set)
else
Jekyll.logger.warn "Defaults:", "An invalid front-matter default set was found:"
Jekyll.logger.warn "#{set}"
nil
end
end.compact
end
# Sanitizes the given path by removing a leading and adding a trailing slash
def sanitize_path(path)
if path.nil? || path.empty?
""
else
path.gsub(/\A\//, '').gsub(/([^\/])\z/, '\1')
end
end
end
end
end

View File

@@ -1,62 +1,101 @@
module Jekyll
module Hooks
DEFAULT_PRIORITY = 20
class HookCollection
include Enumerable
# compatibility layer for octopress-hooks users
PRIORITY_MAP = {
low: 10,
normal: 20,
high: 30,
}.freeze
def each(&block)
if block.nil?
hook_methods
else
hook_methods.each &block
end
# initial empty hooks
@registry = {
:site => {
after_reset: [],
post_read: [],
pre_render: [],
post_render: [],
post_write: [],
},
:pages => {
post_init: [],
pre_render: [],
post_render: [],
post_write: [],
},
:posts => {
post_init: [],
pre_render: [],
post_render: [],
post_write: [],
},
:documents => {
post_init: [],
pre_render: [],
post_render: [],
post_write: [],
},
}
# map of all hooks and their priorities
@hook_priority = {}
NotAvailable = Class.new(RuntimeError)
Uncallable = Class.new(RuntimeError)
# register hook(s) to be called later, public API
def self.register(owners, event, priority: DEFAULT_PRIORITY, &block)
Array(owners).each do |owner|
register_one(owner, event, priority_value(priority), &block)
end
def hook_methods
@hook_methods ||= Array.new
end
def add_hook(proc)
hook_methods << proc
end
def exec(*args)
if args.empty?
hook_methods.each { |hook| hook.call }
else
hook_methods.each do |hook|
args.each { |arg| hook.call(arg) }
end
end
end
end
%w[
post_reset
pre_read
post_read
pre_generate
post_generate
pre_render
post_render
pre_cleanup
post_cleanup
pre_write
post_write
].each do |method|
declaration = <<-METH
def #{method}(method_name, *args)
cr = caller
((@hooks ||= Hash.new).fetch(method_name.to_s, HookCollection.new)).add_hook -> { cr.send(method_name.to_sym, args) }
end
def #{method}_exec(*args)
((@hooks ||= Hash.new).fetch(method_name.to_s, HookCollection.new)).exec(*args)
end
METH
puts declaration
class_eval declaration
# Ensure the priority is a Fixnum
def self.priority_value(priority)
return priority if priority.is_a?(Fixnum)
PRIORITY_MAP[priority] || DEFAULT_PRIORITY
end
# register a single hook to be called later, internal API
def self.register_one(owner, event, priority, &block)
@registry[owner] ||={
post_init: [],
pre_render: [],
post_render: [],
post_write: [],
}
unless @registry[owner][event]
raise NotAvailable, "Invalid hook. #{owner} supports only the " <<
"following hooks #{@registry[owner].keys.inspect}"
end
unless block.respond_to? :call
raise Uncallable, "Hooks must respond to :call"
end
insert_hook owner, event, priority, &block
end
def self.insert_hook(owner, event, priority, &block)
@hook_priority[block] = "#{priority}.#{@hook_priority.size}".to_f
@registry[owner][event] << block
end
# interface for Jekyll core components to trigger hooks
def self.trigger(owner, event, *args)
# proceed only if there are hooks to call
return unless @registry[owner]
return unless @registry[owner][event]
# hooks to call for this owner and event
hooks = @registry[owner][event]
# sort and call hooks according to priority and load order
hooks.sort_by { |h| @hook_priority[h] }.each do |hook|
hook.call(*args)
end
end
end
end

View File

@@ -8,6 +8,9 @@ module Jekyll
# Gets the name of this layout.
attr_reader :name
# Gets the path to this layout.
attr_reader :path
# Gets/Sets the extension of this layout.
attr_accessor :ext
@@ -26,6 +29,7 @@ module Jekyll
@site = site
@base = base
@name = name
@path = site.in_source_dir(base, name)
self.data = {}

View File

@@ -0,0 +1,39 @@
require 'jekyll/liquid_renderer/file'
require 'jekyll/liquid_renderer/table'
module Jekyll
class LiquidRenderer
def initialize(site)
@site = site
reset
end
def reset
@stats = {}
end
def file(filename)
filename = @site.in_source_dir(filename).sub(/\A#{Regexp.escape(@site.source)}\//, '')
LiquidRenderer::File.new(self, filename).tap do |file|
@stats[filename] ||= {}
@stats[filename][:count] ||= 0
@stats[filename][:count] += 1
end
end
def increment_bytes(filename, bytes)
@stats[filename][:bytes] ||= 0
@stats[filename][:bytes] += bytes
end
def increment_time(filename, time)
@stats[filename][:time] ||= 0.0
@stats[filename][:time] += time
end
def stats_table(n = 50)
LiquidRenderer::Table.new(@stats).to_s(n)
end
end
end

View File

@@ -0,0 +1,50 @@
module Jekyll
class LiquidRenderer
class File
def initialize(renderer, filename)
@renderer = renderer
@filename = filename
end
def parse(content)
measure_time do
@template = Liquid::Template.parse(content)
end
self
end
def render(*args)
measure_time do
measure_bytes do
@template.render(*args)
end
end
end
def render!(*args)
measure_time do
measure_bytes do
@template.render!(*args)
end
end
end
private
def measure_bytes
yield.tap do |str|
@renderer.increment_bytes(@filename, str.bytesize)
end
end
def measure_time
before = Time.now
yield
ensure
after = Time.now
@renderer.increment_time(@filename, after - before)
end
end
end
end

View File

@@ -0,0 +1,94 @@
module Jekyll
class LiquidRenderer::Table
def initialize(stats)
@stats = stats
end
def to_s(n = 50)
data = data_for_table(n)
widths = table_widths(data)
generate_table(data, widths)
end
private
def generate_table(data, widths)
str = "\n"
table_head = data.shift
str << generate_row(table_head, widths)
str << generate_table_head_border(table_head, widths)
data.each do |row_data|
str << generate_row(row_data, widths)
end
str << "\n"
str
end
def generate_table_head_border(row_data, widths)
str = ""
row_data.each_index do |cell_index|
str << '-' * widths[cell_index]
str << '-+-' unless cell_index == row_data.length-1
end
str << "\n"
str
end
def generate_row(row_data, widths)
str = ''
row_data.each_with_index do |cell_data, cell_index|
if cell_index == 0
str << cell_data.ljust(widths[cell_index], ' ')
else
str << cell_data.rjust(widths[cell_index], ' ')
end
str << ' | ' unless cell_index == row_data.length-1
end
str << "\n"
str
end
def table_widths(data)
widths = []
data.each do |row|
row.each_with_index do |cell, index|
widths[index] = [ cell.length, widths[index] ].compact.max
end
end
widths
end
def data_for_table(n)
sorted = @stats.sort_by{ |filename, file_stats| -file_stats[:time] }
sorted = sorted.slice(0, n)
table = [[ 'Filename', 'Count', 'Bytes', 'Time' ]]
sorted.each do |filename, file_stats|
row = []
row << filename
row << file_stats[:count].to_s
row << format_bytes(file_stats[:bytes])
row << "%.3f" % file_stats[:time]
table << row
end
table
end
def format_bytes(bytes)
bytes /= 1024.0
"%.2fK" % bytes
end
end
end

View File

@@ -1,6 +1,6 @@
module Jekyll
class LogAdapter
attr_reader :writer
attr_reader :writer, :messages
LOG_LEVELS = {
:debug => ::Logger::DEBUG,
@@ -9,13 +9,14 @@ module Jekyll
:error => ::Logger::ERROR
}
# Public: Create a new instance of Jekyll's log writer
# Public: Create a new instance of a log writer
#
# writer - Logger compatible instance
# log_level - (optional, symbol) the log level
#
# Returns nothing
def initialize(writer, level = :info)
@messages = []
@writer = writer
self.log_level = level
end
@@ -29,7 +30,17 @@ module Jekyll
writer.level = LOG_LEVELS.fetch(level)
end
# Public: Print a jekyll debug message
def adjust_verbosity(options = {})
# Quiet always wins.
if options[:quiet]
self.log_level = :error
elsif options[:verbose]
self.log_level = :debug
end
debug "Logging at level:", LOG_LEVELS.key(writer.level).to_s
end
# Public: Print a debug message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
@@ -39,7 +50,7 @@ module Jekyll
writer.debug(message(topic, message))
end
# Public: Print a jekyll message
# Public: Print a message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
@@ -49,7 +60,7 @@ module Jekyll
writer.info(message(topic, message))
end
# Public: Print a jekyll message
# Public: Print a message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
@@ -59,7 +70,7 @@ module Jekyll
writer.warn(message(topic, message))
end
# Public: Print a jekyll error message
# Public: Print an error message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
@@ -69,7 +80,7 @@ module Jekyll
writer.error(message(topic, message))
end
# Public: Print a Jekyll error message and immediately abort the process
# Public: Print an error message and immediately abort the process
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail (can be omitted)
@@ -80,14 +91,16 @@ module Jekyll
abort
end
# Internal: Build a Jekyll topic method
# Internal: Build a topic method
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns the formatted message
def message(topic, message)
formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
msg = formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
messages << msg
msg
end
# Internal: Format the topic

View File

@@ -1,95 +1,800 @@
-# These are the same MIME types that GitHub Pages uses as of 26 January 2014
# Woah there. Do not edit this file directly.
# This file is generated automatically by script/vendor-mimes.
text/html html htm shtml
text/css css
text/xml xml rss xsl xsd
image/gif gif
image/jpeg jpeg jpg
application/x-javascript js
application/atom+xml atom
application/json json geojson topojson
text/mathml mml
text/plain txt
text/vnd.sun.j2me.app-descriptor jad
text/vnd.wap.wml wml
text/x-component htc
text/cache-manifest manifest appcache
text/coffeescript coffee
text/plain pde
text/plain md markdown
text/vcard vcf vcard
image/png png
image/svg+xml svg
image/svg+xml svgz
image/tiff tif tiff
image/vnd.wap.wbmp wbmp
image/x-icon ico
image/x-jng jng
image/x-ms-bmp bmp
application/vnd.ms-fontobject eot
application/x-font-ttf ttf
application/x-font-woff woff
font/opentype otf
application/java-archive jar ear
application/mac-binhex40 hqx
application/msword doc
application/pdf pdf
application/postscript ps eps ai
application/rdf+xml rdf
application/rtf rtf
application/vnd.apple.pkpass pkpass
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
application/vnd.wap.wmlc wmlc
application/xhtml+xml xhtml
application/x-cocoa cco
application/x-chrome-extension crx
application/x-java-archive-diff jardiff
application/x-java-jnlp-file jnlp
application/x-makeself run
application/x-ms-application application
application/x-ms-manifest manifest
application/x-ms-vsto vsto
application/x-ns-proxy-autoconfig pac
application/x-perl pl pm
application/x-pilot prc pdb
application/x-rar-compressed rar
application/x-redhat-package-manager rpm
application/x-sea sea
application/x-shockwave-flash swf
application/x-stuffit sit
application/x-tcl tcl tk
application/x-web-app-manifest+json webapp
application/x-x509-ca-cert der pem crt
application/x-xpinstall xpi
application/x-zip war
application/zip zip
application/octet-stream bin exe dll
application/octet-stream deb
application/octet-stream deploy
application/octet-stream dmg
application/octet-stream iso img
application/octet-stream msi msp msm
audio/midi mid midi kar
audio/mpeg mp3
audio/x-realaudio ra
audio/ogg ogg
video/3gpp 3gpp 3gp
video/m4v m4v
video/mp4 mp4
video/mpeg mpeg mpg
video/ogg ogg ogv
video/quicktime mov
video/webm webm
video/x-flv flv
video/x-mng mng
video/x-ms-asf asx asf
video/x-ms-wmv wmv
video/x-msvideo avi
application/andrew-inset ez
application/applixware aw
application/atom+xml atom
application/atomcat+xml atomcat
application/atomsvc+xml atomsvc
application/bdoc bdoc
application/ccxml+xml ccxml
application/cdmi-capability cdmia
application/cdmi-container cdmic
application/cdmi-domain cdmid
application/cdmi-object cdmio
application/cdmi-queue cdmiq
application/cu-seeme cu
application/dash+xml mdp
application/davmount+xml davmount
application/docbook+xml dbk
application/dssc+der dssc
application/dssc+xml xdssc
application/ecmascript ecma
application/emma+xml emma
application/epub+zip epub
application/exi exi
application/font-tdpfr pfr
application/font-woff woff
application/font-woff2 woff2
application/gml+xml gml
application/gpx+xml gpx
application/gxf gxf
application/hyperstudio stk
application/inkml+xml ink inkml
application/ipfix ipfix
application/java-archive jar war ear
application/java-serialized-object ser
application/java-vm class
application/javascript js
application/json json map
application/json5 json5
application/jsonml+json jsonml
application/ld+json jsonld
application/lost+xml lostxml
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/mads+xml mads
application/manifest+json webmanifest
application/marc mrc
application/marcxml+xml mrcx
application/mathematica ma nb mb
application/mathml+xml mathml
application/mbox mbox
application/mediaservercontrol+xml mscml
application/metalink+xml metalink
application/metalink4+xml meta4
application/mets+xml mets
application/mods+xml mods
application/mp21 m21 mp21
application/mp4 mp4s m4p
application/msword doc dot
application/mxf mxf
application/octet-stream bin dms lrf mar so dist distz pkg bpk dump elc deploy exe dll deb dmg iso img msi msp msm buffer
application/oda oda
application/oebps-package+xml opf
application/ogg ogx
application/omdoc+xml omdoc
application/onenote onetoc onetoc2 onetmp onepkg
application/oxps oxps
application/patch-ops-error+xml xer
application/pdf pdf
application/pgp-encrypted pgp
application/pgp-signature asc sig
application/pics-rules prf
application/pkcs10 p10
application/pkcs7-mime p7m p7c
application/pkcs7-signature p7s
application/pkcs8 p8
application/pkix-attr-cert ac
application/pkix-cert cer
application/pkix-crl crl
application/pkix-pkipath pkipath
application/pkixcmp pki
application/pls+xml pls
application/postscript ai eps ps
application/prs.cww cww
application/pskc+xml pskcxml
application/rdf+xml rdf
application/reginfo+xml rif
application/relax-ng-compact-syntax rnc
application/resource-lists+xml rl
application/resource-lists-diff+xml rld
application/rls-services+xml rs
application/rpki-ghostbusters gbr
application/rpki-manifest mft
application/rpki-roa roa
application/rsd+xml rsd
application/rss+xml rss
application/rtf rtf
application/sbml+xml sbml
application/scvp-cv-request scq
application/scvp-cv-response scs
application/scvp-vp-request spq
application/scvp-vp-response spp
application/sdp sdp
application/set-payment-initiation setpay
application/set-registration-initiation setreg
application/shf+xml shf
application/smil+xml smi smil
application/sparql-query rq
application/sparql-results+xml srx
application/srgs gram
application/srgs+xml grxml
application/sru+xml sru
application/ssdl+xml ssdl
application/ssml+xml ssml
application/tei+xml tei teicorpus
application/thraud+xml tfi
application/timestamped-data tsd
application/vnd.3gpp.pic-bw-large plb
application/vnd.3gpp.pic-bw-small psb
application/vnd.3gpp.pic-bw-var pvb
application/vnd.3gpp2.tcap tcap
application/vnd.3m.post-it-notes pwn
application/vnd.accpac.simply.aso aso
application/vnd.accpac.simply.imp imp
application/vnd.acucobol acu
application/vnd.acucorp atc acutc
application/vnd.adobe.air-application-installer-package+zip air
application/vnd.adobe.formscentral.fcdt fcdt
application/vnd.adobe.fxp fxp fxpl
application/vnd.adobe.xdp+xml xdp
application/vnd.adobe.xfdf xfdf
application/vnd.ahead.space ahead
application/vnd.airzip.filesecure.azf azf
application/vnd.airzip.filesecure.azs azs
application/vnd.amazon.ebook azw
application/vnd.americandynamics.acc acc
application/vnd.amiga.ami ami
application/vnd.android.package-archive apk
application/vnd.anser-web-certificate-issue-initiation cii
application/vnd.anser-web-funds-transfer-initiation fti
application/vnd.antix.game-component atx
application/vnd.apple.installer+xml mpkg
application/vnd.apple.mpegurl m3u8
application/vnd.aristanetworks.swi swi
application/vnd.astraea-software.iota iota
application/vnd.audiograph aep
application/vnd.blueice.multipass mpm
application/vnd.bmi bmi
application/vnd.businessobjects rep
application/vnd.chemdraw+xml cdxml
application/vnd.chipnuts.karaoke-mmd mmd
application/vnd.cinderella cdy
application/vnd.claymore cla
application/vnd.cloanto.rp9 rp9
application/vnd.clonk.c4group c4g c4d c4f c4p c4u
application/vnd.cluetrust.cartomobile-config c11amc
application/vnd.cluetrust.cartomobile-config-pkg c11amz
application/vnd.commonspace csp
application/vnd.contact.cmsg cdbcmsg
application/vnd.cosmocaller cmc
application/vnd.crick.clicker clkx
application/vnd.crick.clicker.keyboard clkk
application/vnd.crick.clicker.palette clkp
application/vnd.crick.clicker.template clkt
application/vnd.crick.clicker.wordbank clkw
application/vnd.criticaltools.wbs+xml wbs
application/vnd.ctc-posml pml
application/vnd.cups-ppd ppd
application/vnd.curl.car car
application/vnd.curl.pcurl pcurl
application/vnd.dart dart
application/vnd.data-vision.rdz rdz
application/vnd.dece.data uvf uvvf uvd uvvd
application/vnd.dece.ttml+xml uvt uvvt
application/vnd.dece.unspecified uvx uvvx
application/vnd.dece.zip uvz uvvz
application/vnd.denovo.fcselayout-link fe_launch
application/vnd.dna dna
application/vnd.dolby.mlp mlp
application/vnd.dpgraph dpg
application/vnd.dreamfactory dfac
application/vnd.ds-keypoint kpxx
application/vnd.dvb.ait ait
application/vnd.dvb.service svc
application/vnd.dynageo geo
application/vnd.ecowin.chart mag
application/vnd.enliven nml
application/vnd.epson.esf esf
application/vnd.epson.msf msf
application/vnd.epson.quickanime qam
application/vnd.epson.salt slt
application/vnd.epson.ssf ssf
application/vnd.eszigno3+xml es3 et3
application/vnd.ezpix-album ez2
application/vnd.ezpix-package ez3
application/vnd.fdf fdf
application/vnd.fdsn.mseed mseed
application/vnd.fdsn.seed seed dataless
application/vnd.flographit gph
application/vnd.fluxtime.clip ftc
application/vnd.framemaker fm frame maker book
application/vnd.frogans.fnc fnc
application/vnd.frogans.ltf ltf
application/vnd.fsc.weblaunch fsc
application/vnd.fujitsu.oasys oas
application/vnd.fujitsu.oasys2 oa2
application/vnd.fujitsu.oasys3 oa3
application/vnd.fujitsu.oasysgp fg5
application/vnd.fujitsu.oasysprs bh2
application/vnd.fujixerox.ddd ddd
application/vnd.fujixerox.docuworks xdw
application/vnd.fujixerox.docuworks.binder xbd
application/vnd.fuzzysheet fzs
application/vnd.genomatix.tuxedo txd
application/vnd.geogebra.file ggb
application/vnd.geogebra.tool ggt
application/vnd.geometry-explorer gex gre
application/vnd.geonext gxt
application/vnd.geoplan g2w
application/vnd.geospace g3w
application/vnd.gmx gmx
application/vnd.google-earth.kml+xml kml
application/vnd.google-earth.kmz kmz
application/vnd.grafeq gqf gqs
application/vnd.groove-account gac
application/vnd.groove-help ghf
application/vnd.groove-identity-message gim
application/vnd.groove-injector grv
application/vnd.groove-tool-message gtm
application/vnd.groove-tool-template tpl
application/vnd.groove-vcard vcg
application/vnd.hal+xml hal
application/vnd.handheld-entertainment+xml zmm
application/vnd.hbci hbci
application/vnd.hhe.lesson-player les
application/vnd.hp-hpgl hpgl
application/vnd.hp-hpid hpid
application/vnd.hp-hps hps
application/vnd.hp-jlyt jlt
application/vnd.hp-pcl pcl
application/vnd.hp-pclxl pclxl
application/vnd.hydrostatix.sof-data sfd-hdstx
application/vnd.ibm.minipay mpy
application/vnd.ibm.modcap afp listafp list3820
application/vnd.ibm.rights-management irm
application/vnd.ibm.secure-container sc
application/vnd.iccprofile icc icm
application/vnd.igloader igl
application/vnd.immervision-ivp ivp
application/vnd.immervision-ivu ivu
application/vnd.insors.igm igm
application/vnd.intercon.formnet xpw xpx
application/vnd.intergeo i2g
application/vnd.intu.qbo qbo
application/vnd.intu.qfx qfx
application/vnd.ipunplugged.rcprofile rcprofile
application/vnd.irepository.package+xml irp
application/vnd.is-xpr xpr
application/vnd.isac.fcs fcs
application/vnd.jam jam
application/vnd.jcp.javame.midlet-rms rms
application/vnd.jisp jisp
application/vnd.joost.joda-archive joda
application/vnd.kahootz ktz ktr
application/vnd.kde.karbon karbon
application/vnd.kde.kchart chrt
application/vnd.kde.kformula kfo
application/vnd.kde.kivio flw
application/vnd.kde.kontour kon
application/vnd.kde.kpresenter kpr kpt
application/vnd.kde.kspread ksp
application/vnd.kde.kword kwd kwt
application/vnd.kenameaapp htke
application/vnd.kidspiration kia
application/vnd.kinar kne knp
application/vnd.koan skp skd skt skm
application/vnd.kodak-descriptor sse
application/vnd.las.las+xml lasxml
application/vnd.llamagraphics.life-balance.desktop lbd
application/vnd.llamagraphics.life-balance.exchange+xml lbe
application/vnd.lotus-1-2-3 123
application/vnd.lotus-approach apr
application/vnd.lotus-freelance pre
application/vnd.lotus-notes nsf
application/vnd.lotus-organizer org
application/vnd.lotus-screencam scm
application/vnd.lotus-wordpro lwp
application/vnd.macports.portpkg portpkg
application/vnd.mcd mcd
application/vnd.medcalcdata mc1
application/vnd.mediastation.cdkey cdkey
application/vnd.mfer mwf
application/vnd.mfmp mfm
application/vnd.micrografx.flo flo
application/vnd.micrografx.igx igx
application/vnd.mif mif
application/vnd.mobius.daf daf
application/vnd.mobius.dis dis
application/vnd.mobius.mbk mbk
application/vnd.mobius.mqy mqy
application/vnd.mobius.msl msl
application/vnd.mobius.plc plc
application/vnd.mobius.txf txf
application/vnd.mophun.application mpn
application/vnd.mophun.certificate mpc
application/vnd.mozilla.xul+xml xul
application/vnd.ms-artgalry cil
application/vnd.ms-cab-compressed cab
application/vnd.ms-excel xls xlm xla xlc xlt xlw
application/vnd.ms-excel.addin.macroenabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroenabled.12 xlsb
application/vnd.ms-excel.sheet.macroenabled.12 xlsm
application/vnd.ms-excel.template.macroenabled.12 xltm
application/vnd.ms-fontobject eot
application/vnd.ms-htmlhelp chm
application/vnd.ms-ims ims
application/vnd.ms-lrm lrm
application/vnd.ms-officetheme thmx
application/vnd.ms-pki.seccat cat
application/vnd.ms-pki.stl stl
application/vnd.ms-powerpoint ppt pps pot
application/vnd.ms-powerpoint.addin.macroenabled.12 ppam
application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
application/vnd.ms-powerpoint.slide.macroenabled.12 sldm
application/vnd.ms-powerpoint.slideshow.macroenabled.12 ppsm
application/vnd.ms-powerpoint.template.macroenabled.12 potm
application/vnd.ms-project mpp mpt
application/vnd.ms-word.document.macroenabled.12 docm
application/vnd.ms-word.template.macroenabled.12 dotm
application/vnd.ms-works wps wks wcm wdb
application/vnd.ms-wpl wpl
application/vnd.ms-xpsdocument xps
application/vnd.mseq mseq
application/vnd.musician mus
application/vnd.muvee.style msty
application/vnd.mynfc taglet
application/vnd.neurolanguage.nlu nlu
application/vnd.nitf ntf nitf
application/vnd.noblenet-directory nnd
application/vnd.noblenet-sealer nns
application/vnd.noblenet-web nnw
application/vnd.nokia.n-gage.data ngdat
application/vnd.nokia.n-gage.symbian.install n-gage
application/vnd.nokia.radio-preset rpst
application/vnd.nokia.radio-presets rpss
application/vnd.novadigm.edm edm
application/vnd.novadigm.edx edx
application/vnd.novadigm.ext ext
application/vnd.oasis.opendocument.chart odc
application/vnd.oasis.opendocument.chart-template otc
application/vnd.oasis.opendocument.database odb
application/vnd.oasis.opendocument.formula odf
application/vnd.oasis.opendocument.formula-template odft
application/vnd.oasis.opendocument.graphics odg
application/vnd.oasis.opendocument.graphics-template otg
application/vnd.oasis.opendocument.image odi
application/vnd.oasis.opendocument.image-template oti
application/vnd.oasis.opendocument.presentation odp
application/vnd.oasis.opendocument.presentation-template otp
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.spreadsheet-template ots
application/vnd.oasis.opendocument.text odt
application/vnd.oasis.opendocument.text-master odm
application/vnd.oasis.opendocument.text-template ott
application/vnd.oasis.opendocument.text-web oth
application/vnd.olpc-sugar xo
application/vnd.oma.dd2+xml dd2
application/vnd.openofficeorg.extension oxt
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.openxmlformats-officedocument.presentationml.slide sldx
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.osgeo.mapguide.package mgp
application/vnd.osgi.dp dp
application/vnd.osgi.subsystem esa
application/vnd.palm pdb pqa oprc
application/vnd.pawaafile paw
application/vnd.pg.format str
application/vnd.pg.osasli ei6
application/vnd.picsel efif
application/vnd.pmi.widget wg
application/vnd.pocketlearn plf
application/vnd.powerbuilder6 pbd
application/vnd.previewsystems.box box
application/vnd.proteus.magazine mgz
application/vnd.publishare-delta-tree qps
application/vnd.pvi.ptid1 ptid
application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb
application/vnd.realvnc.bed bed
application/vnd.recordare.musicxml mxl
application/vnd.recordare.musicxml+xml musicxml
application/vnd.rig.cryptonote cryptonote
application/vnd.rim.cod cod
application/vnd.rn-realmedia rm
application/vnd.rn-realmedia-vbr rmvb
application/vnd.route66.link66+xml link66
application/vnd.sailingtracker.track st
application/vnd.seemail see
application/vnd.sema sema
application/vnd.semd semd
application/vnd.semf semf
application/vnd.shana.informed.formdata ifm
application/vnd.shana.informed.formtemplate itp
application/vnd.shana.informed.interchange iif
application/vnd.shana.informed.package ipk
application/vnd.simtech-mindmapper twd twds
application/vnd.smaf mmf
application/vnd.smart.teacher teacher
application/vnd.solent.sdkm+xml sdkm sdkd
application/vnd.spotfire.dxp dxp
application/vnd.spotfire.sfs sfs
application/vnd.stardivision.calc sdc
application/vnd.stardivision.draw sda
application/vnd.stardivision.impress sdd
application/vnd.stardivision.math smf
application/vnd.stardivision.writer sdw vor
application/vnd.stardivision.writer-global sgl
application/vnd.stepmania.package smzip
application/vnd.stepmania.stepchart sm
application/vnd.sun.xml.calc sxc
application/vnd.sun.xml.calc.template stc
application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.writer.template stw
application/vnd.sus-calendar sus susp
application/vnd.svd svd
application/vnd.symbian.install sis sisx
application/vnd.syncml+xml xsm
application/vnd.syncml.dm+wbxml bdm
application/vnd.syncml.dm+xml xdm
application/vnd.tao.intent-module-archive tao
application/vnd.tcpdump.pcap pcap cap dmp
application/vnd.tmobile-livetv tmo
application/vnd.trid.tpt tpt
application/vnd.triscape.mxs mxs
application/vnd.trueapp tra
application/vnd.ufdl ufd ufdl
application/vnd.uiq.theme utz
application/vnd.umajin umj
application/vnd.unity unityweb
application/vnd.uoml+xml uoml
application/vnd.vcx vcx
application/vnd.visio vsd vst vss vsw
application/vnd.visionary vis
application/vnd.vsf vsf
application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.webturbo wtb
application/vnd.wolfram.player nbp
application/vnd.wordperfect wpd
application/vnd.wqd wqd
application/vnd.wt.stf stf
application/vnd.xara xar
application/vnd.xfdl xfdl
application/vnd.yamaha.hv-dic hvd
application/vnd.yamaha.hv-script hvs
application/vnd.yamaha.hv-voice hvp
application/vnd.yamaha.openscoreformat osf
application/vnd.yamaha.openscoreformat.osfpvg+xml osfpvg
application/vnd.yamaha.smaf-audio saf
application/vnd.yamaha.smaf-phrase spf
application/vnd.yellowriver-custom-menu cmp
application/vnd.zul zir zirz
application/vnd.zzazz.deck+xml zaz
application/voicexml+xml vxml
application/widget wgt
application/winhlp hlp
application/wsdl+xml wsdl
application/wspolicy+xml wspolicy
application/x-7z-compressed 7z
application/x-abiword abw
application/x-ace-compressed ace
application/x-authorware-bin aab x32 u32 vox
application/x-authorware-map aam
application/x-authorware-seg aas
application/x-bcpio bcpio
application/x-bittorrent torrent
application/x-blorb blb blorb
application/x-bzip bz
application/x-bzip2 bz2 boz
application/x-cbr cbr cba cbt cbz cb7
application/x-cdlink vcd
application/x-cfs-compressed cfs
application/x-chat chat
application/x-chess-pgn pgn
application/x-chrome-extension crx
application/x-cocoa cco
application/x-conference nsc
application/x-cpio cpio
application/x-csh csh
application/x-debian-package udeb
application/x-dgc-compressed dgc
application/x-director dir dcr dxr cst cct cxt w3d fgd swa
application/x-doom wad
application/x-dtbncx+xml ncx
application/x-dtbook+xml dtb
application/x-dtbresource+xml res
application/x-dvi dvi
application/x-envoy evy
application/x-eva eva
application/x-font-bdf bdf
application/x-font-ghostscript gsf
application/x-font-linux-psf psf
application/x-font-otf otf
application/x-font-pcf pcf
application/x-font-snf snf
application/x-font-ttf ttf ttc
application/x-font-type1 pfa pfb pfm afm
application/x-freearc arc
application/x-futuresplash spl
application/x-gca-compressed gca
application/x-glulx ulx
application/x-gnumeric gnumeric
application/x-gramps-xml gramps
application/x-gtar gtar
application/x-hdf hdf
application/x-httpd-php php
application/x-install-instructions install
application/x-java-archive-diff jardiff
application/x-java-jnlp-file jnlp
application/x-latex latex
application/x-lua-bytecode luac
application/x-lzh-compressed lzh lha
application/x-makeself run
application/x-mie mie
application/x-mobipocket-ebook prc mobi
application/x-ms-application application
application/x-ms-shortcut lnk
application/x-ms-wmd wmd
application/x-ms-wmz wmz
application/x-ms-xbap xbap
application/x-msaccess mdb
application/x-msbinder obd
application/x-mscardfile crd
application/x-msclip clp
application/x-msdownload com bat
application/x-msmediaview mvb m13 m14
application/x-msmetafile wmf emf emz
application/x-msmoney mny
application/x-mspublisher pub
application/x-msschedule scd
application/x-msterminal trm
application/x-mswrite wri
application/x-netcdf nc cdf
application/x-ns-proxy-autoconfig pac
application/x-nzb nzb
application/x-perl pl pm
application/x-pkcs12 p12 pfx
application/x-pkcs7-certificates p7b spc
application/x-pkcs7-certreqresp p7r
application/x-rar-compressed rar
application/x-redhat-package-manager rpm
application/x-research-info-systems ris
application/x-sea sea
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-silverlight-app xap
application/x-sql sql
application/x-stuffit sit
application/x-stuffitx sitx
application/x-subrip srt
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-t3vm-image t3
application/x-tads gam
application/x-tar tar
application/x-tcl tcl tk
application/x-tex tex
application/x-tex-tfm tfm
application/x-texinfo texinfo texi
application/x-tgif obj
application/x-ustar ustar
application/x-wais-source src
application/x-web-app-manifest+json webapp
application/x-x509-ca-cert der crt pem
application/x-xfig fig
application/x-xliff+xml xlf
application/x-xpinstall xpi
application/x-xz xz
application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8
application/xaml+xml xaml
application/xcap-diff+xml xdf
application/xenc+xml xenc
application/xhtml+xml xhtml xht
application/xml xml xsl xsd
application/xml-dtd dtd
application/xop+xml xop
application/xproc+xml xpl
application/xslt+xml xslt
application/xspf+xml xspf
application/xv+xml mxml xhvml xvml xvm
application/yang yang
application/yin+xml yin
application/zip zip
audio/adpcm adp
audio/basic au snd
audio/midi mid midi kar rmi
audio/mp4 mp4a m4a
audio/mpeg mpga mp2 mp2a mp3 m2a m3a
audio/ogg oga ogg spx
audio/s3m s3m
audio/silk sil
audio/vnd.dece.audio uva uvva
audio/vnd.digital-winds eol
audio/vnd.dra dra
audio/vnd.dts dts
audio/vnd.dts.hd dtshd
audio/vnd.lucent.voice lvp
audio/vnd.ms-playready.media.pya pya
audio/vnd.nuera.ecelp4800 ecelp4800
audio/vnd.nuera.ecelp7470 ecelp7470
audio/vnd.nuera.ecelp9600 ecelp9600
audio/vnd.rip rip
audio/wav wav
audio/webm weba
audio/x-aac aac
audio/x-aiff aif aiff aifc
audio/x-caf caf
audio/x-flac flac
audio/x-matroska mka
audio/x-mpegurl m3u
audio/x-ms-wax wax
audio/x-ms-wma wma
audio/x-pn-realaudio ram ra
audio/x-pn-realaudio-plugin rmp
audio/xm xm
chemical/x-cdx cdx
chemical/x-cif cif
chemical/x-cmdf cmdf
chemical/x-cml cml
chemical/x-csml csml
chemical/x-xyz xyz
image/bmp bmp
image/cgm cgm
image/g3fax g3
image/gif gif
image/ief ief
image/jpeg jpeg jpg jpe
image/ktx ktx
image/png png
image/prs.btif btif
image/sgi sgi
image/svg+xml svg svgz
image/tiff tiff tif
image/vnd.adobe.photoshop psd
image/vnd.dece.graphic uvi uvvi uvg uvvg
image/vnd.djvu djvu djv
image/vnd.dvb.subtitle sub
image/vnd.dwg dwg
image/vnd.dxf dxf
image/vnd.fastbidsheet fbs
image/vnd.fpx fpx
image/vnd.fst fst
image/vnd.fujixerox.edmics-mmr mmr
image/vnd.fujixerox.edmics-rlc rlc
image/vnd.ms-modi mdi
image/vnd.ms-photo wdp
image/vnd.net-fpx npx
image/vnd.wap.wbmp wbmp
image/vnd.xiff xif
image/webp webp
image/x-3ds 3ds
image/x-cmu-raster ras
image/x-cmx cmx
image/x-freehand fh fhc fh4 fh5 fh7
image/x-icon ico
image/x-jng jng
image/x-mrsid-image sid
image/x-pcx pcx
image/x-pict pic pct
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-tga tga
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/rfc822 eml mime
model/iges igs iges
model/mesh msh mesh silo
model/vnd.collada+xml dae
model/vnd.dwf dwf
model/vnd.gdl gdl
model/vnd.gtw gtw
model/vnd.mts mts
model/vnd.vtu vtu
model/vrml wrl vrml
model/x3d+binary x3db x3dbz
model/x3d+vrml x3dv x3dvz
model/x3d+xml x3d x3dz
text/cache-manifest appcache manifest
text/calendar ics ifb
text/coffeescript coffee litcoffee
text/css css
text/csv csv
text/hjson hjson
text/html html htm shtml
text/jade jade
text/jsx jsx
text/less less
text/mathml mml
text/n3 n3
text/plain txt text conf def list log in ini
text/prs.lines.tag dsc
text/richtext rtx
text/sgml sgml sgm
text/stylus stylus styl
text/tab-separated-values tsv
text/troff t tr roff man me ms
text/turtle ttl
text/uri-list uri uris urls
text/vcard vcard
text/vnd.curl curl
text/vnd.curl.dcurl dcurl
text/vnd.curl.mcurl mcurl
text/vnd.curl.scurl scurl
text/vnd.fly fly
text/vnd.fmi.flexstor flx
text/vnd.graphviz gv
text/vnd.in3d.3dml 3dml
text/vnd.in3d.spot spot
text/vnd.sun.j2me.app-descriptor jad
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
text/vtt vtt
text/x-asm s asm
text/x-c c cc cxx cpp h hh dic
text/x-component htc
text/x-fortran f for f77 f90
text/x-handlebars-template hbs
text/x-java-source java
text/x-lua lua
text/x-markdown markdown md mkd
text/x-nfo nfo
text/x-opml opml
text/x-pascal p pas
text/x-processing pde
text/x-sass sass
text/x-scss scss
text/x-setext etx
text/x-sfv sfv
text/x-uuencode uu
text/x-vcalendar vcs
text/x-vcard vcf
text/yaml yaml yml
video/3gpp 3gp 3gpp
video/3gpp2 3g2
video/h261 h261
video/h263 h263
video/h264 h264
video/jpeg jpgv
video/jpm jpm jpgm
video/mj2 mj2 mjp2
video/mp2t ts
video/mp4 mp4 mp4v mpg4
video/mpeg mpeg mpg mpe m1v m2v
video/ogg ogv
video/quicktime qt mov
video/vnd.dece.hd uvh uvvh
video/vnd.dece.mobile uvm uvvm
video/vnd.dece.pd uvp uvvp
video/vnd.dece.sd uvs uvvs
video/vnd.dece.video uvv uvvv
video/vnd.dvb.file dvb
video/vnd.fvt fvt
video/vnd.mpegurl mxu m4u
video/vnd.ms-playready.media.pyv pyv
video/vnd.uvvu.mp4 uvu uvvu
video/vnd.vivo viv
video/webm webm
video/x-f4v f4v
video/x-fli fli
video/x-flv flv
video/x-m4v m4v
video/x-matroska mkv mk3d mks
video/x-mng mng
video/x-ms-asf asf asx
video/x-ms-vob vob
video/x-ms-wm wm
video/x-ms-wmv wmv
video/x-ms-wmx wmx
video/x-ms-wvx wvx
video/x-msvideo avi
video/x-sgi-movie movie
video/x-smv smv
x-conference/x-cooltalk ice

View File

@@ -35,6 +35,8 @@ module Jekyll
data.default_proc = proc do |hash, key|
site.frontmatter_defaults.find(File.join(dir, name), type, key)
end
Jekyll::Hooks.trigger :pages, :post_init, self
end
# The generated directory into which the page will be placed
@@ -52,27 +54,19 @@ module Jekyll
# Returns the String permalink or nil if none has been set.
def permalink
return nil if data.nil? || data['permalink'].nil?
if site.config['relative_permalinks']
File.join(@dir, data['permalink'])
else
data['permalink']
end
data['permalink']
end
# The template of the permalink.
#
# Returns the template String.
def template
if site.permalink_style == :pretty
if index? && html?
"/:path/"
elsif html?
"/:path/:basename/"
else
"/:path/:basename:output_ext"
end
else
if !html?
"/:path/:basename:output_ext"
elsif index?
"/:path/"
else
Utils.add_permalink_suffix("/:path/:basename", site.permalink_style)
end
end
@@ -126,7 +120,7 @@ module Jekyll
#
# Returns the path to the source file
def path
data.fetch('path', relative_path.sub(/\A\//, ''))
data.fetch('path') { relative_path.sub(/\A\//, '') }
end
# The path to the page source file, relative to the site source
@@ -140,8 +134,9 @@ module Jekyll
#
# Returns the destination file path String.
def destination(dest)
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if url =~ /\/$/
path = site.in_dest_dir(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if url.end_with?("/")
path << output_ext unless path.end_with?(output_ext)
path
end
@@ -159,9 +154,5 @@ module Jekyll
def index?
basename == 'index'
end
def uses_relative_permalinks
permalink && !@dir.empty? && site.config['relative_permalinks']
end
end
end

View File

@@ -27,7 +27,7 @@ module Jekyll
# Returns the Symbol priority.
def self.priority(priority = nil)
@priority ||= nil
if priority && PRIORITIES.has_key?(priority)
if priority && PRIORITIES.key?(priority)
@priority = priority
end
@priority || :normal
@@ -56,6 +56,15 @@ module Jekyll
PRIORITIES[other.priority] <=> PRIORITIES[self.priority]
end
# Spaceship is priority [higher -> lower]
#
# other - The class to be compared.
#
# Returns -1, 0, 1.
def <=>(other)
self.class <=> other.class
end
# Initialize a new plugin. This should be overridden by the subclass.
#
# config - The Hash of configuration options.

View File

@@ -17,6 +17,7 @@ module Jekyll
def conscientious_require
require_plugin_files
require_gems
deprecation_checks
end
# Require each of the gem plugins specified.
@@ -25,11 +26,27 @@ module Jekyll
def require_gems
site.gems.each do |gem|
if plugin_allowed?(gem)
Jekyll.logger.debug("PluginManager:", "Requiring #{gem}")
require gem
end
end
end
def self.require_from_bundler
if !ENV["JEKYLL_NO_BUNDLER_REQUIRE"] && File.file?("Gemfile")
require "bundler"
Bundler.setup # puts all groups on the load path
required_gems = Bundler.require(:jekyll_plugins) # requires the gems in this group only
Jekyll.logger.debug("PluginManager:", "Required #{required_gems.map(&:name).join(', ')}")
ENV["JEKYLL_NO_BUNDLER_REQUIRE"] = "true"
true
else
false
end
rescue LoadError, Bundler::GemfileNotFound
false
end
# Check whether a gem plugin is allowed to be used during this build.
#
# gem_name - the name of the gem
@@ -65,10 +82,19 @@ module Jekyll
#
# Returns an Array of plugin search paths
def plugins_path
if (site.config['plugins'] == Jekyll::Configuration::DEFAULTS['plugins'])
[Jekyll.sanitized_path(site.source, site.config['plugins'])]
if (site.config['plugins_dir'] == Jekyll::Configuration::DEFAULTS['plugins_dir'])
[site.in_source_dir(site.config['plugins_dir'])]
else
Array(site.config['plugins']).map { |d| File.expand_path(d) }
Array(site.config['plugins_dir']).map { |d| File.expand_path(d) }
end
end
def deprecation_checks
pagination_included = (site.config['gems'] || []).include?('jekyll-paginate') || defined?(Jekyll::Paginate)
if site.config['paginate'] && !pagination_included
Jekyll::Deprecator.deprecation_message "You appear to have pagination " +
"turned on, but you haven't included the `jekyll-paginate` gem. " +
"Ensure you have `gems: [jekyll-paginate]` in your configuration file."
end
end

View File

@@ -1,317 +0,0 @@
module Jekyll
class Post
include Comparable
include Convertible
# Valid post name regex.
MATCHER = /^(.+\/)*(\d+-\d+-\d+)-(.*)(\.[^.]+)$/
EXCERPT_ATTRIBUTES_FOR_LIQUID = %w[
title
url
dir
date
id
categories
next
previous
tags
path
]
# Attributes for Liquid templates
ATTRIBUTES_FOR_LIQUID = EXCERPT_ATTRIBUTES_FOR_LIQUID + %w[
content
excerpt
]
# Post name validator. Post filenames must be like:
# 2008-11-05-my-awesome-post.textile
#
# Returns true if valid, false if not.
def self.valid?(name)
name =~ MATCHER
end
attr_accessor :site
attr_accessor :data, :extracted_excerpt, :content, :output, :ext
attr_accessor :date, :slug, :tags, :categories
attr_reader :name
# Initialize this Post instance.
#
# site - The Site.
# base - The String path to the dir containing the post file.
# name - The String filename of the post file.
#
# Returns the new Post.
def initialize(site, source, dir, name)
@site = site
@dir = dir
@base = containing_dir(source, dir)
@name = name
self.categories = dir.downcase.split('/').reject { |x| x.empty? }
process(name)
read_yaml(@base, name)
data.default_proc = proc do |hash, key|
site.frontmatter_defaults.find(File.join(dir, name), type, key)
end
if data.has_key?('date')
self.date = Time.parse(data["date"].to_s)
end
populate_categories
populate_tags
end
def published?
if data.has_key?('published') && data['published'] == false
false
else
true
end
end
def populate_categories
categories_from_data = Utils.pluralized_array_from_hash(data, 'category', 'categories')
self.categories = (Array(categories) + categories_from_data).map {|c| c.to_s.downcase}
categories.flatten!
end
def populate_tags
self.tags = Utils.pluralized_array_from_hash(data, "tag", "tags").flatten
end
# Get the full path to the directory containing the post files
def containing_dir(source, dir)
return File.join(source, dir, '_posts')
end
# Read the YAML frontmatter.
#
# base - The String path to the dir containing the file.
# name - The String filename of the file.
#
# Returns nothing.
def read_yaml(base, name)
super(base, name)
self.extracted_excerpt = extract_excerpt
end
# The post excerpt. This is either a custom excerpt
# set in YAML front matter or the result of extract_excerpt.
#
# Returns excerpt string.
def excerpt
data.fetch('excerpt', extracted_excerpt.to_s)
end
# Public: the Post title, from the YAML Front-Matter or from the slug
#
# Returns the post title
def title
data.fetch("title", titleized_slug)
end
# Turns the post slug into a suitable title
def titleized_slug
slug.split('-').select {|w| w.capitalize! || w }.join(' ')
end
# Public: the path to the post relative to the site source,
# from the YAML Front-Matter or from a combination of
# the directory it's in, "_posts", and the name of the
# post file
#
# Returns the path to the file relative to the site source
def path
data.fetch('path', relative_path.sub(/\A\//, ''))
end
# The path to the post source file, relative to the site source
def relative_path
File.join(*[@dir, "_posts", @name].map(&:to_s).reject(&:empty?))
end
# Compares Post objects. First compares the Post date. If the dates are
# equal, it compares the Post slugs.
#
# other - The other Post we are comparing to.
#
# Returns -1, 0, 1
def <=>(other)
cmp = self.date <=> other.date
if 0 == cmp
cmp = self.slug <=> other.slug
end
return cmp
end
# Extract information from the post filename.
#
# name - The String filename of the post file.
#
# Returns nothing.
def process(name)
m, cats, date, slug, ext = *name.match(MATCHER)
self.date = Time.parse(date)
self.slug = slug
self.ext = ext
rescue ArgumentError
path = File.join(@dir || "", name)
msg = "Post '#{path}' does not have a valid date.\n"
msg << "Fix the date, or exclude the file or directory from being processed"
raise FatalException.new(msg)
end
# The generated directory into which the post will be placed
# upon generation. This is derived from the permalink or, if
# permalink is absent, set to the default date
# e.g. "/2008/11/05/" if the permalink style is :date, otherwise nothing.
#
# Returns the String directory.
def dir
File.dirname(url)
end
# The full path and filename of the post. Defined in the YAML of the post
# body (optional).
#
# Returns the String permalink.
def permalink
data && data['permalink']
end
def template
case site.permalink_style
when :pretty
"/:categories/:year/:month/:day/:title/"
when :none
"/:categories/:title.html"
when :date
"/:categories/:year/:month/:day/:title.html"
when :ordinal
"/:categories/:year/:y_day/:title.html"
else
site.permalink_style.to_s
end
end
# The generated relative url of this post.
#
# Returns the String url.
def url
@url ||= URL.new({
:template => template,
:placeholders => url_placeholders,
:permalink => permalink
}).to_s
end
# Returns a hash of URL placeholder names (as symbols) mapping to the
# desired placeholder replacements. For details see "url.rb"
def url_placeholders
{
:year => date.strftime("%Y"),
:month => date.strftime("%m"),
:day => date.strftime("%d"),
:title => slug,
:i_day => date.strftime("%d").to_i.to_s,
:i_month => date.strftime("%m").to_i.to_s,
:categories => (categories || []).map { |c| c.to_s }.join('/'),
:short_month => date.strftime("%b"),
:short_year => date.strftime("%y"),
:y_day => date.strftime("%j"),
:output_ext => output_ext
}
end
# The UID for this post (useful in feeds).
# e.g. /2008/11/05/my-awesome-post
#
# Returns the String UID.
def id
File.join(dir, slug)
end
# Calculate related posts.
#
# Returns an Array of related Posts.
def related_posts(posts)
Jekyll::RelatedPosts.new(self).build
end
# Add any necessary layouts to this post.
#
# layouts - A Hash of {"name" => "layout"}.
# site_payload - The site payload hash.
#
# Returns nothing.
def render(layouts, site_payload)
# construct payload
payload = Utils.deep_merge_hashes({
"site" => { "related_posts" => related_posts(site_payload["site"]["posts"]) },
"page" => to_liquid(self.class::EXCERPT_ATTRIBUTES_FOR_LIQUID)
}, site_payload)
if generate_excerpt?
extracted_excerpt.do_layout(payload, {})
end
do_layout(payload.merge({"page" => to_liquid}), layouts)
end
# Obtain destination path.
#
# dest - The String path to the destination dir.
#
# Returns destination file path String.
def destination(dest)
# The url needs to be unescaped in order to preserve the correct filename
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if path[/\.html$/].nil?
path
end
# Returns the shorthand String identifier of this Post.
def inspect
"<Post: #{id}>"
end
def next
pos = site.posts.index {|post| post.equal?(self) }
if pos && pos < site.posts.length - 1
site.posts[pos + 1]
else
nil
end
end
def previous
pos = site.posts.index {|post| post.equal?(self) }
if pos && pos > 0
site.posts[pos - 1]
else
nil
end
end
protected
def extract_excerpt
if generate_excerpt?
Jekyll::Excerpt.new(self)
else
""
end
end
def generate_excerpt?
!(site.config['excerpt_separator'].to_s.empty?)
end
end
end

View File

@@ -15,7 +15,7 @@ module Jekyll
end
def hidden_in_the_future?(thing)
thing.is_a?(Post) && !@site.future && thing.date > @site.time
thing.respond_to?(:date) && !@site.future && thing.date.to_i > @site.time.to_i
end
end
end
end

126
lib/jekyll/reader.rb Normal file
View File

@@ -0,0 +1,126 @@
# encoding: UTF-8
require 'csv'
module Jekyll
class Reader
attr_reader :site
def initialize(site)
@site = site
end
# Read Site data from disk and load it into internal data structures.
#
# Returns nothing.
def read
@site.layouts = LayoutReader.new(site).read
read_directories
sort_files!
@site.data = DataReader.new(site).read(site.config['data_dir'])
CollectionReader.new(site).read
end
# Sorts posts, pages, and static files.
def sort_files!
site.collections.values.each{|c| c.docs.sort!}
site.pages.sort_by!(&:name)
site.static_files.sort_by!(&:relative_path)
end
# Recursively traverse directories to find pages and static files
# that will become part of the site according to the rules in
# filter_entries.
#
# dir - The String relative path of the directory to read. Default: ''.
#
# Returns nothing.
def read_directories(dir = '')
base = site.in_source_dir(dir)
dot = Dir.chdir(base) { filter_entries(Dir.entries('.'), base) }
dot_dirs = dot.select{ |file| File.directory?(@site.in_source_dir(base,file)) }
dot_files = (dot - dot_dirs)
dot_pages = dot_files.select{ |file| Utils.has_yaml_header?(@site.in_source_dir(base,file)) }
dot_static_files = dot_files - dot_pages
retrieve_posts(dir)
retrieve_dirs(base, dir, dot_dirs)
retrieve_pages(dir, dot_pages)
retrieve_static_files(dir, dot_static_files)
end
# Retrieves all the posts(posts/drafts) from the given directory
# and add them to the site and sort them.
#
# dir - The String representing the directory to retrieve the posts from.
#
# Returns nothing.
def retrieve_posts(dir)
site.posts.docs.concat(PostReader.new(site).read_posts(dir))
site.posts.docs.concat(PostReader.new(site).read_drafts(dir)) if site.show_drafts
end
# Recursively traverse directories with the read_directories function.
#
# base - The String representing the site's base directory.
# dir - The String representing the directory to traverse down.
# dot_dirs - The Array of subdirectories in the dir.
#
# Returns nothing.
def retrieve_dirs(base, dir, dot_dirs)
dot_dirs.map { |file|
dir_path = site.in_source_dir(dir,file)
rel_path = File.join(dir, file)
@site.reader.read_directories(rel_path) unless @site.dest.sub(/\/$/, '') == dir_path
}
end
# Retrieve all the pages from the current directory,
# add them to the site and sort them.
#
# dir - The String representing the directory retrieve the pages from.
# dot_pages - The Array of pages in the dir.
#
# Returns nothing.
def retrieve_pages(dir, dot_pages)
site.pages.concat(PageReader.new(site, dir).read(dot_pages))
end
# Retrieve all the static files from the current directory,
# add them to the site and sort them.
#
# dir - The directory retrieve the static files from.
# dot_static_files - The static files in the dir.
#
# Returns nothing.
def retrieve_static_files(dir, dot_static_files)
site.static_files.concat(StaticFileReader.new(site, dir).read(dot_static_files))
end
# Filter out any files/directories that are hidden or backup files (start
# with "." or "#" or end with "~"), or contain site content (start with "_"),
# or are excluded in the site configuration, unless they are web server
# files such as '.htaccess'.
#
# entries - The Array of String file/directory entries to filter.
# base_directory - The string representing the optional base directory.
#
# Returns the Array of filtered entries.
def filter_entries(entries, base_directory = nil)
EntryFilter.new(site, base_directory).filter(entries)
end
# Read the entries from a particular directory for processing
#
# dir - The String representing the relative path of the directory to read.
# subfolder - The String representing the directory to read.
#
# Returns the list of entries to process
def get_entries(dir, subfolder)
base = site.in_source_dir(dir, subfolder)
return [] unless File.exist?(base)
entries = Dir.chdir(base) { filter_entries(Dir['**/*'], base) }
entries.delete_if { |e| File.directory?(site.in_source_dir(base, e)) }
end
end
end

View File

@@ -0,0 +1,21 @@
module Jekyll
class CollectionReader
SPECIAL_COLLECTIONS = %w{posts data}.freeze
attr_reader :site, :content
def initialize(site)
@site = site
@content = {}
end
# Read in all collections specified in the configuration
#
# Returns nothing.
def read
site.collections.each do |_, collection|
collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
end
end
end
end

View File

@@ -0,0 +1,69 @@
module Jekyll
class DataReader
attr_reader :site, :content
def initialize(site)
@site = site
@content = {}
end
# Read all the files in <source>/<dir>/_drafts and create a new Draft
# object with each one.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read(dir)
base = site.in_source_dir(dir)
read_data_to(base, @content)
@content
end
# Read and parse all yaml files under <dir> and add them to the
# <data> variable.
#
# dir - The string absolute path of the directory to read.
# data - The variable to which data will be added.
#
# Returns nothing
def read_data_to(dir, data)
return unless File.directory?(dir) && (!site.safe || !File.symlink?(dir))
entries = Dir.chdir(dir) do
Dir['*.{yaml,yml,json,csv}'] + Dir['*'].select { |fn| File.directory?(fn) }
end
entries.each do |entry|
path = @site.in_source_dir(dir, entry)
next if File.symlink?(path) && site.safe
key = sanitize_filename(File.basename(entry, '.*'))
if File.directory?(path)
read_data_to(path, data[key] = {})
else
data[key] = read_data_file(path)
end
end
end
# Determines how to read a data file.
#
# Returns the contents of the data file.
def read_data_file(path)
case File.extname(path).downcase
when '.csv'
CSV.read(path, {
:headers => true,
:encoding => site.config['encoding']
}).map(&:to_hash)
else
SafeYAML.load_file(path)
end
end
def sanitize_filename(name)
name.gsub!(/[^\w\s-]+/, '')
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
name.gsub(/\s+/, '_')
end
end
end

View File

@@ -38,12 +38,12 @@ module Jekyll
end
def layout_directory_inside_source
Jekyll.sanitized_path(site.source, site.config['layouts'])
site.in_source_dir(site.config['layouts_dir'])
end
def layout_directory_in_cwd
dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts'])
if File.directory?(dir)
dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts_dir'])
if File.directory?(dir) && !site.safe
dir
else
nil

View File

@@ -0,0 +1,21 @@
module Jekyll
class PageReader
attr_reader :site, :dir, :unfiltered_content
def initialize(site, dir)
@site = site
@dir = dir
@unfiltered_content = Array.new
end
# Read all the files in <source>/<dir>/ for Yaml header and create a new Page
# object for each file.
#
# dir - The String relative path of the directory to read.
#
# Returns an array of static pages.
def read(files)
files.map{ |page| @unfiltered_content << Page.new(@site, @site.source, @dir, page) }
@unfiltered_content.select{ |page| site.publisher.publish?(page) }
end
end
end

View File

@@ -0,0 +1,62 @@
module Jekyll
class PostReader
attr_reader :site, :unfiltered_content
def initialize(site)
@site = site
end
# Read all the files in <source>/<dir>/_drafts and create a new
# Document object with each one.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read_drafts(dir)
read_publishable(dir, '_drafts', Document::DATELESS_FILENAME_MATCHER)
end
# Read all the files in <source>/<dir>/_posts and create a new Document
# object with each one.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read_posts(dir)
read_publishable(dir, '_posts', Document::DATE_FILENAME_MATCHER)
end
# Read all the files in <source>/<dir>/<magic_dir> and create a new
# Document object with each one insofar as it matches the regexp matcher.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read_publishable(dir, magic_dir, matcher)
read_content(dir, magic_dir, matcher).tap do |docs|
docs.each(&:read)
end.select do |doc|
site.publisher.publish?(doc)
end
end
# Read all the content files from <source>/<dir>/magic_dir
# and return them with the type klass.
#
# dir - The String relative path of the directory to read.
# magic_dir - The String relative directory to <dir>,
# looks for content here.
# klass - The return type of the content.
#
# Returns klass type of content files
def read_content(dir, magic_dir, matcher)
@site.reader.get_entries(dir, magic_dir).map do |entry|
next unless entry =~ matcher
path = @site.in_source_dir(File.join(dir, magic_dir, entry))
Document.new(path, {
site: @site,
collection: @site.posts
})
end.reject(&:nil?)
end
end
end

View File

@@ -0,0 +1,21 @@
module Jekyll
class StaticFileReader
attr_reader :site, :dir, :unfiltered_content
def initialize(site, dir)
@site = site
@dir = dir
@unfiltered_content = Array.new
end
# Read all the files in <source>/<dir>/ for Yaml header and create a new Page
# object for each file.
#
# dir - The String relative path of the directory to read.
#
# Returns an array of static files.
def read(files)
files.map{ |file| @unfiltered_content << StaticFile.new(@site, @site.source, @dir, file)}
@unfiltered_content
end
end
end

176
lib/jekyll/regenerator.rb Normal file
View File

@@ -0,0 +1,176 @@
module Jekyll
class Regenerator
attr_reader :site, :metadata, :cache
def initialize(site)
@site = site
# Read metadata from file
read_metadata
# Initialize cache to an empty hash
clear_cache
end
# Checks if a renderable object needs to be regenerated
#
# Returns a boolean.
def regenerate?(document)
case document
when Page
document.asset_file? || document.data['regenerate'] ||
source_modified_or_dest_missing?(
site.in_source_dir(document.relative_path), document.destination(@site.dest)
)
when Document
!document.write? || document.data['regenerate'] ||
source_modified_or_dest_missing?(
document.path, document.destination(@site.dest)
)
else
source_path = document.respond_to?(:path) ? document.path : nil
dest_path = document.respond_to?(:destination) ? document.destination(@site.dest) : nil
source_modified_or_dest_missing?(source_path, dest_path)
end
end
# Add a path to the metadata
#
# Returns true, also on failure.
def add(path)
return true unless File.exist?(path)
metadata[path] = {
"mtime" => File.mtime(path),
"deps" => []
}
cache[path] = true
end
# Force a path to regenerate
#
# Returns true.
def force(path)
cache[path] = true
end
# Clear the metadata and cache
#
# Returns nothing
def clear
@metadata = {}
clear_cache
end
# Clear just the cache
#
# Returns nothing
def clear_cache
@cache = {}
end
# Checks if the source has been modified or the
# destination is missing
#
# returns a boolean
def source_modified_or_dest_missing?(source_path, dest_path)
modified?(source_path) || (dest_path and !File.exist?(dest_path))
end
# Checks if a path's (or one of its dependencies)
# mtime has changed
#
# Returns a boolean.
def modified?(path)
return true if disabled?
# objects that don't have a path are always regenerated
return true if path.nil?
# Check for path in cache
if cache.has_key? path
return cache[path]
end
# Check path that exists in metadata
data = metadata[path]
if data
data["deps"].each do |dependency|
if modified?(dependency)
return cache[dependency] = cache[path] = true
end
end
if File.exist?(path) && data["mtime"].eql?(File.mtime(path))
return cache[path] = false
else
return add(path)
end
end
# Path does not exist in metadata, add it
return add(path)
end
# Add a dependency of a path
#
# Returns nothing.
def add_dependency(path, dependency)
return if (metadata[path].nil? || @disabled)
if !metadata[path]["deps"].include? dependency
metadata[path]["deps"] << dependency
add(dependency) unless metadata.include?(dependency)
end
regenerate? dependency
end
# Write the metadata to disk
#
# Returns nothing.
def write_metadata
unless disabled?
File.binwrite(metadata_file, Marshal.dump(metadata))
end
end
# Produce the absolute path of the metadata file
#
# Returns the String path of the file.
def metadata_file
site.in_source_dir('.jekyll-metadata')
end
# Check if metadata has been disabled
#
# Returns a Boolean (true for disabled, false for enabled).
def disabled?
@disabled = !site.incremental? if @disabled.nil?
@disabled
end
private
# Read metadata from the metadata file, if no file is found,
# initialize with an empty hash
#
# Returns the read metadata.
def read_metadata
@metadata = if !disabled? && File.file?(metadata_file)
content = File.binread(metadata_file)
begin
Marshal.load(content)
rescue TypeError
SafeYAML.load(content)
rescue ArgumentError => e
Jekyll.logger.warn("Failed to load #{metadata_file}: #{e}")
{}
end
else
{}
end
end
end
end

View File

@@ -10,11 +10,11 @@ module Jekyll
def initialize(post)
@post = post
@site = post.site
require 'classifier' if site.lsi
Jekyll::External.require_with_graceful_fail('classifier-reborn') if site.lsi
end
def build
return [] unless site.posts.size > 1
return [] unless site.posts.docs.size > 1
if site.lsi
build_index
@@ -27,10 +27,10 @@ module Jekyll
def build_index
self.class.lsi ||= begin
lsi = Classifier::LSI.new(:auto_rebuild => false)
lsi = ClassifierReborn::LSI.new(:auto_rebuild => false)
display("Populating LSI...")
site.posts.each do |x|
site.posts.docs.each do |x|
lsi.add_item(x)
end
@@ -42,12 +42,11 @@ module Jekyll
end
def lsi_related_posts
self.class.lsi.find_related(post.content, 11) - [post]
self.class.lsi.find_related(post, 11)
end
def most_recent_posts
recent_posts = site.posts.reverse - [post]
recent_posts.first(10)
@most_recent_posts ||= (site.posts.docs.reverse - [post]).first(10)
end
def display(output)

View File

@@ -1,11 +1,14 @@
# encoding: UTF-8
module Jekyll
class Renderer
attr_reader :document, :site
attr_reader :document, :site, :site_payload
def initialize(site, document)
@site = site
@document = document
def initialize(site, document, site_payload = nil)
@site = site
@document = document
@site_payload = site_payload
end
# Determine which converters to use based on this document's
@@ -20,7 +23,7 @@ module Jekyll
#
# Returns the output extname including the leading period.
def output_ext
converters.first.output_ext(document.extname)
@output_ext ||= converters.first.output_ext(document.extname)
end
######################
@@ -28,9 +31,18 @@ module Jekyll
######################
def run
Jekyll.logger.debug "Rendering:", document.relative_path
payload = Utils.deep_merge_hashes({
"page" => document.to_liquid
}, site.site_payload)
}, site_payload || site.site_payload)
if document.collection.label == 'posts' && document.is_a?(Document)
payload['site']['related_posts'] = document.related_posts
end
Jekyll.logger.debug "Pre-Render Hooks:", document.relative_path
document.trigger_hooks(:pre_render, payload)
info = {
filters: [Jekyll::Filters],
@@ -44,17 +56,23 @@ module Jekyll
output = document.content
if document.render_with_liquid?
output = render_liquid(output, payload, info)
Jekyll.logger.debug "Rendering Liquid:", document.relative_path
output = render_liquid(output, payload, info, document.path)
end
Jekyll.logger.debug "Rendering Markup:", document.relative_path
output = convert(output)
document.content = output
if document.place_in_layout?
Jekyll.logger.debug "Rendering Layout:", document.relative_path
place_in_layouts(
convert(output),
output,
payload,
info
)
else
convert(output)
output
end
end
@@ -68,7 +86,8 @@ module Jekyll
begin
converter.convert output
rescue => e
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error converting '#{document.relative_path}'."
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error while converting '#{document.relative_path}':"
Jekyll.logger.error("", e.to_s)
raise e
end
end
@@ -83,7 +102,7 @@ module Jekyll
#
# Returns the content, rendered by Liquid.
def render_liquid(content, payload, info, path = nil)
Liquid::Template.parse(content).render!(payload, info)
site.liquid_renderer.file(path).parse(content).render!(payload, info)
rescue Tags::IncludeTagError => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{e.path}, included in #{path || document.relative_path}"
raise e
@@ -92,6 +111,15 @@ module Jekyll
raise e
end
# Checks if the layout specified in the document actually exists
#
# layout - the layout to check
#
# Returns true if the layout is invalid, false if otherwise
def invalid_layout?(layout)
!document.data["layout"].nil? && layout.nil?
end
# Render layouts and place given content inside.
#
# content - the content to be placed in the layout
@@ -101,6 +129,9 @@ module Jekyll
def place_in_layouts(content, payload, info)
output = content.dup
layout = site.layouts[document.data["layout"]]
Jekyll.logger.warn("Build Warning:", "Layout '#{document.data["layout"]}' requested in #{document.relative_path} does not exist.") if invalid_layout? layout
used = Set.new([layout])
while layout
@@ -117,9 +148,15 @@ module Jekyll
layout.content,
payload,
info,
File.join(site.config['layouts'], layout.name)
File.join(site.config['layouts_dir'], layout.name)
)
# Add layout to dependency tree
site.regenerator.add_dependency(
site.in_source_dir(document.path),
site.in_source_dir(layout.path)
) if document.write?
if layout = site.layouts[layout.data["layout"]]
if used.include?(layout)
layout = nil # avoid recursive chain

View File

@@ -1,29 +1,39 @@
# encoding: UTF-8
require 'csv'
module Jekyll
class Site
attr_accessor :config, :layouts, :posts, :pages, :static_files,
:exclude, :include, :source, :dest, :lsi, :highlighter,
:permalink_style, :time, :future, :unpublished, :safe, :plugins, :limit_posts,
:show_drafts, :keep_files, :baseurl, :data, :file_read_opts, :gems,
:plugin_manager
attr_reader :source, :dest, :config
attr_accessor :layouts, :pages, :static_files, :drafts,
:exclude, :include, :lsi, :highlighter, :permalink_style,
:time, :future, :unpublished, :safe, :plugins, :limit_posts,
:show_drafts, :keep_files, :baseurl, :data, :file_read_opts,
:gems, :plugin_manager
attr_accessor :converters, :generators
include Jekyll::Hooks
attr_accessor :converters, :generators, :reader
attr_reader :regenerator, :liquid_renderer
# Public: Initialize a new Site.
#
# config - A Hash containing site configuration details.
def initialize(config)
self.config = config.clone
@config = config.clone
%w[safe lsi highlighter baseurl exclude include future unpublished
show_drafts limit_posts keep_files gems].each do |opt|
self.send("#{opt}=", config[opt])
end
self.source = File.expand_path(config['source'])
self.dest = File.expand_path(config['destination'])
self.permalink_style = config['permalink'].to_sym
# Source and destination may not be changed after the site has been created.
@source = File.expand_path(config['source']).freeze
@dest = File.expand_path(config['destination']).freeze
@reader = Jekyll::Reader.new(self)
# Initialize incremental regenerator
@regenerator = Regenerator.new(self)
@liquid_renderer = LiquidRenderer.new(self)
self.plugin_manager = Jekyll::PluginManager.new(self)
self.plugins = plugin_manager.plugins_path
@@ -31,6 +41,10 @@ module Jekyll
self.file_read_opts = {}
self.file_read_opts[:encoding] = config['encoding'] if config['encoding']
self.permalink_style = config['permalink'].to_sym
Jekyll.sites << self
reset
setup
end
@@ -45,23 +59,33 @@ module Jekyll
render
cleanup
write
print_stats
end
def print_stats
if @config['profile']
puts @liquid_renderer.stats_table
end
end
# Reset Site details.
#
# Returns nothing
def reset
self.time = (config['time'] ? Time.parse(config['time'].to_s) : Time.now)
self.time = (config['time'] ? Utils.parse_date(config['time'].to_s, "Invalid time in _config.yml.") : Time.now)
self.layouts = {}
self.posts = []
self.pages = []
self.static_files = []
self.data = {}
@collections = nil
@regenerator.clear_cache
@liquid_renderer.reset
if limit_posts < 0
raise ArgumentError, "limit_posts must be a non-negative number"
end
Jekyll::Hooks.trigger :site, :after_reset, self
end
# Load necessary libraries, plugins, converters, and generators.
@@ -82,7 +106,7 @@ module Jekyll
dest_pathname = Pathname.new(dest)
Pathname.new(source).ascend do |path|
if path == dest_pathname
raise FatalException.new "Destination directory cannot be or contain the Source directory."
raise Errors::FatalException.new "Destination directory cannot be or contain the Source directory."
end
end
end
@@ -117,124 +141,9 @@ module Jekyll
#
# Returns nothing.
def read
self.layouts = LayoutReader.new(self).read
read_directories
read_data(config['data_source'])
read_collections
end
# Recursively traverse directories to find posts, pages and static files
# that will become part of the site according to the rules in
# filter_entries.
#
# dir - The String relative path of the directory to read. Default: ''.
#
# Returns nothing.
def read_directories(dir = '')
base = File.join(source, dir)
entries = Dir.chdir(base) { filter_entries(Dir.entries('.'), base) }
read_posts(dir)
read_drafts(dir) if show_drafts
posts.sort!
limit_posts! if limit_posts > 0 # limit the posts if :limit_posts option is set
entries.each do |f|
f_abs = File.join(base, f)
if File.directory?(f_abs)
f_rel = File.join(dir, f)
read_directories(f_rel) unless dest.sub(/\/$/, '') == f_abs
elsif has_yaml_header?(f_abs)
page = Page.new(self, source, dir, f)
pages << page if publisher.publish?(page)
else
static_files << StaticFile.new(self, source, dir, f)
end
end
pages.sort_by!(&:name)
end
# Read all the files in <source>/<dir>/_posts and create a new Post
# object with each one.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read_posts(dir)
posts = read_content(dir, '_posts', Post)
posts.each do |post|
aggregate_post_info(post) if publisher.publish?(post)
end
end
# Read all the files in <source>/<dir>/_drafts and create a new Post
# object with each one.
#
# dir - The String relative path of the directory to read.
#
# Returns nothing.
def read_drafts(dir)
drafts = read_content(dir, '_drafts', Draft)
drafts.each do |draft|
if draft.published?
aggregate_post_info(draft)
end
end
end
def read_content(dir, magic_dir, klass)
get_entries(dir, magic_dir).map do |entry|
klass.new(self, source, dir, entry) if klass.valid?(entry)
end.reject do |entry|
entry.nil?
end
end
# Read and parse all yaml files under <source>/<dir>
#
# Returns nothing
def read_data(dir)
base = File.join(source, dir)
read_data_to(base, self.data)
end
# Read and parse all yaml files under <dir> and add them to the
# <data> variable.
#
# dir - The string absolute path of the directory to read.
# data - The variable to which data will be added.
#
# Returns nothing
def read_data_to(dir, data)
return unless File.directory?(dir) && (!safe || !File.symlink?(dir))
entries = Dir.chdir(dir) do
Dir['*.{yaml,yml,json}'] + Dir['*'].select { |fn| File.directory?(fn) }
end
entries.each do |entry|
path = File.join(dir, entry)
next if File.symlink?(path) && safe
key = sanitize_filename(File.basename(entry, '.*'))
if File.directory?(path)
read_data_to(path, data[key] = {})
else
data[key] = SafeYAML.load_file(path)
end
end
end
# Read in all collections specified in the configuration
#
# Returns nothing.
def read_collections
collections.each do |_, collection|
collection.read unless collection.label.eql?("data")
end
reader.read
limit_posts!
Jekyll::Hooks.trigger :site, :post_read, self
end
# Run each of the Generators.
@@ -250,19 +159,29 @@ module Jekyll
#
# Returns nothing.
def render
relative_permalinks_deprecation_method
relative_permalinks_are_deprecated
payload = site_payload
Jekyll::Hooks.trigger :site, :pre_render, self, payload
collections.each do |label, collection|
collection.docs.each do |document|
document.output = Jekyll::Renderer.new(self, document).run
if regenerator.regenerate?(document)
document.output = Jekyll::Renderer.new(self, document, payload).run
document.trigger_hooks(:post_render)
end
end
end
payload = site_payload
[posts, pages].flatten.each do |page_or_post|
page_or_post.render(layouts, payload)
pages.flatten.each do |page|
if regenerator.regenerate?(page)
page.render(layouts, payload)
end
end
rescue Errno::ENOENT => e
Jekyll::Hooks.trigger :site, :post_render, self, payload
rescue Errno::ENOENT
# ignore missing layout dir
end
@@ -277,7 +196,15 @@ module Jekyll
#
# Returns nothing.
def write
each_site_file { |item| item.write(dest) }
each_site_file { |item|
item.write(dest) if regenerator.regenerate?(item)
}
regenerator.write_metadata
Jekyll::Hooks.trigger :site, :post_write, self
end
def posts
collections['posts'] ||= Collection.new(self, 'posts')
end
# Construct a Hash of Posts indexed by the specified Post attribute.
@@ -297,7 +224,7 @@ module Jekyll
# Build a hash map based on the specified post attribute ( post attr =>
# array of posts ) then sort each array in reverse order.
hash = Hash.new { |h, key| h[key] = [] }
posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } }
posts.docs.each { |p| p.data[post_attr].each { |t| hash[t] << p } if p.data[post_attr] }
hash.values.each { |posts| posts.sort!.reverse! }
hash
end
@@ -340,43 +267,26 @@ module Jekyll
"site" => Utils.deep_merge_hashes(config,
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
"time" => time,
"posts" => posts.sort { |a, b| b <=> a },
"posts" => posts.docs.sort { |a, b| b <=> a },
"pages" => pages,
"static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path },
"static_files" => static_files,
"html_pages" => pages.select { |page| page.html? || page.url.end_with?("/") },
"categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags'),
"collections" => collections,
"collections" => collections.values.map(&:to_liquid),
"documents" => documents,
"data" => site_data
}))
}
end
# Filter out any files/directories that are hidden or backup files (start
# with "." or "#" or end with "~"), or contain site content (start with "_"),
# or are excluded in the site configuration, unless they are web server
# files such as '.htaccess'.
#
# entries - The Array of String file/directory entries to filter.
#
# Returns the Array of filtered entries.
def filter_entries(entries, base_directory = nil)
EntryFilter.new(self, base_directory).filter(entries)
end
# Get the implementation class for the given Converter.
#
# klass - The Class of the Converter to fetch.
#
# Returns the Converter instance implementing the given Converter.
def getConverterImpl(klass)
matches = converters.select { |c| c.class == klass }
if impl = matches.first
impl
else
raise "Converter implementation not found for #{klass}"
end
def find_converter_instance(klass)
converters.find { |c| c.class == klass } || proc { raise "No converter for #{klass}" }.call
end
# Create array of instances of the subclasses of the class or module
@@ -394,87 +304,109 @@ module Jekyll
end
end
# Read the entries from a particular directory for processing
# Warns the user if permanent links are relative to the parent
# directory. As this is a deprecated function of Jekyll.
#
# dir - The String relative path of the directory to read
# subfolder - The String directory to read
#
# Returns the list of entries to process
def get_entries(dir, subfolder)
base = File.join(source, dir, subfolder)
return [] unless File.exist?(base)
entries = Dir.chdir(base) { filter_entries(Dir['**/*'], base) }
entries.delete_if { |e| File.directory?(File.join(base, e)) }
end
# Aggregate post information
#
# post - The Post object to aggregate information for
#
# Returns nothing
def aggregate_post_info(post)
posts << post
end
def relative_permalinks_deprecation_method
if config['relative_permalinks'] && has_relative_page?
Jekyll.logger.warn "Deprecation:", "Starting in 2.0, permalinks for pages" +
" in subfolders must be relative to the" +
" site source directory, not the parent" +
" directory. Check http://jekyllrb.com/docs/upgrading/"+
" for more info."
# Returns
def relative_permalinks_are_deprecated
if config['relative_permalinks']
Jekyll.logger.abort_with "Since v3.0, permalinks for pages" +
" in subfolders must be relative to the" +
" site source directory, not the parent" +
" directory. Check http://jekyllrb.com/docs/upgrading/"+
" for more info."
end
end
# Get the to be written documents
#
# Returns an Array of Documents which should be written
def docs_to_write
documents.select(&:write?)
end
# Get all the documents
#
# Returns an Array of all Documents
def documents
collections.reduce(Set.new) do |docs, (_, collection)|
docs.merge(collection.docs)
docs + collection.docs + collection.files
end.to_a
end
def each_site_file
%w(posts pages static_files docs_to_write).each do |type|
%w(pages static_files docs_to_write).each do |type|
send(type).each do |item|
yield item
end
end
end
# Returns the FrontmatterDefaults or creates a new FrontmatterDefaults
# if it doesn't already exist.
#
# Returns The FrontmatterDefaults
def frontmatter_defaults
@frontmatter_defaults ||= Configuration::FrontmatterDefaults.new(self)
@frontmatter_defaults ||= FrontmatterDefaults.new(self)
end
# Whether to perform a full rebuild without incremental regeneration
#
# Returns a Boolean: true for a full rebuild, false for normal build
def incremental?(override = {})
override['incremental'] || config['incremental']
end
# Returns the publisher or creates a new publisher if it doesn't
# already exist.
#
# Returns The Publisher
def publisher
@publisher ||= Publisher.new(self)
end
# Public: Prefix a given path with the source directory.
#
# paths - (optional) path elements to a file or directory within the
# source directory
#
# Returns a path which is prefixed with the source directory.
def in_source_dir(*paths)
paths.reduce(source) do |base, path|
Jekyll.sanitized_path(base, path)
end
end
# Public: Prefix a given path with the destination directory.
#
# paths - (optional) path elements to a file or directory within the
# destination directory
#
# Returns a path which is prefixed with the destination directory.
def in_dest_dir(*paths)
paths.reduce(dest) do |base, path|
Jekyll.sanitized_path(base, path)
end
end
private
def has_relative_page?
pages.any? { |page| page.uses_relative_permalinks }
end
def has_yaml_header?(file)
!!(File.open(file, 'rb') { |f| f.read(5) } =~ /\A---\r?\n/)
end
# Limits the current posts; removes the posts which exceed the limit_posts
#
# Returns nothing
def limit_posts!
limit = posts.length < limit_posts ? posts.length : limit_posts
self.posts = posts[-limit, limit]
if limit_posts > 0
limit = posts.docs.length < limit_posts ? posts.docs.length : limit_posts
self.posts.docs = posts.docs[-limit, limit]
end
end
# Returns the Cleaner or creates a new Cleaner if it doesn't
# already exist.
#
# Returns The Cleaner
def site_cleaner
@site_cleaner ||= Cleaner.new(self)
end
def sanitize_filename(name)
name.gsub!(/[^\w\s_-]+/, '')
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
name.gsub(/\s+/, '_')
end
def publisher
@publisher ||= Publisher.new(self)
end
end
end

View File

@@ -3,17 +3,22 @@ module Jekyll
# The cache of last modification times [path] -> mtime.
@@mtimes = Hash.new
attr_reader :relative_path, :extname
# Initialize a new StaticFile.
#
# site - The Site.
# base - The String path to the <source>.
# dir - The String path between <source> and the file.
# name - The String filename of the file.
def initialize(site, base, dir, name)
def initialize(site, base, dir, name, collection = nil)
@site = site
@base = base
@dir = dir
@name = name
@collection = collection
@relative_path = File.join(*[@dir, @name].compact)
@extname = File.extname(@name)
end
# Returns source file path.
@@ -21,23 +26,30 @@ module Jekyll
File.join(*[@base, @dir, @name].compact)
end
# Returns the source file path relative to the site source
def relative_path
@relative_path ||= path.sub(/\A#{@site.source}/, '')
end
# Obtain destination path.
#
# dest - The String path to the destination dir.
#
# Returns destination file path.
def destination(dest)
File.join(*[dest, @dir, @name].compact)
@site.in_dest_dir(*[dest, destination_rel_dir, @name].compact)
end
def destination_rel_dir
if @collection
File.dirname(url)
else
@dir
end
end
def modified_time
@modified_time ||= File.stat(path).mtime
end
# Returns last modification time for this file.
def mtime
File.stat(path).mtime.to_i
modified_time.to_i
end
# Is source path modified?
@@ -47,6 +59,14 @@ module Jekyll
@@mtimes[path] != mtime
end
# Whether to write the file to the filesystem
#
# Returns true unless the defaults for the destination path from
# _config.yml contain `published: false`.
def write?
defaults.fetch('published', true)
end
# Write the static file to the destination directory (if modified).
#
# dest - The String path to the destination dir.
@@ -61,6 +81,7 @@ module Jekyll
FileUtils.mkdir_p(File.dirname(dest_path))
FileUtils.rm(dest_path) if File.exist?(dest_path)
FileUtils.cp(path, dest_path)
File.utime(@@mtimes[path], @@mtimes[path], dest_path)
true
end
@@ -75,10 +96,46 @@ module Jekyll
def to_liquid
{
"path" => relative_path,
"modified_time" => mtime.to_s,
"extname" => File.extname(relative_path)
"extname" => extname,
"modified_time" => modified_time,
"path" => File.join("", relative_path)
}
end
def placeholders
{
collection: @collection.label,
path: relative_path[
@collection.relative_directory.size..relative_path.size],
output_ext: '',
name: '',
title: '',
}
end
# Applies a similar URL-building technique as Jekyll::Document that takes
# the collection's URL template into account. The default URL template can
# be overriden in the collection's configuration in _config.yml.
def url
@url ||= if @collection.nil?
relative_path
else
::Jekyll::URL.new({
template: @collection.url_template,
placeholders: placeholders,
})
end.to_s.gsub /\/$/, ''
end
# Returns the type of the collection if present, nil otherwise.
def type
@type ||= @collection.nil? ? nil : @collection.label.to_sym
end
# Returns the front matter defaults defined for the file's URL and/or type
# as defined in _config.yml.
def defaults
@defaults ||= @site.frontmatter_defaults.all url, type
end
end
end

View File

@@ -4,9 +4,11 @@ module Jekyll
include Liquid::StandardFilters
# The regular expression syntax checker. Start with the language specifier.
# Follow that by zero or more space separated options that take one of two
# forms: name or name=value
SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+\w+(=\w+)?)*)$/
# Follow that by zero or more space separated options that take one of three
# forms: name, name=value, or name="<quoted list>"
#
# <quoted list> is a space-separated list of numbers
SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+\w+(=(\w+|"([0-9]+\s)*[0-9]+"))?)*)$/
def initialize(tag_name, markup, tokens)
super
@@ -14,8 +16,14 @@ module Jekyll
@lang = $1.downcase
@options = {}
if defined?($2) && $2 != ''
$2.split.each do |opt|
# Split along 3 possible forms -- key="<quoted list>", key=value, or key
$2.scan(/(?:\w="[^"]*"|\w=\w|\w)+/) do |opt|
key, value = opt.split('=')
# If a quoted list, convert to array
if value && value.include?("\"")
value.gsub!(/"/, "")
value = value.split
end
@options[key.to_sym] = value || true
end
end
@@ -34,26 +42,46 @@ eos
def render(context)
prefix = context["highlighter_prefix"] || ""
suffix = context["highlighter_suffix"] || ""
code = super.to_s.strip
code = super.to_s.gsub(/\A(\n|\r)+|(\n|\r)+\z/, '')
output = case context.registers[:site].highlighter
when 'pygments'
render_pygments(code)
when 'rouge'
render_rouge(code)
else
render_codehighlighter(code)
end
is_safe = !!context.registers[:site].safe
output =
case context.registers[:site].highlighter
when 'pygments'
render_pygments(code, is_safe)
when 'rouge'
render_rouge(code)
else
render_codehighlighter(code)
end
rendered_output = add_code_tag(output)
prefix + rendered_output + suffix
end
def render_pygments(code)
require 'pygments'
@options[:encoding] = 'utf-8'
def sanitized_opts(opts, is_safe)
if is_safe
Hash[[
[:startinline, opts.fetch(:startinline, nil)],
[:hl_lines, opts.fetch(:hl_lines, nil)],
[:linenos, opts.fetch(:linenos, nil)],
[:encoding, opts.fetch(:encoding, 'utf-8')],
[:cssclass, opts.fetch(:cssclass, nil)]
].reject {|f| f.last.nil? }]
else
opts
end
end
highlighted_code = Pygments.highlight(code, :lexer => @lang, :options => @options)
def render_pygments(code, is_safe)
Jekyll::External.require_with_graceful_fail('pygments')
highlighted_code = Pygments.highlight(
code,
:lexer => @lang,
:options => sanitized_opts(@options, is_safe)
)
if highlighted_code.nil?
Jekyll.logger.error "There was an error highlighting your code:"
@@ -66,26 +94,26 @@ eos
raise ArgumentError.new("Pygments.rb returned an unacceptable value when attempting to highlight some code.")
end
highlighted_code
highlighted_code.sub('<div class="highlight"><pre>', '').sub('</pre></div>', '')
end
def render_rouge(code)
require 'rouge'
Jekyll::External.require_with_graceful_fail('rouge')
formatter = Rouge::Formatters::HTML.new(line_numbers: @options[:linenos], wrap: false)
lexer = Rouge::Lexer.find_fancy(@lang, code) || Rouge::Lexers::PlainText
code = formatter.format(lexer.lex(code))
"<div class=\"highlight\"><pre>#{code}</pre></div>"
formatter.format(lexer.lex(code))
end
def render_codehighlighter(code)
"<div class=\"highlight\"><pre>#{h(code).strip}</pre></div>"
h(code).strip
end
def add_code_tag(code)
# Add nested <code> tags to code blocks
code = code.sub(/<pre>\n*/,'<pre><code class="language-' + @lang.to_s.gsub("+", "-") + '" data-lang="' + @lang.to_s + '">')
code = code.sub(/\n*<\/pre>/,"</code></pre>")
code.strip
code_attributes = [
"class=\"language-#{@lang.to_s.gsub('+', '-')}\"",
"data-lang=\"#{@lang.to_s}\""
].join(" ")
"<figure class=\"highlight\"><pre><code #{code_attributes}>#{code.chomp}</code></pre></figure>"
end
end

View File

@@ -1,3 +1,5 @@
# encoding: UTF-8
module Jekyll
module Tags
class IncludeTagError < StandardError
@@ -11,12 +13,10 @@ module Jekyll
class IncludeTag < Liquid::Tag
SYNTAX_EXAMPLE = "{% include file.ext param='value' param2='value' %}"
attr_reader :includes_dir
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
VARIABLE_SYNTAX = /(?<variable>\{\{\s*(?<name>[\w\-\.]+)\s*(\|.*)?\}\})(?<params>.*)/
INCLUDES_DIR = '_includes'
VARIABLE_SYNTAX = /(?<variable>[^{]*\{\{\s*(?<name>[\w\-\.]+)\s*(\|.*)?\}\}[^\s}]*)(?<params>.*)/
def initialize(tag_name, markup, tokens)
super
@@ -28,6 +28,11 @@ module Jekyll
@file, @params = markup.strip.split(' ', 2);
end
validate_params if @params
@tag_name = tag_name
end
def syntax_example
"{% #{@tag_name} file.ext param='value' param2='value' %}"
end
def parse_params(context)
@@ -59,7 +64,7 @@ Invalid syntax for include tag. File contains invalid characters or sequences:
Valid syntax:
#{SYNTAX_EXAMPLE}
#{syntax_example}
eos
end
@@ -75,7 +80,7 @@ Invalid syntax for include tag:
Valid syntax:
#{SYNTAX_EXAMPLE}
#{syntax_example}
eos
end
@@ -89,32 +94,50 @@ eos
# Render the variable if required
def render_variable(context)
if @file.match(VARIABLE_SYNTAX)
partial = Liquid::Template.parse(@file)
partial = context.registers[:site].liquid_renderer.file("(variable)").parse(@file)
partial.render!(context)
end
end
def tag_includes_dir(context)
context.registers[:site].config['includes_dir'].freeze
end
def render(context)
dir = File.join(File.realpath(context.registers[:site].source), INCLUDES_DIR)
site = context.registers[:site]
@includes_dir = tag_includes_dir(context)
dir = resolved_includes_dir(context)
file = render_variable(context) || @file
validate_file_name(file)
path = File.join(dir, file)
validate_path(path, dir, context.registers[:site].safe)
validate_path(path, dir, site.safe)
# Add include to dependency tree
if context.registers[:page] and context.registers[:page].has_key? "path"
site.regenerator.add_dependency(
site.in_source_dir(context.registers[:page]["path"]),
path
)
end
begin
partial = Liquid::Template.parse(source(path, context))
partial = site.liquid_renderer.file(path).parse(read_file(path, context))
context.stack do
context['include'] = parse_params(context) if @params
partial.render!(context)
end
rescue => e
raise IncludeTagError.new e.message, File.join(INCLUDES_DIR, @file)
raise IncludeTagError.new e.message, File.join(@includes_dir, @file)
end
end
def resolved_includes_dir(context)
context.registers[:site].in_source_dir(@includes_dir)
end
def validate_path(path, dir, safe)
if safe && !realpath_prefixed_with?(path, dir)
raise IOError.new "The included file '#{path}' should exist and should not be a symlink"
@@ -124,23 +147,34 @@ eos
end
def path_relative_to_source(dir, path)
File.join(INCLUDES_DIR, path.sub(Regexp.new("^#{dir}"), ""))
File.join(@includes_dir, path.sub(Regexp.new("^#{dir}"), ""))
end
def realpath_prefixed_with?(path, dir)
File.exist?(path) && File.realpath(path).start_with?(dir)
end
def blank?
false
# This method allows to modify the file content by inheriting from the class.
def read_file(file, context)
File.read(file, file_read_opts(context))
end
end
class IncludeRelativeTag < IncludeTag
def tag_includes_dir(context)
'.'.freeze
end
# This method allows to modify the file content by inheriting from the class.
def source(file, context)
File.read(file, file_read_opts(context))
def page_path(context)
context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"])
end
def resolved_includes_dir(context)
context.registers[:site].in_source_dir(page_path(context))
end
end
end
end
Liquid::Template.register_tag('include', Jekyll::Tags::IncludeTag)
Liquid::Template.register_tag('include_relative', Jekyll::Tags::IncludeRelativeTag)

View File

@@ -3,16 +3,22 @@ module Jekyll
class PostComparer
MATCHER = /^(.+\/)*(\d+-\d+-\d+)-(.*)$/
attr_accessor :date, :slug
attr_reader :path, :date, :slug, :name
def initialize(name)
all, path, date, slug = *name.sub(/^\//, "").match(MATCHER)
raise ArgumentError.new("'#{name}' does not contain valid date and/or title") unless all
@slug = path ? path + slug : slug
@date = Time.parse(date)
@name = name
all, @path, @date, @slug = *name.sub(/^\//, "").match(MATCHER)
raise ArgumentError.new("'#{name}' does not contain valid date and/or title.") unless all
@name_regex = /^#{path}#{date}-#{slug}\.[^.]+/
end
def ==(other)
other.basename.match(@name_regex)
end
def deprecated_equality(other)
date = Utils.parse_date(name, "'#{name}' does not contain valid date and/or title.")
slug == post_slug(other) &&
date.year == other.date.year &&
date.month == other.date.month &&
@@ -26,11 +32,11 @@ module Jekyll
#
# Returns the post slug with the subdirectory (relative to _posts)
def post_slug(other)
path = other.name.split("/")[0...-1].join("/")
path = other.basename.split("/")[0...-1].join("/")
if path.nil? || path == ""
other.slug
other.data['slug']
else
path + '/' + other.slug
path + '/' + other.data['slug']
end
end
end
@@ -53,12 +59,25 @@ eos
def render(context)
site = context.registers[:site]
site.posts.each do |p|
site.posts.docs.each do |p|
if @post == p
return p.url
end
end
# New matching method did not match, fall back to old method
# with deprecation warning if this matches
site.posts.docs.each do |p|
if @post.deprecated_equality p
Jekyll::Deprecator.deprecation_message "A call to '{{ post_url #{@post.name} }}' did not match " +
"a post using the new matching method of checking name " +
"(path-date-slug) equality. Please make sure that you " +
"change this tag to match the post's name exactly."
return p.url
end
end
raise ArgumentError.new <<-eos
Could not find post "#{@orig_post}" in tag 'post_url'.

Some files were not shown because too many files have changed in this diff Show More