Compare commits

...

5585 Commits
book ... v3.0.4

Author SHA1 Message Date
Parker Moore
6dfae84da2 Release 💎 3.0.4 2016-04-18 14:00:25 -07:00
Parker Moore
c1c2884b9e Release 💎 v3.0.4 2016-04-18 13:58:24 -07:00
Parker Moore
0c8208afd7 Merge pull request #4806 from jekyll/3.0-stable-defaults
3.0.x: Fix defaults for Documents (posts/collection docs)
2016-04-18 13:48:21 -07:00
Parker Moore
2cd308aa00 test_document: scopes are based on relative_path 2016-04-18 13:12:40 -07:00
Parker Moore
64f2fcf37d Document#read: frontmatter.all should get relative_path not URL 2016-04-18 12:57:33 -07:00
Florian Thomas
10cefca2a2 add failing test for scope values in subdirs
ref #4458
2016-04-18 12:56:29 -07:00
Parker Moore
27f1ada057 Merge pull request #4753 from jekyll/parkr/permalink-fix
Configuration: allow users to specify a collections.posts.permalink directly
2016-04-13 01:03:27 -04:00
Parker Moore
1c0b6c5f6c Site#site_payload: sort collections by label 2016-04-08 10:50:58 -07:00
Parker Moore
726378cf59 Configuration#add_default_collections: fix bug where DEFAULTS['collections'] is modified 2016-04-08 10:49:37 -07:00
Parker Moore
18c62cde98 Add Configuration.from & use in Jekyll.configuration.
This process streamlines the creation of new configurations. Creating a new
site will choke if not all the correct options are given.
Configuration.from will ensure the overrides have all string keys and
ensures all the common issues & defaults are in place so a Site can be
created.

A common use:

    config = Configuration.from({ 'permalink' => '/:title/' }) # etc
    site = Jekyll::Site.new(config)
2016-04-08 10:16:16 -07:00
Parker Moore
02e8e671fb Remove use of Marshal in runtime code. 2016-04-04 14:45:09 -07:00
Parker Moore
440026adf6 Add tests for Configuration#add_default_collections 2016-04-04 13:56:40 -07:00
Parker Moore
275c08fa34 Don't read a config file if the filename is empty. 2016-04-04 13:13:23 -07:00
Parker Moore
50577b5839 Use Marshal to duplicate configuration defaults to prevent manipulation 2016-04-04 13:13:06 -07:00
Parker Moore
f2beef33e6 Refactor some tests to prevent manipulation of Jekyll::Config::DEFAULTS 2016-04-04 13:12:30 -07:00
Parker Moore
88a07674b6 Only write collections.posts.permalink if permalink is set. 2016-04-04 11:49:24 -07:00
Parker Moore
9ff7e549bf Test#build_configs shouldn't overwrite default collections 2016-04-04 11:49:10 -07:00
Parker Moore
b98a6fe5d8 Configuration: allow users to specify a collections.posts.permalink directly instead of overwriting with permalink 2016-04-04 09:23:59 -07:00
Parker Moore
d0e00ca12d Release 💎 3.0.3 2016-02-08 11:01:54 -08:00
Parker Moore
fe17a79e03 Merge pull request #4498 from jekyll/3.0.3-release
Release v3.0.3
2016-02-08 11:00:56 -08:00
Parker Moore
fdae8ce148 By me! 2016-02-08 11:00:30 -08:00
Parker Moore
53b781bbd1 Release v3.0.3 2016-02-08 10:47:22 -08:00
Parker Moore
c87a060ae8 Merge pull request #4493 from jekyll/fix-extension-weirdness
Fix extension weirdness with folders
2016-02-08 10:36:13 -08:00
Parker Moore
3f0e34b398 update pre-existing tests to align with changes 2016-02-08 10:00:13 -08:00
Parker Moore
7211ca9270 Add tests for non-html inputs being output as html 2016-02-08 09:36:46 -08:00
Parker Moore
9f8a4bc486 Fix extension weirdness with folders 2016-02-07 18:03:45 -08:00
Parker Moore
c2a75dee36 Merge pull request #4468 from jekyll/escape-the-tildes
Jekyll.sanitized_path: escape tildes before sanitizing a questionable path
2016-02-07 17:25:43 -08:00
Parker Moore
1f8e8f6b34 Merge pull request #4479 from jekyll/only-exclude-on-excluded
EntryFilter: only include 'excluded' log on excluded files
2016-02-05 15:02:19 -08:00
Parker Moore
888eb90f6f EntryFilter: only include 'excluded' log on excluded files 2016-02-05 13:28:27 -08:00
Parker Moore
4508e91a02 only prefix the path if it starts with a tilde 2016-02-03 15:22:11 -08:00
Parker Moore
1363492425 Jekyll.sanitized_path: escape tildes before sanitizing a questionable path 2016-02-03 13:25:31 -08:00
Parker Moore
599ad5b754 Merge pull request #4453 from jekyll/set-linenumbers-3.0
LiquidRenderer#parse: parse with line numbers.
2016-02-02 17:01:23 -08:00
Parker Moore
cdf169df94 Merge pull request #4446 from jekyll/fix-cmp
Document#<=>: protect against nil comparison in dates.
2016-02-02 17:01:10 -08:00
Parker Moore
d91a4eb266 LiquidRenderer#parse: parse with line numbers. 2016-02-02 14:45:03 -08:00
Parker Moore
a8afa8a65d Document#<=>: protect against nil comparison in dates. 2016-02-02 10:48:24 -08:00
Parker Moore
c538d80c54 Also release docs. 2016-01-20 14:15:47 -08:00
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
Parker Moore
579d9fc813 Update history to reflect merge of #2477 [ci skip] 2014-06-23 19:11:17 -04:00
Parker Moore
dc074fcc50 Merge pull request #2477 from jekyll/serve-skip-initial-build 2014-06-23 19:06:10 -04:00
Parker Moore
5d95267c4a Update history to reflect merge of #2495 [ci skip] 2014-06-23 19:04:40 -04:00
Parker Moore
69fdd45459 Merge pull request #2495 from jekyll/latest-liquid 2014-06-23 19:04:19 -04:00
Parker Moore
d3370bf596 Update history to reflect merge of #2493 [ci skip] 2014-06-23 19:03:50 -04:00
Parker Moore
d359c63018 Merge pull request #2493 from jekyll/fix-sort 2014-06-23 19:02:54 -04:00
Parker Moore
a9376f0a41 Update history to reflect merge of #2511 [ci skip] 2014-06-23 19:01:55 -04:00
Parker Moore
e75dcc18f1 Merge pull request #2511 from denilsonsa/patch-1 2014-06-23 19:01:31 -04:00
Parker Moore
7da0cfd0d8 Update history to reflect merge of #2524 [ci skip] 2014-06-23 19:00:38 -04:00
Parker Moore
b0e51e2cba Merge pull request #2524 from jekyll/all-html-files 2014-06-23 18:59:57 -04:00
Parker Moore
a762956000 Update history to reflect merge of #2531 [ci skip] 2014-06-23 18:59:10 -04:00
Parker Moore
e58c1ee306 Merge pull request #2531 from jekyll/merge-post-categories 2014-06-23 18:58:51 -04:00
Parker Moore
fd3ceb60c8 Update history to reflect merge of #2535 [ci skip] 2014-06-23 18:56:04 -04:00
Parker Moore
4c04420a51 Merge pull request #2535 from simonsarris/master 2014-06-23 18:54:11 -04:00
Parker Moore
e345ceb01a Update history to reflect merge of #2536 [ci skip] 2014-06-21 12:56:09 -04:00
Parker Moore
f3e4157698 Merge pull request #2536 from letuboy/master 2014-06-21 12:55:37 -04:00
Paul Henry
1a99b241ca nil parsed in yaml is just a string, should be explicit 2014-06-20 17:13:21 -07:00
Simon Sarris
74f0f27d18 Before copying file, explicitly remove the old one
On Windows, FileUtils.cp(path, dest_path) will fail with a Permission
Denied if the dest_path already exists and is read-only. People have
complained about this since at least 2008.

This lets `jekyll build` work without error in Windows when one or more
read-only files exist.

This change will accommodate users of Team Foundation, which uses the
read-only flag for for source control status. (dumb, I know, but but a
real problem)
2014-06-19 18:25:00 -04:00
Parker Moore
5846cc7b70 No private methods in LogAdapter. 2014-06-19 17:11:04 -04: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
Parker Moore
35ed101651 Add test for the concatenation of categories 2014-06-18 18:19:28 -04:00
Parker Moore
99cc12cc0a Merge file system categories with categories from YAML.
Fixes #2527
2014-06-18 18:10:07 -04:00
Parker Moore
21c7f2298a Update history to reflect merge of #2526 [ci skip] 2014-06-17 19:57:26 -04:00
Parker Moore
9da73b5222 Merge pull request #2526 from AlessandroLorenzi/master 2014-06-17 19:57:03 -04:00
Alessandro Lorenzi
db97d40f5e Add Piwigo Gallery plugin 2014-06-18 01:16:58 +02:00
Parker Moore
a78b5c2f8d Include files with a url which ends in / in the site.html_pages list
https://github.com/jekyll/jekyll-sitemap/issues/27
2014-06-17 15:18:41 -04:00
Parker Moore
df33ff7462 Update history to reflect merge of #2514 [ci skip] 2014-06-14 16:43:02 -04:00
Parker Moore
f589e11419 Merge pull request #2514 from penibelst/docs-compress 2014-06-14 16:34:54 -04:00
Anatol Broder
db462a181c Add link to jekyll-compress-html 2014-06-14 12:10:09 +02:00
Denilson Sá
b42e29c5a7 Fixing tests. 2014-06-13 03:50:02 -03:00
Denilson Figueiredo de Sá
cc734930c6 Making highlight behave more like redcarpet
See issue 2510 for details.
2014-06-13 03:31:38 -03:00
Parker Moore
11f9c22e56 Update history to reflect merge of #2419 [ci skip] 2014-06-12 20:38:50 -04:00
Parker Moore
d59b2c3ef6 Merge pull request #2419 from jens-na/collection-defaults 2014-06-12 20:38:21 -04:00
Parker Moore
116c00595c Update history to reflect the closing of #2504. [ci skip] 2014-06-12 00:40:54 -04:00
Parker Moore
8fb29a3af3 Bump pygments.rb to 0.6.0.
Closes #2504.
2014-06-12 00:40:15 -04:00
Parker Moore
202c459413 Update history to reflect merge of #2485 [ci skip] 2014-06-09 18:54:24 -04:00
Parker Moore
dd3e9806af Merge pull request #2485 from tomer/patch-2 2014-06-09 18:53:50 -04:00
Tomer Cohen
411cdb29a1 Change Github/Twitter keywords to site.{twitter,github}_username
Re: https://github.com/jekyll/jekyll/pull/2485/files#r13525347
2014-06-10 00:00:01 +03:00
Parker Moore
1005976a22 Bump to the latest Liquid version, 2.6.1 2014-06-09 02:18:25 -04:00
Parker Moore
504f30e045 Badger badger badger badger [ci skip] 2014-06-09 02:17:29 -04:00
Parker Moore
808f5dc452 Update history to reflect merge of #2494 [ci skip] 2014-06-08 22:11:12 -04:00
Parker Moore
b7d7f6d877 Merge pull request #2494 from penibelst/remove-coveralls 2014-06-08 22:11:01 -04:00
Anatol Broder
df334e809e Remove coverage reporting with Coveralls 2014-06-09 02:35:55 +02:00
Parker Moore
ade601ab81 Site: Don't allow the img to be larger than the containing obj. [ci skip]
/cc @penibelst
2014-06-08 19:45:14 -04:00
Parker Moore
50b04cdf92 Use raise instead of logging & aborting 2014-06-08 19:33:45 -04:00
Parker Moore
ccee1b6a55 Try item#to_liquid before looking at the data 2014-06-08 19:33:37 -04:00
Parker Moore
27c9fce15b Update history to reflect merge of #2492 [ci skip] 2014-06-08 19:30:14 -04:00
Parker Moore
c2fd35c687 Merge pull request #2492 from jekyll/upgrade-listen 2014-06-08 19:29:46 -04:00
Parker Moore
7e0bbf8161 Upgrade listen to 2.7.6 <= x < 3.0.0 2014-06-08 19:09:51 -04:00
Tomer Cohen
35f5bb0039 Default entries for twitter/github usernames 2014-06-07 11:16:43 +03:00
Tomer Cohen
ffd960ca4e Allow usage of different Twitter and Github usernames
and show these links only if twitter-username or github.username are set on _config.yml
2014-06-07 11:08:34 +03:00
Parker Moore
c881d24553 Add parens to issue #. [ci skip] 2014-06-06 23:12:57 -04:00
Parker Moore
290b0ea14b Update history to reflect merge of #2459 [ci skip] 2014-06-06 23:12:30 -04:00
Parker Moore
ccf97a62f1 Merge pull request #2459 from ivantsepp/watch_ignore_files 2014-06-06 23:11:44 -04:00
Parker Moore
d7d8dabb40 Update history to reflect merge of #2479 [ci skip] 2014-06-05 23:32:10 -04:00
Parker Moore
9d8b32c935 Merge pull request #2479 from kitsched/patch-1 2014-06-05 23:30:07 -04:00
János Rusiczki
19532cae88 Add link to JAPR. 2014-06-05 08:53:16 +03:00
Parker Moore
37e4a5ddae Update history to reflect merge of #2476 [ci skip] 2014-06-04 16:48:35 -04:00
Parker Moore
8792e509d7 Merge pull request #2476 from jekyll/stickermule-post 2014-06-04 16:48:11 -04:00
Parker Moore
b5b1ca068d Add "Other News" section for News sidebar on site 2014-06-04 16:47:24 -04:00
Parker Moore
ecdf6c2213 Add img to StickerMule post. 2014-06-04 16:43:01 -04:00
Parker Moore
8b272b0bf0 Post about StickerMule discount. 2014-06-04 16:02:15 -04:00
Ivan Tse
6684a8f914 Refactor logic into Command class. Add tests. 2014-06-04 14:23:40 -04:00
Parker Moore
50fee0275c Update history to reflect merge of #2436 [ci skip] 2014-06-04 14:20:36 -04:00
Parker Moore
4e26874298 Merge pull request #2436 from budparr/documenttoliquid 2014-06-04 14:16:22 -04:00
Parker Moore
b126159360 Skip initial build of site on serve with flag.
Adds --skip-initial-build flag to jekyll-serve, which serves the destination
immediately rather than waiting for the site to be built.

Fixes #1252.
2014-06-03 13:30:14 -04:00
Bud Parr
dc622470c9 add test for collection name 2014-06-02 15:12:21 -04:00
Parker Moore
63eba6c634 Update history to reflect merge of #2470 [ci skip] 2014-06-02 15:07:24 -04:00
Parker Moore
2f70dd7015 Merge pull request #2470 from XhmikosR/https 2014-06-02 15:06:47 -04:00
Bud Parr
441ac3742c remove extra space 2014-06-02 15:05:03 -04:00
Bud Parr
90bc9314f1 change label to collection
To make it clear the label is of the document's collection
2014-06-02 14:32:52 -04:00
XhmikosR
3ee02c1433 Use https for GitHub links.
The `http` links already redirect to `https` anyway.
2014-06-02 10:09:08 +03:00
Bud Parr
ff02e12389 Merge branch 'documenttoliquid' of https://github.com/budparr/jekyll into documenttoliquid 2014-06-01 22:36:24 -04:00
Bud Parr
69aae64133 Merge branch 'documenttoliquid' of https://github.com/budparr/jekyll into documenttoliquid
Conflicts:
lib/jekyll/document.rb
2014-06-01 22:36:20 -04:00
Bud Parr
00ab79b7cf add collection.label to Document#to_liquid 2014-06-01 21:45:23 -04:00
Jens Nazarenus
467945bedb Fixes the extra indentation in cucumber test 2014-06-01 22:21:31 +02:00
Jens Nazarenus
460d9c1c44 Adds an example how to use frontmatter defaults with collections 2014-06-01 22:21:31 +02:00
Jens Nazarenus
ae67940544 Adds the missing tests for #2405 2014-06-01 22:21:31 +02:00
Jens Nazarenus
497c10897f Passes the url to FrontmatterDefaults.all instead of full path 2014-06-01 22:21:31 +02:00
Jens Nazarenus
e868a8437f Includes tests for frontmatter defaults in documents 2014-06-01 22:21:31 +02:00
Jens Nazarenus
c8786b7b28 Adds default front-matter support for collecitons 2014-06-01 22:21:31 +02:00
Parker Moore
7a9bc641ee Update history to reflect merge of #2469 [ci skip] 2014-06-01 14:36:43 -04:00
Parker Moore
781e606e5a Merge pull request #2469 from jekyll/extract-gist-tag 2014-06-01 14:36:19 -04:00
Parker Moore
3c1c8c397f Jekyll-gist 1.0. 💥 2014-06-01 14:25:13 -04:00
Parker Moore
ed87454ff8 Remove tests for gists. 2014-06-01 14:01:57 -04:00
Parker Moore
7977769d91 Test our RC1 of jekyll-gist. 2014-06-01 14:01:47 -04:00
Parker Moore
879abc0949 Externalize the {% gist %} tag as the jekyll-gist gem. 2014-06-01 13:18:00 -04:00
Parker Moore
f9bbe8ed58 Update history to reflect merge of #2468 [ci skip] 2014-06-01 11:16:49 -04:00
Parker Moore
46c99e6c87 Merge pull request #2468 from rob-murray/add_link_to_version_plugin 2014-06-01 11:16:23 -04:00
Rob Murray
d34d4cbc37 Add link to Jekyll Project Version Tag plugin 2014-06-01 12:04:49 +01:00
Parker Moore
4dd208a2b3 Fix link to jekyll-import docs 2014-05-30 18:19:44 -04:00
Parker Moore
bce2d5242c Update history to reflect merge of #2444 [ci skip] 2014-05-30 18:17:26 -04:00
Parker Moore
83fb1fd0f6 Merge pull request #2444 from createdbypete/configurable-logger 2014-05-30 18:16:47 -04:00
Parker Moore
39ee223ef8 Update history to reflect merge of #2439 [ci skip] 2014-05-30 18:15:33 -04:00
Parker Moore
4e37b51749 Merge pull request #2439 from tschmidt/update-configuration-documentation 2014-05-30 18:14:52 -04:00
Parker Moore
85c07ce47b Update history to reflect merge of #2438 [ci skip] 2014-05-30 18:03:10 -04:00
Parker Moore
041f727fe3 Merge pull request #2438 from pathawks/spicy-feed 2014-05-30 18:02:25 -04:00
Parker Moore
3f8ee8dc93 Update history to reflect closing of #2464. [ci skip] 2014-05-30 18:01:18 -04:00
Parker Moore
6849d6a5e5 If rouge isn't there, say so.
In the previous version, it would say 'redcarpet' wasn't installed,
due to the rescue LoadError block on line 93. This change will tell
the user that, in fact, rouge isn't installed and that this is the
cause of the error, not that redcarpet isn't installed.

Fixes #2464.
https://github.com/jekyll/jekyll/issues/2464
2014-05-30 17:59:47 -04:00
Parker Moore
2d0ba26497 Update history to reflect merge of #2458 [ci skip] 2014-05-30 11:36:19 -04:00
Parker Moore
e9ac432e0f Merge pull request #2458 from karouf/cleaner-empty-dirs 2014-05-30 11:35:35 -04:00
Terry Schmidt
42cc3cac21 Changes to help clarify defaults in site config vs front-matter 2014-05-30 09:54:07 -05:00
Renaud Martinet
a324eafac4 Using implicit returns to conform to coding style 2014-05-30 08:46:31 +02:00
Parker Moore
6203224f3e Update history to reflect merge of #2463 [ci skip] 2014-05-29 18:55:52 -04:00
Parker Moore
df40dc46bb Merge pull request #2463 from bwillis/patch-1 2014-05-29 18:55:22 -04:00
Ben
8f9b0424b6 Add jekyll_github_sample plugin 2014-05-29 13:05:37 -07:00
Ivan Tse
c4434f27af Get relative paths of directories to ignore
Use `Pathname#realpath` to get absolute paths so that
`Pathname#relative_path_from` will not raise an exception. Also add the
config files to this list.
2014-05-28 01:16:34 -04:00
Ivan Tse
6ba077cf37 Remove Command.globs method
It is no longer being used.
2014-05-28 01:15:07 -04:00
Parker Moore
3893004f5e Update history to reflect merge of #2457 [ci skip] 2014-05-27 16:45:39 -04:00
Parker Moore
ba5922f468 Merge pull request #2457 from marcransome/master 2014-05-27 16:44:49 -04:00
Renaud Martinet
72c410363c Keep parents of directories in keep_files
Closes #1297
2014-05-27 21:11:17 +02:00
Marc Ransome
3b41a44050 Fixing help command in deprecation warning 2014-05-27 18:42:44 +01:00
Renaud Martinet
04baeefaa8 Make sure Cleaner doesn't remove dirs if they only contain subdirs
Closes #2204
2014-05-27 18:06:52 +02:00
Terry Schmidt
4dcb877ff9 Tweak front-matter vs site configuration per comments from @parkr on jekyll/jekyll#2439 2014-05-27 10:14:28 -05:00
Parker Moore
a68fb9d0b6 Update history to reflect merge of #2437 [ci skip] 2014-05-26 22:06:59 -04:00
Parker Moore
671a62e0fe Merge pull request #2437 from pathawks/date_to_rfc822 2014-05-26 22:06:33 -04:00
Parker Moore
0f7d4f57d8 Update history to reflect merge of #2455 [ci skip] 2014-05-26 22:03:37 -04:00
Parker Moore
6b9a443c05 Merge pull request #2455 from jekyll/extract-pagination-generator 2014-05-26 22:03:16 -04:00
Parker Moore
4414c70b87 Bump to jekyll-paginate 1.0.0 2014-05-26 21:08:03 -04:00
Parker Moore
9e4ef3cbff Add the paginator as a plugin: jekyll-paginate 2014-05-26 20:09:33 -04:00
Parker Moore
62129d9a2f Output Jekyll output if ENV['DEBUG'] exists 2014-05-26 20:09:13 -04:00
Peter Rhoades
4bdf4197db Rocket style hash and switching integers for Logger severity constants 2014-05-25 23:19:29 +01:00
Parker Moore
e5b7373298 Add link to #jekyll on irc.freenode.net 2014-05-25 00:41:14 -04:00
Parker Moore
c2fcf53e53 Update link to "Migrate" in README 2014-05-25 00:41:01 -04:00
Peter Rhoades
e6345f39a9 Renaming LogWriter to LogAdapter and adding tests for class
String coloring moved to Stevenson as not responsibility of LogAdapter
2014-05-24 21:22:10 +01:00
Peter Rhoades
4a73e099b7 Allow Jekyll's logger to be set to any Logger compatible instance
* Stevenson now inherits from Logger and extends some methods to use $stderr
for log messages greater than info level.
* LogWriter provides an interface between Jekyll and Logger to maintain API.
2014-05-24 15:00:14 +01:00
Terry
a0595a00e8 Update explanation of the site front-matter defaults section 2014-05-23 10:03:14 -05:00
Pat Hawks
bd836d88af Spice up site_template feed 2014-05-23 09:42:12 -05:00
Pat Hawks
43074632b3 Take advantage of date_to_rfc822
Jekyll has a filter built just for this purpose
2014-05-23 09:34:49 -05:00
Bud Parr
2e2aac5988 add label to document section of collections page 2014-05-22 21:30:40 -04:00
Bud Parr
f623404b89 add collection.label to Document#to_liquid 2014-05-22 21:19:47 -04:00
Parker Moore
8d65c9c92f Relax PATCH level in .travis.yml for ruby versions.
Ruby is now using SEMVER. Relaxing to 2.0 and 2.1 gives them the freedom to
release new patches and for us to take advantage of them without modifying
this file.
https://www.ruby-lang.org/en/news/2013/12/21/semantic-versioning-after-2-1-0/
2014-05-21 01:40:34 -04:00
Parker Moore
6b971f7200 Remove dependencies list from README. [ci skip]
We have a gemspec for that.
2014-05-21 01:16:33 -04:00
Parker Moore
eaf02f5a79 Update history to reflect merge of #2373 [ci skip] 2014-05-21 01:11:26 -04:00
Parker Moore
b9c3d8ba03 Merge pull request #2373 from tschmidt/handle-categories-in-site-config-defaults 2014-05-21 01:10:37 -04:00
Parker Moore
c0e333af53 Update history to reflect merge of #2389 [ci skip] 2014-05-21 01:10:11 -04:00
Parker Moore
f416c686af Merge pull request #2389 from kleinfreund/patch-1 2014-05-21 01:09:54 -04:00
Parker Moore
581f34dced Update history to reflect merge of #2395 [ci skip] 2014-05-21 01:09:27 -04:00
Parker Moore
3c6377d665 Merge pull request #2395 from rdumont/data-subdirectories 2014-05-21 01:09:15 -04:00
Parker Moore
b178960704 Update history to reflect merge of #2431 [ci skip] 2014-05-21 01:07:24 -04:00
Parker Moore
65275e5841 Merge pull request #2431 from jekyll/remove-collections-from-layouts 2014-05-21 01:07:01 -04:00
Parker Moore
e37b3ca8e1 Any assets read in as Pages shall not be rendered or layout'd 2014-05-21 00:52:21 -04:00
Parker Moore
1241f2debd Update history to reflect merge of #2418 [ci skip] 2014-05-20 22:52:50 -04:00
Parker Moore
5aefaa1c48 Merge pull request #2418 from mathbruyen/collections_permalink 2014-05-20 22:52:29 -04:00
Parker Moore
c7fb38b606 Update history to reflect merge of #2420 [ci skip] 2014-05-20 22:36:12 -04:00
Parker Moore
7e05b6e0b3 Merge pull request #2420 from albertogg/fix-encoding-issue 2014-05-20 22:35:50 -04:00
Alberto Grespan
879184fe37 Update unescaped string test
Nothing was being tested without explicitly making the string
encoding ASCII.
2014-05-20 17:04:08 -04:30
Parker Moore
cbe7e3e80e Don't place asset files or yaml files in layouts
Ref: #2402
2014-05-20 17:11:34 -04:00
Parker Moore
ebd87bfb78 WE WANT DOCS! Plz. ❤️ 2014-05-20 16:52:22 -04:00
Parker Moore
beeca433ae Update history to reflect merge of #2424 [ci skip] 2014-05-20 15:36:18 -04:00
Parker Moore
d3f9427e37 Merge pull request #2424 from kleinfreund/patch-2 2014-05-20 15:35:47 -04:00
Terry Schmidt
c76e41d157 Update Utils#pluralized_array_from_hash and Utils#value_from_singular_key per suggestion from @parkr
Switched to using the `#tap` method for more concise code. Also returning the value from
`value_from_singular_key` instead of returning an array wrapped presentation of the value.
This allows for a one-liner in `pluralized_array_from_hash`.
2014-05-20 12:32:59 -05:00
Parker Moore
f695603dec Merge pull request #2430 from ivantsepp/doc_fix
Extra period in collections documentation
2014-05-20 12:13:22 -04:00
Parker Moore
5bb7c7eb9a Update history to reflect merge of #2429 [ci skip] 2014-05-20 12:13:01 -04:00
Parker Moore
395d65454c Merge pull request #2429 from jshawl/code-overflow-fix 2014-05-20 12:12:36 -04:00
Ivan Tse
27381b7f07 Remove extra period. [ci skip] 2014-05-20 09:58:43 -04:00
Jesse shawl
e7c4fa0e5f Prevent code overflowing container 2014-05-20 09:51:57 -04:00
Alberto Grespan
7ce849a2b6 Revert changes and add encoding to the test file
* Add encoding to the test file as Ruby 1.9.3 doesn’t defaults to utf-8.
* Remove the forced encoding as encode seems too aggressive.
2014-05-20 00:03:40 -04:30
Parker Moore
a07f690509 Update history to reflect merge of #2406 [ci skip] 2014-05-20 00:16:58 -04:00
Parker Moore
54fba9af4b Merge pull request #2406 from yihangho/config-yaml 2014-05-20 00:15:58 -04:00
Alberto Grespan
2a1054b1a8 Change test to make it pass in Ruby 1.9.3 2014-05-19 22:08:14 -04:30
Alberto Grespan
77cef764d6 Force encoding before escaping or unescaping
This will reassure not having any errors when escaping or
unescaping.
2014-05-19 18:50:25 -04:30
Alberto Grespan
2f3390750d Add tests to validate encoding of URLs
Added tests to validate the encoding of returned URL strings
after been escaped or unescaped.
2014-05-19 18:45:47 -04:30
Philipp Rudloff
936a00a974 Prevent table from extending parent width
The table containing the _Permalink style examples_ [in the docs](http://jekyllrb.com/docs/permalinks/#permalink-style-examples) extends the width of the content container.

The solution I propose is a bit dirty, because I remove `permalink: ` in the left column to make the table fit.

Another way would be using `white-space: normal;` for code inside tables. That would lead to _ugly_ line-breaks within the code.

What do you think?
2014-05-19 16:41:33 +02:00
Yihang Ho
658a4d0b47 Try to load _config.yaml if _config.yml is nonexistent. 2014-05-19 09:06:55 +08:00
Parker Moore
5b281a06d6 Update history to reflect merge of #2421 [ci skip] 2014-05-18 15:29:51 -04:00
Parker Moore
45c9b82fb3 Merge pull request #2421 from chezou/fix-broken-link 2014-05-18 15:29:09 -04:00
Chezou
755088dbf0 Fix broken link on installation.md 2014-05-19 00:13:40 +09:00
Alberto Grespan
9932eb667b Encode URLs in utf-8 when escaping and unescaping
There is a problem while returning a path that has some special and possible Non-ASCII characters that may lead jekyll to break while doing the unescaping process. This is can be addressed by “forcing” ASCII to UTF-8.
2014-05-17 17:53:40 -04:30
Mathieu Bruyen
921dbe0547 Override collection url template 2014-05-17 10:40:52 +02:00
Parker Moore
ab679cbe26 Update history to reflect merge of #2417 [ci skip] 2014-05-17 00:54:29 -04:00
Parker Moore
4147e92561 Merge pull request #2417 from jekyll/jekyll-env 2014-05-17 00:53:55 -04:00
Parker Moore
3413c96845 Add test for Jekyll.env 2014-05-17 00:47:03 -04:00
Parker Moore
780cff46b3 Add jekyll.environment to site_payload. 2014-05-17 00:38:21 -04:00
Parker Moore
5d6f6b0571 Update history to reflect merge of #2377 [ci skip] 2014-05-16 03:51:12 -04:00
Parker Moore
04b0fe0160 Merge pull request #2377 from jekyll/numeric 2014-05-16 03:50:50 -04:00
Parker Moore
4d1c84aa2b date_to_xmlschema does some weird things with timezones, but whatever it's not important. 2014-05-16 03:42:35 -04:00
Jordon Bedwell
1c11afd78d Fix #2413 and setup a Jekyll.env. 2014-05-15 16:28:37 -05:00
Parker Moore
8b5fe24cb2 Update history to reflect merge of #2408 [ci skip] 2014-05-15 12:38:33 -04:00
Parker Moore
ba905a2c18 Merge pull request #2408 from quinn/patch-1 2014-05-15 12:37:56 -04:00
Parker Moore
bd51b250be Update history to reflect merge of #2411 [ci skip] 2014-05-15 12:37:28 -04:00
Parker Moore
996bf25aee Merge pull request #2411 from mathbruyen/patch-1 2014-05-15 12:37:02 -04:00
Parker Moore
2a5336b93a Update history to reflect merge of #2410 [ci skip] 2014-05-15 12:33:25 -04:00
Parker Moore
b54f4e830a Merge pull request #2410 from XhmikosR/master 2014-05-15 12:33:03 -04:00
Mathieu Bruyen
a38ea51994 Header links to pages which have a title
Header used to add link to all pages of the site, even those which do not have any title, creating empty anchors on the page like `<a class="page-link" href="/feed.xml"></a>`. Those were non click-able and used space on the page due to margins.

Now only displays pages with a title.
2014-05-15 08:59:29 +02:00
XhmikosR
7053e468cf Update Font Awesome to v4.1.0. 2014-05-15 09:41:38 +03:00
Quinn Shanahan
5ea62443f4 override EXCERPT_ATTRIBUTES_FOR_LIQUID
Allow EXCERPT_ATTRIBUTES_FOR_LIQUID to be overridden by inheriting class. Right now will always reference Jekyll::Post::EXCERPT_ATTRIBUTES_FOR_LIQUID. This is already being used in the codebase for ATTRIBUTES_FOR_LIQUID.
2014-05-14 13:39:16 -04:00
Parker Moore
8fc1e4b5ea Update history to reflect merge of #2401 [ci skip] 2014-05-12 13:20:58 -04:00
Parker Moore
da6d781768 Merge pull request #2401 from jdavis/patch-1 2014-05-12 13:20:41 -04:00
Josh Davis
11e3217ec1 Remove broken link in extras.md, closes #2400 2014-05-12 11:57:54 -05:00
Rodrigo Dumont
12a8be0b98 Add scenario for ensuring data folder over file precedence 2014-05-12 13:47:41 -03:00
Parker Moore
6286b6cd76 Update history to reflect merge of #2387 [ci skip] 2014-05-12 11:53:37 -04:00
Parker Moore
e7b8123141 Merge pull request #2387 from jaybe-jekyll/doc_updates 2014-05-12 11:52:35 -04:00
jaybe@jekyll
fc7f724529 Remove Quickstart' Default Markdown Section
Remove default Markdown section from Quickstart documentation page as
it is redundant and unnecessary at this time. #2387
2014-05-12 10:48:31 -05:00
Rodrigo Dumont
418c978b91 Add _data sub-folder support to docs 2014-05-12 11:21:31 -03:00
Parker Moore
89c782051b Update history to reflect merge of #2368 [ci skip] 2014-05-12 01:11:36 -04:00
Parker Moore
31d7afc987 Merge pull request #2368 from XhmikosR/master 2014-05-12 01:11:15 -04:00
Parker Moore
2f1138cd11 Update history to reflect merge of #2394 [ci skip] 2014-05-11 19:39:37 -04:00
Parker Moore
8068702c15 Merge pull request #2394 from penibelst/fix-dates 2014-05-11 19:38:40 -04:00
Rodrigo Dumont
604fb3286c Allow subdirectories in _data 2014-05-11 20:28:49 -03:00
Anatol Broder
a5b3104b0c Change timezone to Los Angeles 2014-05-12 00:47:54 +02: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
Parker Moore
8f90ba82a4 Update history to reflect merge of #2393 [ci skip] 2014-05-11 16:42:30 -04:00
Parker Moore
9bd6c98320 Merge pull request #2393 from createdbypete/quieter-build-command 2014-05-11 16:42:06 -04:00
Peter Rhoades
6465cd6446 Setting log_level earlier to silence info level configuration output. 2014-05-11 21:14:10 +01:00
Philipp Rudloff
5e2c03635f Adding to pagination note: Cannot include collections
Adding a sentence to the paragraph to clarify, that pagination is restricted to posts and that it can't contain collections.
2014-05-11 22:14:03 +02:00
Philipp Rudloff
a9cf8c4c04 Add collections to info about pagination support.
Currently: _Pagination does not support tags or categories_
Proposed: _Pagination does not support tags, categories or collections_

Maybe in the future? Related: #2376
2014-05-11 10:10:06 +02:00
jaybe@jekyll
3233005a0a Update Quickstart re: kramdown default
Update Quickstart documentation to reflect Jekyll’ 2.0 default of
kramdown Markdown engine versus Redcarpet.
2014-05-10 23:47:48 -05:00
Parker Moore
d34f1d2c1a Update history to reflect merge of #2384 [ci skip] 2014-05-10 20:52:04 -04:00
Parker Moore
c68d83bce7 Merge pull request #2384 from penibelst/test-sort-utf8 2014-05-10 20:51:21 -04:00
Anatol Broder
7cd95734df Fix coding for 1.9.3 2014-05-11 02:22:58 +02:00
Anatol Broder
06cebb0816 Add ascii+utf8 sort. Props @ixti 2014-05-11 01:34:09 +02:00
Anatol Broder
b2f30f5bee Test Russian and Hebrew sort 2014-05-11 01:06:35 +02:00
Parker Moore
ab990933a2 Update history to reflect merge of #2383 [ci skip] 2014-05-10 16:15:18 -04:00
Parker Moore
9a635f0ce3 Merge pull request #2383 from kleinfreund/patch-1 2014-05-10 16:14:37 -04:00
Philipp Rudloff
7756adc75c Fixing spacing issue for code inside pre
Regular (one-line) code inside a `code` tag has some padding around it. This leads to some weird spacing when dealing with code blocks (e.g. inside `pre`).

Removing the horizontal paddings for these. (Also replacing `border: none;` with `border: 0;` because it's shorter)
2014-05-10 22:05:21 +02:00
Parker Moore
5e9b22fbb2 Update history to reflect merge of #2345 [ci skip] 2014-05-10 15:44:35 -04:00
Parker Moore
01c09fd7fa Merge pull request #2345 from penibelst/sort-collection 2014-05-10 15:42:53 -04:00
XhmikosR
af53111070 Include anchor_links before the end closing body tag. 2014-05-10 21:02:45 +03:00
XhmikosR
cba586f06f Update anchor_links.html.
* fix `TypeError` when we are in home
* remove default type and encoding
* format the code
2014-05-10 21:02:45 +03:00
Parker Moore
af9f1e6f48 Accept Numeric values for dates. 2014-05-09 23:11:05 -04:00
Parker Moore
53b2e1372c Update history to reflect merge of #2374 [ci skip] 2014-05-09 15:40:11 -04:00
Parker Moore
aee7d7327f Merge pull request #2374 from albertogg/update-ruby 2014-05-09 15:39:46 -04:00
Alberto Grespan
03291eb5f4 Update CI to use Ruby 2.1.2 2014-05-09 14:43:59 -04:30
Terry Schmidt
0371b69952 Set categor[y|ies] on post if they appear in site frontmatter defaults 2014-05-09 13:34:13 -05:00
Terry Schmidt
6c22ae3759 Merge branch 'master' into handle-categories-in-site-config-defaults 2014-05-09 13:13:04 -05:00
Matt Rogers
56b64d688d Update history to reflect merge of #2369 [ci skip] 2014-05-09 12:33:50 -05:00
Matt Rogers
50065a2781 Merge pull request #2369 from jekyll/json-data 2014-05-09 12:33:48 -05:00
Ben Balter
1315112ab5 dot json; 2014-05-09 10:32:18 -04:00
Ben Balter
d3f9da7645 document json support 2014-05-09 10:30:36 -04:00
Ben Balter
5129a3ccc3 add tests for json data 2014-05-09 10:29:37 -04:00
Ben Balter
bf3a20b2d7 allow json files in _data dir 2014-05-09 10:13:12 -04:00
Anatol Broder
fb523722b5 Fruity variables 2014-05-09 09:21:24 +02:00
Anatol Broder
ab3aaebe6d Resolve second conflict 2014-05-09 08:59:46 +02:00
Anatol Broder
5dcd84b71b Resolve conflict 2014-05-09 08:56:04 +02:00
Anatol Broder
6c48e9bbdf Simplify config 2014-05-09 08:53:21 +02:00
Anatol Broder
7f1b916f32 Fix output 2014-05-09 08:53:21 +02:00
Anatol Broder
df3c163eeb Use item_property 2014-05-09 08:53:16 +02:00
Anatol Broder
d96f39360b Revert "Make it fail"
This reverts commit c89e7539b86a483a2f8b14dd766ad90da1eb9773.
2014-05-09 08:53:16 +02:00
Anatol Broder
fd1778203d Make it fail 2014-05-09 08:53:16 +02:00
Anatol Broder
9ba89b9ab1 Try item_property 2014-05-09 08:53:15 +02:00
Anatol Broder
d8e68bc0e1 No output needed 2014-05-09 08:53:07 +02:00
Anatol Broder
9f6965c1b5 Add scenario for sorting by title 2014-05-09 08:51:57 +02:00
Anatol Broder
ae7e485474 Add hash_property 2014-05-09 08:44:40 +02:00
Parker Moore
4f20d7ab24 Release 2.0.3 2014-05-08 23:15:37 -04:00
Parker Moore
68a39a1d92 Revert "Update history to reflect merge of #2365 [ci skip]"
This reverts commit 7d31d44047.
2014-05-08 23:15:25 -04:00
Parker Moore
7d31d44047 Update history to reflect merge of #2365 [ci skip] 2014-05-08 23:14:58 -04:00
Parker Moore
f95aba2f73 Merge pull request #2365 from jekyll/release-2-0-3 2014-05-08 23:14:50 -04:00
Parker Moore
f93de58f3b Link to the changelog. 2014-05-08 23:13:46 -04:00
Parker Moore
4e8ddd5fa3 Update history. 2014-05-08 23:12:44 -04:00
Parker Moore
5a0eb41d19 Add release post for v2.0.3 2014-05-08 23:12:30 -04:00
Parker Moore
036823cd06 Bump to 💎 v2.0.3 2014-05-08 22:43:04 -04:00
Parker Moore
2326c509c3 Update history to reflect merge of #2364 [ci skip] 2014-05-08 22:36:55 -04:00
Parker Moore
8ba2f770e9 Merge pull request #2364 from jekyll/save-from-errors 2014-05-08 22:36:24 -04:00
Parker Moore
2d040c1aaa Use Jekyll.logger for --watch error message. 2014-05-08 22:27:55 -04:00
Parker Moore
81ff5ed7aa Save --watch from errors.
Fixes #2355.
2014-05-08 22:22:11 -04:00
Parker Moore
70a06c9b59 Update site/docs/history.md for #2363. 2014-05-08 22:17:33 -04:00
Parker Moore
b2f3a07708 Update history to reflect merge of #2363 [ci skip] 2014-05-08 22:15:21 -04:00
Parker Moore
fb33f55670 Merge pull request #2363 from yizeng/history-markdown-fixes 2014-05-08 22:13:27 -04:00
Yi Zeng
53454a370b Re-rake history.md in site folder after fixes 2014-05-09 13:52:49 +12:00
Yi Zeng
c503424b42 Fix cases for few words in History.markdown 2014-05-09 13:45:08 +12:00
Yi Zeng
38e9dd1fd9 Apply inline code blocks when appropriate for some legacy history items.
Fix "--some_option" parsed incorrectly by kramdown.
2014-05-09 13:40:05 +12:00
Yi Zeng
2014d21dd2 Fix bullet points that are parsed incorrectly 2014-05-09 13:29:09 +12:00
Parker Moore
ee021a6a5d Update history to reflect merge of #2359 [ci skip] 2014-05-08 21:28:22 -04:00
Parker Moore
e278997750 Merge pull request #2359 from abroder/where-collection 2014-05-08 21:27:36 -04:00
Parker Moore
cd3f630fc5 Update history to reflect merge of #2353 [ci skip] 2014-05-08 21:10:54 -04:00
Parker Moore
c3b4ca7135 Merge pull request #2353 from gpxl/configuration-defaults-typo 2014-05-08 21:10:43 -04:00
Parker Moore
77e73d15af Update history to reflect merge of #2351 [ci skip] 2014-05-08 21:08:22 -04:00
Parker Moore
dd9e5668c2 Merge pull request #2351 from yizeng/#2349/fix-escaping 2014-05-08 21:08:04 -04:00
Aaron Broder
f68098c7fc Add test for using where filter on collections 2014-05-08 12:04:54 -07:00
Aaron Broder
a5c1a01965 Added item_property to where filter 2014-05-08 11:35:51 -07:00
gpxl
6a9db38006 Fix link to frontmatter defaults docs 2014-05-07 22:05:02 -07:00
Yi Zeng
db5fa3d15e Use symbol instead of HTML number in upgrading.md
Fix case #2349
2014-05-08 14:56:15 +12:00
Parker Moore
edfa1c8ecd Update history to reflect merge of #2342 [ci skip] 2014-05-07 17:25:26 -04:00
Parker Moore
08a87ae4a0 Merge pull request #2342 from jekyll/anchor-links 2014-05-07 17:25:03 -04:00
Parker Moore
6580374c4f Add newlines, duh. 2014-05-07 17:24:55 -04:00
Parker Moore
803e4ecc93 Update history to reflect merge of #2341 [ci skip] 2014-05-07 17:23:46 -04:00
Parker Moore
d30a2db1e8 Merge pull request #2341 from albertogg/fix-baseurl-default-in-docs 2014-05-07 17:23:26 -04:00
Parker Moore
106e323205 Add font-awesome web fonts. 2014-05-07 16:48:45 -04:00
Parker Moore
228d2c4c44 Use HTML and CSS we just created. 2014-05-07 16:48:38 -04:00
Parker Moore
24ed3e6e41 Add font-awesome & Ben's CSS 2014-05-07 16:48:31 -04:00
Parker Moore
72cb5cae1e Pure JavaScript for adding anchors. 2014-05-07 16:48:23 -04:00
Parker Moore
8641722b52 Use kramdown. 2014-05-07 16:47:11 -04:00
Alberto Grespan
4835bbbdb4 Fix baseurl default in the docs
Display the new baseurl default (commit: [97e9fb2](97e9fb29b0)) in the docs.
2014-05-07 15:50:34 -04:30
Parker Moore
9df239f2fd Update history to reflect the closing of #2339. 2014-05-07 15:59:27 -04:00
Parker Moore
348bcae763 If the input is a string but Time.parse can't parse it, maybe it's a UNIX timestamp.
Fixes #2339
2014-05-07 15:48:13 -04:00
Parker Moore
a6af5e26bc Require mercenary v0.3.3 or greater (below v0.4.0) 2014-05-07 15:36:54 -04:00
Parker Moore
23a9db1e4d Update history to reflect the closing of #2324. 2014-05-07 15:12:45 -04:00
Parker Moore
77c0249d72 Use site.title instead of site.name in site template
Fixes #2324.
2014-05-07 15:11:50 -04:00
Parker Moore
daaae974b3 Update site history. 2014-05-07 15:11:22 -04:00
Parker Moore
60f8f1477c Update history to reflect merge of #2337 [ci skip] 2014-05-07 15:01:34 -04:00
Parker Moore
fba56f2601 Merge pull request #2337 from sankage/grammar-slam 2014-05-07 15:01:14 -04:00
Parker Moore
8f0146c564 Update history to reflect fixing of #2334. 2014-05-07 15:00:30 -04:00
Parker Moore
f2f2ebfa4f Register subclasses of subclasses of Jekyll::Plugin
The Sass and SCSS converters are practically the same – only different in
the input syntax and file extension. As such, we've created
`Jekyll::Converters::Scss` which is a subclass of `Jekyll::Converter`, and
`Jekyll::Converters::Sass` which is a subclass of
`Jekyll::Converters::Scss`. When `Site#instantiate_classes` is called on
`Jekyll::Converter`, it only instantiates the `Scss` converter, not the
`Sass` converter. This change fixes that.

Fixes #2334.
2014-05-07 14:59:08 -04:00
David Briggs
cdb46f03f7 add missing 'as' 2014-05-07 14:53:55 -04:00
Parker Moore
0022e5a67e Update history to reflect the closing of #2325. 2014-05-07 14:02:18 -04:00
Parker Moore
8ad4dd332a Don't fail if any of the path objects are nil.
Fixes #2325
2014-05-07 14:01:36 -04:00
Parker Moore
8e5392e9d9 Update history to reflect merge of #2331 [ci skip] 2014-05-07 13:36:44 -04:00
Parker Moore
ac220ad38a Merge pull request #2331 from albertogg/fix-site-template-permalink 2014-05-07 13:34:49 -04:00
Alberto Grespan
da9b28d35c Fix site template permalink typo 2014-05-07 11:36:14 -04:30
Parker Moore
000880837e Update history to reflect merge of #2326 [ci skip] 2014-05-07 11:21:43 -04:00
Parker Moore
06bcd411d8 Merge pull request #2326 from iamgabeortiz/master 2014-05-07 11:20:40 -04:00
Gabe Ortiz
31ee99ea3e Merge pull request #1 from iamgabeortiz/gist.rb-doc-update
Update gist.rb comments only
2014-05-07 07:39:16 -04:00
Gabe Ortiz
21f84e1548 Update gist.rb comments only
Strictly updated the reference to Examples and Valid Syntax to be inline with jekyll/jekyll-help#32
2014-05-07 07:34:00 -04:00
Parker Moore
0614d2f966 Update history conversion so it works from MD ~> Website 2014-05-07 00:47:15 -04:00
Parker Moore
47649066b5 Remove unneeded method from Rakefile. 2014-05-07 00:44:20 -04:00
Parker Moore
8aadecf3ff Fix header for 2.0.2 so it's written to the website. 2014-05-07 00:43:21 -04:00
Parker Moore
e6a750204a Update history to reflect merge of #2319 [ci skip] 2014-05-07 00:39:58 -04:00
Parker Moore
0905b2c1e4 Merge pull request #2319 from jekyll/use-urls 2014-05-07 00:39:35 -04:00
Parker Moore
216f1150cd The last of the site template prepending. 2014-05-07 00:31:53 -04:00
Parker Moore
c71a4717dd Prepend url, too, in feed.xml. 2014-05-07 00:09:12 -04:00
Parker Moore
ac666490d2 Release 2.0.2 2014-05-06 23:59:49 -04:00
Parker Moore
3cc439a1cc Update history to reflect merge of #2316 [ci skip] 2014-05-06 23:57:53 -04:00
Parker Moore
92eaf42cad Merge pull request #2316 from holic/master 2014-05-06 23:57:28 -04:00
Parker Moore
97e9fb29b0 Default baseurl to "" rather than to "/"
Also a fix for #2317
2014-05-06 23:54:56 -04:00
Parker Moore
832860bcb5 Update history to reflect the fixing of #2317 2014-05-06 23:52:03 -04:00
Parker Moore
2dec333910 Set baseurl to nothing in new template site.
Previously, it caused all sorts of errors.
Fixes #2317.
2014-05-06 23:50:58 -04:00
Kevin Ingersoll
3498cc9947 Add a little clarity to docs 2014-05-07 14:48:35 +12:00
Parker Moore
b5dc628357 Update history to reflect merge of #2314 [ci skip] 2014-05-06 22:40:15 -04:00
Parker Moore
0fc990423b Merge pull request #2314 from troyswanson/gist-docs 2014-05-06 22:39:35 -04:00
Troy Swanson
0dffe26cfe Update docs for different gist behavior 2014-05-06 21:25:34 -05:00
Parker Moore
0a0d7858c6 Release 2.0.1 2014-05-06 21:57:33 -04:00
Parker Moore
64cce065e6 Require kramdown instead of maruku.
CRAP CRAP CRAP whoops.
2014-05-06 21:55:11 -04:00
Parker Moore
25b5651f9d Add some Google Analytics magic. 2014-05-06 21:31:05 -04:00
Parker Moore
d4bc707ba0 Release 2.0.0 2014-05-06 21:22:48 -04:00
Parker Moore
759ffb7b53 Merge pull request #2312 from jekyll/release-2.0.0 2014-05-06 21:20:53 -04:00
Parker Moore
0a5ca5aaf0 Rename 2.0.0 release post to match title. [ci skip] 2014-05-06 21:13:43 -04:00
Parker Moore
41b69d6c8a A year ago to the day. [ci skip] 2014-05-06 21:12:59 -04:00
Parker Moore
aef2134128 Remove unneeded tests for the sass converter plugin. 2014-05-06 21:09:51 -04:00
Parker Moore
13f19ea21a Update histories to reflect 2.0.0 release. 2014-05-06 21:06:27 -04:00
Parker Moore
344906deb9 Release 2.0.0. 2014-05-06 20:11:44 -04:00
Matt Rogers
e7e67ad235 Update history to reflect merge of #2299 [ci skip] 2014-05-06 16:49:44 -05:00
Matt Rogers
5c109ee8dc Merge pull request #2299 from penibelst/sort-nils 2014-05-06 16:49:40 -05:00
Anatol Broder
1e0d9f899b Follow Ruby Styleguide 2014-05-06 22:49:49 +02:00
Parker Moore
4f17080929 Update history to reflect merge of #2309 [ci skip] 2014-05-06 16:31:04 -04:00
Parker Moore
b6cfb8aa4f Merge pull request #2309 from jekyll/remove-unreleased-notes 2014-05-06 16:30:15 -04:00
Parker Moore
21ab72b4da Update history to reflect merge of #2310 [ci skip] 2014-05-06 16:29:49 -04:00
Parker Moore
875718f40c Merge pull request #2310 from jekyll/fix-get-cwd-error 2014-05-06 16:29:25 -04:00
Anatol Broder
19b0fe9781 Separate example codes [ci skip] 2014-05-06 22:00:28 +02:00
Parker Moore
c2d3f9d5b5 Close the file descriptor in has_yaml_header?
Previous method caused a problem where the calling Dir.chdir to get the next
directory's entries would cause the infamous 'Too many open files - getcwd'
error. Fixes #2279.
2014-05-06 15:58:25 -04:00
Anatol Broder
3a1c18ede2 Remove the hint aout type 2014-05-06 21:54:12 +02:00
Anatol Broder
2ee7e73531 Improve the description 2014-05-06 21:50:33 +02:00
Anatol Broder
dc0e577b44 Fix markup 2014-05-06 21:40:52 +02:00
Anatol Broder
7c1709fab4 Change nils argument to string 2014-05-06 21:36:13 +02:00
Parker Moore
ea054ef149 Add test for document.output.
Test for ref: 00f21ee93c
Closes #2232.
2014-05-06 15:27:13 -04:00
Anatol Broder
14e0abc4e2 Add documentation 2014-05-06 21:21:04 +02:00
Anatol Broder
558d0e8ac9 Add more strings tests 2014-05-06 21:07:09 +02:00
Parker Moore
fa27132025 Fix link to variables docs page 2014-05-06 14:52:02 -04:00
Parker Moore
00f21ee93c Add output to Document#to_liquid 2014-05-06 14:51:56 -04:00
Parker Moore
2468b9f45c Remove notes in docs for unreleased features. 2014-05-06 14:47:21 -04:00
Parker Moore
1f94ca786d Update history to reflect merge of #2303 [ci skip] 2014-05-06 14:40:43 -04:00
Parker Moore
6c1bb76316 Merge pull request #2303 from jekyll/jbranchaud-adding_exclude_tests 2014-05-06 14:40:18 -04:00
Parker Moore
9d205fe43c Update history to reflect merge of #2298 [ci skip] 2014-05-06 14:37:43 -04:00
Parker Moore
d2c5668baa Merge pull request #2298 from jekyll/release-post 2014-05-06 14:36:58 -04:00
Parker Moore
857bcf924a Update history to reflect merge of #2307 [ci skip] 2014-05-06 14:30:58 -04:00
Parker Moore
0d85592085 Merge pull request #2307 from jekyll/obey-stevenson 2014-05-06 14:27:57 -04:00
Parker Moore
72bb9b3d0a Update history to reflect merge of #2304 [ci skip] 2014-05-06 13:22:22 -04:00
Parker Moore
7a9c77fad7 Merge pull request #2304 from XhmikosR/html5shiv 2014-05-06 13:22:09 -04:00
Parker Moore
5614942c60 Update history to reflect merge of #2305 [ci skip] 2014-05-06 13:18:36 -04:00
Parker Moore
3440fb86c8 Merge pull request #2305 from XhmikosR/master 2014-05-06 13:18:25 -04:00
Parker Moore
b2c62c4b4d Update history to reflect merge of #2306 [ci skip] 2014-05-06 13:17:32 -04:00
Parker Moore
a00b031cd9 Merge pull request #2306 from XhmikosR/mobile-nav 2014-05-06 13:17:18 -04:00
Parker Moore
5d827ac40e No more relative permalinks! Fix for a test. 2014-05-06 13:16:51 -04:00
Parker Moore
ba8783190b Fix test for new command's output. 2014-05-06 13:16:41 -04:00
Parker Moore
4c55c77c04 Using stderr instead of stdout 2014-05-06 13:15:19 -04:00
Parker Moore
a7776f8279 Set relative_permalinks to false to deprecate! 2014-05-06 13:04:12 -04:00
Parker Moore
2aa8908948 Stevenson now uses symbols instead of integers to set log level 2014-05-06 13:03:56 -04:00
XhmikosR
3120414e10 Use black color for the mobile navbar.
It looks cleaner on the white background.
2014-05-06 20:03:50 +03:00
Parker Moore
63e959e4e1 Use Jekyll.logger, never puts 2014-05-06 13:02:35 -04:00
Parker Moore
fda3461c5a We deprecated relative permalinks in 2.0 2014-05-06 13:02:17 -04:00
XhmikosR
067b137ed9 Use the built in date filter for the copyright year. 2014-05-06 19:57:23 +03:00
Parker Moore
413de3a0ee Also exclude an entry if it starts with one of the items given in the exclude key. 2014-05-06 12:46:41 -04:00
jbranchaud
e4c3a8d0df Adding two new test cases for exclude configuration use cases. 2014-05-06 12:43:44 -04:00
XhmikosR
9da5e74287 Update html5shiv to v3.7.2. 2014-05-06 19:35:51 +03:00
Parker Moore
caeca36a40 Update history to reflect merge of #2127 [ci skip] 2014-05-06 12:33:10 -04:00
Parker Moore
a854a6a709 Merge pull request #2127 from XhmikosR/css 2014-05-06 12:32:52 -04:00
Parker Moore
1a38207faf Add docs for site.documents.
Ref: #2295.
2014-05-06 12:31:33 -04:00
Parker Moore
3eafb29eb8 Update history to reflect merge of #2295 [ci skip] 2014-05-06 12:29:42 -04:00
Parker Moore
c8a715d09b Merge pull request #2295 from jekyll/add-documents-listing 2014-05-06 12:28:58 -04:00
Parker Moore
79fb587135 Update history to reflect merge of #2300 [ci skip] 2014-05-06 12:28:24 -04:00
Parker Moore
6f336c182c Merge pull request #2300 from kzykbys/myPluginDescription 2014-05-06 12:28:05 -04:00
Parker Moore
b2d7938cec Speak English properly. 2014-05-06 12:18:00 -04:00
Parker Moore
5bf4098356 Update history to reflect merge of #2301 [ci skip] 2014-05-06 12:14:50 -04:00
Parker Moore
0087143b88 Merge pull request #2301 from TheTomThorogood/short_year_permalink 2014-05-06 12:14:25 -04:00
Anatol Broder
9c9e96cfa7 Add lexicographical sort test 2014-05-06 07:48:33 +02:00
Parker Moore
3755437d08 Write test for site.documents. 2014-05-06 00:11:35 -04:00
kzykbys
d002ebd373 Add Deprecated articles keeper plugin 2014-05-05 20:58:09 -07:00
Parker Moore
851d17e028 Update history to reflect merge of #2297 [ci skip] 2014-05-05 23:46:41 -04:00
Parker Moore
581b07d096 Add docs about custom markdown processor 2014-05-05 23:45:18 -04:00
Parker Moore
2f660674c3 Add docs for group_by and where filters 2014-05-05 23:37:25 -04:00
Parker Moore
f1a00a01cf Give them a 1/4" hole, which is what they want 2014-05-05 23:37:17 -04:00
Parker Moore
7056da079d Add list of 2.0.0 contributors. 2014-05-05 22:41:37 -04:00
Parker Moore
6b54b715d7 MAXIMUM NOSTALGIA 2014-05-05 22:38:37 -04:00
Parker Moore
4c3c3a3f90 group_by not sort_by 2014-05-05 13:33:23 -04:00
Parker Moore
fe69699146 Remove date, better title props @benbalter 2014-05-05 13:33:18 -04:00
Anatol Broder
cc80aab191 Add generic tests 2014-05-05 11:14:07 +02:00
Anatol Broder
12d9f8b02b Add scenario for ordering pages without title last 2014-05-05 10:49:29 +02:00
Anatol Broder
367a818c26 Fallback title based on time 2014-05-05 10:37:21 +02:00
Anatol Broder
3517b9f4e2 Add scenario 2014-05-05 10:35:19 +02:00
Anatol Broder
19e704f408 Override the sort filter 2014-05-05 10:26:46 +02:00
Parker Moore
491b3f8b1a Curse you, timezones. 2014-05-05 03:05:37 -04:00
Parker Moore
7f88f80d8e Add nostalgia. 2014-05-05 03:01:28 -04:00
Parker Moore
bcb88a4bc5 Add Jekyll 2.0.0 release post. 2014-05-05 03:00:00 -04:00
Parker Moore
cb22320ae6 Update history to reflect merge of #2268 [ci skip] 2014-05-04 21:23:47 -04:00
Parker Moore
d42ced5aa4 Merge pull request #2268 from jekyll/template-fixes 2014-05-04 21:23:17 -04:00
Parker Moore
fc98f06ed7 Refactor docs_to_write 2014-05-04 21:22:57 -04:00
Parker Moore
54b74fafba Add documents to site payload 2014-05-04 21:22:51 -04:00
Parker Moore
a2169bf0c4 Have separate methods for all docs and just the docs that are being written. 2014-05-04 21:19:09 -04:00
Ben Balter
a0bbf7703b make template site easier to customize 2014-05-04 21:07:23 -04:00
Parker Moore
693d1b84a8 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Change Gemnasium extension
  Change Fury extension
  Change Travis extension
2014-05-04 21:05:22 -04:00
Parker Moore
e04e11c84d Swap env of maruku and kramdown dependencies.
Maruku is now sunsetted, i.e. a dev dep, not a runtime dep.
Kramdown is now the default, i.e. a runtime dep, not a dev dep.
Closes #2285.
2014-05-04 21:05:14 -04:00
Parker Moore
7360f90e5e Merge pull request #2288 from penibelst/badges-svg
SVG Badges
2014-05-04 20:32:57 -04:00
TheTomThorogood
94ccd42c73 Add short_year description to /docs/permalinks/ 2014-05-05 00:12:51 +09:30
TheTomThorogood
f2849ac269 Add :short_year to url_placeholders 2014-05-05 00:12:07 +09:30
Parker Moore
8cad40a124 Update history to reflect merge of #2289 [ci skip] 2014-05-03 18:54:09 -04:00
Parker Moore
3af22f12bf Set content-type to text/html with utf-8 charset.
Fixes #2289
2014-05-03 18:51:55 -04:00
Parker Moore
adfd9091f8 Update history to reflect merge of #2292 [ci skip] 2014-05-03 18:27:00 -04:00
Parker Moore
9cd648a262 Merge pull request #2292 from mtcomscxstart/code-class-fix 2014-05-03 18:26:43 -04:00
Parker Moore
c0fa8702af Update history to reflect merge of #2290 [ci skip] 2014-05-03 18:21:04 -04:00
Parker Moore
98f9902839 Merge pull request #2290 from penibelst/travis-workaround 2014-05-03 18:15:08 -04:00
Anatol Broder
c48da38b14 Switch 2.1 to 2.1.1 2014-05-03 21:31:00 +02:00
Valery Tolstov
cf4304ab2b Update tests
Remove language literal from class in test/test_redcarpet.rb
2014-05-03 21:46:16 +04:00
Parker Moore
c3e858443f Update history to reflect merge of #2291 [ci skip] 2014-05-03 12:55:14 -04:00
Parker Moore
3d948a3624 Merge pull request #2291 from chezou/fix-typo-in-docs 2014-05-03 12:54:15 -04:00
Valery Tolstov
4ae8fefb95 Remove literal lang name from class, fix #2284
If code language is C classes for comment and language are the same
2014-05-03 20:23:28 +04:00
Chezou
c17bdf951d Fix typo in documentation 2014-05-03 22:42:50 +09:00
Anatol Broder
eade742b32 Switch to 2.1 2014-05-03 09:49:13 +02:00
Anatol Broder
e4b4b6e103 Change Gemnasium extension 2014-05-03 00:26:33 +02:00
Anatol Broder
ddda89c33e Change Fury extension 2014-05-03 00:25:34 +02:00
Anatol Broder
11dcdf4fef Change Travis extension 2014-05-03 00:23:50 +02:00
Parker Moore
bae479972f Add document.output to list of liquid vars in output.
CLoses #2232.
2014-05-02 11:24:18 -04:00
XhmikosR
346820d626 Simplify selectors. 2014-05-02 09:15:03 +03:00
XhmikosR
10f85eb856 Add missing vendor prefixed properties. 2014-05-02 09:15:03 +03:00
XhmikosR
63b45a993d Add fallback colors. 2014-05-02 09:15:03 +03:00
XhmikosR
0463399389 Remove duplicate properties. 2014-05-02 09:15:02 +03:00
XhmikosR
ecdeea22eb Remove units from zero. 2014-05-02 09:15:02 +03:00
XhmikosR
7fdcc1af18 Be explicit with the background property. 2014-05-02 09:15:02 +03:00
XhmikosR
5e85163b57 Use the shorthand font property when possible.
Conflicts:
	site/_includes/css/style.css
2014-05-02 09:15:01 +03:00
XhmikosR
a884a8a880 Move vendor prefixed properties before the unprefixed ones. 2014-05-02 09:15:01 +03:00
Parker Moore
267b8a037f Add an 'unreleased' note above Front-matter defaults.
Fixes #2280.
2014-04-30 17:23:12 -04:00
Parker Moore
bf924a7664 Update history to reflect merge of #2277 [ci skip] 2014-04-29 23:59:48 -04:00
Parker Moore
359d9ea439 Merge pull request #2277 from troyswanson/jekyll-help-relocation 2014-04-29 23:59:22 -04:00
Troy Swanson
76f71b6b37 Update URL for jekyll-help repo 2014-04-29 21:57:57 -05:00
Parker Moore
1b1e85c0b8 Update history to reflect merge of #2273 [ci skip] 2014-04-28 12:42:20 -04:00
Parker Moore
6be3084eac Merge pull request #2273 from jpiasetz/copy-rails-functions 2014-04-28 12:41:31 -04:00
John Piasetzki
3e6a6ffb52 Update util functions
Cribbed from http://api.rubyonrails.org/classes/Hash.html#method-i-symbolize_keys
2014-04-28 02:06:41 -04:00
Parker Moore
b5b55c90de Update history to reflect merge of #2154 [ci skip] 2014-04-28 00:02:15 -04:00
Parker Moore
c546269485 Merge pull request #2154 from jpiasetz/refactor-highlighter 2014-04-28 00:01:50 -04:00
John Piasetzki
cf81331b39 Revert back to an intialize more similar to the original 2014-04-27 23:21:00 -04:00
John Piasetzki
446ca8f73d Context is not used within any of the renders so no need to pass it 2014-04-27 23:21:00 -04:00
John Piasetzki
d6bd735aff Refactor highlighting
Extract some of the common logic from the renderers.
2014-04-27 23:20:00 -04:00
Parker Moore
494dd97775 Update history to reflect merge of #2269 [ci skip] 2014-04-27 19:16:04 -04:00
Parker Moore
49dd67432d Merge pull request #2269 from jekyll/fix-up-serve 2014-04-27 19:15:33 -04:00
Parker Moore
4a40187f8e Update jekyll-sass-converter to the latest RC
To see a detailed history of the changes, please visit https://github.com/jekyll/jekyll-sass-converter/compare/v1.0.0.rc3...v1.0.0.rc4

Notable change is that you can now set the style of the outputted Sass.
Ref: https://github.com/jekyll/jekyll-sass-converter/issues/3
2014-04-27 19:15:02 -04:00
Parker Moore
513e77635b Refactor 'jekyll serve' command. 2014-04-27 19:02:33 -04:00
Parker Moore
619772b5c8 Update history to reflect merge of #2264 [ci skip] 2014-04-27 15:59:40 -04:00
Parker Moore
bac4075128 Collections' "written" attribute has been changed to "output".
This is a follow-up to 068d921ef6.
2014-04-27 15:56:02 -04:00
Robin Dupret
3a610882f6 Avoid duplicated output using highlight tags
While using Rouge and an `highlight` tag, the output was duplicated
since the `output` variable in the Liquid tag definition was equal to
the highlighter's prefix value and the `<<` method changes its receiver.

Therefore, we should simply define an empty string and append the prefix
if it is present.
2014-04-27 12:22:40 +02:00
Parker Moore
cdeaa154cd Release 2.0.0.rc1 2014-04-25 23:16:07 -04:00
Parker Moore
4e6d268ef3 Bump 💎 version. 2014-04-25 23:16:00 -04:00
Parker Moore
068d921ef6 Fix up docs for collections.
#2238.
2014-04-25 23:15:18 -04:00
Parker Moore
f45b597e61 Update history to reflect merge of #2238 [ci skip] 2014-04-25 23:07:04 -04:00
Parker Moore
1d8fff706b Merge pull request #2238 from jekyll/fix-the-collections 2014-04-25 23:06:25 -04:00
Parker Moore
6225073095 Use the 'output' key instead of 'write' for writing out collections' document files. 2014-04-25 19:47:35 -04:00
Parker Moore
2ccf7f1cfb Run jekyll build in features (must give subcommand) 2014-04-25 13:04:56 -04:00
Parker Moore
a619ce3e9b Move link around for GitHub training site & source.
#2257.
2014-04-24 15:36:52 -04:00
Parker Moore
38276abe78 Update history to reflect merge of #2257 [ci skip] 2014-04-24 15:34:31 -04:00
Parker Moore
03a3a1a261 Merge pull request #2257 from stevenspasbo/master 2014-04-24 15:33:56 -04:00
Parker Moore
7ef857a0bc Fix syntax issue on Templates page with include example.
Fixes #2256 for the time being.
2014-04-24 14:08:33 -04:00
Parker Moore
d2b1d538bf Add test for collections' new #to_liquid sturff 2014-04-24 14:07:08 -04:00
Parker Moore
c906dfdf71 TEST THE COLLECTIONS 2014-04-24 14:01:23 -04:00
Parker Moore
dd4fe87f69 Use Hash.new instead of hash literal 2014-04-24 13:59:25 -04:00
Parker Moore
fb39b41ffb NO MORE DATA COLLECTION I CAN'T HANDLE IT 2014-04-24 13:59:25 -04:00
Parker Moore
764dc88832 script/test should probably use bundler 2014-04-24 13:59:24 -04:00
Parker Moore
b74c90dc20 Extract Collections metadata from site config 2014-04-24 13:59:24 -04:00
Parker Moore
0dc680df0b Always render collections, just don't always write them 2014-04-24 13:59:24 -04:00
Parker Moore
3a6ad0737c Add a script/test file for ❤️ and :money: 2014-04-24 13:59:24 -04:00
Parker Moore
7be78de93a Don't read the collection if it's the data collection 2014-04-24 13:59:24 -04:00
Parker Moore
f1a422dfff Don't pretend there is a collections setter 2014-04-24 13:59:24 -04:00
Parker Moore
a27e5825b9 Nil-out @collections so #collections will re-compile 2014-04-24 13:59:24 -04:00
Parker Moore
fd98d5b1e6 Fetch collection names agnostically regarding the data structure of config['collections'] 2014-04-24 13:59:24 -04:00
Parker Moore
330005d932 Reset the collections hash on #reset.
Fixes #2234.
2014-04-24 13:59:24 -04:00
Parker Moore
d379e3c012 Update history to reflect merge of #2258 [ci skip] 2014-04-23 14:01:00 -04:00
Parker Moore
bb079d6b39 Merge pull request #2258 from caffinatedmonkey/cucumber_cleanup 2014-04-23 14:00:26 -04:00
Martin Charles
f9375d5660 Cleaned up cucumbers 2014-04-23 13:40:21 -04:00
Steven Spasbo
73cba00687 Fixed broken link to github training material site 2014-04-23 08:32:15 -07:00
Parker Moore
0c3285ced7 Update history to reflect merge of #2253 [ci skip] 2014-04-22 14:57:04 -04:00
Parker Moore
54d0c63956 Merge pull request #2253 from jekyll/var-substitution 2014-04-22 14:56:30 -04:00
Parker Moore
4de2be8c5f Add Jekyll::LiquidExtensions.lookup_variable
To use, just include `Jekyll::LiquidExtensions` as you please:

```ruby
class SayHi < Liquid::Tag
  include Jekyll::LiquidExtensions

  def initialize(tag_name, markup, tokens)
    @markup = markup.strip
  end

  def render(context)
    "hi #{lookup_variable(context, @markup)}"
  end
end
```

Fixes #2071.
2014-04-22 14:27:47 -04:00
Parker Moore
68d491c40d Update history to reflect merge of #2205 [ci skip] 2014-04-21 23:01:47 -04:00
Parker Moore
9db5a1a6ce Merge pull request #2205 from jekyll/maul-esel-frontmatter-defaults 2014-04-21 23:01:05 -04:00
Parker Moore
49c0f9cccc Update history to reflect merge of #2250 [ci skip] 2014-04-20 16:02:50 -04:00
Parker Moore
8389e78ff3 Merge pull request #2250 from sheehamj13/patch-1 2014-04-20 16:02:16 -04:00
Matt Sheehan
6ba375401e Update plugins.md 2014-04-20 15:01:54 -04:00
Parker Moore
3c94b4d408 Update history to reflect merge of #2247 [ci skip] 2014-04-19 14:45:04 -04:00
Parker Moore
5b5065d293 Merge pull request #2247 from mrfoto/patch-1 2014-04-19 14:44:41 -04:00
Parker Moore
4da060ca52 Update history to reflect merge of #2244 [ci skip] 2014-04-19 14:19:21 -04:00
Parker Moore
702d5520d4 Merge pull request #2244 from jekyll/xml-escape-nil 2014-04-19 14:18:56 -04:00
Miha Rekar
fae267f72d rr has moved 2014-04-19 20:07:04 +02:00
Parker Moore
1e16ab4d26 end the ned 2014-04-19 12:35:58 -04:00
Ben Balter
e91a90899c do the do 2014-04-18 18:12:47 -04:00
Parker Moore
fa9c933773 Update history to reflect merge of #2243 [ci skip] 2014-04-18 17:47:46 -04:00
Parker Moore
810c160e4d Merge pull request #2243 from RadicalZephyr/master 2014-04-18 17:45:35 -04:00
Geoff Shannon
b07835b35c Reword slightly to fix typo
Also avoid using "you" as well
2014-04-18 14:09:17 -07:00
Ben Balter
4f7b1f3306 no -> not 2014-04-18 16:56:37 -04:00
Ben Balter
6f0bebdfda convert input to string before xml escaping 2014-04-18 16:54:48 -04:00
Geoff Shannon
1c8fef69aa Remove "tag" from the link
It looks super weird
2014-04-18 13:26:39 -07:00
Geoff Shannon
0b0d3b43a1 Add a to cross-reference about post_url
I had a really hard time finding this information on the Jekyll site,
and this seemed like a reasonable place to put a pointer to the
information.
2014-04-18 13:23:43 -07:00
Matt Rogers
22f7380abe Change the feature to not use page.name
Use `page.description` in the cucumber feature instead. `page.name`
isn't overridable anymore.
2014-04-15 20:15:16 -05:00
Parker Moore
571fb95cc1 Only read in 5 bytes when checking for YAML header.
#2211 #2210
2014-04-15 09:48:44 -04:00
Parker Moore
29fdc0946a Use +rb switches when reading in file for checking existence of YAML header.
Fixes #2228.
2014-04-15 09:46:53 -04:00
Parker Moore
5d6a07e060 Remove stray sentence from Collections doc page. 2014-04-14 23:19:42 -04:00
Parker Moore
b0cf022983 Release 2.0.0.alpha.3 2014-04-14 23:17:32 -04:00
Parker Moore
2a9c1a2cd2 Update history to reflect merge of #2199 [ci skip] 2014-04-14 23:14:26 -04:00
Parker Moore
cb4a7a52da Merge pull request #2199 from jekyll/collection-plate 2014-04-14 23:14:06 -04:00
Parker Moore
5a6f1d42a9 Fix #filtered_entries so it returns a new Array if the directory doesn't exist 2014-04-14 23:03:19 -04:00
Parker Moore
696aea211a Don't gather any entries if the collection directory doesn't exist 2014-04-14 22:56:23 -04:00
Parker Moore
ee29bf3939 Update docs around collections. 2014-04-14 22:46:22 -04:00
Parker Moore
a1af95c34e Clean up some code per @baweaver's suggestions. 2014-04-14 22:46:22 -04:00
Parker Moore
ad7efb23e6 Code/docs cleanup, props @baweaver 2014-04-14 22:46:22 -04:00
Parker Moore
af61451f87 Use #error instead of #warn when telling the user not to use a custom data source 2014-04-14 22:46:22 -04:00
Parker Moore
2f99e1d5c1 Fix test for non-collectionized sites still containing data coll 2014-04-14 22:46:22 -04:00
Parker Moore
62551b5ff9 Include data in the array of collections 2014-04-14 22:46:22 -04:00
Parker Moore
aa502348e5 Filter entries in the collection per EntryFilter#filter 2014-04-14 22:46:21 -04:00
Parker Moore
323ea0ef73 EntryFilter#special? should also check the base name of the entry 2014-04-14 22:46:21 -04:00
Parker Moore
f0e68d7d86 Expose collections as site.<collection_name> in Liquid as array of docs. 2014-04-14 22:46:21 -04:00
Parker Moore
00ca09a2ea Add comments for Document 2014-04-14 22:46:21 -04:00
Parker Moore
a307aff858 Do not render any asset files with Liquid. 2014-04-14 22:46:21 -04:00
Parker Moore
5ae1c34857 Add comments for Collection 2014-04-14 22:46:21 -04:00
Parker Moore
45120ad3eb Moar tests for collections. 2014-04-14 22:46:21 -04:00
Parker Moore
be769dcf00 SANITIZE THE collection name plz. 2014-04-14 22:46:21 -04:00
Parker Moore
d84cde1f7a Add docs for how the collections stuff is exposed via Liquid. 2014-04-14 22:46:21 -04:00
Ben Balter
aa2fb685d9 I am the King of Copy 2014-04-14 22:46:21 -04:00
Parker Moore
77bb678a3d Add some documentation 2014-04-14 22:46:21 -04:00
Parker Moore
37a7236e20 Homagah it all renders I think. 2014-04-14 22:46:21 -04:00
Parker Moore
a15a584136 Don't let that render get you down. 2014-04-14 22:46:21 -04:00
Parker Moore
75f49a751e OMG COLLECTIONS ARE RENDERING CALL THE POLICE 2014-04-14 22:46:21 -04:00
Parker Moore
7fef0302a7 Strike duplicate methods & :collection_name filler 2014-04-14 22:45:20 -04:00
Parker Moore
f082eca791 GUYS failing test for rendering 2014-04-14 22:45:20 -04:00
Parker Moore
c1c5cc78a5 Expect site.data stuff to be hashes 2014-04-14 22:44:29 -04:00
Parker Moore
cefe99bed2 Sort the docs based on path 2014-04-14 22:44:29 -04:00
Parker Moore
90807ac6e7 DEM TESTS 2014-04-14 22:44:29 -04:00
Parker Moore
08162dbb50 Hey girl, i heard you like YAML. 2014-04-14 22:44:29 -04:00
Parker Moore
50b46d7bee OMG it's happening ~*Collections*~ 2014-04-14 22:44:29 -04:00
Parker Moore
a77c92aebe Replace load-in of YAML data with Jekyll::Document logic.
COLLECTIONS IS COMING
2014-04-14 22:43:09 -04:00
Matt Rogers
f0d4fefb6a Update history to reflect merge of #1492 [ci skip] 2014-04-14 20:17:06 -05:00
Matt Rogers
6be33cf6ef Merge pull request #1492 from maul-esel/publishing 2014-04-14 20:17:01 -05:00
Parker Moore
91aa8e7637 We're not allowing custom data sources anymore. 2014-04-14 19:26:27 -04:00
Parker Moore
3f03c7a9d6 Update history to reflect merge of #2211 [ci skip] 2014-04-14 13:00:48 -04:00
Parker Moore
4f66db6c38 Merge pull request #2211 from jekyll/pgp-key-header-frontmatter 2014-04-14 12:59:59 -04:00
Ben Balter
658f418400 more explicit test description 2014-04-14 12:15:16 -04:00
Ben Balter
b666ac787b Stricter start of line check via \A 2014-04-11 15:15:37 -04:00
Ben Balter
387cf2181a use regex to verify yaml existence 2014-04-11 08:00:40 -04:00
Parker Moore
5068be3c27 Update history to reflect merge of #2216 [ci skip] 2014-04-08 09:00:59 -04:00
Parker Moore
02c668fa5d Merge pull request #2216 from szymzet/command-better-coverage 2014-04-08 09:00:31 -04:00
szymzet
89b3bec1b0 Add missing Command tests 2014-04-08 11:32:53 +02:00
Parker Moore
77d938065f Update history to reflect merge of #2215 [ci skip] 2014-04-08 00:45:10 -04:00
Parker Moore
ecc6bbb028 Merge pull request #2215 from jeffkole/page-collection-plugin 2014-04-08 00:44:46 -04:00
Jeff Kolesky
09da544145 Adds reference to jekyll-page-collections plugin 2014-04-07 15:00:09 -07:00
maul.esel
2804e08908 delete old superfluous tests; extend feature 2014-04-07 16:22:04 +02:00
maul.esel
1997281449 Add feature for the "--unsupported" flag
Also make step definitions a little more generic.
2014-04-07 16:22:04 +02:00
maul.esel
46a5ab99f9 Support "published: false" for pages
Fixes 1034.
2014-04-07 16:22:04 +02:00
maul.esel
3a330dc7fc Use Publisher instead of Post#published? 2014-04-07 16:20:13 +02:00
maul.esel
26663a6cf9 add the Publisher class to handle publishing logic 2014-04-07 16:17:51 +02:00
maul.esel
91e9ecfa63 Add an --unpublished option to render unpublished posts
Fixes #1337, #469.
2014-04-07 16:17:12 +02:00
maul.esel
eded314bb1 add a cucumber feature to test "published" for pages 2014-04-07 16:13:20 +02:00
Ben Balter
6c0f40385c add test for PGP key yaml frontmatter 2014-04-06 16:03:19 -04:00
Parker Moore
75854b5d0b Update history to reflect merge of #2214 [ci skip] 2014-04-06 13:37:06 -04:00
Parker Moore
b4a669ad76 Merge pull request #2214 from stomar/file-exists 2014-04-06 13:36:46 -04:00
Parker Moore
5f2709b410 Update history to reflect merge of #2213 [ci skip] 2014-04-06 13:36:16 -04:00
Parker Moore
c345dcdbc4 Merge pull request #2213 from XhmikosR/docs-favicon 2014-04-06 13:35:08 -04:00
Marcus Stollsteimer
fec6b59950 Use File.exist? instead of deprecated File.exists? 2014-04-06 13:31:34 +02:00
XhmikosR
e15fb54cc6 Slightly improve favicon.ico.
Trim the whitespace so that the tube looks bigger while maintaining the aspect ratio.
2014-04-06 09:17:14 +03:00
Ben Balter
823c863a53 require newline after start of yaml header 2014-04-05 17:34:08 -04:00
Parker Moore
955dc38400 Deep merge data overrides into defaults. 2014-04-05 15:42:53 -04:00
Parker Moore
c0358cb7b4 Remove duplicate entry in list of third-party plugins (#2206) 2014-04-04 19:17:23 -04:00
Parker Moore
51bb98c03a Update history to reflect merge of #2206 [ci skip] 2014-04-04 19:15:15 -04:00
Parker Moore
09c6ff4f9c Post#published is no longer a thing. 2014-04-04 15:34:42 -04:00
Parker Moore
6bd07501e8 Merge branch 'frontmatter-defaults' of git://github.com/maul-esel/jekyll into maul-esel-frontmatter-defaults
* 'frontmatter-defaults' of git://github.com/maul-esel/jekyll:
  move self.type to convertible
  oops, fix minor indentation quirk
  document frontmatter defaults precedence
  adjust frontmatter defaults precedence handling
  change cucumber feature to test for precedence too
  fix frontmatter defaults for custom paths
  more robust cucumber features
  fix slash handling for paths
  move cucumber features to own file
  fix minor docs quirk
  improve path checking, now using Pathname instead of regex
  Add site documentation for the new feature
  add inline code docs
  improve validation code
  fix for Ruby 1.8
  Add basic cucumber features for frontmatter defaults
  Retrieve frontmatter defaults when retrieved internally
  make frontmatter defaults available to liquid
  add a class `FrontmatterDefaults` for handling of frontmatter defaults
  Add a method to retrieve type to post, page and draft

Conflicts:
	lib/jekyll.rb
	lib/jekyll/convertible.rb
	lib/jekyll/core_ext.rb
	lib/jekyll/page.rb
	lib/jekyll/post.rb
2014-04-04 15:32:27 -04:00
Parker Moore
69a9ce214f Update history to reflect merge of #2189 [ci skip] 2014-04-02 22:38:49 -04:00
Parker Moore
f3c54fcf50 Merge pull request #2189 from benhanzl/move_rouge_loading 2014-04-02 22:38:05 -04:00
Parker Moore
a096f9af50 Update history to reflect merge of #2197 [ci skip] 2014-04-02 22:16:18 -04:00
Parker Moore
9ace48c835 Merge pull request #2197 from jekyll/plugin-manager 2014-04-02 22:15:40 -04:00
Parker Moore
1863057b7e Ok handle the plugins_path stuff in the PluginManager. 2014-04-02 22:06:38 -04:00
Parker Moore
4a4c8846f4 Fetching/determining the plugin path is beyond this it's kind of sad. 2014-04-02 21:59:15 -04:00
Parker Moore
0540a3351c Update history to reflect merge of #1823 [ci skip] 2014-04-02 21:51:50 -04:00
Parker Moore
122b2233b1 Merge pull request #1823 from jekyll/highlight-without-newline 2014-04-02 21:50:54 -04:00
Parker Moore
9fe22546be Expect 41 posts, not just 40. 2014-04-02 15:10:28 -04:00
Parker Moore
795d240379 Update history to reflect merge of #2192 [ci skip] 2014-04-02 14:39:42 -04:00
Parker Moore
1437fb2621 Merge pull request #2192 from XhmikosR/docs-feed 2014-04-02 14:39:04 -04:00
Parker Moore
8ccdee4035 STRIP ALL THE NEWLINES FROM HIGHLIGHTED CODE ok just the ones at the beginning and end 2014-04-02 14:37:22 -04:00
XhmikosR
56f895db09 Add meta generator property in the HTML files. 2014-04-02 21:35:05 +03:00
XhmikosR
e9a7eff13f Improve feed.xml.
* add `generator` property
* add image property
* use `xml_escape` instead of `![CDATA]`
* use `date_to_rfc822` instead of the date format string (thanks @troyswanson!)
* fix self reference url
* switch to `isPermaLink` for the `guid`
2014-04-02 21:33:40 +03:00
Parker Moore
2a3f0c0ec3 Strip content of the {% highlight %} block
A fix for #1801
2014-04-02 14:11:19 -04:00
Parker Moore
781e257298 Update history to reflect merge of #1568 [ci skip] 2014-04-02 14:10:33 -04:00
Parker Moore
806f43cdbc Merge pull request #1568 from nitoyon/url-escape 2014-04-02 14:09:09 -04:00
Parker Moore
c2dff6bbf7 Update history to reflect merge of #1824 [ci skip] 2014-04-02 14:08:31 -04:00
Parker Moore
d579840870 Merge pull request #1824 from lachy-xe/master 2014-04-02 14:08:21 -04:00
Parker Moore
31443e978d Update history to reflect merge of #2110. [ci skip]
Closes #2110.
2014-04-02 14:06:54 -04:00
Lincoln Mullen
52ac2b3850 Permit YAML blocks to end with three dots
The YAML spec permits blocks to end with three dots (...) in addition to
three dashes (---): http://www.yaml.org/spec/1.2/spec.html#id2760395. Some
programs that work with Jekyll (e.g., Pandoc) prefer the dots to dashes. This
commit permits the YAML metadata block to end with either dots or dashes. It
includes tests.

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-04-02 14:06:22 -04:00
Parker Moore
21ea105a82 Update history to reflect merge of #2185 [ci skip] 2014-04-02 14:03:19 -04:00
Parker Moore
293d675523 Merge pull request #2185 from XhmikosR/docs-fonts 2014-04-02 14:02:44 -04:00
Parker Moore
d951ed6f0d Update history to reflect merge of #2193 [ci skip] 2014-04-02 14:01:02 -04:00
Parker Moore
1304f5ad6a Merge pull request #2193 from XhmikosR/docs-favicon 2014-04-02 14:00:38 -04:00
Parker Moore
48e1f23b86 Update history to reflect merge of #2177 [ci skip] 2014-04-02 14:00:21 -04:00
Parker Moore
ad86d063e4 Merge pull request #2177 from jekyll/help 2014-04-02 13:59:37 -04:00
Parker Moore
f68e4eeb72 Restore 'Documentation' ~> 'Docs' because long words are fun. 2014-04-02 13:58:55 -04:00
Parker Moore
f3e80267da With 5 items in the main navigation, limit the width to 20% rather than 25%. 2014-04-02 13:55:29 -04:00
Parker Moore
2267f81632 Update history to reflect merge of #2200 [ci skip] 2014-04-01 23:11:16 -04:00
Parker Moore
14d9902586 Merge pull request #2200 from fabianrbz/remove_unnecessary_post 2014-04-01 23:10:37 -04:00
Fabian Rodriguez
04666cd0cf remove default post with invalid date 2014-04-01 22:32:12 -03:00
Parker Moore
5d761a1c2b Require 'plugin_manager' in lib/jekyll.rb 2014-04-01 18:44:37 -04:00
Parker Moore
e2d95975f6 Redirect all the people to the help repo. 2014-04-01 18:30:36 -04:00
Parker Moore
f418ea5fc3 Extract plugin management into its own class. 2014-04-01 18:10:51 -04:00
Parker Moore
9603d8a013 Update history to reflect merge of #2191 [ci skip] 2014-04-01 17:31:15 -04:00
Parker Moore
8158c81377 Merge pull request #2191 from pilosus/site 2014-04-01 17:30:46 -04:00
Parker Moore
664ad0a32d Just freaking publish the site. 2014-04-01 17:30:14 -04:00
XhmikosR
eea8ed330b Switch to using an ico file.
Works in all browsers plus it includes a 32x32 icon alongside with the 16x16 one.
2014-04-01 21:26:19 +03:00
pilosus
8f9f804b58 Less code than in commit c3b327dbe7
Thank you @budparr and @parkr
2014-04-01 17:45:02 +02:00
Parker Moore
e20491759d Update dat history format so it's right whoopsies. 2014-04-01 11:07:45 -04:00
pilosus
c3b327dbe7 For the case when more than one category specified in the news item, make sure category names formatted nicely with comma delimiter like this: category1, category2. Instead of categor1category2. 2014-04-01 16:04:51 +02:00
Ben Hanzl
f2ed30dff5 Move rouge loading 2014-03-31 19:48:18 -04:00
Parker Moore
14470b8bc6 Update history to reflect merge of #2187 [ci skip] 2014-03-31 13:55:03 -04:00
Parker Moore
769d8bf52b Merge pull request #2187 from XhmikosR/rm-unused-img 2014-03-31 13:54:10 -04:00
XhmikosR
33acbec9ee docs: remove unused images. 2014-03-31 20:48:52 +03:00
XhmikosR
ba2bd08d10 Clean up fonts used.
* remove the unused ones
* switch to using `700` for `bold` consistently
* use `400` for normal font weight
2014-03-31 20:44:45 +03:00
Parker Moore
0435f618f6 Update history to reflect merge of #2186 [ci skip] 2014-03-31 13:43:30 -04:00
Parker Moore
8cfa93872f Merge pull request #2186 from XhmikosR/site_template 2014-03-31 13:41:36 -04:00
XhmikosR
a6ab3abbf9 Update site_template/_includes/head.html.
* remove `chrome` from `X-UA-Compatible`; it's been discontinued
* remove unneeded end tags
* remove unneeded slash in `canonical` link
2014-03-31 20:38:18 +03:00
Parker Moore
116f41d162 Shorten 'Overview' to 'Home' 2014-03-31 13:36:10 -04:00
Parker Moore
34cc0b2b8b Update history to reflect merge of #1639 [ci skip] 2014-03-30 23:58:22 -04:00
Parker Moore
bc7aed290a Merge pull request #1639 from maul-esel/tags-and-categories 2014-03-30 23:58:01 -04:00
maul.esel
8c0e5d8d98 remove duplicate code for tags and categories
Previously the `Site#tags` and `Site#categories` actually had the
same structure as a hash returned by `Site#post_attr_hash()`, but
maintained separately. Remove this duplicated infrastructure. For
backwards-compatibility for plugins, provide aliases for them.
2014-03-31 01:02:08 +02:00
Parker Moore
9f60dfc92d Update history to reflect merge of #2131 [ci skip] 2014-03-30 02:19:52 -04:00
Parker Moore
10669e80b3 Merge pull request #2131 from XhmikosR/html5shiv 2014-03-30 02:18:57 -04:00
Parker Moore
215477f139 Update history to reflect merge of #2165 [ci skip] 2014-03-30 00:19:38 -04:00
Parker Moore
e277855eee Merge pull request #2165 from Zequez/master 2014-03-30 00:19:03 -04:00
Parker Moore
0859c1d1ad Update history to reflect merge of #2175 [ci skip] 2014-03-29 23:19:03 -04:00
Parker Moore
840ef35be9 Merge pull request #2175 from jekyll/security-yo 2014-03-29 23:18:07 -04:00
Parker Moore
24e4c2706a Update history to reflect merge of #2178 [ci skip] 2014-03-28 14:26:41 -04:00
Parker Moore
875d92c387 Merge pull request #2178 from fabianrbz/remove_warnings 2014-03-28 14:25:47 -04:00
Parker Moore
fa769b5ac6 Link to Docs should always be 'Docs'. Props @cobyism 2014-03-28 14:15:28 -04:00
Parker Moore
30ae727e6e Fix path sanitization example in post. Props @gregose 2014-03-28 12:52:56 -04:00
Parker Moore
e627799623 Update dat history in da site. 2014-03-28 02:31:52 -04:00
Parker Moore
626cb9aa95 Add 1.5.1 release post. 2014-03-28 02:30:59 -04:00
Parker Moore
c7b93603d1 Add 1.5.1 to changelog. 2014-03-28 02:30:16 -04:00
Parker Moore
4017325981 Add links to our lovely new Help repo 2014-03-27 19:14:11 -04:00
Fabian Rodriguez
302bc46914 rename variable inside block 2014-03-27 19:53:28 -03:00
Fabian Rodriguez
adcfde14ed align 'end' with 'def' 2014-03-27 19:52:52 -03:00
Fabian Rodriguez
4c5dfa1391 remove unused variables 2014-03-27 19:49:41 -03:00
Parker Moore
009e2c200d Only strip the drive name if it begins the string. 2014-03-27 18:19:35 -04:00
XhmikosR
4aec01e3ba Add respond.js so that media queries work in older IE too. 2014-03-27 07:45:44 +02:00
XhmikosR
0fb737516a Remove modernizr and use html5shiv.js directly. 2014-03-27 07:45:44 +02:00
Parker Moore
bc920f00a2 Release 2.0.0.alpha.2 2014-03-26 14:05:03 -04:00
Parker Moore
859a615e93 Bump 💎 version to 2.0.0.alpha.2 and release. 2014-03-26 14:04:59 -04:00
Parker Moore
57049b8e78 Update fixed version of history in site. [ci skip] 2014-03-26 14:03:57 -04:00
Parker Moore
ed6e1c7f0b Update history to reflect merge of #2130 [ci skip] 2014-03-26 11:34:27 -04:00
Parker Moore
6706ce9ee7 Merge pull request #2130 from XhmikosR/html-cleanup 2014-03-26 11:33:46 -04:00
Parker Moore
17329a1090 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  A tiny fix to changelog
2014-03-25 16:58:53 -04:00
Parker Moore
efe5b5c824 Update site/docs/history.md 2014-03-25 16:58:42 -04:00
Parker Moore
e051c732a0 Merge pull request #2169 from gmile/patch-1
A tiny fix to changelog
2014-03-25 11:38:10 -04:00
Pirogov Evgenij
11db020124 A tiny fix to changelog
cucmber -> cucumber
2014-03-25 17:32:23 +02:00
Parker Moore
a63b8af505 Release 2.0.0.alpha.1 2014-03-24 21:43:42 -04:00
Parker Moore
722892cd96 Update history with 1.5.0 release. [ci skip] 2014-03-24 21:43:00 -04:00
Parker Moore
b5b4ebfb88 Hehe. [ci skip] 2014-03-24 21:42:01 -04:00
Parker Moore
fe5de64fb2 Add dat blog post. 2014-03-24 21:41:54 -04:00
XhmikosR
d227fa6302 Specify image dimensions in the HTML. 2014-03-24 00:31:28 +02:00
XhmikosR
11f609c3a6 Remove the unused site.url. 2014-03-24 00:31:28 +02:00
XhmikosR
0d70d97eeb Remove empty classes. 2014-03-24 00:31:07 +02:00
XhmikosR
76e89dae32 Use the protocol relative URL for Google fonts. 2014-03-24 00:31:07 +02:00
XhmikosR
f0ed1c37a4 Remove unused Google font. 2014-03-24 00:31:07 +02:00
XhmikosR
dcb8192c29 Use double quotes consistently. 2014-03-24 00:31:07 +02:00
XhmikosR
314d1be443 Add missing alt text. 2014-03-24 00:30:39 +02:00
XhmikosR
2c87f82ca7 Remove default type for CSS and JS files. 2014-03-24 00:30:38 +02:00
XhmikosR
19f6eab14e Remove unneeded end tags. 2014-03-24 00:30:38 +02:00
Parker Moore
f8e0cc8fe4 Update history to reflect merge of #2164 [ci skip] 2014-03-23 14:27:20 -04:00
Parker Moore
939ff2337f Merge pull request #2164 from mrtazz/draft-unpublished 2014-03-23 14:26:49 -04:00
Zequez
5745eb9be8 Added option to force watch to use polling 2014-03-23 01:09:00 -07:00
Daniel Schauenberg
81e4e1d8f4 add support for unpublished drafts
I keep all my ideas for blog posts as drafts in my draft folder. However I'm
only really working on a couple at once. This let's me mark drafts that I'm
not working on right now as unpublished so they don't clutter the site while
I'm checking on the other drafts.
2014-03-22 19:52:10 -04:00
Matt Rogers
862b69c640 Update history to reflect merge of #2163 [ci skip] 2014-03-21 12:07:48 -05:00
Matt Rogers
2f93fcd8a5 Merge pull request #2163 from hildred/doc-safe 2014-03-21 12:07:45 -05:00
nitoyon
c56ce248c9 Move URL escape to Jekyll::URL 2014-03-21 16:59:25 +00:00
nitoyon
e3e1c11509 Fix Page#url escape
Post#url wasn't escaped at all.

For example, when we have a page named 'a#b.html',
we expect its url to be 'a%23b.html',
but it was actually 'a#b.html'.

We now use Jekyll::URL.escape_path and Jekyll::URL.unescape_path.
2014-03-21 16:57:41 +00:00
nitoyon
eebb6414bf Fix Post#url escape
Post#url was escaped using CGI.escape.
When file name contains a space character, its url points to
non-existing URL.

For example, when we have a post named '2014-01-02-foo bar.md',
we expect its url to be '/2014/01/02/foo%20bar.html',
but it was actually '/2014/01/02/foo+bar.html'.

We now define Jekyll::URL.escape_path and Jekyll::URL.unescape_path,
and use them to escape and unescape Post#url
2014-03-21 16:57:40 +00:00
Ben Hildred
a9adb22fed better document safe mode 2014-03-21 08:42:19 -06:00
Parker Moore
93700f91e7 Update history to reflect merge of #2160 [ci skip] 2014-03-20 23:29:09 -07:00
Parker Moore
92f6b1648a Merge pull request #2160 from jpiasetz/travis 2014-03-20 23:27:41 -07:00
John Piasetzki
f9b94bbefb Add travis_retry to config 2014-03-20 19:26:44 -04:00
Parker Moore
c658f9172c Update history to reflect merge of #2148 [ci skip] 2014-03-20 13:25:40 -04:00
Parker Moore
cf37591200 Merge pull request #2148 from jekyll/error-when-pygments-errors 2014-03-20 13:25:13 -04:00
Parker Moore
96bb687fcc Update history to reflect merge of #2158 [ci skip] 2014-03-19 23:48:20 -04:00
Parker Moore
987eedba84 Merge pull request #2158 from lmullen/patch-1 2014-03-19 23:47:52 -04:00
Lincoln Mullen
5f2d37a6d0 Add jekyll_figure plugin 2014-03-19 22:26:15 -04:00
Parker Moore
1b8205245e Went with @stomar's suggestion 2014-03-19 00:49:50 -04:00
Parker Moore
63e977721a Add a message and error out when Pygments returns nil. 2014-03-19 00:48:35 -04:00
Matt Rogers
32676e9062 Update history to reflect merge of #2155 [ci skip] 2014-03-18 23:07:41 -05:00
Matt Rogers
04d38ad9c0 Merge pull request #2155 from jekyll/fix-cucumber 2014-03-18 23:07:39 -05:00
Parker Moore
53c42d000f Move test dir to inside tmp in this repo. 2014-03-18 23:53:31 -04:00
Parker Moore
744fb2865d Lock to cucumber v1.3.11 because 1.3.12 is failing like crazy. 2014-03-18 23:53:19 -04:00
Parker Moore
d3f12c84ad Update history to reflect merge of #994 [ci skip] 2014-03-17 17:59:05 -04:00
Parker Moore
d80471c0a3 Merge pull request #994 from stephenmcd/master 2014-03-17 17:45:49 -04:00
Parker Moore
4aa2b34182 Update history to reflect merge of #2150 [ci skip] 2014-03-17 17:44:46 -04:00
PatrickC8t
df8458275d Added Jekyll-Ordinal plugin to list of third-party plugins.
Closes #2150.

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-03-17 17:43:38 -04:00
Stephen McDonald
de9ce3437d Protect against nil @lang before fixing for css class names. 2014-03-18 08:41:49 +11:00
Parker Moore
698d828a41 Update history to reflect merge of #2129 [ci skip] 2014-03-16 13:30:24 -04:00
Parker Moore
a23da65c4f Merge pull request #2129 from XhmikosR/modernizr 2014-03-16 13:30:01 -04:00
Parker Moore
8af2a9ade3 Update history to reflect merge of #2143 [ci skip] 2014-03-16 13:25:16 -04:00
Parker Moore
a581bc158b Merge pull request #2143 from jekyll/fix-cli 2014-03-16 13:24:41 -04:00
Parker Moore
8e9644a8a2 Have a list of blessed gems to require and load. 2014-03-16 01:18:39 -04:00
Parker Moore
e746b3bd5f Initialize each command in its own class so we can be *magical*. 2014-03-13 14:07:05 -04:00
Parker Moore
7288176f65 Update history to reflect merge of #2126 [ci skip] 2014-03-13 10:39:38 -04:00
Parker Moore
aa7e9594e8 Merge pull request #2126 from XhmikosR/normalize.css 2014-03-13 10:39:18 -04:00
Parker Moore
72438dbdaa Update history to reflect merge of #2128 [ci skip] 2014-03-12 15:34:40 -04:00
Parker Moore
428638b37a Merge pull request #2128 from XhmikosR/compress-images 2014-03-12 15:34:19 -04:00
XhmikosR
46e79c1f9f Losslessly compress images.
Before: 89,5 KB (91.747 bytes)
After:  87,4 KB (89.573 bytes)
2014-03-12 09:23:30 +02:00
XhmikosR
765020f4d7 Update modernizr to v2.7.1. 2014-03-12 09:01:33 +02:00
XhmikosR
d8b30f8169 Update normalize.css to v3.0.0. 2014-03-12 08:35:37 +02:00
Parker Moore
98109d2e39 Update history to reflect merge of #2122 [ci skip] 2014-03-11 11:10:32 -04:00
Parker Moore
ac37b8acee Merge pull request #2122 from XhmikosR/whitespace 2014-03-11 11:10:04 -04:00
Parker Moore
84a911f145 Update history to reflect merge of #2109 [ci skip] 2014-03-11 11:09:12 -04:00
Parker Moore
215e91cade Merge pull request #2109 from jekyll/proper-path-cleaning 2014-03-11 11:08:47 -04:00
Parker Moore
fd1a95ac87 Update history to reflect merge of #2121 [ci skip] 2014-03-11 08:32:59 -04:00
Parker Moore
76313dfd99 Merge pull request #2121 from XhmikosR/docs 2014-03-11 08:32:32 -04:00
XhmikosR
553338636b Trim trailing spaces and convert tabs to spaces. 2014-03-11 07:44:01 +02:00
XhmikosR
22ccfba8c4 Remove obsolete normalize_options. 2014-03-11 07:37:22 +02:00
Matt Rogers
19dc855551 Properly strip drive name from clean path when sanitizing path. 2014-03-10 14:35:19 -04:00
Parker Moore
37c2da5062 Properly clean path for Windows machines which is *nix-compliant. 2014-03-09 21:12:34 -04:00
Matt Rogers
48d5f79d9a Update history to reflect merge of #2118 [ci skip] 2014-03-09 14:06:48 -05:00
Matt Rogers
f50fd77694 Merge pull request #2118 from mscharley/windows-support 2014-03-09 14:06:46 -05:00
Matthew Scharley
0a403c744b Use the rake helper for mkdir as this version makes two folders on Windows 2014-03-09 02:51:22 +11:00
Parker Moore
05664acd36 Update history to reflect merge of #2112 [ci skip] 2014-03-04 17:02:05 -05:00
Parker Moore
2985758136 Merge pull request #2112 from jekyll/no-core-ext 2014-03-04 17:01:45 -05:00
Parker Moore
ed30920984 Use jekyll-sass-converter 1.0.0.rc3 2014-03-04 15:57:15 -05:00
Parker Moore
7787d64bce Rename those Utils functions. 2014-03-04 15:52:05 -05:00
Parker Moore
5e8643d855 Add Utils.stringify_hash_keys 2014-03-04 15:44:53 -05:00
Parker Moore
e2af1b547b Extract core extensions into a Utils module
Fixes #2111
2014-03-03 22:13:03 -05:00
Parker Moore
171452095f Update history to reflect merge of #2108 [ci skip] 2014-03-03 20:12:29 -05:00
Parker Moore
5ffbdd8cdc Merge pull request #2108 from slavapavlutin/refactor-cucumber-features 2014-03-03 20:11:44 -05:00
Parker Moore
5cfbeeb5d9 Our CI server runs bundle install already. Don't need to do it in script/cibuild. 2014-03-02 13:53:47 -05:00
Parker Moore
76ad86667b Point migration docs link to the actual docs
... not to a confusingly-similar docs page.
Ref: https://twitter.com/Thedeadlybutter/status/439862381964181504
2014-03-01 17:20:25 -05:00
Slava Pavlutin
6eef4b65ff Remove redundant whitespace in a Cucumber feature 2014-03-01 23:32:30 +04:00
Slava Pavlutin
2f79262f80 Fix tables alignments in Cucumber features 2014-03-01 23:10:05 +04:00
Parker Moore
e2308eb7f4 Clean out Sass tests that we don't need anymore.
Ref: #2098
2014-02-28 21:38:07 -05:00
Parker Moore
f3dfe1dd09 Update history to reflect merge of #2098 [ci skip] 2014-02-28 21:37:02 -05:00
Parker Moore
f1380b6a32 Merge pull request #2098 from jekyll/sass-as-separate-gem 2014-02-28 21:36:39 -05:00
Parker Moore
0633cbf8fa Bring in jekyll-sass-converter 2014-02-28 21:20:20 -05:00
Parker Moore
80c39cf670 Choose jekyll-sass-converter 1.0.0.rc1 2014-02-28 21:12:00 -05:00
Parker Moore
9ffb984f37 Sass support should be shipped outside core. 2014-02-28 21:12:00 -05:00
Parker Moore
bbcd5bc8c7 Update history to reflect merge of #2105 [ci skip] 2014-02-27 17:56:49 -05:00
Parker Moore
41c33601f3 Merge pull request #2105 from callmeed/patch-1 2014-02-27 17:54:14 -05:00
Erik Dungan
b93a5ed509 Update plugins.md
Added my plugin to the list.
2014-02-27 12:39:02 -08:00
Parker Moore
12375846c8 Update history to reflect merge of #2102 [ci skip] 2014-02-27 08:34:22 -05:00
Parker Moore
6973a33519 Merge pull request #2102 from ZDroid/mkdown 2014-02-27 08:33:50 -05:00
Parker Moore
6ea5df34fc Update Site history based on History.markdown 2014-02-27 08:32:37 -05:00
Zlatan Vasović
495ba2510b Update configuration docs for MD extensions
Per `.mkdown` extension addition in my older pull request.
2014-02-27 13:42:55 +01:00
Parker Moore
f24a3c67ed site.static_files is only available in the latest development version of Jekyll.
Ref: #2075
2014-02-25 10:57:34 -05:00
Parker Moore
5daf987c8b Move CONTRIBUTING and README JP translations to docs/jp/ #2081 2014-02-24 18:59:48 -05:00
Parker Moore
d21ab37abd Update history to reflect merge of #2081 [ci skip] 2014-02-24 18:58:41 -05:00
Parker Moore
d6c82943f2 Merge pull request #2081 from gosyujin/translating-readme-and-contributing 2014-02-24 18:58:13 -05:00
Parker Moore
644f012c42 Update history to reflect merge of #2097 [ci skip] 2014-02-24 18:56:46 -05:00
Parker Moore
aa9500434b Merge pull request #2097 from jekyll/listen-2.5 2014-02-24 18:56:04 -05:00
Parker Moore
d7598ee9d2 Ensure inputted code is a string. 2014-02-24 17:42:46 -05:00
Parker Moore
77f26d5681 Upgrade to guard/listen 2.x 2014-02-24 17:10:43 -05:00
Parker Moore
2988bb6a32 Update contributing docs to describe process for submitting PR to add plugin to list.
Fixes #2093. /cc @mattr-
2014-02-24 17:05:51 -05:00
Parker Moore
f5890e343f Update history to reflect merge of #2096 [ci skip] 2014-02-24 16:55:41 -05:00
Parker Moore
f58e9e1de2 Merge pull request #2096 from bbakersmith/patch-1 2014-02-24 16:54:49 -05:00
Ben Baker-Smith
6a52f77656 add Jekyll Pages Directory plugin to plugins docs 2014-02-24 15:39:35 -06:00
Matt Rogers
83e3c0f7ba Update history to reflect merge of #2095 [ci skip] 2014-02-24 15:23:15 -06:00
Matt Rogers
c8667b8ddb Merge pull request #2095 from jekyll/simplify-gemspec 2014-02-24 15:23:12 -06:00
Parker Moore
e58748bcf7 Build fragment into a better fragment.
Per @mattr-'s comment in #2094:
https://github.com/jekyll/jekyll/pull/2094#discussion_r10011008
2014-02-24 16:22:43 -05:00
Parker Moore
61397cd302 Update history to reflect merge of #2094 [ci skip] 2014-02-24 16:21:00 -05:00
Parker Moore
16441610c9 Merge pull request #2094 from tobru/master 2014-02-24 16:20:36 -05:00
Parker Moore
89328ff03f Rip out now-obsolete pieces of gemspec. 2014-02-24 16:17:41 -05:00
Parker Moore
8a0d036b87 Greatly simplify Jekyll's gemspec. 2014-02-24 16:15:51 -05:00
Tobias Brunner
63b76c0ad1 add lyche gallery tag plugin link 2014-02-24 22:13:51 +01:00
Parker Moore
ed5670eb48 Update history to reflect merge of #2050 [ci skip] 2014-02-24 16:09:10 -05:00
Parker Moore
b6f006c152 Merge pull request #2050 from jglovier/master
* jglovier-master: (35 commits)
  Fix for menu at mobile again
  Fix site footer styles on mobile
  Fix for menu not working on mobile
  dat breathing room tho (expand site width slightly more)
  Replace footer github and twitter link text with inline SVG icons
  Post content styles for mobile
  Replace unicode menu icon with inline SVG
  Adds mobile styling for menu at sub 600px viewport widths
  🔥 permalink option so default date permalink method is left in tact
  For the love of perf, add syntax.css rules to main.css and call only one stylesheet
  Adds another placeholder post to illustrate post content styles
  Dem new styles tho
  Copy tweaks - brevity FTW
  Use class instead of id for CSS specificity ❤️
  Add link for RSS subscription
  Slightly friendlier and personal date formatting; classes for dem styles, yo
  Remove to avoid confusion with site.title
  demonstrate use of permalink settings
  Add site.url for use in head canonical meta and feed.xml template
  Add site.description for use in site head document meta, and feed.xml template
  ...
2014-02-24 16:07:20 -05:00
Joel Glovier
e2c67e0239 Fix for menu at mobile again 2014-02-24 16:03:39 -05:00
Joel Glovier
2c100a8e87 Fix site footer styles on mobile 2014-02-24 15:56:49 -05:00
Joel Glovier
7fbc636824 Fix for menu not working on mobile 2014-02-24 15:42:03 -05:00
Parker Moore
87a3208df2 Update history to reflect merge of #2067 [ci skip] 2014-02-23 20:15:47 -05:00
Parker Moore
8282424532 Merge pull request #2067 from troyswanson/assets-can-be-better 2014-02-23 20:13:56 -05:00
Parker Moore
de7a944601 Update history to reflect merge of #2065 [ci skip] 2014-02-23 20:07:05 -05:00
Parker Moore
3072a16b86 Merge pull request #2065 from jekyll/fix-windows-root-system-thingy 2014-02-23 20:06:29 -05:00
Parker Moore
57d07469d3 Sanitize paths uniformly, in a Windows-friendly way.
Fixes kinda a #1948 thing.
Related to #1946.
2014-02-23 20:05:23 -05:00
Parker Moore
d737ede7f0 Merge pull request #2078 from ZDroid/rm-layout-none
Remove redundant `layout: none`
2014-02-23 19:42:07 -05:00
Parker Moore
89e914b160 Update history to reflect merge of #2084 [ci skip] 2014-02-21 18:22:47 -05:00
Parker Moore
8ae69763dc Merge pull request #2084 from nslater/add-whitespace 2014-02-21 18:22:09 -05:00
Parker Moore
d6ecb5025a Update history to reflect merge of #2085 [ci skip] 2014-02-21 18:21:32 -05:00
Parker Moore
3ef5ce690d Merge pull request #2085 from jekyll/mercenary-0-3-0 2014-02-21 18:20:58 -05:00
Parker Moore
53ad55a1b2 Update history to reflect merge of #2090 [ci skip] 2014-02-21 18:19:53 -05:00
Parker Moore
788a3f7c8d Merge pull request #2090 from coreyward/selfish 2014-02-21 18:19:32 -05:00
Corey Ward
f1c4e247a5 Remove unnecessary references to self 2014-02-21 16:27:21 -06:00
Parker Moore
d54764924b Bump Mercenary to ~> 0.3.1 2014-02-21 14:13:35 -05:00
Joel Glovier
bdd35789db dat breathing room tho (expand site width slightly more) 2014-02-20 20:34:09 -05:00
Parker Moore
05ea209d5f Bump to Mercenary ~> 0.3.0
https://github.com/jekyll/mercenary/releases/tag/v0.3.0
2014-02-20 18:58:14 -05:00
Noah Slater
c36a759de9 Add whitespace 2014-02-20 22:08:02 +01:00
Matt Rogers
276b400a86 Update history to reflect merge of #2061 [ci skip] 2014-02-20 14:30:34 -06:00
Matt Rogers
55059a6f0a Merge pull request #2061 from jekyll/unreleased-features-warnings-on-site
Unreleased features warnings on site
2014-02-20 14:28:57 -06:00
Matt Rogers
95afec6977 Tweak wording about assets 2014-02-20 09:36:54 -06:00
kk_Ataka
5021c7faf8 Translated of README.markdown and CONTRIBUTING.markdown into Japanese. 2014-02-20 23:41:27 +09:00
Parker Moore
e1fa657f2b Update gemspec file list. 2014-02-19 23:27:18 -05:00
Parker Moore
019b0537f6 Added docs for installing from master. 2014-02-19 23:24:12 -05:00
Parker Moore
768a47dcfb Be a bit more vague about when features are available in pre-releases. 2014-02-19 23:18:59 -05:00
Parker Moore
f5c76e2253 Shorten header for example of each note type. Props @cobyism 2014-02-19 23:18:59 -05:00
Parker Moore
a0017b5c72 Add verbiage around installing pre-releases of jekyll. 2014-02-19 23:18:59 -05:00
Parker Moore
aa801efce9 Make the unreleased note type icon dark. Props @cobyism 2014-02-19 23:18:59 -05:00
Troy Swanson
e491afe294 Make the icon for the unreleased note brighter 2014-02-19 23:18:59 -05:00
Parker Moore
b051936ff4 Add "unreleased" note to /docs/configuration about kramdown as the new default 2014-02-19 23:18:59 -05:00
Parker Moore
5423f02c3c Add "unreleased" note to docs/assets/ 2014-02-19 23:18:59 -05:00
Parker Moore
d203554e84 Add "unreleased" type note 2014-02-19 23:18:59 -05:00
Matt Rogers
1c4974f6ea Update history to reflect merge of #2074 2014-02-19 17:09:10 -06:00
Matt Rogers
b6c42adc53 Merge pull request #2074 from jekyll/default-to-utf8 2014-02-19 17:09:08 -06:00
Zlatan Vasović
6ca67bfbf4 layout defaults to none (nil) 2014-02-19 22:08:23 +01:00
Parker Moore
de3570714f Update history to reflect merge of #2077 [ci skip] 2014-02-19 14:53:00 -05:00
Parker Moore
c0c06bfc8a Merge pull request #2077 from mprins/patch-1 2014-02-19 14:52:21 -05:00
Mark Prins
b82a93872b 1+1+1=three
counting `path`, `modified_time` and `extname` gives 3
2014-02-19 20:39:11 +01:00
Parker Moore
0d1fcc0691 Update history to reflect merge of #2075 [ci skip] 2014-02-19 14:15:41 -05:00
Parker Moore
27be7e2e6a Merge pull request #2075 from jekyll/expose-static-files 2014-02-19 14:15:20 -05:00
Parker Moore
88b66858ff Update docs to include extname for static file object in liquid. [ci skip] 2014-02-19 14:15:03 -05:00
Parker Moore
e0166682da Sort the static files by relative path before sending to liquid 2014-02-19 14:02:03 -05:00
Parker Moore
e3dd908d55 Add StaticFile#to_liquid['extname'] :) 2014-02-19 13:55:58 -05:00
Parker Moore
33490e4efc Fix error in tests. 2014-02-19 13:43:16 -05:00
Parker Moore
d96e62c50f Add docs for site.static_files 2014-02-19 13:35:21 -05:00
Parker Moore
b5a398bdff Add StaticFile#to_liquid and StaticFile#relative_path 2014-02-19 13:35:13 -05:00
Parker Moore
9659cfe876 Test site.static_files 2014-02-19 13:34:44 -05:00
Parker Moore
949aa3fc32 Test fetching of static files 2014-02-19 13:16:21 -05:00
Parker Moore
6e40338f9e Expose site.static_files to Liquid 2014-02-19 13:04:33 -05:00
Parker Moore
407b9b577b Update configuration docs to indicate that utf-8 is now the default
Docs for #2031, /cc #2029.
2014-02-19 11:14:09 -05:00
Parker Moore
45a5671c55 Update history to reflect merge of #2073 [ci skip] 2014-02-19 11:11:25 -05:00
Parker Moore
de40d5fbe3 Merge pull request #2073 from mizuhands/patch-1 2014-02-19 11:10:35 -05:00
Francis
b0b8bebe6c [configuration.md] Correct typo
Typo: 'use'
Proposed Correction: 'uses the'
---
In English, 'use' is the verb form for plural subjects, where as 'uses' is the verb form for a singular subject. For this case, the subject, 'default value', is singular.
2014-02-19 12:22:46 +01:00
Parker Moore
b1812e7711 Move Kramdown version bump to Minor Enhancements section.
Closes #2069.
2014-02-19 00:13:24 -05:00
Parker Moore
9414280aa7 Update history to reflect merge of #2058 [ci skip] 2014-02-18 01:53:47 -05:00
Parker Moore
6a6e66bf9e Merge pull request #2058 from jekyll/layouts-relative-to-config 2014-02-18 01:53:15 -05:00
Troy Swanson
0c7a26f68b Add clarification about output path of asset files 2014-02-17 22:39:07 -06:00
Matt Rogers
b68229aa2c Make LayoutReader#layout_directory public.
Since it's being used in a test, let's go ahead and expose it instead of
dealing with using Object#send to send the message along.
2014-02-17 22:13:29 -06:00
Joel Glovier
6bc4776199 Replace footer github and twitter link text with inline SVG icons 2014-02-17 22:23:30 -05:00
Joel Glovier
aa4280904a Post content styles for mobile 2014-02-17 16:58:12 -05:00
Joel Glovier
1c5ed75e72 Replace unicode menu icon with inline SVG
- unicode menu icon doesn’t render pixel crisp (has some
anti-aliasing), whereas SVG renders pixel optimized
- using inline SVG (instead of a referenced, attached file, will save
an http request
2014-02-17 16:52:48 -05:00
Joel Glovier
893b664f34 Adds mobile styling for menu at sub 600px viewport widths 2014-02-17 16:36:21 -05:00
Parker Moore
7706231f16 Update history to reflect merge of #2041 [ci skip] 2014-02-17 16:23:50 -05:00
Parker Moore
e5bcddfbe0 Merge pull request #2041 from anthonyjsmith/webrick_index_xml 2014-02-17 16:23:25 -05:00
Joel Glovier
3e6f2d8cef 🔥 permalink option so default date permalink method is left in tact 2014-02-17 12:42:15 -05:00
Parker Moore
cf14bc6ab6 Update license with all years since 2008.
Closes #2059.
2014-02-17 12:17:25 -05:00
Parker Moore
1a879a04ab Add tests for determining source dir 2014-02-16 23:19:03 -05:00
Parker Moore
47babef79a Make the layouts: config key relative to CWD or to Source
Fixes #1576.
2014-02-16 22:42:38 -05:00
Parker Moore
84471ba202 Update history to reflect merge of #1946 [ci skip] 2014-02-16 22:14:43 -05:00
Parker Moore
3e91030c81 Merge pull request #1946 from jekyll/security-vuln-patches 2014-02-16 22:14:20 -05:00
Parker Moore
ab0ebadee3 Merge master into security-vuln-patches 2014-02-16 22:02:03 -05:00
Parker Moore
264dfc164d When an include cannot be found, only print file path relative to source. 2014-02-16 22:00:33 -05:00
Parker Moore
594e2a94c7 Update history to reflect merge of #2042 [ci skip] 2014-02-16 21:36:40 -05:00
Parker Moore
fb8e562123 Merge pull request #2042 from anthonyjsmith/draft-path 2014-02-16 21:36:00 -05:00
Parker Moore
c4f5415ece Update history to reflect merge of #2056 [ci skip] 2014-02-16 21:12:03 -05:00
Parker Moore
effe84cd56 Merge pull request #2056 from herr-biber/remove-executable-bits 2014-02-16 21:11:40 -05:00
Markus Roth
c47751148c Remove executable bits of non executable files. 2014-02-17 01:41:12 +01:00
Joel Glovier
28554fd307 For the love of perf, add syntax.css rules to main.css and call only one stylesheet 2014-02-15 23:27:34 -05:00
Joel Glovier
bd80ce4c61 Adds another placeholder post to illustrate post content styles 2014-02-15 23:24:30 -05:00
Joel Glovier
cac15574e7 Dem new styles tho
- Uses new typography, including Helvetica light, larger font-sizes,
and px values
- Wider site width, larger margins, and overall more whitespace
- Responsive down to mobile
2014-02-15 23:21:15 -05:00
Joel Glovier
1e28eee0c7 Copy tweaks - brevity FTW 2014-02-15 23:17:05 -05:00
Joel Glovier
6773307237 Use class instead of id for CSS specificity ❤️ 2014-02-15 23:16:47 -05:00
Joel Glovier
a11f01784a Add link for RSS subscription 2014-02-15 23:16:23 -05:00
Joel Glovier
e5cf3cbbc1 Slightly friendlier and personal date formatting; classes for dem styles, yo 2014-02-15 23:16:11 -05:00
Joel Glovier
3d464688fc Remove to avoid confusion with site.title 2014-02-15 23:15:37 -05:00
Joel Glovier
8d05a54590 demonstrate use of permalink settings 2014-02-15 23:14:20 -05:00
Joel Glovier
e398c3b16c Add site.url for use in head canonical meta and feed.xml template 2014-02-15 23:14:01 -05:00
Joel Glovier
287851ebb4 Add site.description for use in site head document meta, and feed.xml template 2014-02-15 23:13:43 -05:00
Joel Glovier
b3a2ea4e3e Software with Personality™ 2014-02-15 23:12:42 -05:00
Joel Glovier
240bbf4abb Adds feed.xml file for generating an RSS feed 2014-02-15 23:10:25 -05:00
Joel Glovier
53ae5a7b0f Add placeholder About page 2014-02-15 23:09:28 -05:00
Joel Glovier
1687f0855d Add placeholder Projects page 2014-02-15 23:09:19 -05:00
Joel Glovier
16d8d05172 Adds a basic page template
Many users moving to Jekyll from other popular blogging options (like
Wordpress) will be used to thinking in terms of pages/posts. Having a
page template like this will be convenient for those users.
2014-02-15 23:07:10 -05:00
Joel Glovier
fcd2383de3 Refactor post template
- add article tags around post content
- creates post header
- add conditionals for extra options in meta
2014-02-15 23:04:44 -05:00
Joel Glovier
1b54afe67a remove extra line 2014-02-15 23:03:13 -05:00
Joel Glovier
d5ea6e47dd Restructure default template to include page content wrap 2014-02-15 23:02:41 -05:00
Joel Glovier
8fa48b492e Footer markup restructuring
- rework footer to use columns
- add additional area for generic text
2014-02-15 23:02:04 -05:00
Joel Glovier
6d4e3f8c72 Refactor header markup
- use anchor instead of h1 for site title, for semantic accuracy, and
because post h1’s should be the post title
- implement nav wrapper for nav links
- use div.wrap for design structure
2014-02-15 23:00:37 -05:00
Joel Glovier
d52b9b7e5b Remove redundant home link 2014-02-15 22:57:10 -05:00
Joel Glovier
a1b60430d6 Add canonical meta set with config params for more google ❤️ 2014-02-15 22:56:30 -05:00
Joel Glovier
b9875b7bc8 Add description meta set in config, for teh google ❤️ 2014-02-15 22:56:04 -05:00
Joel Glovier
7b0bf0d85c Add conditional to default to site.name if no page.title is set 2014-02-15 22:55:14 -05:00
Joel Glovier
3b97799837 Separate global components into includes for convenience, and to familiarize users with includes structure 2014-02-15 22:53:48 -05:00
Parker Moore
c6b4c41aab Update history to reflect merge of #2048 [ci skip] 2014-02-15 17:28:06 -05:00
Parker Moore
d36d1f3cc0 Merge pull request #2048 from ZDroid/mkdown-ext 2014-02-15 17:27:52 -05:00
Parker Moore
8d39bf3850 Update history to reflect merge of #2049 [ci skip] 2014-02-15 17:26:34 -05:00
Parker Moore
51f367b5e0 Merge pull request #2049 from ZDroid/kramdown-reorder 2014-02-15 17:25:27 -05:00
Zlatan Vasović
7115bfbf3d Reorder Maruku and Kramdown
Kramdown is default now, yay!
2014-02-15 23:12:31 +01:00
Zlatan Vasović
699066ef85 Add .mkdown as valid Markdown extension
GitHub Linguist recognizes `.mkdown` as Markdown, so Jekyll should support it as Jekyll is used on GitHub pages.
2014-02-15 22:01:37 +01:00
Parker Moore
7b1321d002 Update link to rack-jekyll
Ports change from #2047 to master.
2014-02-14 15:53:50 -05:00
Parker Moore
da446c0f19 Update history to reflect merge of #2047 [ci skip] 2014-02-14 15:41:07 -05:00
Matt Rogers
c77ef87b05 Update history to reflect merge of #2045 2014-02-14 12:46:10 -06:00
Matt Rogers
41325ab308 Merge pull request #2045 from jekyll/kill-1-9-2 2014-02-14 12:46:07 -06:00
Parker Moore
49606cb509 Update rebund credentials to speed up TravisCI builds.
Requests to jekyll's keyfile instance seem to be 401ing.
2014-02-14 13:44:31 -05:00
Parker Moore
1482c8aecc Update history to reflect merge of #2044 [ci skip] 2014-02-14 13:36:32 -05:00
Parker Moore
611145e712 Merge pull request #2044 from jekyll/bump-redcarpet 2014-02-14 13:36:08 -05:00
Parker Moore
36b2963343 Kill 1.9.2 support. 2014-02-14 13:30:14 -05:00
Matt Rogers
ad9250d106 Bump Redcarpet to 3.1.0
- Footnotes
- GitHub style header anchors
- quotation marks as <q> tags
- A few other bug fixes
2014-02-14 12:17:29 -06:00
Anthony Smith
86208d8c33 Add index.xml to WEBrick DirectoryIndex
Resolves #2040
2014-02-13 23:12:36 +00:00
Parker Moore
1671d34e15 Release 2.0.0.alpha.1 2014-02-13 18:02:53 -05:00
Parker Moore
88e35f0852 Release 2.0.0.alpha.1 2014-02-13 18:02:49 -05:00
Parker Moore
729b6db7c2 Update history to reflect merge of #2009 [ci skip] 2014-02-13 17:56:57 -05:00
Parker Moore
d43341fab0 Merge pull request #2009 from penibelst/test-sass-include 2014-02-13 17:56:38 -05:00
Matt Rogers
ac7bed335a Merge pull request #1976 from jekyll/fix-pagination-issue
Relative posts should never fail to build, even if @dir or @name is nil
2014-02-13 12:39:23 -06:00
Matt Rogers & Persa Zula
ec93743659 Update history to reflect merge of #1976 2014-02-13 12:39:00 -06:00
Parker Moore
54e5e660db Update history to reflect merge of #2031 [ci skip] 2014-02-13 12:54:21 -05:00
Parker Moore
83f5b4d93b Merge pull request #2031 from jekyll/utf8-heart 2014-02-13 12:53:58 -05:00
Parker Moore
8929d1bd63 Update history to reflect merge of #2038 [ci skip] 2014-02-13 12:52:54 -05:00
Parker Moore
3b5f6494f2 Merge pull request #2038 from joshbrw/master 2014-02-13 12:52:28 -05:00
Josh Brown
69dc96dc9f Removed accidental linebreak 2014-02-13 13:28:11 +00:00
Josh Brown
933590b6ba Added a breakpoint for .site to make it responsive 2014-02-13 13:27:34 +00:00
Parker Moore
c58c5b8782 Default to using the UTF-8 encoding when reading files.
Fixes #2029.
2014-02-11 17:48:52 -05:00
Anthony Smith
18279558da Update #relative_path for _drafts and add tests.
Resolves #2019. Add new tests for drafts. Also check path variable in
test for posts.
2014-02-11 12:48:34 +00:00
Parker Moore
56a633ae95 Update Jekyll version to latest released.
Latest release can be found on the v1-stable branch.
2014-02-09 18:44:30 -05:00
Parker Moore
f607aefeb8 Update jekyll.gemspec with new files.
Ref: #2020
2014-02-09 18:43:46 -05:00
Parker Moore
b6c8b39899 Update history to reflect merge of #1988 [ci skip] 2014-02-08 17:08:30 -05:00
Parker Moore
dd3018ce02 Merge pull request #1988 from jekyll/maruku-to-kramdown 2014-02-08 17:07:54 -05:00
Parker Moore
22f2001ff5 Set default markdown converter to Kramdown
- Update default markdown converter in docs for configuration
- Update tests so they are in line with Kramdown output
- Add deprecation message to when config is built
2014-02-08 13:17:46 -05:00
Anatol Broder
c17ed7ec93 Add comment about symlinked directories 2014-02-08 13:26:03 +01:00
Parker Moore
1176fc6f57 Give File.join the strings from the array 2014-02-08 00:38:59 -05:00
Parker Moore
2e2563fab9 Update history to reflect merge of #2015 [ci skip] 2014-02-08 00:34:16 -05:00
Parker Moore
41401ef126 Merge pull request #2015 from aheckler/master 2014-02-08 00:34:01 -05:00
Parker Moore
71b2257829 Update history to reflect merge of #2016 [ci skip] 2014-02-08 00:33:32 -05:00
Parker Moore
00ac5ff3d4 Merge pull request #2016 from Jashank/destination-warning 2014-02-08 00:33:12 -05:00
Parker Moore
a63e62f643 Update history to reflect merge of #2020 [ci skip] 2014-02-08 00:32:20 -05:00
Parker Moore
8f3e3e04d8 Merge pull request #2020 from jekyll/refactor-layout-reading 2014-02-08 00:31:41 -05:00
Parker Moore
ac8d8a7cb8 Fix some tests 2014-02-08 00:31:26 -05:00
Matt Rogers & Persa Zula
c36a6d3e0d Wrap the LayoutReader in the Jekyll module 2014-02-06 23:07:38 -06:00
Matt Rogers & Persa Zula
833b40095f Rename with to within
Thanks @parkr
2014-02-06 23:07:11 -06:00
Matt Rogers & Persa Zula
fd92820b03 Remove Site#read_layouts 2014-02-06 22:46:09 -06:00
Matt Rogers & Persa Zula
facf115c04 Move layout tests from site to its own file 2014-02-06 22:45:51 -06:00
Matt Rogers
70ecef0094 Sort methods from most important to least important
This idea is based on the concept of a newspaper. The most important
things such as the headlines and the major details of the story at the
top. This translates to code in that the public API and the more
important private methods are at the top of the file. The more detailed
information (or methods, in the code) are further down, so that if
you've gotten all you need out of the code up to a certain point, you
don't need to keep reading anymore.
2014-02-06 22:22:06 -06:00
Matt Rogers
c5b81d580b Refactor the LayoutReader class 2014-02-06 22:22:06 -06:00
Matt Rogers
f581940c71 Create a LayoutReader class to read layouts 2014-02-06 22:22:06 -06:00
Parker Moore
f638fb1784 Merge master into security-vuln-patches 2014-02-06 17:21:54 -05:00
Jashank Jeremy
67a54547ed Clarifying wording of the destination directory warning.
At some point, it should also be clarified whether "folder" or
"directory" is the correct way to refer to that concept.
2014-02-05 10:38:16 +11:00
Adam Heckler
5dc7a6c7be Updated instructions for NearlyFreeSpeech 2014-02-04 18:35:06 -05:00
Jashank Jeremy
95a2c74f12 Document site cleanup behaviour.
As per #2014, document the fact that the destination directory is
'cleaned up', such that "obsolete" files (files which do not have a
known input Page, Post or StaticFile) are deleted, when a site is
rebuilt.

Resolves #2014.
[ci skip]
2014-02-05 10:30:49 +11:00
Parker Moore
182a49fcff Update history to reflect merge of #2013 [ci skip] 2014-02-04 17:04:01 -05:00
Parker Moore
5849da358c Merge pull request #2013 from penibelst/patch-1 2014-02-04 14:02:08 -08:00
Anatol Broder
ed12ad930a Fix wrong semantic 2014-02-04 21:37:20 +01:00
Anatol Broder
487e7a7137 Make sort test run 2014-02-04 09:23:00 +01:00
Parker Moore
272ba86ae4 Merge pull request #2010 from Jashank/gemspec-update
Update Jekyll gemspec.
2014-02-03 19:52:27 -08:00
Jashank Jeremy
f8d6ff42ff Update Jekyll gemspec.
The master gemspec has gotten a tad out of date; this updates the
manifest, notably, but also the version number, to bring it in line with
v1-stable.  I'm not sure this is precisely the right way for the latter
to work; @parkr, would you like to comment on this?
2014-02-04 12:45:14 +11:00
Anatol Broder
ce2b4ae963 Upgrade gemspec 2014-02-04 02:06:50 +01:00
Anatol Broder
9e4dea14e4 Fix partial test 2014-02-04 02:03:14 +01:00
Anatol Broder
8e0a826cc7 Fix group_by_filter test by adding 2 items 2014-02-04 01:31:37 +01:00
Anatol Broder
e36f9d7da8 First draft 2014-02-04 01:26:28 +01:00
Matt Rogers
1e6847c43f Update history to reflect merge of #1982 2014-01-31 08:48:18 -06:00
Matt Rogers
5edb4c6bfd Merge pull request #1982 from dtao/safe-yaml-no-clobber 2014-01-31 06:48:16 -08:00
Matt Rogers
780485a98c Merge pull request #2005 from jekyll/vim-jekyll
Add vim-jekyll to list of Editor plugins
2014-01-31 06:45:35 -08:00
Matt Rogers
37dbc646a1 Update history to reflect merge of #2005 2014-01-31 08:45:14 -06:00
Matt Rogers
1470a8a997 Update history to reflect merge of #2004 2014-01-31 08:44:33 -06:00
Matt Rogers
8e758f1e4d Merge pull request #2004 from jekyll/noyarp-sad 2014-01-31 06:44:31 -08:00
Parker Moore
e940afdf00 Add vim-jekyll to list of Editor plugins 2014-01-31 00:27:18 -05:00
Parker Moore
03ba5d8d18 Update history to reflect merge of #2001 [ci skip] 2014-01-31 00:24:59 -05:00
Parker Moore
901fd31a30 Merge pull request #2001 from 23maverick23/sublime-jekyll 2014-01-30 21:24:29 -08:00
Parker Moore
49b7fdb62f Yarp seems to be eff'd. 2014-01-31 00:22:21 -05:00
Parker Moore
baabe7eb7e DRY up code, props @tamouse 2014-01-30 22:03:10 -05:00
Matt Rogers
669cc496cd Update history to reflect merge of #1991 2014-01-30 20:39:46 -06:00
Matt Rogers
2b973468bf Merge pull request #1991 from jekyll/coffeescript 2014-01-30 18:39:40 -08:00
Ryan Morrissey
645baf3353 Added new “Editors” section to _plugins for “sublime-jekyll”. 2014-01-29 23:09:42 -05:00
Parker Moore
9bd160dd8e Travis is seriously inbred. 2014-01-28 23:40:55 -05:00
Parker Moore
1d014edca2 Update history to reflect merge of #1999 [ci skip] 2014-01-28 23:40:08 -05:00
Parker Moore
0c6d798dc6 Merge pull request #1999 from 23maverick23/jekyll-font-awesome 2014-01-28 20:39:49 -08:00
Parker Moore
dbd3d15f29 Update history to reflect merge of #1998 [ci skip] 2014-01-28 23:39:12 -05:00
Parker Moore
088a1db74d Merge pull request #1998 from 23maverick23/jekyll-humanize 2014-01-28 20:38:42 -08:00
Ryan Morrissey
a02123bee4 Quickly and easily add Font Awesome icons to your posts. 2014-01-28 22:32:12 -05:00
Ryan Morrissey
2d6bd741d0 Adding jekyll-humanize plugin to site documentation. 2014-01-28 22:23:34 -05:00
Parker Moore
c9a732c4f9 Update history to reflect merge of #1993 [ci skip] 2014-01-26 13:39:31 -05:00
Parker Moore
aa6cee83af Merge pull request #1993 from azizshamim/mimetypes_update 2014-01-26 10:39:04 -08:00
Aziz Shamim
509e2181de sync mime types to GitHub 2014-01-26 12:15:15 -06:00
Parker Moore
fdbfd719ca Add CoffeeScript converter. 2014-01-25 20:38:51 -05:00
Matt Rogers
ea397d0946 Update history to reflect merge of #1984 2014-01-24 21:45:37 -06:00
Matt Rogers
7d6defabf9 Merge pull request #1984 from jekyll/yarp 2014-01-24 19:45:18 -08:00
Parker Moore
710e0e5a3c Hm... I wonder if yarp can speed up our build process. 2014-01-24 22:44:26 -05:00
Matt Rogers
ecc05e57ae Update history to reflect merge of #1985 2014-01-24 21:42:59 -06:00
Matt Rogers
edf9b7bf1d Merge pull request #1985 from jekyll/rebund 2014-01-24 19:42:55 -08:00
Parker Moore
37b587168f Don't need to install bundler, right? 2014-01-24 22:31:44 -05:00
Parker Moore
d2e22eda28 Add some rebund ❤️ to speed up TravisCI builds. 2014-01-24 22:23:55 -05:00
Matt Rogers
2e1ab7e6fe Update history to reflect merge of #1983 2014-01-24 21:10:50 -06:00
Matt Rogers
4d45b4d950 Merge pull request #1983 from jfirebaugh/perf 2014-01-24 19:10:45 -08:00
John Firebaugh
4a769dbf5f Optimize Post#{next,previous}
Use object equality for comparisons rather than Comparable#==,
which in turn uses Post#<=>, which is slow.

This yielded a 3x performance improvement for `jekyll build`
on a large site (1m6.467s -> 0m19.532s).
2014-01-24 17:17:41 -08:00
Matt Rogers
b2c45aafdc Update history to reflect merge of #1932 2014-01-24 17:17:55 -06:00
Matt Rogers
5b7a53b543 Merge pull request #1932 from jekyll/sass 2014-01-24 15:18:06 -08:00
Parker Moore
c9a3c40f83 fixes based on @mattr-'s notes 2014-01-24 12:19:19 -05:00
Parker Moore
774bf96c61 Merge master into sass 2014-01-24 12:17:35 -05:00
Dan Tao
fafacef0a0 added a test that YAML.load doesn't get clobbered
I THINK this is a good idea? I considered multiple approaches to testing this;
what I like about this dumb way (just try to deserialize a symbol) is that it's
nice and simple.
2014-01-23 17:42:14 -08:00
Dan Tao
4f0b1bdf6d switched from YAML.safe_load* to SafeYAML.load* 2014-01-23 17:25:17 -08:00
Matt Rogers
8114ae6552 Update history to reflect merge of #1931 2014-01-22 07:38:33 -06:00
Matt Rogers
98857832cd Merge pull request #1931 from liufengyun/published 2014-01-22 05:38:04 -08:00
Parker Moore
606c525099 Relative posts should never fail to build, even if @dir or @name is nil
Fixes https://github.com/jekyll/jekyll/issues/1963
2014-01-21 23:50:20 -05:00
Parker Moore
30d8743853 Update history to reflect merge of #1951 [ci skip] 2014-01-21 23:07:28 -05:00
Parker Moore
05df50f929 Merge pull request #1951 from jens-na/include-tag-error-path 2014-01-21 20:07:11 -08:00
Parker Moore
f2fadd6562 Update history to reflect merge of #1962 [ci skip] 2014-01-21 23:05:46 -05:00
Parker Moore
a82f0d4e6e Merge pull request #1962 from jglovier/patch-1 2014-01-21 20:05:10 -08:00
Matt Rogers
9210d4ebd8 Update history to reflect merge of #1935 2014-01-21 07:50:14 -06:00
Matt Rogers
5f26bb5031 Merge pull request #1935 from benbalter/vision 2014-01-21 05:50:11 -08:00
Ben Balter
e2258403ee language tweaks 2014-01-20 21:42:12 -05:00
Parker Moore
d37ea10cf8 Update history to reflect merge of #1970 [ci skip] 2014-01-19 23:18:59 -05:00
Parker Moore
be95eb5a44 Merge pull request #1970 from minddust/missing_post_docs 2014-01-19 20:18:04 -08:00
Matt Rogers
a859c4509a Update history to reflect merge of #1971 2014-01-19 22:06:43 -06:00
Matt Rogers
a640402005 Merge pull request #1971 from 4ensicLog/patch-1 2014-01-19 20:05:56 -08:00
4ensicLog
f05da3db03 Update structure.md
This is my first attempted edit, so forgive any mistakes in decorum or process. I tried to make improvements on word choice which I think will be much clearer to people who are new to Jekyll and how the post filenames work.
2014-01-19 19:51:51 -06:00
Stephan Groß
90fe9ec055 Add missing next and previous docs 2014-01-19 13:49:52 +01:00
liufengyun
22e1e5f28c make sure pages with published being false are not generated 2014-01-19 09:52:19 +08:00
Ben Balter
e42c1aa02b rework vision with @redhotvengeance suggestions 2014-01-18 14:47:05 -05:00
Ben Balter
d8a2be3eb7 Merge branch 'master' into vision 2014-01-18 14:40:08 -05:00
Joel Glovier
ded6350c80 small tweak to clarify last sentence 2014-01-16 13:24:54 -05:00
Joel Glovier
09a5d66b3e Update post.md with additional info about excerpt
Adds a paragraph noting that use of the liquid `| strip_html` flag is possible and useful for meta tag purposes.
2014-01-16 13:18:52 -05:00
Jens Nazarenus
82bee23bd0 added tests for full path leak to source directory when using include tag 2014-01-16 18:43:25 +01:00
Parker Moore
e7139cbd85 Update history to reflect merge of #1953 [ci skip] 2014-01-15 23:40:17 -08:00
Parker Moore
6aa2fc0094 Merge pull request #1953 from troyswanson/dataify-docs 2014-01-15 23:39:37 -08:00
Matt Rogers
8337cbb31f Update history to reflect merge of #1958 2014-01-15 23:24:27 -06:00
Matt Rogers
ebc95274b9 Merge pull request #1958 from jekyll/lock-down-maruku 2014-01-15 21:24:24 -08:00
Matt Rogers
3b485b4497 Lock Maruku to 0.7.0
This fixes the errors we see in our tests due to the upgrade to Maruku
0.7.1
2014-01-15 23:11:27 -06:00
Matt Rogers
10e5ecfe53 Improve the test description for the outputs_ext test 2014-01-15 23:04:52 -06:00
Matt Rogers
824d9f6ca8 Better express that the converter always outputs css 2014-01-15 22:49:33 -06:00
Matt Rogers
0be62fa2e0 Update history to reflect merge of #1947 2014-01-15 22:13:37 -06:00
Matt Rogers
5dc4c67344 Merge pull request #1947 from jekyll/1-4-3-release-info 2014-01-15 20:13:31 -08:00
Jens Nazarenus
4c140efba8 fix full path leak to source directory when using include tag 2014-01-15 21:36:35 +01:00
Troy Swanson
7f3b35191c Make doc menus more reusable 2014-01-14 21:48:08 -06:00
Parker Moore
ea94e5dd1c Update history to reflect merge of #1949 [ci skip] 2014-01-14 08:56:28 -08:00
Parker Moore
b3064a9b7d Forgot #1943 in the line, whoopsie 2014-01-14 08:44:20 -08:00
Parker Moore
dc599121a0 Update history to reflect merge of #1943 [ci skip] 2014-01-14 08:43:53 -08:00
Parker Moore
45c0523e55 update dat gemspec 2014-01-14 08:43:29 -08:00
Parker Moore
245597c2db Require Liquid 2.5.5 <= x < 2.6 2014-01-13 22:28:16 -08:00
Parker Moore
e87cd8d53c Update History.markdown with 1.4.3 release. 2014-01-13 22:27:41 -08:00
Parker Moore
edc9ffcb65 Add 1.4.3 release post by @BenBalter for master branch. 2014-01-13 22:26:38 -08:00
Ben Balter
e3be74e376 sanity check for pages permalink traversal
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Andy Lindeman
a8dd34420b Prevents disclosure of file existence
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
c84cb5c007 escape relative post permalinks, cleanup
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
a799e41b70 patch symlink vuln and properly test
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
4e318cd192 test symlinkd dir, not file
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
323d14845f rebreak tests, move sanitization closer to write
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
ce425eec8b fix symlink so tests fail
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
f570a9339d unbreak tests
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
dfec551cc4 add symlink failing test
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
0acbe95797 test multiple traversals
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
f49ee21136 fix failing post count test
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
9b3068c15d url escape before sanitizing
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
9e796d0627 failing test
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Matt Rogers
750a56d1fe Update history to reflect merge of #1940 2014-01-13 13:13:31 -06:00
Matt Rogers
15ea6eecf9 Merge pull request #1940 from robatron/patch-1 2014-01-13 11:13:28 -08:00
Rob McGuire-Dale
5aeb2733a1 Add link to contributors in README.
Linkify "awesome contributors" in the README, as in the footer of the [Jekyll home page](http://jekyllrb.com/).
2014-01-13 10:19:05 -08:00
Matt Rogers
2c2beb9c1f Update history to reflect merge of #1938 2014-01-13 09:16:29 -06:00
Matt Rogers
f9263b6fdf Merge pull request #1938 from jekyll/excludes-relative-to-site-source-docs 2014-01-13 07:15:53 -08:00
Parker Moore
2966606b1a Add docs about the 'new' restriction on excludes. 2014-01-13 00:17:12 -08:00
Parker Moore
4afe39e461 Allow caching in unsafe mode, but disable in safe mode. 2014-01-12 21:36:08 -08:00
Parker Moore
6b92126fd8 Add docs for Sass conversion. 2014-01-12 21:30:30 -08:00
Parker Moore
66732b91c1 Make sass a runtime dependency. 2014-01-12 21:30:30 -08:00
Parker Moore
ecf85a9cfa Does not allow caching.
This was done to prevent putting the .sass-cache folder in bad places. Needed? cc @benbalter.
2014-01-12 21:30:30 -08:00
Parker Moore
8ecd2d9218 Don't allow path traversal or syntax overrides. 2014-01-12 21:30:30 -08:00
Parker Moore
4784d1de18 Build Sass configuration options. 2014-01-12 21:30:30 -08:00
Parker Moore
22d4e2aa90 Consolidate into one master 'Sass' converter. 2014-01-12 21:30:29 -08:00
Parker Moore
daa0b76484 Allow users to specify options for Sass. 2014-01-12 21:30:29 -08:00
Parker Moore
4da7223831 Fixes for Sass/SCSS converters. 2014-01-12 21:30:29 -08:00
Parker Moore
824a84ef2a Add support for Sass and SCSS. 2014-01-12 21:30:29 -08:00
Parker Moore
0d6db1613f Update history to reflect merge of #1936 [ci skip] 2014-01-12 21:30:18 -08:00
Parker Moore
f23952c8ab Merge pull request #1936 from jekyll/branding 2014-01-12 21:29:51 -08:00
Parker Moore
21cef96b5d Branding, baby.
Many thanks to http://patorjk.com/software/taag/ for doing the
ASCII art. 😃
2014-01-12 14:44:40 -08:00
Parker Moore
f8c904908a Update history to reflect merge of #1933.
[ci skip]
2014-01-12 13:53:56 -08:00
Rob Muhlestein
b053a1edf1 Add note in Posts docs about stripping <p> tags from excerpt.
Fixes #1926. Merges #1933.
2014-01-12 13:52:32 -08:00
Ben Balter
e5f1a400ee first pass at vision 2014-01-12 11:57:11 -08:00
Parker Moore
8bc51fdb5c Update history to reflect merge of #1928 [ci skip] 2014-01-11 15:32:12 -08:00
Parker Moore
dd2fa1e82d Merge pull request #1928 from jekyll/things-to-content 2014-01-11 15:31:30 -08:00
Matt Rogers
6f394e82b5 Rename read_things to read_content. 2014-01-11 15:29:22 -06:00
Matt Rogers
f3e9eb92a9 Update the documentation for the new exclude behavior 2014-01-11 15:05:45 -06:00
Matt Rogers
cc2ac99487 Update history to reflect merge of #1916 2014-01-11 12:37:33 -06:00
Matt Rogers
d96165e3c4 Merge pull request #1916 from jekyll/gitignore-excludes 2014-01-11 10:37:31 -08:00
Matt Rogers
60524a1b6c Update history to reflect merge of #1923 2014-01-11 12:35:51 -06:00
Matt Rogers
9b0c09ebfb Merge pull request #1923 from mscharley/master 2014-01-11 10:35:50 -08:00
Matt Rogers
649e5a156a Update history to reflect merge of #1927 2014-01-11 12:20:19 -06:00
Matt Rogers
d31efc7984 Merge pull request #1927 from jekyll/delegate-silly 2014-01-11 10:20:17 -08:00
Parker Moore
5a52986db0 Use 'Forwardable' module to pass along some attribute calls to @post 2014-01-10 22:54:06 -08:00
Parker Moore
331c7adc08 Move #glob_include? from core_ext to entry_filter 2014-01-08 20:24:21 -08:00
Matthew Scharley
20a6bdf5ec Add jekyll-compass to the list of plugins 2014-01-08 13:38:33 +11:00
Parker Moore
459a4c1e55 Update history to reflect merge of #1883 [ci skip] 2014-01-06 20:55:43 -08:00
Parker Moore
4ef9f9e6d2 Merge pull request #1883 from pathawks/master 2014-01-06 20:51:20 -08:00
Parker Moore
3d67cdc150 Cast to string before duplicating. 2014-01-05 11:02:03 -08:00
Parker Moore
366f9268ee Add tests for new exclude behaviour. 2014-01-05 11:01:51 -08:00
Parker Moore
35868807c1 Ensure leading slashes in path matching. 2014-01-05 10:54:52 -08:00
Parker Moore
42fc5e9ee7 Excludes should be relative to the site source 2014-01-05 10:45:42 -08:00
Parker Moore
437693e744 Update history to reflect merge of #1912 [ci skip] 2014-01-04 14:09:49 -08:00
Parker Moore
17d19146de Merge pull request #1912 from jekyll/cibuild 2014-01-04 14:09:28 -08:00
Parker Moore
52a36fefdc Add script/cibuild. 2014-01-04 14:04:17 -08:00
Matt Rogers
b05a44cb2a Update history to reflect merge of #1910 2014-01-04 10:12:24 -06:00
Matt Rogers
883e16acde Merge pull request #1910 from pborreli/typos 2014-01-04 08:12:20 -08:00
Matt Rogers
6184c4e44b Update history to reflect merge of #1899 2014-01-04 10:04:24 -06:00
Matt Rogers
a33e86630d Merge pull request #1899 from soimort/preview-404 2014-01-04 08:04:20 -08:00
Matt Rogers
bbcd94e7fa Update history to reflect merge of #1875 2014-01-04 10:01:58 -06:00
Matt Rogers
7d8c01dbf4 Merge pull request #1875 from jekyll/benbalter-where-filter 2014-01-04 08:01:53 -08:00
Pascal Borreli
bdda3a8ef6 Fixed typos 2014-01-04 14:17:38 +00:00
Parker Moore
a5f1bc0341 Fixed the tests... I guess Hash literals aren't ok. 2014-01-03 21:23:02 -08:00
Parker Moore
b4383a5c42 Flesh out tests for where filter for @mattr- 😃 2014-01-03 21:23:02 -08:00
Parker Moore
6ca731c13b Use idiomatic #is_a? method instead of #class == 2014-01-03 21:23:02 -08:00
Ben Balter
39e4d6b3ba add where filter to filter arrays of objects 2014-01-03 21:23:02 -08:00
Parker Moore
60a231f16d Line -q up with the other flags. [ci skip] 2014-01-03 21:14:55 -08:00
Parker Moore
32b952803e Update history to reflect merge of #1898 2014-01-03 21:14:12 -08:00
Parker Moore
35948fa55c Merge pull request #1898 from ahazem/add-quiet-flag 2014-01-03 21:13:44 -08:00
Parker Moore
eb67894e0f Update history to reflect merge of #1900 2014-01-03 11:12:48 -08:00
Parker Moore
2c81d25c72 Merge pull request #1900 from jekyll/ruby-2-1 2014-01-03 11:12:27 -08:00
Matt Rogers
c574ac6670 Merge pull request #1906 from afeld/upgrade-shoulda
Loosen dependency on Shoulda
2014-01-03 06:38:51 -08:00
Aidan Feldman
716b8ede0e Loosen dependency on Shoulda
Fixes build for Ruby 2.1.0.
2014-01-03 05:44:47 -05:00
Mort Yao
99b36c7c30 Routing 404 errors to custom 404 page for development server 2014-01-03 03:23:46 +01:00
Parker Moore
c8dacbadc0 Test under Ruby 2.1.0 2014-01-02 14:39:00 -08:00
Parker Moore
b273ac38a6 Update history to reflect merge of #1902 2014-01-02 13:26:08 -08:00
Parker Moore
986f9aa640 Merge pull request #1902 from troyswanson/utf-8-note 2014-01-02 13:25:46 -08:00
Troy Swanson
c7e5c3f8d8 Add a note about character sets 2014-01-02 14:53:03 -06:00
Parker Moore
c7b649f792 Update test_generated_site.rb to know about new post 2014-01-01 19:53:42 -08:00
Pat Hawks
64b42d0431 Move user-select CSS to more specific selector 2014-01-01 16:34:57 -06:00
Ahmed Hazem
fdcf1f4526 Add --quiet flag 2014-01-01 18:50:27 +02:00
Parker Moore
36495487a3 Update history to reflect merge of #1889 2013-12-31 18:52:24 -08:00
Parker Moore
c00c8c208c Merge pull request #1889 from penibelst/site-link-license 2013-12-31 18:51:56 -08:00
Parker Moore
29720674dc Update history to reflect merge of #1896 2013-12-31 18:50:07 -08:00
Parker Moore
c437d8ec38 Merge pull request #1896 from georgeanderson/master 2013-12-31 18:49:25 -08:00
Parker Moore
b0ca19c67b Update history to reflect merge of #1897 2013-12-31 18:48:46 -08:00
Parker Moore
60dec88882 Merge pull request #1897 from nschonni/patch-1 2013-12-31 18:48:22 -08:00
Nick Schonning
10235aeb66 Fix Tom Preston-Werner blog source link 2013-12-31 14:03:46 -05:00
George Anderson
cb80a849e4 Added paginate default to nil
I found this missing property in the default configuration description.
2013-12-31 14:41:06 -02:00
Anatol Broder
d11b6d7ffd Change literal to HTML entity 2013-12-31 13:40:25 +01:00
Matt Rogers
012387396a Merge pull request #1859 from robin850/rouge 2013-12-30 22:45:07 -06:00
Matt Rogers
47e4e81053 Update history to reflect merge of #1849 2013-12-30 22:32:21 -06:00
Matt Rogers
a2fd8ba7c3 Merge pull request #1849 from afeld/sort-attributes 2013-12-30 20:31:45 -08:00
Parker Moore
7c276c6f64 Update history to reflect merge of #1894 2013-12-30 16:35:48 -08:00
Parker Moore
a8a7f032ef Merge pull request #1894 from CHH/patch-1 2013-12-30 16:34:53 -08:00
Christoph Hochstrasser
dd919751ac Update kramdown to 1.3 2013-12-30 22:14:41 +01:00
Parker Moore
ac9bca80c8 Update history to reflect merge of #1893 2013-12-30 11:07:50 -08:00
Parker Moore
a50a858c86 Merge pull request #1893 from rrgayhart/testing-additions 2013-12-30 11:03:17 -08:00
Meeka
1da8f04aaa Removes assert_includes to pass Travis 2013-12-30 12:57:23 -05:00
Meeka
9652b7ef80 adds to_s method testing on Excerpt 2013-12-30 12:23:41 -05:00
Meeka
3a0733deb9 Adds tests for the Excerpt include?, id, and inspect methods 2013-12-30 12:15:13 -05:00
Anatol Broder
f59895425e Don’t break things 2013-12-29 23:58:01 +01:00
Anatol Broder
3489b43cb8 Thank you, Tom 2013-12-29 23:57:12 +01:00
Anatol Broder
95fdc2c2c5 Remove the team 2013-12-29 23:52:24 +01:00
Anatol Broder
5cb38dc4d7 Fix typo. Change license link 2013-12-29 10:26:49 +01:00
Anatol Broder
60541437e3 Revert "Add license page"
This reverts commit 8e9437199c.
2013-12-29 10:24:13 +01:00
Anatol Broder
95e4707fd1 Add Jekyll Team to the license text 2013-12-29 01:17:25 +01:00
Anatol Broder
8e9437199c Add license page 2013-12-29 01:10:31 +01:00
Anatol Broder
ee8d509d39 Change footer 2013-12-29 00:49:48 +01:00
Parker Moore
3744e70128 Raise restriction of safe_yaml to ~>1.0
Amends #1886
2013-12-28 13:47:35 -05:00
Parker Moore
194109d677 Update history to reflect merge of #1886 2013-12-28 13:46:40 -05:00
Parker Moore
3e4d47c21d Merge pull request #1886 from ivantsepp/1845_bump_safe_yaml_version 2013-12-28 10:45:57 -08:00
Ivan Tse
9d5683dc71 Bump safe_yaml version to include the fix for dtao/safe_yaml#35 2013-12-28 02:42:48 -05:00
Pat Hawks
f3a422852e Clean up Quick-start Instructions
Now lines can be copy-pasted as is into a terminal
2013-12-27 22:40:02 -06:00
Pat Hawks
9833880709 Prevent users from selecting non-helpful code 2013-12-27 22:37:16 -06:00
Parker Moore
da8571beec Update history to reflect merge of #1879 2013-12-26 15:23:28 -05:00
Parker Moore
c53e8dbd6c Merge pull request #1879 from jekyll/update-mercenary 2013-12-26 12:23:00 -08:00
Parker Moore
d2314d360a Bump mercenary to ~> 0.2.0 2013-12-26 14:34:28 -05:00
Parker Moore
7093d3aa82 Update history to reflect merge of #1877 2013-12-26 02:02:42 -05:00
Parker Moore
5f2e8b8ae4 Merge pull request #1877 from jekyll/maul-esel-consistent-opts 2013-12-25 23:02:13 -08:00
maul.esel
0e444b7843 make options consistent across commands 2013-12-26 02:00:26 -05:00
Parker Moore
a2853456b6 Update history to reflect merge of #1825 2013-12-26 01:33:17 -05:00
Parker Moore
791c6d815d Merge pull request #1825 from arika/smallfix_post_url_tag_behavior_for_invalid_names 2013-12-25 22:32:50 -08:00
Parker Moore
46e47e6713 Update history to reflect merge of #1831 2013-12-26 01:14:48 -05:00
Parker Moore
1a3a607fcf Merge pull request #1831 from jekyll/default-maruku-fenced-code-blocks 2013-12-25 22:14:23 -08:00
Parker Moore
92c3d6d3fd Update history to reflect merge of #1841 2013-12-26 01:12:40 -05:00
Parker Moore
6e8f31f406 Merge pull request #1841 from jens-na/include-variable-liquid-filters 2013-12-25 22:11:33 -08:00
Parker Moore
a60852df19 Merge pull request #1853 from jekyll/update-history-with-v1.4.x 2013-12-25 22:07:32 -08:00
Parker Moore
fbf2b5734e Update history to reflect merge of #1866 2013-12-26 01:07:01 -05:00
Parker Moore
ebaa484294 Merge pull request #1866 from colindean/patch-2 2013-12-25 22:06:34 -08:00
Parker Moore
0ebec0b03f Update history to reflect merge of #1872 2013-12-26 01:06:02 -05:00
Parker Moore
5c4831af49 Merge pull request #1872 from jekyll/gjtorikian-steal-envygeeks-custom-markdown-processors 2013-12-25 22:05:31 -08:00
Parker Moore
58ae137945 Fix quick site bugs. 2013-12-26 01:02:13 -05:00
Parker Moore
88612bf7ce Add docs for custom markdown processors. 2013-12-26 00:52:20 -05:00
Parker Moore
ab95cca434 Add TomDoc for Jekyll::Converters::Markdown#allowed_custom_class? 2013-12-26 00:33:34 -05:00
Parker Moore
7b9984699c Fix error in exception message in Markdown Converter [ci skip] 2013-12-26 00:14:24 -05:00
Parker Moore
60b43104ee Extract checks for acceptable custom markdown processors to method.
We should probably write more about what it does and how it works in a TomDoc block above.
@envygeeks, want to give that a shot?
2013-12-26 00:02:56 -05:00
Jordon Bedwell
a206dc1a8f Use downcase. 2013-12-25 23:55:20 -05:00
Parker Moore
c70350e275 Merge branch 'steal-envygeeks-custom-markdown-processors' of git://github.com/gjtorikian/jekyll into gjtorikian-steal-envygeeks-custom-markdown-processors
* 'steal-envygeeks-custom-markdown-processors' of git://github.com/gjtorikian/jekyll:
  Depend on Jekyll.logger.error, not $stderr
  Allow custom Markdown processors.
  New is implied by `raise`, 2nd is the message.
  Use $stderr, not STDERR, $stderr points to STDERR.
2013-12-25 23:52:50 -05:00
Garen Torikian
31bebf0f9e Depend on Jekyll.logger.error, not $stderr 2013-12-25 19:36:49 -06:00
Jordon
c759a7a75f Allow custom Markdown processors. 2013-12-25 19:36:25 -06:00
Jordon
626d54a812 New is implied by raise, 2nd is the message. 2013-12-25 19:36:25 -06:00
Jordon
4d017b4fed Use $stderr, not STDERR, $stderr points to STDERR. 2013-12-25 19:36:25 -06:00
Robin Dupret
036cbda2f6 Require at least 1.3.0 for Rouge
Rouge 1.3.0 introduced a `rouge_formatter` helper which is handy to
overwrite the formatter default when using the Redcarpet plugin so let's
require this version at the very least.

An abort statement will be thrown when the installed version is not
correct.
2013-12-25 18:06:29 +01:00
Parker Moore
1550c60278 Update history to reflect merge of #1847 2013-12-24 14:05:54 -05:00
Parker Moore
9d5785cead Merge pull request #1847 from schneems/schneems/better-bat-time-error 2013-12-24 11:05:34 -08:00
Parker Moore
169e526f2f Update history to reflect merge of #1867 2013-12-24 14:05:00 -05:00
Parker Moore
ec68acf958 Merge pull request #1867 from pootsbook/patch-2 2013-12-24 11:02:47 -08:00
Philip Poots
5491da9511 Add closing <code> tag.
Earlier PR omitted </code>. Thanks to @ivantsepp for spotting.
2013-12-24 09:42:47 +00:00
Colin Dean
88686e759e Add path to required methods
The error messages in this module call `#path`, but the module does not require the `path` method to be implemented. This change documents that classes which include `Convertible` must define `path`.

See #1846 for discussion.
2013-12-23 12:56:02 -05:00
Robin Dupret
5647a902de Remove a useless given step
Since the highlighter configuration option should default to pygments,
we don't have to explicitly set it in the step testing the output with
pygments.
2013-12-23 13:03:29 +01:00
Robin Dupret
3ca2cb0119 Fix various typos and improve the doc 2013-12-23 13:03:29 +01:00
Robin Dupret
cab9047de1 Set the wrap option to false when using Rouge
Since Rouge yields the pre tag with a class attribute but we don't want
it, we should set the wrap parameter to false when instantiating a new
formatter object.

Also use Rouge::Formatter#format instead of #render which is deprecated
and will be removed in the near future.
2013-12-23 13:03:24 +01:00
Parker Moore
42aef79ab3 Update history to reflect merge of #1864 2013-12-22 22:15:09 -05:00
Parker Moore
3d09b144f9 Merge pull request #1864 from pootsbook/patch-1 2013-12-22 19:14:35 -08:00
Aidan Feldman
9d7c524530 fix file sorting test 2013-12-22 19:33:00 -05:00
Aidan Feldman
fa8618879d Merge remote-tracking branch 'upstream/master' into sort-attributes 2013-12-22 19:31:56 -05:00
Philip Poots
e17f997e75 Clarify how to access site
I was unable to access the config at `context.registers.config`. Everything seems to point towards the `site` variable being accessed via `context.registers[:site]`.
2013-12-22 23:01:13 +00:00
Robin Dupret
bd442680ea Rely on the Redcarpet plugin instead of hard-coding
To avoid code duplication and have to keep tracking of the API change of
Rouge, let's rely on the Redcarpet plugin and customize the output on
our needs.
2013-12-22 18:45:46 +01:00
Robin Dupret
4bf716c2ad Set highlighter to pygments when upgrading
In case you are upgrading from 1.4.2 to 2.0 and the pygments option is
set to true, then the highlighter option will be set to pygments
automatically.
2013-12-22 18:45:46 +01:00
Robin Dupret
0831d2b0f8 Add support for the Rouge syntax highlighter
By setting the `highlighter` setting to `rouge` you can now easily
highlight your code with it instead of relying on Pygments. However,
Jekyll doesn't depend on Rouge explicitly, you will need to install it
or add it to your Gemfile.

The documentation has been updated accordingly.
2013-12-22 18:45:40 +01:00
Robin Dupret
92064134d6 Rename the pygments option to highlighter
Rename the pygments configuration option to highlighter to allow
different highlighters in the future. For now, the allowed values are
`pygments` and `null`.

It's now more straightforward to plug another syntax highlighter.
2013-12-22 12:45:15 +01:00
Robin Dupret
903cce2745 Fix the highlight tag feature
Previously, the assertion made wasn't enough to check whether the code
block was correctly parsed through Pygments (and it was not the case).
This commit simply ensure there is a div with the "highlight" class and
fix the test to correctly invoke the Liquid tag rendering.
2013-12-22 12:29:19 +01:00
Aidan Feldman
2bfafb3b33 make non-data properties/methods accessible to Liquid
per https://github.com/jekyll/jekyll/pull/1849/files#r8490593
2013-12-22 03:38:32 -05:00
Parker Moore
354b4b9c54 Update history to reflect merge of #1854 2013-12-19 19:58:36 -05:00
Parker Moore
8c2da13096 Merge pull request #1854 from EricDobson/docs_datafiles_typo 2013-12-19 16:57:53 -08:00
Aidan Feldman
c2b750448e allow data attribute access by Liquid on Convertible items 2013-12-19 17:14:51 -05:00
Eric Dobson
c79f170687 Fix typo in docs. 2013-12-19 14:39:23 -07:00
Parker Moore
c29ffb9dd9 Add in 1.4.1 and 1.4.2 changelog 2013-12-19 15:21:42 -05:00
Parker Moore
8cb1dc47d9 Update history to reflect merge of #1848 2013-12-19 15:20:51 -05:00
Parker Moore
94e96d325b Merge pull request #1848 from afeld/sort-pages 2013-12-19 12:19:49 -08:00
Aidan Feldman
45ee9f814a clarify page sorting test 2013-12-19 13:46:43 -05:00
Jens Nazarenus
412fe8b8de edited documentation for include tag 2013-12-19 18:29:40 +01:00
Jens Nazarenus
10ee83d680 edited raise message when validating included file 2013-12-19 18:23:21 +01:00
Jens Nazarenus
f9ffbe0d6a removed duplicate test scenario 2013-12-19 18:23:07 +01:00
Aidan Feldman
8c1706b66e clean up custom variable sort feature 2013-12-19 03:36:48 -05:00
Aidan Feldman
35712dcadc add failing test for sorting pages by custom variables 2013-12-19 03:35:57 -05:00
Aidan Feldman
396aa16f99 refactor step to support page creation 2013-12-19 02:27:23 -05:00
Aidan Feldman
5b2480c8ba refactor file+matter creation in cucumber steps 2013-12-19 01:58:46 -05:00
Aidan Feldman
a6e1c40051 link to Stack Overflow answer re: Dir sorting 2013-12-19 01:05:00 -05:00
Aidan Feldman
3c1d45f45f Sort pages by name by default
The order that files are returned differs across operating systems, so
ensure that they're being sorted after the fact.
2013-12-19 01:02:25 -05:00
schneems
22017d085b Better error message when time is not parseable
Give the full path of the file that cannot be parsed so the user can locate it easier. Follow up the error message with helpful instructions: they can resolve the error by fixing the date or excluding the file or directory from being processed.
2013-12-18 16:14:21 -06:00
Jens Nazarenus
43ef9a2e4f variables in include tag with filters 2013-12-17 23:51:52 +01:00
akira yamada
ecab2eb473 made error description more helpful 2013-12-17 10:57:12 +09:00
Parker Moore
12a55b86ac Update history to reflect merge of #1836 2013-12-16 20:32:28 -05:00
Parker Moore
eaa8c8de29 Merge pull request #1836 from jekyll/update-history-with-v1.4.x
Update `master` with v1.4.x changes
2013-12-16 17:31:45 -08:00
Parker Moore
cb31e9c2db Rakefile's site:releases:new should use 'release' variable instead of 'version' function to specify version in YAML front-matter 2013-12-16 20:31:21 -05:00
Parker Moore
f6e7e5cc76 Add link to 'a regression' in 1.4.2 release post 2013-12-16 20:30:06 -05:00
Parker Moore
8690edcae4 Add 1.4.2 release post 2013-12-16 20:26:52 -05:00
Parker Moore
6b5ce3a9f0 Add v1.4.2 to History.markdown 2013-12-16 20:26:43 -05:00
Parker Moore
d362faea3b Add two tests for Maruku fenced code blocks 2013-12-15 16:08:45 -05:00
Parker Moore
1ebce26881 Default Maruku fenced_code_blocks to ON.
Extends https://github.com/jekyll/jekyll/pull/1799
2013-12-15 16:08:21 -05:00
akira yamada
9d259fe315 added error description for invalid post name 2013-12-15 17:18:11 +09:00
akira yamada
a5545d5bad post_url tag raises ArgumentError for invalid name
Using post_url tag with invalid name raises TypeError.

It should raise ArgumentError and should display detail of the error to
fix the error.
2013-12-14 22:30:22 +09:00
Lachlan Holden
62bda6076b Added a link to the list of all tz database time zones 2013-12-14 15:04:31 +10:30
Parker Moore
b7bdcb19ca Update history to reflect merge of #1818 2013-12-11 18:31:13 -05:00
Parker Moore
53721dce03 Merge pull request #1818 from jekyll/windows-docs 2013-12-11 15:26:15 -08:00
Parker Moore
c295060f69 Use Markdown, silly 2013-12-11 18:25:02 -05:00
Matt Rogers
3e2c229e97 Merge pull request #1817 from jekyll/move-to-jekyll-jekyll
mojombo/jekyll ~> jekyll/jekyll
2013-12-11 14:50:21 -08:00
Matt Rogers
6d0a168d6d Update history to reflect merge of #1817 2013-12-11 16:47:37 -06:00
Parker Moore
6195192bcf mojombo/jekyll ~> jekyll/jekyll 2013-12-11 17:44:33 -05:00
Matt Rogers
379093f940 Update history to reflect merge of #1815 2013-12-11 16:00:47 -06:00
Matt Rogers
85fcd0e757 Merge pull request #1815 from mojombo/redcarpet-3 2013-12-11 14:00:42 -08:00
Parker Moore
827c4b9bda Update history to reflect merge of #1812 2013-12-11 16:53:39 -05:00
Parker Moore
7b23fca86e Merge pull request #1812 from mojombo/openshift-cartridge 2013-12-11 13:53:16 -08:00
Parker Moore
1c22b3f751 Bump RedCarpet dependency to ~> 3.0 2013-12-11 16:51:57 -05:00
Parker Moore
1b8e6facd3 Add note about deployment on OpenShift using @developercorey's Jekyll cartridge. 2013-12-11 16:05:35 -05:00
Matt Rogers
e5c8c94cd1 Update history to reflect merge of #1780 2013-12-11 08:08:14 -06:00
Matt Rogers
39b6fe732f Merge pull request #1780 from mojombo/kill-1-8 2013-12-11 06:08:10 -08:00
Matt Rogers
fc760c1604 Update history to reflect merge of #1706 2013-12-10 23:16:44 -06:00
Matt Rogers
58159389b8 Merge pull request #1706 from mojombo/drop-commander 2013-12-10 21:16:42 -08:00
Matt Rogers
b49c6508f5 Update history to reflect merge of #1805 2013-12-10 22:58:48 -06:00
Matt Rogers
6efb726e2b Merge pull request #1805 from ivantsepp/scaffold_vertical_scrollbar 2013-12-10 20:58:45 -08:00
Matt Rogers
48834891ac Update history to reflect merge of #1799 2013-12-10 22:30:55 -06:00
Matt Rogers
a7d4ee8bfb Merge pull request #1799 from konklone/maruku_fenced_code_blocks 2013-12-10 20:30:44 -08:00
Ivan Tse
b18f6505dd Remove margin-top of .site to prevent collapsing margins. 2013-12-10 18:39:16 -05:00
Parker Moore
8d44fa913b Update history to reflect merge of #1803 2013-12-10 17:49:44 -05:00
Parker Moore
a1efc105d2 Merge pull request #1803 from penibelst/site-unminify-css 2013-12-10 14:49:17 -08:00
Anatol Broder
1033b4c1e7 Add comments and site.GH_ENV 2013-12-10 22:30:59 +01:00
Parker Moore
01ee2ada7c Update history to reflect merge of #1804 2013-12-10 16:14:25 -05:00
Parker Moore
8ebe19b835 Merge pull request #1804 from penibelst/site-fix-postv141 2013-12-10 13:13:59 -08:00
Anatol Broder
b91ab3b334 Fix repo 2013-12-10 22:01:06 +01:00
Anatol Broder
59eaeed6e7 Fix version 2013-12-10 22:00:27 +01:00
Anatol Broder
288d2a8c6b Unminify css 2013-12-10 21:13:19 +01:00
Parker Moore
6e74ec2f71 Update history to reflect merge of #1788 2013-12-10 11:49:44 -05:00
Parker Moore
a70726e554 Merge pull request #1788 from mojombo/group-by-filter-2 2013-12-10 08:48:44 -08:00
Eric Mill
afe9387578 condensing code slightly 2013-12-10 11:04:04 -05:00
Matt Rogers
c669d1519d Reformat to match the rest of the file 2013-12-09 21:39:24 -06:00
Matt Rogers
a81479adbf Update history to reflect merge of #1795 2013-12-09 21:36:23 -06:00
Matt Rogers
812d55f843 Merge pull request #1795 from Ivoz/patch-1
Add link to Jekyll homepage
2013-12-09 19:35:37 -08:00
Matt Rogers
8ebd5852cd Updates for the 1.4.1 release
The 1.4.1 release is on the v1-stable branch
2013-12-09 20:49:15 -06:00
Matt Rogers
10e350d47b Update history to reflect merge of #1796 2013-12-09 20:24:31 -06:00
Matt Rogers
ed82098162 Merge pull request #1796 from mojombo/fix-fetching-things
Reject nil entries in Site#read_things
2013-12-09 18:23:19 -08:00
Parker Moore
df1a999031 Update history to reflect merge of #1800 2013-12-09 18:00:09 -05:00
Parker Moore
3b90f8b53c Merge pull request #1800 from cs/move-entry-filter-into-jekyll-module 2013-12-09 14:59:54 -08:00
Parker Moore
5495e0b21a Update history to reflect merge of #1797 2013-12-09 17:57:40 -05:00
Parker Moore
7de78d469b Merge pull request #1797 from dougjohnston/patch-1 2013-12-09 14:56:27 -08:00
Christoph Schiessl
695e5bbc40 move EntryFilter class from global namespace into Jekyll module 2013-12-09 23:06:27 +01:00
Eric Mill
28ca5d71ee Remove comments 2013-12-09 16:47:42 -05:00
Eric Mill
470abf46e2 better, simpler test case... 2013-12-09 16:42:51 -05:00
Doug Johnston
ea244e507c Fix a broken link on the troubleshooting.md page 2013-12-09 15:04:48 -05:00
Parker Moore
063111737c Refactor data/[] fetching of item property. 2013-12-09 12:59:43 -05:00
Parker Moore
bf9cf5340d Reject nil entries in Site#read_things 2013-12-09 12:46:57 -05:00
Parker Moore
4fb6022113 Update history to reflect merge of #1791 2013-12-09 12:33:36 -05:00
Parker Moore
3a3d6500bc Merge pull request #1791 from konklone/kramdown_gfm
Document Kramdown's GFM parser option
2013-12-09 09:33:00 -08:00
Parker Moore
585e074cda Update files list in gemspec.
Fixes #1793
2013-12-09 12:29:45 -05:00
Matt Iversen
345ed97cb7 Add link to Jekyll homepage 2013-12-10 04:00:07 +11:00
Eric Mill
caefd7b85f move input GFM option down to the bottom, not in the defaults 2013-12-08 22:59:15 -05:00
Eric Mill
71e625e02c current state 2013-12-08 22:56:29 -05:00
Eric Mill
14418f74ae in-progress patch for maruku and fenced code blocks 2013-12-08 22:37:46 -05:00
Eric Mill
3fe261f91c Mention the 'input' option to use a GFM parser in the kramdown options documentation. 2013-12-08 20:13:52 -05:00
Parker Moore
381ab4e71b Implement group_by Liquid filter & tests. 2013-12-08 01:16:48 -05:00
Parker Moore
d2e948600f Update history to reflect merge of #1787 2013-12-08 01:05:10 -05:00
Parker Moore
d2dc52bcb0 Merge pull request #1787 from mojombo/css-includes-2
Move jekyllrb.com CSS to includes & Update Normalize.css to v2.1.3
2013-12-07 22:02:35 -08:00
Parker Moore
6c23751a4a Upgrade to normalize.css v2.1.3 2013-12-08 01:00:55 -05:00
Anatol Broder
d089923271 Move CSS files to includes. 2013-12-08 01:00:40 -05:00
Parker Moore
601f89d4d1 Remove File.read_with_options patch to allow 1.9 and 1.8 to behave the same 2013-12-08 00:50:12 -05:00
Parker Moore
f14c9db282 Add tests in all the time that was omitted for Ruby 1.8.x 2013-12-08 00:48:25 -05:00
Parker Moore
b4b6df5b6c Remove checks for Ruby 1.8.x 2013-12-08 00:48:10 -05:00
Parker Moore
d130fd13dc Remove Ruby <1.9 core extensions 2013-12-08 00:47:44 -05:00
Parker Moore
6ad0be7c6e Don't check for >= 1.9 in Rakefile 2013-12-08 00:47:23 -05:00
Parker Moore
fa3476dd2a Update history to reflect merge of #1657 2013-12-08 00:43:44 -05:00
Parker Moore
b58cd5c132 Merge pull request #1657 from mojombo/safe-whitelist
A gem-based plugin whitelist for `safe` mode
2013-12-07 21:41:55 -08:00
Matt Rogers
d4bbe3c997 Release 1.4.0 2013-12-07 19:10:02 -06:00
Parker Moore
446e3e4409 Merge pull request #1785 from mojombo/release-1.4.0-updates 2013-12-07 16:37:58 -08:00
Parker Moore
c20c09d2a4 1.4.0 release post fixes 2013-12-07 19:34:52 -05:00
Parker Moore
315fb0cf20 Use YYYY-MM-DD in History file :) 2013-12-07 19:31:48 -05:00
Matt Rogers
3788c08b13 prep the gemspec for 1.4.0 2013-12-07 17:59:21 -06:00
Matt Rogers
350c9b3ab5 bump the version number in the code 2013-12-07 17:59:16 -06:00
Matt Rogers
84722ded3e Update the site for the 1.4.0 release
Add a release announcement and update the History file
2013-12-07 17:59:05 -06:00
Matt Rogers
7da676bcc2 Update History.markdown for the 1.4.0 release 2013-12-07 17:58:51 -06:00
Matt Rogers & Persa Zula
8b0ea62535 Update history to reflect merge of #1779 2013-12-06 23:03:59 -06:00
Matt Rogers
362d28f11d Merge pull request #1779 from mojombo/no-duplication
Refactor post and draft object creation
2013-12-06 20:58:24 -08:00
Matt Rogers
9f1593299a Merge pull request #1775 from Ivoz/maruku
Update to maruku 0.7
2013-12-06 20:56:52 -08:00
Parker Moore
1297ed5c1d Remove weird 1.8.7 workarounds in features env 2013-12-06 01:42:37 -05:00
Parker Moore
96ecfb30ef Require Ruby version >= 1.9.2 in gemspec 2013-12-06 01:42:23 -05:00
Parker Moore
c5ff3fec39 Remove 1.8.7 from Travis build spec 2013-12-06 01:42:04 -05:00
Persa Zula
6a13f7dd57 Modifying enumerator for 1.8.7 2013-12-06 01:28:21 -05:00
Matt Rogers & Persa Zula
e69d77b4df Refactor post and draft object creation
De-duplicate object creation between posts and drafts. Inject the name
dependency through a parameter
2013-12-06 01:28:21 -05:00
Parker Moore
e91db82d26 I mean the argument and the local variable should be the same thing 2013-12-06 01:07:34 -05:00
Parker Moore
5591ff2a6b Whoops, it's called 'jekyll_run_output' 2013-12-06 00:57:19 -05:00
Parker Moore
bce2c2efb4 Print the output of Jekyll if the command fails 2013-12-06 00:52:33 -05:00
Parker Moore
f0fbc8f356 Refactor conditions for allowing plugins into a new method: Site#plguin_allowed? 2013-12-06 00:26:44 -05:00
Parker Moore
249b13a98a Hm, shouldn't need that call to 'rescue' in Site#whitelist 2013-12-06 00:24:59 -05:00
Parker Moore
5c9f9a4de8 The whitelist should be an array (not a file)
Default to `[]` if the key’s value is falsey
2013-12-06 00:23:22 -05:00
Parker Moore
8d898dafde Add "jekyll_test_plugin_malicious" as gem dep 2013-12-06 00:22:07 -05:00
Parker Moore
be5966a2ec Remove option from CLI 2013-12-06 00:21:47 -05:00
Parker Moore
6187861e91 Add test code for 'whitelist' option. 2013-12-06 00:21:34 -05:00
Parker Moore
e14fe116db Update history to reflect merge of #1778 2013-12-05 21:43:11 -05:00
Parker Moore
03a254c712 Merge pull request #1778 from mojombo/fix-toml
Fix 1.8.7 problem with TOML by bumping toml gem to 0.1.0
2013-12-05 18:42:18 -08:00
Parker Moore
aabb3e96cc Upgrade toml gem to 0.1.0 2013-12-05 18:08:32 -05:00
maul.esel
f1869cda98 Merge branch 'master' into frontmatter-defaults 2013-12-05 19:29:57 +01:00
maul.esel
960e01cba8 move self.type to convertible 2013-12-05 09:14:31 +01:00
Matt Rogers
654fe6117b Update history to reflect merge of #1682 2013-12-04 20:40:58 -06:00
Matt Rogers
4a2e5af52e Merge pull request #1682 from envygeeks/patch-1
Sort plugins so people can have "load orders".
2013-12-04 18:40:04 -08:00
Matt Rogers
dc7be86970 Update history to reflect merge of #1765 2013-12-04 20:28:58 -06:00
Matt Rogers
052a577938 Merge pull request #1765 from mojombo/tomlify
Add support for TOML config files
2013-12-04 18:28:20 -08:00
Matt Rogers
4076b12400 Update history to reflect merge of #1772 2013-12-04 20:25:34 -06:00
Matt Rogers
4e11ca8b03 Merge pull request #1772 from penibelst/no-x-icon
Fix favicon’s type
2013-12-04 18:24:16 -08:00
Matthew Iversen
fb9de8cbf6 Fix tests to expect maruku 0.7 output 2013-12-05 12:20:11 +11:00
Matthew Iversen
5ed9d21ec7 Remove extraneous newlines from XHTML output 2013-12-05 12:04:55 +11:00
Matthew Iversen
0bdfed4b25 Update requirements to maruku 0.7 2013-12-05 11:59:36 +11:00
Anatol Broder
eab027d03a Fix favicon’s type 2013-12-04 23:06:08 +01:00
Parker Moore
7af757a3fc Update history to reflect merge of #1762 2013-12-02 15:36:55 -05:00
Parker Moore
b7fe8cfd62 Merge pull request #1762 from yizeng/master
fix wrong case for a word
2013-12-02 12:36:12 -08:00
Parker Moore
6768977c27 Update history to reflect merge of #1755 2013-12-02 15:35:43 -05:00
Parker Moore
b637420373 Merge pull request #1755 from gregkare/more_trailing_whitespace
Remove trailing whitespace
2013-12-02 12:35:06 -08:00
Parker Moore
9cfe1f0a9c Update history to reflect merge of #1769 2013-12-01 19:27:03 -05:00
Parker Moore
6db32d6635 Merge pull request #1769 from davidsawyer/master
add a space between "find" and "an"
2013-12-01 16:26:03 -08:00
David Sawyer
63122fdafc add a space between "find" and "an" 2013-12-01 19:11:16 -05:00
Parker Moore
3b0c8ad654 Add some unit tests for TOML integration. 2013-11-29 23:33:52 -05:00
Parker Moore
b8bbc6e08b require the TOML gem, idiot. 2013-11-29 23:33:38 -05:00
Parker Moore
22b95aee38 Give that LoadError a good message. 2013-11-29 23:33:25 -05:00
Parker Moore
1e32af47a6 Better config file parser error if it's not there. 2013-11-29 23:22:13 -05:00
Parker Moore
51706e8da7 Parse TOML or YAML in Jekyll::Configuration. 2013-11-28 22:11:56 -05:00
Yi Zeng
9fa0f2ab26 fix wrong case for a word 2013-11-27 20:19:25 +13:00
Matt Rogers
4f337df2d8 Update the gemspec with the release post 2013-11-26 20:45:57 -06:00
Matt Rogers
04cf28dc05 Release 1.3.1 2013-11-26 20:30:23 -06:00
Matt Rogers
91a4c5611e Prep for the 1.3.1 release 2013-11-26 20:27:27 -06:00
Matt Rogers
4cc0bdf8ff Update history to reflect merge of #1759 2013-11-26 19:46:46 -06:00
Matt Rogers
f8ae2ce7d9 Merge pull request #1759 from mojombo/pagination-lowest-priority
Pagination generator should have :lowest priority
2013-11-26 17:45:31 -08:00
Parker Moore
eceebb23a6 Pagination generator should have :lowest priority 2013-11-26 12:45:00 -05:00
Matt Rogers
47eac96fdc Update history to reflect merge of #1754 2013-11-25 20:56:51 -06:00
Matt Rogers
cbfb4e7414 Merge pull request #1754 from gregkare/duplicate_testcase
Fix duplicate test case name
2013-11-25 18:56:07 -08:00
Greg Karékinian
ce8e271b5d Remove trailing whitespace 2013-11-25 13:31:53 +01:00
Greg Karékinian
9182b1b7ae Fix duplicate test case name 2013-11-25 12:59:27 +01:00
Matt Rogers
7cda916faa Update history to reflect merge of #1448 2013-11-22 23:00:24 -06:00
Matt Rogers
9e9abcb516 Merge pull request #1448 from penibelst/replace-yoursite
Replace yoursite.com by example.com
2013-11-22 20:59:27 -08:00
Matt Rogers
33be5b0361 Update history to reflect merge of #1746 2013-11-22 22:30:29 -06:00
Matt Rogers
7cb44fdff1 Merge pull request #1746 from maul-esel/missing-include
output including file for include tag error
2013-11-22 20:29:11 -08:00
Matt Rogers
16f4d025ab Update history to reflect merge of #1736 2013-11-22 22:23:27 -06:00
Matt Rogers
cf60d5e34e Merge pull request #1736 from gregkare/trailing_whitespace
Remove extra trailing whitespace
2013-11-22 20:22:53 -08:00
Matt Rogers
8595ea812c Update history to reflect merge of #1718 2013-11-22 20:32:27 -06:00
Matt Rogers
249642733b Merge pull request #1718 from thomasdao/master
Add docs for post_url when posts are in subdirectory
2013-11-22 18:31:09 -08:00
maul.esel
c5533e9016 restrict rescue-clause in IncludeTag#render
As it previously enclosed the whole method, it also
wrapped file validation errors, which is not meant to be.

Fixes #1745.
2013-11-22 06:58:52 +01:00
maul.esel
3888a24068 output including file for include tag error 2013-11-21 22:03:39 +01:00
Parker Moore
ed7fb46b96 Update history to reflect merge of #1741 2013-11-21 15:57:03 -05:00
Parker Moore
4fb437cfc6 Merge pull request #1741 from andrewhavens/patch-1
Update link to example Rakefile to point to specific commit.
2013-11-21 12:54:08 -08:00
andrewhavens
8944cdf544 Update link to example Rakefile to point to specific commit.
The link was pointing to the latest version of the file which had been changed and no longer provided the intended example.
2013-11-20 21:45:05 -08:00
Parker Moore
4786cfcb5e If no args are given, then list possible importers. 2013-11-20 22:51:47 -05:00
Parker Moore
35ef90ac66 Check if JekyllImport is defined using Object#const_defined? 2013-11-20 22:51:47 -05:00
Parker Moore
b923df0c01 Let jekyll-import specify subcommands and their options for each importer.
@mojombo, this look better?
2013-11-20 22:51:47 -05:00
Parker Moore
b61534d260 Switch from commander to mercenary in gemspec 2013-11-20 22:51:24 -05:00
Parker Moore
2299e996d2 Fix serve -> server alias, ensure --drafts is mapped to show_drafts 2013-11-20 22:51:24 -05:00
Parker Moore
d1856b40f8 Add syntax for mercenary CLI engine by @mojombo 2013-11-20 22:51:24 -05:00
Greg Karékinian
49d5c3457c Remove extra trailing whitespace 2013-11-20 00:50:56 +01:00
Parker Moore
063ee6fb67 Update history to reflect merge of #1734 2013-11-19 13:49:52 -05:00
Parker Moore
22ff7d00f4 Merge pull request #1734 from gregkare/travis_cache
Enable Travis' bundle caching
2013-11-19 10:48:19 -08:00
Greg Karékinian
aec4286ca6 Enable Travis' bundle caching
It should speed up the builds significantly. See
http://about.travis-ci.org/docs/user/caching/#Bundler for more details.
2013-11-19 17:32:11 +01:00
Parker Moore
f4918a623b Update history to reflect merge of #1732 2013-11-18 18:59:10 -05:00
Parker Moore
86e717fad4 Merge pull request #1732 from mojombo/fix-import-docs
Remove all the docs for migrations and link to http://import.jekyllrb.com
2013-11-18 15:58:21 -08:00
Parker Moore
cbee41330e Remove all the docs for migrations and link to http://import.jekyllrb.com 2013-11-18 18:56:38 -05:00
David Silva Smith
cbdadc83a1 Add block of code which should be added to Gemfile for Windows listen compatibility.
Closes https://github.com/mojombo/jekyll/pull/1720
2013-11-18 15:20:44 -05:00
Parker Moore
752a862c67 Add note about auto-regeneration 2013-11-18 15:17:50 -05:00
Aigars Dzerviniks
e974370cf1 Add additional information about encoding issues on Windows 2013-11-18 15:12:21 -05:00
Parker Moore
12fcdd9bfa Some beginning collection for Windows users.
Leaving the office so it's a bit unkempt.
2013-11-18 15:12:21 -05:00
Parker Moore
435d0bc4ab Empty file for windows docs. 2013-11-18 15:12:21 -05:00
Matt Rogers
315cfcd727 Update history to reflect merge of #1730 2013-11-17 23:01:28 -06:00
Matt Rogers
c120b96638 Merge pull request #1730 from mojombo/pathname-to-s
Use Pathname#to_s instead of Pathname#to_path
2013-11-17 21:00:27 -08:00
Parker Moore
dfffc2e72a Use Pathname#to_s instead of Pathname#to_path
Fixes #1723.
2013-11-16 13:12:59 -05:00
Matt Rogers
1d81f2553d Update history to reflect merge of #1726 2013-11-15 08:26:45 -06:00
Matt Rogers
e0ef667dad Merge pull request #1726 from maul-esel/include-fix
fix variable include tag in a loop
2013-11-15 06:25:33 -08:00
maul.esel
5e0af84993 fix include tag: don't store variable value
This fixes the bug reported in #1495 (comments).
2013-11-14 20:53:59 +01:00
maul.esel
8382a8b91b add test case for variable include tag in a loop 2013-11-14 20:47:42 +01:00
thomasdao
386ea77e28 For issue #1714: Add documentation for post_url when posts are in subdirectory 2013-11-12 13:29:38 +08:00
Anatol Broder
4abd93567f Example FTW 2013-11-11 18:52:37 +01:00
Anatol Broder
29ef18828a Revert stupid whitespace 2013-11-11 18:43:08 +01:00
Anatol Broder
9291ca7492 Revert hint 2013-11-11 18:43:08 +01:00
Anatol Broder
839f231027 Replace yoursite.com by example.com 2013-11-11 18:43:08 +01:00
Matt Rogers
6842148389 Update history to reflect merge of #1669 2013-11-10 21:45:47 -06:00
Matt Rogers
99d44d261d Merge pull request #1669 from albertogg/jekyll-import-arguments
Add table_prefix option for jekyll-importer
2013-11-10 19:44:20 -08:00
Parker Moore
861f367de7 Update history to reflect merge of #1711 2013-11-08 23:16:36 -05:00
Parker Moore
93ad50e4a9 Merge pull request #1711 from abhiyerra/org-mode-converter-link
Link to an org-mode converter for Jekyll
2013-11-08 20:15:02 -08:00
Abhi Yerra
4e38d4858c Link to an org-mode converter for Jekyll 2013-11-08 13:09:40 -08:00
Parker Moore
0a359b586d Update history to reflect merge of #1707 2013-11-08 14:34:33 -05:00
Parker Moore
7cf41bbbf9 Merge pull request #1707 from localheinz/patch-1
Fix link to previous section
2013-11-08 11:33:34 -08:00
Parker Moore
0819877701 Update history to reflect merge of #1708 2013-11-08 14:28:48 -05:00
Parker Moore
2b71caf9c3 Merge pull request #1708 from yihangho/add-emoji-plugin
Add Emoji for Jekyll to plugin list.
2013-11-08 11:27:47 -08:00
Yihang Ho
eeecbdc82a Add Emoji for Jekyll to plugin list. 2013-11-08 17:36:07 +08:00
Andreas Möller
1defcad9a3 Fix link to previous section
There's no `assets` section. Linking to `pagination` instead.
2013-11-08 08:40:19 +01:00
albertogg
41b2000129 Use prefix instead of table_prefix. 2013-11-06 19:14:39 -05:00
Matt Rogers
0a0acaad37 Update history to reflect merge of #1697 2013-11-05 07:45:44 -06:00
Matt Rogers
a05e8af5da Merge pull request #1697 from mojombo/entry-filter-method-object
Extract `Site#filter_entries` into a method object
2013-11-05 05:44:25 -08:00
Parker Moore
615d49ed66 Remove Site.whitelist attribute. 2013-11-04 23:24:21 -05:00
Parker Moore
a4b9bab1dc Add --whitelist flag and internal logic 2013-11-04 23:24:21 -05:00
Parker Moore
480e35037b A start at a gem-based plugin whitelist for Pages. 2013-11-04 23:24:21 -05:00
Parker Moore
a26663fb36 Update history to reflect merge of #1670 2013-11-04 23:21:40 -05:00
Parker Moore
a35cb5ff53 Merge pull request #1670 from samrayner/add-asset-path-tag-to-docs
Add Asset Path Tag to plugin list in docs
2013-11-04 20:20:57 -08:00
Parker Moore
93bd11ea05 Update history to reflect merge of #1695 2013-11-04 23:16:49 -05:00
Parker Moore
898b1372aa Merge pull request #1695 from santtu/patch-1
Updated docs to match reality, where drafts are dated based on file modi...
2013-11-04 20:15:53 -08:00
Parker Moore
2b851be9bd Update history to reflect merge of #1693 2013-11-04 23:15:29 -05:00
Parker Moore
ba30f012d6 Merge pull request #1693 from shigeya/website-update-shigeya-plugins
Plugin description updates for Monthly/Category archive generator
2013-11-04 20:14:37 -08:00
Matt Rogers
6791f9fc12 Use the new EntryFilter class in Site 2013-11-04 21:35:53 -06:00
Matt Rogers
63713799cd Extract Site#filter_entries into its own class 2013-11-04 21:35:13 -06:00
Parker Moore
5d672782fb Update jekyllrb.com site history. 2013-11-04 21:07:51 -05:00
Matt Rogers
12989f9a4e Release 1.3.0 2013-11-04 19:59:57 -06:00
Matt Rogers
db0b0f0160 Release 1.3.0 2013-11-04 19:59:40 -06:00
Parker Moore
dd6cb7a0cf Merge pull request #1694 from mojombo/release-1.3.0
Release 1.3.0
2013-11-04 11:51:21 -08:00
Parker Moore
2087fb87b2 Fix link to /docs/datafiles/ in 1.3.0 release post. 2013-11-04 14:43:27 -05:00
Parker Moore
b9817ab47b Fix release date of v1.3.0 in History file 2013-11-04 14:40:53 -05:00
Parker Moore
a49a0ec2ac Minor fixes to v1.3.0 release post. 2013-11-04 14:39:56 -05:00
Santeri Paavolainen
b5437a49fb Updated docs to match reality, where drafts are dated based on file modification time
See 8e7b6bf5ff/lib/jekyll/draft.rb (L28) -- source uses `File.mtime` on the draft file, not `Time.now` as the doc says.
2013-11-04 19:10:25 +02:00
Matt Rogers
65653fed84 Bump version to 1.3.0 2013-11-03 21:48:34 -06:00
Shigeya Suzuki
8987db896e Plugin description updates for Monthly/Category archive generator 2013-11-04 12:46:18 +09:00
Matt Rogers
cc0c82f9d2 Prep for the 1.3.0 release 2013-11-03 21:46:02 -06:00
Matt Rogers
3eed1cfed1 Update history to reflect merge of #1691 2013-11-03 09:55:54 -06:00
Matt Rogers
340bf0985a Merge pull request #1691 from katydecorah/master
updated end to endfor
2013-11-03 07:51:07 -08:00
Katy DeCorah
6c12955912 updated end to endfor 2013-11-03 10:27:47 -05:00
Matt Rogers
e70c71edd4 Update history to reflect merge of #1687 2013-11-01 22:56:05 -05:00
Matt Rogers
06469b5eb4 Merge pull request #1687 from mojombo/fix-listen
Fix implementation of listen for v1.3.x
2013-11-01 20:53:05 -07:00
Parker Moore
50fabc7b37 Update implementation of listen for v1.3.x 2013-11-01 23:16:04 -04:00
Jordon Bedwell
7a1f63d994 Sort plugins so people can have "load orders".
This allows for people to do something like "_plugins/1-autoload-global.rb" and have it load first and so on making it much easier to organize code and have a "header file" that does all the requiring up front if it's needed for all plugins.
2013-10-31 07:12:54 -05:00
Matt Rogers
aebda2b7d8 Update history to reflect merge of #1677 2013-10-30 07:44:49 -05:00
Matt Rogers
ace1e0fc01 Use the proper date in the gemspec 2013-10-30 07:44:11 -05:00
Matt Rogers
85151b7793 Merge pull request #1677 from yizeng/add-section-info-to-drafts
add missing section info to the drafts post
2013-10-30 05:43:26 -07:00
Yi Zeng
9fbcc5795b add missing section info to the drafts post, in order to make navigation links (Back, Next) work 2013-10-30 22:16:01 +13:00
Matt Rogers
342c3c8e22 Release 1.3.0.rc 2013-10-29 23:10:18 -05:00
Matt Rogers
eff02144f0 Merge pull request #1667 from mojombo/release-1.3.0.rc
Prepare for a 1.3.0.rc release
2013-10-29 21:09:44 -07:00
Parker Moore
a1fc0b18e8 Add Jekyll 1.3.0.rc1 Release Post to Gemspec 2013-10-29 12:31:02 -04:00
Sam Rayner
1f0c139f35 Add Asset Path Tag to plugin list in docs
Requested by @mattr-
https://github.com/mojombo/jekyll/issues/881#issuecomment-27276509
2013-10-29 09:33:55 +00:00
Matt Rogers
700fb7cb6d Fix a typo. 2013-10-28 22:38:29 -05:00
Matt Rogers
1d72b1369f Update history to reflect merge of #1662 2013-10-28 22:37:31 -05:00
Matt Rogers
372e096e7b Merge pull request #1662 from carols10cents/fix-import-error-message
Add `--pre` to the recommended command to install jekyll-import.
2013-10-28 20:36:37 -07:00
albertogg
55f583da00 Add table_prefix option for jekyll-importer
Add table_prefix to use with WordPress and Joomla importers so they can modify the default value.
2013-10-28 22:25:12 -04:30
Matt Rogers
9f63ddb4db Prepare for a 1.3.0.rc release 2013-10-28 20:26:36 -05:00
Matt Rogers
08adcd4a37 Update history to reflect merge of #1665 2013-10-28 14:36:25 -05:00
Matt Rogers
bca4d37d57 Merge pull request #1665 from mojombo/downgrade-listen
Fix Listen implementation so master is compatible with 1.8.7
2013-10-28 11:35:23 -07:00
Parker Moore
0c2d7c0864 Restrict mime-types gem to pre-2.0.
A coveralls dep has a '>=' dependency on mime-types.
2013-10-28 14:16:10 -04:00
Parker Moore
a0a9c5f676 Allow any versions of listen < 2.0 and >= 1.3 2013-10-28 14:04:37 -04:00
Parker Moore
3ab9841272 Fix 1.8.7 syntax errors. 2013-10-28 14:03:34 -04:00
Carol Nichols
f0d0cbf947 Referencing the documentation for jekyll-import installation
Currently, there are only beta releases of the jekyll-import gem, so to
install it, you have to do `gem install jekyll-import --pre`. Instead
of giving instructions that don't work right now, reference the
documentation. That way, this doesn't need to be updated again when
jekyll-import has a non-beta version; just the documentation will need
updating.
2013-10-27 18:04:16 -04:00
Matt Rogers
1eb55119a3 Update history to reflect merge of #1663 2013-10-26 22:11:13 -05:00
Matt Rogers
9ce042c54f Merge pull request #1663 from penibelst/emphasize-date-filters
Change day example to emphasize the leading zero
2013-10-26 20:10:19 -07:00
Matt Rogers
71d4319d5f Downgrade Listen to 1.3.x
This is so that we can be Ruby 1.8.x compatible.
2013-10-26 22:08:38 -05:00
Matt Rogers
6949006051 Update history to reflect merge of #1405 2013-10-26 21:59:08 -05:00
Matt Rogers
4d1a6973ed Merge pull request #1405 from GSI/master
documented new gem 'jekyll_image_encode' in the plugins list
2013-10-26 19:57:36 -07:00
Anatol Broder
d14553cf75 Change day example to a one-digit 2013-10-27 01:28:58 +02:00
GSI2013
5bdb9eb041 documented 'jekyll_date_chart', 'jekyll_image_encode' and 'jekyll_quick_man' in the plugins list 2013-10-26 17:48:51 -02:00
Matt Rogers
727a705d67 Update history to reflect merge of #1660 2013-10-25 10:00:05 -05:00
Matt Rogers
4f8b6aaa7e Merge pull request #1660 from mojombo/fix-shorts
Change short version of '--verbose' to '-V'
2013-10-25 07:58:06 -07:00
Parker Moore
ce0b8d2834 Change short version of '--verbose' to '-V'
https://github.com/mojombo/jekyll/pull/1518
https://github.com/mojombo/jekyll/issues/1659
2013-10-24 10:30:19 -04:00
Matt Rogers
9b40ae6b36 Update history to reflect merge of #1582 2013-10-23 22:59:43 -05:00
Matt Rogers
bd825924b2 Merge pull request #1582 from mojombo/seconds_agnostic_time
Get some nice Regexp which is agnostic about the seconds.
2013-10-23 22:57:18 -05:00
Matt Rogers
112aa8112d Update history to reflect merge of #1651 2013-10-23 22:51:13 -05:00
Matt Rogers
f697d12027 Merge pull request #1651 from liufengyun/jsonify
support jsonify filter
2013-10-23 20:50:14 -07:00
Matt Rogers
2397a16658 Update history to reflect merge of #1493 2013-10-23 22:49:50 -05:00
Matt Rogers
fb6f8c1ff1 Merge pull request #1493 from maul-esel/feature-improvements
Improve features / tests code
2013-10-23 20:49:11 -07:00
Matt Rogers
2c11a6ec27 Update history to reflect merge of #1589 2013-10-23 22:47:01 -05:00
Matt Rogers
2287eed0c6 Merge pull request #1589 from dchest/better-watch
Replace directory_watcher with listen.
2013-10-23 22:38:56 -05:00
Matt Rogers
32c7530ea6 Update history to reflect merge of #1656 2013-10-23 22:37:44 -05:00
Matt Rogers
2d7a4c69ec Merge pull request #1656 from mojombo/plugin-gems-docs
Add docs for new 'gems' option.
2013-10-23 20:35:56 -07:00
Parker Moore
811b14412f Add docs for new 'gems' option. 2013-10-23 10:48:23 -04:00
Matt Rogers
6c001f10ab Update history to reflect merge of #1557 2013-10-23 09:40:39 -05:00
Matt Rogers
23ad7fa4bd Merge pull request #1557 from mojombo/require-gems-plugins
Add `gems` for better plugin management
2013-10-23 07:39:43 -07:00
liufengyun
f971aebfb1 support jsonify filter 2013-10-22 23:52:22 +08:00
Dmitry Chestnykh
12ba0a541c Update listen to ~> 2.0. 2013-10-18 11:04:54 +02:00
Matt Rogers
58ae8bc0cd Update history to reflect merge of #1543 2013-10-17 08:36:29 -05:00
Matt Rogers
0e784596a5 Merge pull request #1543 from maul-esel/fix-coderay
Add tests for special handling of kramdown's coderay options
2013-10-17 06:35:43 -07:00
Matt Rogers
3cd230d66e Update history to reflect merge of #1637 2013-10-17 08:23:26 -05:00
Matt Rogers
f8f58d2f68 Merge pull request #1637 from maul-esel/options-duplication
move cmd param setup for build into own method
2013-10-17 06:22:55 -07:00
Matt Rogers
6e77788a06 Update history to reflect merge of #1638 2013-10-17 08:21:47 -05:00
Matt Rogers
1fd549c01f Merge pull request #1638 from maul-esel/render-page-or-post
Refactor Site#render
2013-10-17 06:21:10 -07:00
maul.esel
c2aa26280c extract pages.any?... in own method 2013-10-17 15:17:58 +02:00
Matt Rogers
b0ae2c69c9 Update history to reflect merge of #1636 2013-10-17 08:13:28 -05:00
Matt Rogers
1682dc8290 Merge pull request #1636 from pda/patch-1
Build status badge in README refers to master branch.
2013-10-17 06:12:32 -07:00
maul.esel
f0aac30491 remove duplicated render code for posts and pages 2013-10-17 12:07:30 +02:00
maul.esel
7232948b62 simplify relative permalink deprecation 2013-10-17 12:06:21 +02:00
maul.esel
5cf6f2c2d1 move cmd param setup for build into own method to avoid duplication 2013-10-17 11:32:26 +02:00
Paul Annesley
0f30aca76a Build status badge in README refers to master branch.
Otherwise, experimental branches being pushed can cause the badge
in the README (master branch, GitHub front page) to show the build
failing.
2013-10-16 12:54:25 -07:00
Matt Rogers
61e6a834cb Update history to reflect merge of #1635 2013-10-16 10:10:28 -05:00
Matt Rogers
6cdb7ec833 Merge pull request #1635 from dpassage/patch-1
Fix grammar in usage.md
2013-10-16 08:09:19 -07:00
David Paschich
c017174dad Fix grammar in usage.md 2013-10-16 07:47:18 -07:00
maul.esel
2b275ef192 oops, fix minor indentation quirk 2013-10-15 14:38:45 +02:00
maul.esel
96a37ac1ab document frontmatter defaults precedence 2013-10-15 14:25:47 +02:00
maul.esel
dd851943c0 adjust frontmatter defaults precedence handling
Before, the bottom-most default set had highest precedence. Instead,
now the set with a longer i.e. more specific path has precedence and
sets with a type setting have precedence over those without one. In
case of equal precedence the bottom-most still wins.
2013-10-15 14:18:44 +02:00
maul.esel
32b4de3ea6 change cucumber feature to test for precedence too 2013-10-15 13:32:49 +02:00
maul.esel
20ea0c8d56 Merge branch 'master' into frontmatter-defaults 2013-10-14 19:44:06 +02:00
maul.esel
699eeba9f0 fix frontmatter defaults for custom paths
The Page#path or Post#path can be overriden by by a frontmatter
setting. This causes path-based frontmatter default detection to
fail. Add test to demonstrate this and fix it.
2013-10-14 19:16:53 +02:00
maul.esel
1c52657d7d more robust cucumber features 2013-10-14 19:13:20 +02:00
maul.esel
67a451ea84 fix slash handling for paths 2013-10-14 18:43:12 +02:00
maul.esel
8091029329 move cucumber features to own file 2013-10-14 16:48:26 +02:00
Parker Moore
6f7935857a Update history to reflect merge of #1626 2013-10-11 15:35:25 +00:00
Parker Moore
0ffd4ff603 Merge pull request #1626 from albertogg/migrations-warning-note
jekyll-import warning note of missing deps.
2013-10-11 08:33:24 -07:00
albertogg
65df20ac10 Fix typos. 2013-10-10 21:21:37 -04:30
Matt Rogers
976cddf477 Update history to reflect merge of #1614 2013-10-10 20:49:55 -05:00
Matt Rogers
441b6d68c2 Update history to reflect merge of #1615 2013-10-10 20:48:27 -05:00
Matt Rogers
0761769dda Merge pull request #1615 from benbalter/downcase-lexers
Downcase lexers before passing to Pygments
2013-10-10 18:48:00 -07:00
Matt Rogers
110aeee9a2 Update history to reflect merge of #1622 2013-10-10 20:39:23 -05:00
Matt Rogers
e3f6d860a2 Merge pull request #1622 from blackjid/master
enable the use of folders inside the _layout path
2013-10-10 18:38:42 -07:00
albertogg
ac6f09752d requieres. 2013-10-10 16:35:04 -04:30
albertogg
222aad55e4 Show the complete name and no abbreviation. 2013-10-10 16:15:01 -04:30
albertogg
c38f295f63 Fix typos. 2013-10-10 16:09:20 -04:30
albertogg
c169ad26cd jekyll-import warning note of missing deps.
The jekyll-import gem, opted to leave out importer-specific runtime dependencies. I'm adding a warning note for the user to be aware of this and manually install the ones they need based on the importer they are using.
2013-10-10 13:48:17 -04:30
Juan Ignacio Donoso
e141dfa03f Add cucumber feature for layouts inside subfolders 2013-10-08 18:14:13 -03:00
Juan Ignacio Donoso
87ef39aeb0 Add support for use of folders inside _layout path, closes #1622 2013-10-08 14:19:12 -03:00
Juan Ignacio Donoso
01f41a7cfc Add test to reflect #1622 behaviour 2013-10-08 14:17:56 -03:00
Ben Balter
9b0a7b3438 test for lexer case insensitivity 2013-10-06 16:06:20 -04:00
Ben Balter
844cc615e4 actually downcase lexer 2013-10-06 15:55:16 -04:00
Parker Moore
848a11b3a8 Update history to reflect merge of #1616 2013-10-05 20:38:09 -04:00
Parker Moore
75efbadbc9 Merge pull request #1616 from bricejlin/patch-1
clean up comments to be more concise/uniform
2013-10-05 17:36:18 -07:00
Brice
9ff245dbdb clean up comments to be more concise/uniform 2013-10-05 13:20:30 -04:00
Ben Balter
d5f137bc86 downcase lexers before passing to Pygments 2013-10-05 11:26:26 -04:00
Parker Moore
694599645f Add in test plugin for inclusion. 2013-10-04 15:49:47 -04:00
Parker Moore
310688297b I guess we'll wait until v2.0 to switch to absolute permalinks. 2013-10-04 15:03:05 -04:00
Parker Moore
bf1d9a79c4 Add support for gem-based plugins. 2013-10-04 14:45:28 -04:00
Parker Moore
41adc30667 Update history to reflect merge of #1602 2013-10-04 14:40:39 -04:00
Parker Moore
e2b6b7d932 Merge pull request #1602 from sferik/update_safe_yaml_dependency
Update safe_yaml dependency to ~> 0.9.7
2013-10-04 11:39:05 -07:00
Erik Michaels-Ober
cebb936e60 Update safe_yaml dependency to ~> 0.9.7 2013-10-04 19:52:55 +02:00
Parker Moore
55f4c3a0fd Update history to reflect merge of #1613 2013-10-04 13:37:11 -04:00
Parker Moore
b850c01605 Merge pull request #1613 from maul-esel/fix-variable-include
fix error with variable as file name
2013-10-04 10:36:26 -07:00
maul.esel
b00849544b fix error with variable as file name 2013-10-04 19:12:29 +02:00
Parker Moore
04c0c2d0bb Don't post to IRC unless it's really important. 2013-10-04 12:58:58 -04:00
Parker Moore
06a757f156 Update history to reflect merge of #1610 2013-10-04 12:31:22 -04:00
Parker Moore
68306c691a Merge pull request #1610 from sferik/update_kramdown_dependency
Update kramdown dependency to ~> 1.2
2013-10-04 09:30:41 -07:00
Parker Moore
31b6a930c4 Update history to reflect merge of #1603 2013-10-04 12:29:39 -04:00
Parker Moore
6b2561424a Merge pull request #1603 from sferik/update_rake_dependency
Update rake dependency to ~> 10.1
2013-10-04 09:29:12 -07:00
Parker Moore
c32e317236 Update history to reflect merge of #1606 2013-10-04 12:28:56 -04:00
Parker Moore
ddcb6e95f5 Merge pull request #1606 from sferik/update_coveralls_dependency
Update coveralls dependency to ~> 0.7.0
2013-10-04 09:28:30 -07:00
Parker Moore
9dc6fee9c5 Move version updates for development dependencies to 'Development Fixes' heading. 2013-10-04 12:27:53 -04:00
Parker Moore
87693eeffe Update history to reflect merge of #1607 2013-10-04 12:27:19 -04:00
Parker Moore
82c8672632 Fix merge conflict. 2013-10-04 12:26:07 -04:00
Parker Moore
558dad7e70 Update history to reflect merge of #1604 2013-10-04 12:23:30 -04:00
Parker Moore
38d70938e9 Merge pull request #1604 from sferik/update_rr_dependency
Update rr dependency to version ~> 1.1
2013-10-04 09:23:04 -07:00
Parker Moore
2763d785b8 Update history to reflect merge of #1608 2013-10-04 12:21:15 -04:00
Parker Moore
495ab66151 Merge pull request #1608 from sferik/update_launchy_dependency
Update launchy dependency to ~> 2.3
2013-10-04 09:18:55 -07:00
Matt Rogers
d32e3a06b4 Update history to reflect merge of #1495 2013-10-04 07:42:47 -05:00
Matt Rogers
fef96d95e1 Merge pull request #1495 from maul-esel/variable-include
Variable {% include %}
2013-10-04 05:42:27 -07:00
Matt Rogers
a5cb8c9f64 Update history to reflect merge of #1601 2013-10-04 07:40:45 -05:00
Matt Rogers
2bb29216e7 Merge pull request #1601 from maul-esel/fix-error-file
Fix error file reporting
2013-10-04 05:39:36 -07:00
Erik Michaels-Ober
be36ca5e6a Update kramdown dependency to ~> 1.2 2013-10-04 12:04:56 +02:00
Erik Michaels-Ober
aea486819c Update launchy dependency to ~> 2.3 2013-10-04 12:01:37 +02:00
Erik Michaels-Ober
4b6f96903f Update cucumber dependency to ~> 1.3 2013-10-04 11:59:33 +02:00
Erik Michaels-Ober
ed17ef2b96 Update coveralls dependency to ~> 0.7.0 2013-10-04 11:57:41 +02:00
Erik Michaels-Ober
7bf7359d1b Update rr dependency to version ~> 1.1 2013-10-04 11:36:10 +02:00
Erik Michaels-Ober
d098a35d65 Update rake dependency to ~> 10.1 2013-10-04 11:29:07 +02:00
maul.esel
76ada8c672 output correct path in case of liquid error in layout
As with includes, an error in a layout was reported on the
page that used the layout. Fix this by passing on the path
of the layout that is rendered.
2013-10-04 00:07:50 +02:00
maul.esel
809ab5e355 Move catching of liquid errors in include tags
The previous code only caught render-time errors. This change
makes it catch parse-time errors as well, such as unknown tags.
2013-10-03 23:56:58 +02:00
Matt Rogers
7d56426d50 Update history to reflect merge of #1592
Combine it with the entry for #1590 since they're related. Move it
down to the site enhancements section since both pulls are changes to
the site.
2013-10-02 23:12:36 -05:00
Matt Rogers
3a72906795 Merge pull request #1592 from fxn/master
another pass on the documentation of generators
2013-10-02 21:01:38 -07:00
Matt Rogers
bc71dc84f1 Update history to reflect merge of #1503 2013-10-02 22:55:13 -05:00
Matt Rogers
b723a58f5f Merge pull request #1503 from swanson/add-docs-for-data-feature
Add docs for new Data Files feature
2013-10-02 20:54:34 -07:00
Matt Rogers
92750c3cfd Add parenthesis to the call for super 2013-10-02 21:51:32 -05:00
Matt Rogers
6d74b4df00 Update history to reflect merge of #1596 2013-10-02 21:48:03 -05:00
Matt Rogers
6abe01f60f Merge pull request #1596 from maul-esel/error-file
Output path in case of liquid error in include file
2013-10-02 19:46:31 -07:00
Parker Moore
09b5477856 Update history to reflect merge of #1598 2013-10-02 21:07:40 +00:00
Parker Moore
46dcac63b1 Merge pull request #1598 from mojombo/maruku-0.6.0
Downgrade to Maruku 0.6.0 to fix all the tests
2013-10-02 14:05:55 -07:00
Parker Moore
422b75ae39 Downgrade to Maruku 0.6.0 to fix all the tests 2013-10-02 15:05:33 +00:00
maul.esel
7a4ea086a1 Output path in case of render error in included file
Fixes #1591.
2013-10-01 23:02:50 +02:00
maul.esel
623fa14b3c Include tag: provide path in case of render error 2013-10-01 22:54:39 +02:00
maul.esel
2a92ad77cc Document variables in include tag 2013-10-01 22:31:16 +02:00
maul.esel
4c6ccc8009 extend feature to ensure it works with parameters as well 2013-10-01 22:31:13 +02:00
maul.esel
2138dfc0ac Fix code to allow dots in variables 2013-10-01 22:31:11 +02:00
maul.esel
a93795bcc0 implement variable retrieval in include tag
Fixes #1464.
2013-10-01 22:28:45 +02:00
maul.esel
50e945f251 Add a cucumber feature for variable includes 2013-10-01 22:22:50 +02:00
Xavier Noria
4e2217986f another pass on the documentation of generators
This commit refines the docs contributed in f074bb6.
2013-10-01 20:16:37 +02:00
Matt Swanson
3b6b56c220 Rebase on upstream/master; rename file to work with docs_ul includes file 2013-10-01 10:34:29 -04:00
Matt Swanson
eca642bf6f Fix typo in data docs; update section pagination for migrations to correctly point back to data 2013-10-01 10:26:51 -04:00
Matt Swanson
f864b69019 Add docs for new Data Files feature 2013-10-01 10:26:51 -04:00
Matt Rogers
cb8572fedb Update history to reflect merge of #1514 2013-09-30 22:55:26 -05:00
Matt Rogers
9d4f9169e9 Merge pull request #1514 from maul-esel/tag-errors
Consistent error handling in Liquid tags
2013-09-30 20:54:42 -07:00
Matt Rogers
246825ac12 Update history to reflect merge of #1003 2013-09-30 22:50:23 -05:00
Matt Rogers
cb4d15561c Merge pull request #1003 from liufengyun/data-sources
support data sources
2013-09-30 20:47:57 -07:00
Matt Rogers
e8cab9da26 Update history to reflect merge of #1586 2013-09-30 22:47:18 -05:00
Matt Rogers
3071fcde11 Merge pull request #1586 from mojombo/print-webrick-url-if-muted
Print server address when launching a server.
2013-09-30 20:46:39 -07:00
liufengyun
760cbc7f91 Autoload yaml files under _data directory
The jekyll engine will autoload all yaml files(ends with .yml or .yaml)
under _data. If there's a file members.yml under the directory, then user
can access contents of the file through site.members.
2013-10-01 11:23:33 +08:00
Matt Rogers
92907c9545 Update history to reflect merge of #1590 2013-09-30 16:41:10 -05:00
Matt Rogers
670ec70c84 Merge pull request #1590 from fxn/master
adds more information to the documentation of generators
2013-09-30 14:40:35 -07:00
Xavier Noria
f074bb6ae6 adds more information to the documentation of generators 2013-09-30 23:04:29 +02:00
Dmitry Chestnykh
58cab6b050 Handle destinations outside of source. 2013-09-30 05:55:38 +02:00
Dmitry Chestnykh
dfaf1f45cc Remove require 'pathname': already included. 2013-09-30 05:11:15 +02:00
Dmitry Chestnykh
8fe25a6958 Replace directory_watcher with listen.
Directory_watcher consumed ~25% CPU on big Jekyll projects (depending on
the number of watched files), since it polled for changes every second.

Listen is easier on CPU, as it uses directory change notifications
provided by OS (currently OS X and Linux), falling back to polling when
they are not available.
2013-09-30 04:33:04 +02:00
Parker Moore
924285695c Print server address when launching a server.
Related to: https://github.com/mojombo/jekyll/issues/1583
2013-09-28 19:18:36 -04:00
Parker Moore
425885460f DARN YOU RUBY 1.8.7 AND YOUR DIFFERENT TIME.TO_S METHOD 2013-09-28 14:16:57 -04:00
Parker Moore
d958fd5679 Clean it up, clean it up. 2013-09-28 13:26:55 -04:00
Parker Moore
2dd7964926 C'mon, you're a Ruby developer. What are you doing. 2013-09-27 21:56:24 -04:00
Parker Moore
aa6ee14fb7 Get some nice Regexp which is agnostic about the seconds. 2013-09-27 15:38:38 -04:00
Parker Moore
35336bfff4 Update history to reflect the merge of #1577. 2013-09-27 15:12:50 -04:00
Parker Moore
26803c28db Remove gist URL in pagination docs. 2013-09-27 15:11:59 -04:00
张君君
dd6d0b42fe Update pagination example 2013-09-26 00:11:06 +08:00
wǒ_is神仙
d800cdcc31 Merge pull request #1 from mojombo/master
sync
2013-09-25 09:03:22 -07:00
Parker Moore
5badf7d53b Update history to reflect merge of #1449 2013-09-23 22:31:38 -04:00
Parker Moore
27347596ad Merge pull request #1449 from shigeya/config-encoding-and-yaml-opts
Adding "encoding" configuration (4th version)
2013-09-23 19:30:44 -07:00
Parker Moore
903be7b750 Update history to reflect merge of #1571 2013-09-23 10:17:43 -04:00
Parker Moore
c78c4159c0 Merge pull request #1571 from mojombo/non-destructive-array-concat
Use + instead of Array#concat
2013-09-23 07:16:41 -07:00
Matt Rogers
93b5004c48 Update history to reflect merge of #1574 2013-09-23 09:12:44 -05:00
Matt Rogers
d3cddc7c8b Merge pull request #1574 from Aptary/simplified_css
Remove overly specific css from main.css in site_template
2013-09-23 07:11:46 -07:00
Edward Ball
943acc4395 Remove overly specific css from site template 2013-09-23 13:23:54 +01:00
Parker Moore
a88a63da2d Don't use destructive Array#concat for Liquid Attribute arrays 2013-09-22 18:26:34 -04:00
Tom Preston-Werner
b0694e96d1 Removing Sparkleshare files. Thanks Sparkleshare, for that. 2013-09-20 20:02:40 -07:00
Tom Preston-Werner
1bfc10dd32 + ‘.sparkleshare’
+ ‘SparkleShare.txt’
2013-09-20 19:59:03 -07:00
maul.esel
1829c2734a 'gist' tag: switch to ArgumentError exception class
SyntaxError is reserved for Ruby's internal use.

Adjust the tests, including the call to liquid to
make it rethrow ArgumentErrors.
2013-09-19 23:23:04 +02:00
maul.esel
9409a3d034 raise exceptions in include tag 2013-09-19 14:32:15 +02:00
maul.esel
72c3bba56a Change error handling in 'post_url' tag: raise exception 2013-09-19 14:24:22 +02:00
maul.esel
39c0d125bb fix tests for new behaviour 2013-09-19 14:24:22 +02:00
maul.esel
06fb31544f Change error handling for gist tag: raise exception 2013-09-19 14:24:22 +02:00
Shigeya Suzuki
a93b1a26eb Documentation update for the encoding configuration 2013-09-19 12:22:50 +09:00
Shigeya Suzuki
c625ddf6cd Invoke File.read with or without options depends on Ruby version
- Extract option fetch method as a separate method
- Added File.read_with_options method to use
- With performance fix
2013-09-19 12:22:50 +09:00
Shigeya Suzuki
97e052df63 Pass encoding parameter as string, not an object 2013-09-19 12:21:26 +09:00
Shigeya Suzuki
fbea3471dd Make TestConvertible to pass with utf-8 encoding 2013-09-19 12:21:25 +09:00
Shigeya Suzuki
8b892ed735 read_yaml to accept optional parameter to override defaults 2013-09-19 12:21:25 +09:00
MURAOKA Taro
4cb24f4b87 consider a case of "site" is unavailable in Convertible 2013-09-19 12:21:25 +09:00
MURAOKA Taro
f4c2383d3c write document for config.encoding 2013-09-19 12:21:25 +09:00
MURAOKA Taro
8a28d80690 add encoding for configuration 2013-09-19 12:21:25 +09:00
Matt Rogers
7ccb62e524 Update history to reflect merge of #1490 2013-09-18 21:36:27 -05:00
Matt Rogers
793eb96a77 Merge pull request #1490 from penibelst/allow-include-read-override
Extract include tag read file in a method
2013-09-18 19:34:45 -07:00
Parker Moore
bbd275840b Update history to reflect fixing of #1561 2013-09-18 13:52:25 -04:00
Parker Moore
5f6af4c215 Add note about installing Xcode on the Mac in the Installation docs.
Xcode command-line tools (clang and ruby headers) are required for installing some of Jekyll's dependencies which create native extensions.

Closes #1561.
2013-09-18 13:51:56 -04:00
Anatol Broder
f97eed544c Change exception type in tests 2013-09-17 22:20:41 +02:00
Anatol Broder
ec85c49de3 Change exception type 2013-09-17 22:11:56 +02:00
Anatol Broder
7cec996f90 Validate the entire markup as soon as possible 2013-09-17 21:41:11 +02:00
Anatol Broder
25519b38f6 Validate file name as soon as possible 2013-09-17 20:57:01 +02:00
Anatol Broder
8017548bd0 Rename variable 2013-09-17 20:46:01 +02:00
Anatol Broder
7f62e69837 Remove obvious comment 2013-09-17 20:36:33 +02:00
Anatol Broder
e5f99e2798 Remove return 2013-09-17 20:35:18 +02:00
Anatol Broder
3e2ab58d56 Fix unruby paradigm 2013-09-17 20:34:04 +02:00
Anatol Broder
a42e57f274 Rename constants 2013-09-17 20:14:41 +02:00
Matt Rogers
f7beb6bff0 Update history to reflect merge of #1255 2013-09-16 21:38:31 -05:00
Matt Rogers
045464c8d4 Update history to reflect merge of #1553 2013-09-16 20:38:47 -05:00
Matt Rogers
0b40bd033b Merge pull request #1553 from penibelst/change-link-liquid
Change links to Liquid documentation
2013-09-16 18:38:13 -07:00
Matt Rogers
bff0f9e537 Update history to reflect merge of #1556 2013-09-16 20:35:14 -05:00
Matt Rogers
de49342324 Merge pull request #1556 from maul-esel/dest-match
Fix up matching against source and destination when the two locations are similar.
2013-09-16 18:34:22 -07:00
Matt Rogers
454e038fad Require 'pathname' 2013-09-16 20:29:57 -05:00
Matt Rogers
c376f345fa Update history to reflect merge of #1539 2013-09-16 20:29:17 -05:00
Matt Rogers
52a39db029 Merge pull request #1539 from maul-esel/coveralls
Add support for coveralls.io coverage reports
2013-09-16 18:28:28 -07:00
Anatol Broder
3dadc94ce4 Don’t repeat yourself 2013-09-16 23:16:41 +02:00
maul.esel
1cb67932f6 fix minor docs quirk 2013-09-16 15:46:15 +02:00
maul.esel
299cb93147 improve path checking, now using Pathname instead of regex 2013-09-16 15:42:59 +02:00
maul.esel
0f4d646510 extend feature tests and use scenario outline 2013-09-16 15:19:29 +02:00
maul.esel
bec4a07c12 Fix handling of source-dest matching being too aggressive
Fixes #1130.
2013-09-16 14:41:20 +02:00
maul.esel
f606d9339b add features to test source and dest matching 2013-09-16 14:30:37 +02:00
Anatol Broder
891ea8f604 People can symlink it if they want in unsafe mode 2013-09-16 08:37:07 +02:00
Anatol Broder
081b974114 Resolve conflict 2013-09-16 08:19:56 +02:00
Anatol Broder
79f50b0568 Resolve conflict 2013-09-16 08:15:10 +02:00
Parker Moore
79c2d5c8f7 Update history to reflect merge of #1555 2013-09-15 20:19:38 -04:00
Parker Moore
1aacda28b0 Merge pull request #1555 from davidensinger/patch-1
Add link to Jekyll Suggested Tweet liquid tag to list of Tags plugins.
2013-09-15 17:19:03 -07:00
David Ensinger
ed92d1c4c2 Add link to Jekyll Suggested Tweet liquid tag to list of Tags plugins. 2013-09-15 18:56:18 -04:00
Parker Moore
6d28d5f95f Update history to reflect merge of #1554 2013-09-15 17:26:15 -04:00
Parker Moore
ede0d6bd24 Merge pull request #1554 from grobmeier/patch-1
It's dbname, not database
2013-09-15 14:21:46 -07:00
Parker Moore
ab4fb89043 Fix params on JekyllImport::WordPress.process so it's using hash 2013-09-15 23:13:02 +02:00
Parker Moore
30bce38ef2 Fix JekyllImport::WordPress instructions on docs site to use hash as parameter.
See comment by @grobmeier on 97cb3f1336
2013-09-15 23:11:22 +02:00
Christian Grobmeier
f15f29a34b It's dbname, not database 2013-09-15 13:06:00 +02:00
Anatol Broder
d761338c2c Change links to Liquid documentation 2013-09-15 07:44:49 +02:00
Matt Rogers
94eed46436 Release 1.2.1 2013-09-14 22:21:15 -05:00
Matt Rogers
a8c03ae3ec Merge pull request #1551 from mojombo/release-1-2-1
Release v1.2.1
2013-09-14 20:20:04 -07:00
Parker Moore
6f053fbc8c Update gemspec & version to v1.2.1 2013-09-14 20:59:06 -04:00
Parker Moore
be9c0dcc7e Update docs/history.md for v1.2.1 2013-09-14 20:57:10 -04:00
Parker Moore
f169e37c81 Add release post. 2013-09-14 20:56:42 -04:00
Parker Moore
f922ae10e5 Update the History file 2013-09-14 20:49:23 -04:00
Parker Moore
d445798330 Fix site:releases:new rake task. 2013-09-14 20:48:20 -04:00
Parker Moore
a1e16b3d58 Update history to reflect merge of #1518 2013-09-14 20:45:24 -04:00
Parker Moore
3ddc33c4bf Merge pull request #1518 from mojombo/fix-serve-detatch
Print better messages for detached server. Mute output on detach.
2013-09-14 17:44:20 -07:00
Parker Moore
97cb3f1336 Update JekyllImport::WordPress instructions on docs site.
Closes #1548.
2013-09-14 20:16:26 -04:00
Parker Moore
5355fcf02d Update Contributing page in the docs to match the new CONTRIBUTING.markdown. #1537. 2013-09-14 20:09:26 -04:00
maul.esel
b26327f20a simplify conditions for coverage reports 2013-09-14 15:28:41 +02:00
Matt Rogers
1473448dfd Update history to reflect merge of #1537 2013-09-14 08:00:35 -05:00
Matt Rogers
46da09694d Merge pull request #1537 from mojombo/better-pr
Update CONTRIBUTING docs for better PRs
2013-09-14 05:59:50 -07:00
maul.esel
ed58ba1508 add tests for moving of coderay settings for kramdown 2013-09-13 14:06:16 +02:00
maul.esel
76d56c2352 shorten test code by moving converter instantiation to #setup 2013-09-13 14:06:16 +02:00
maul.esel
29d0841e97 #to_sym is called by #symbolize_keys 2013-09-13 14:06:16 +02:00
maul.esel
aa10f8c89e add status badge to README 2013-09-12 21:19:36 +02:00
maul.esel
66606a7e82 enable coveralls on Travis-CI 2013-09-12 21:19:36 +02:00
maul.esel
a12227c07a setup coveralls for unit tests 2013-09-12 21:19:36 +02:00
maul.esel
5ee41cd3bb setup coveralls for cucumber 2013-09-12 21:19:36 +02:00
maul.esel
699627e708 add coveralls to gemfile 2013-09-12 21:19:30 +02:00
maul.esel
f20b7d8bd2 use assert_match 2013-09-12 20:19:56 +02:00
Parker Moore
4b8bb68e56 Cleanup newlines in Commands::Serve 2013-09-12 14:05:16 -04:00
Parker Moore
c926596be7 Print better messages for detached server. Mute output on detach. 2013-09-12 14:02:52 -04:00
Parker Moore
214c851be5 Update history to reflect merge of #1536 2013-09-12 14:02:22 -04:00
Parker Moore
34a888e7b0 Merge pull request #1536 from mojombo/liquid-2.5.2
Upgrade to Liquid >= 2.5.2, < 2.6
2013-09-12 11:01:55 -07:00
Parker Moore
c38220f45c Update history to reflect merge of #1531 2013-09-12 12:45:19 -04:00
Parker Moore
097779a19f Merge pull request #1531 from maul-esel/mute-tests
mute LSI output in tests
2013-09-12 09:42:40 -07:00
Parker Moore
0090227487 Update CONTRIBUTING docs for better PRs. 2013-09-12 10:48:42 -04:00
Parker Moore
c219323384 Update history to reflect merge of #1516 2013-09-12 10:38:02 -04:00
Parker Moore
3fde4f796c Merge pull request #1516 from penibelst/fix-post-title
Fix 1.2.0 release post title
2013-09-12 07:37:04 -07:00
Parker Moore
db397dacdd Upgrade to Liquid 2.5.2 2013-09-12 10:23:24 -04:00
maul.esel
87de8ddeb4 fix test muting to work for Ruby > 1.9 2013-09-12 13:26:32 +02:00
Parker Moore
e65305990a Update history to reflect merge of #1525 2013-09-11 23:45:01 -04:00
Parker Moore
5c23ae158e Merge pull request #1525 from zerobase/issue1519
Force rendering of Include tag. Fixes #1519.
2013-09-11 20:43:37 -07:00
Parker Moore
3e936e8b75 Update site/docs/history.md as per #1512. 2013-09-11 19:15:47 -04:00
maul.esel
8060cb60a2 Add site documentation for the new feature 2013-09-11 18:39:59 +02:00
maul.esel
0afe79d1cb mute LSI output in tests 2013-09-11 18:00:28 +02:00
maul.esel
5775603f49 add inline code docs 2013-09-11 17:49:34 +02:00
maul.esel
0874c14b2c improve validation code 2013-09-11 17:37:15 +02:00
maul.esel
accea6648c fix for Ruby 1.8 2013-09-11 17:27:34 +02:00
maul.esel
2ba26f1bb6 Add basic cucumber features for frontmatter defaults 2013-09-11 00:57:49 +02:00
maul.esel
fb911af2cd Retrieve frontmatter defaults when retrieved internally
This is for example possible for layout defaults to take effect.
2013-09-11 00:57:18 +02:00
maul.esel
9d44d3290b make frontmatter defaults available to liquid 2013-09-11 00:55:57 +02:00
maul.esel
b3fdaa9792 add a class FrontmatterDefaults for handling of frontmatter defaults 2013-09-11 00:55:28 +02:00
maul.esel
3ccd8dad31 Add a method to retrieve type to post, page and draft 2013-09-11 00:48:05 +02:00
maul.esel
3a18157d20 rename the new function 2013-09-10 19:09:33 +02:00
Parker Moore
70d9225d9c Update history to reflect merge of #1515 2013-09-10 11:57:14 -04:00
Parker Moore
9422fe63fc Merge pull request #1515 from drewish/redcarpet-2.3
Update redcarpet to 2.3.0
2013-09-10 08:55:40 -07:00
Ishibashi Hideto
421e58ad59 a patch for the issue: [Liquid doesn't render my partial · Issue #1519 · mojombo/jekyll](https://github.com/mojombo/jekyll/issues/1519) 2013-09-10 23:12:15 +09:00
Parker Moore
94e001e549 Update gemspec 2013-09-09 20:23:30 -04:00
Parker Moore
828c4ba270 Update history to reflect merge of #1522 2013-09-09 20:18:43 -04:00
Parker Moore
806be3d5c4 Merge pull request #1522 from jaybe-jekyll/master
Updated jekyll.gemspec manifest site/news/[index.md][releases/index.md] ...
2013-09-09 17:11:50 -07:00
jaybe@jekyll
d485b3e099 Updated jekyll.gemspec manifest site/news/[index.md][releases/index.md] to reflect reality- [index.html] 2013-09-09 17:48:58 -05:00
Parker Moore
f7bccfd08f Whoops, spelled 'detach' incorrectly.
https://twitter.com/strangerpixel/status/376257545968824320
2013-09-09 11:16:24 -04:00
Matt Rogers
0dc86aa3f3 Update history to reflect merge of #1512 2013-09-09 08:06:59 -05:00
Matt Rogers
51d152c92f Merge pull request #1512 from penibelst/fix-history-markup
Fix latest entries in history without code tag
2013-09-09 06:06:17 -07:00
Anatol Broder
50236be19c Fix 1.2.0 release post title 2013-09-07 23:06:51 +02:00
andrew morton
91006d9d61 Update redcarpet to 2.3.0 2013-09-07 12:58:16 -07:00
maul.esel
89f0d69b07 Revert to #readlines#join, but enclose it in a function
This is necessary to preserve the handling
of \r\n and \n line endings.
2013-09-07 18:07:54 +02:00
Anatol Broder
ce6b591f45 Fix latest entries without code tag 2013-09-07 08:45:58 +02:00
Parker Moore
73789f20e1 Update history and History.markdown so it is consistent with previous release headers. 2013-09-07 01:59:48 -04:00
Parker Moore
b741e65f99 Fix problem link to /docs/history/ in v1.2.0 release post. 2013-09-07 01:55:07 -04:00
Parker Moore
d9f73cad9d Fix merge conflict. 2013-09-07 00:12:15 -04:00
Parker Moore
2d8edb9516 Update History to reflect what happenend in d48f339a1f. 2013-09-07 00:11:20 -04:00
Parker Moore
d48f339a1f Fix link to History page from Release v1.2.0 notes post. 2013-09-07 00:10:33 -04:00
Matt Rogers
e87006206e Update history to reflect merge of #1507 2013-09-06 22:58:42 -05:00
Matt Rogers
5a47609c65 Merge pull request #1507 from penibelst/add-site-menu
Make navigation menus reusable
2013-09-06 20:57:34 -07:00
Matt Rogers
e1a8ade88e Update history to reflect merge of #1404 2013-09-06 22:42:49 -05:00
Matt Rogers
cb7eb1c420 Merge pull request #1404 from mojombo/rake-site-releases-new
Add rake task to create new release post
2013-09-06 20:42:10 -07:00
Matt Rogers
3a6ffade0b Update history to reflect merge of #1363 2013-09-06 22:38:38 -05:00
Matt Rogers
d8e0f009d2 Merge pull request #1363 from koron/stop-reverse-lookup
disable reverse lookup
2013-09-06 20:37:31 -07:00
Matt Rogers
c6ae8043a0 Update history to reflect merge of #1511 2013-09-06 22:31:49 -05:00
Matt Rogers
04e1f1087f Merge pull request #1511 from mojombo/fix-validation-errors
Fix W3C Validation Errors On jekyllrb.com
2013-09-06 20:31:08 -07:00
Matt Rogers
6c5f7c587e Release 1.2.0 2013-09-06 22:25:24 -05:00
Matt Rogers
7b5cce6ff5 Merge pull request #1510 from mojombo/release-1.2
Release v1.2
2013-09-06 20:24:13 -07:00
Parker Moore
e555910f45 Move .post .post-content to a <div> to maybe fix weird validation issue. #1508. 2013-09-06 23:05:24 -04:00
Matt Rogers
19801a7b9c Move Kramdown to the development dependency section 2013-09-06 22:04:57 -05:00
Parker Moore
bc0b541e77 Add alt tag to post author <img> tag in site. #1508. 2013-09-06 23:01:44 -04:00
Parker Moore
2eb2a15bd3 Move news/releases/index.md to news/releases/index.html to prevent unnecessary <p> tags. #1508. 2013-09-06 23:00:36 -04:00
Parker Moore
cb521b7f9a Move news/index.md to news/index.html to prevent unnecessary <p> tags. #1508. 2013-09-06 22:59:43 -04:00
Parker Moore
3b2ae1d9c3 Fix validation error on home page. #1508. 2013-09-06 22:58:14 -04:00
Matt Rogers
24f0debeae Change 'version --drafts' to 'version of --drafts' 2013-09-06 21:48:35 -05:00
Parker Moore
4a05f2a0d4 Remove Kramdown dep from README. #1498 2013-09-06 22:44:06 -04:00
Parker Moore
422398d46d Update gemspec for release of v1.2. 2013-09-06 22:23:56 -04:00
Parker Moore
afe1291f0c Update Jekyll::VERSION 2013-09-06 22:23:31 -04:00
Parker Moore
d2e23470c0 Update History.markdown. 2013-09-06 22:23:08 -04:00
Parker Moore
64ea8831b1 Add Jekyll v1.2.0 release post. 2013-09-06 22:22:59 -04:00
Anatol Broder
eb29209c24 Expand URL 2013-09-06 20:40:00 +02:00
Anatol Broder
102d83f78d Make navigation menus reusable 2013-09-06 02:00:23 +02:00
Anatol Broder
3f7dcaa2ec Make navigation menu reusable 2013-09-06 01:59:22 +02:00
Parker Moore
71a8843ecd Update history to reflect merge of #1506 2013-09-05 17:56:40 -04:00
Parker Moore
ba7fea63cd Merge pull request #1506 from dafi/patch-1
Added link to TOC Generator Filter Plugin
2013-09-05 14:43:58 -07:00
Matt Rogers
c7c18507e3 Update history to reflect merge of #1481 2013-09-05 15:27:03 -05:00
Matt Rogers
3212aac4bc Merge pull request #1481 from mojombo/pathawks-patch-1
Expose Jekyll version to templates: `jekyll.version`
2013-09-05 13:24:37 -07:00
Matt Rogers
f0604d4956 Update history to reflect merge of #1494 2013-09-05 15:23:34 -05:00
Matt Rogers
47f7832747 Merge pull request #1494 from maul-esel/fix-include-error
Fix include tag to avoid NameError
2013-09-05 13:21:19 -07:00
Matt Rogers
3803d555ef Update history to reflect merge of #1498 2013-09-05 15:15:41 -05:00
Matt Rogers
8a20c2bd0b Merge pull request #1498 from troyswanson/remove-kramdown-as-dependency
Remove kramdown as a gem dependency
2013-09-05 13:12:42 -07:00
Matt Rogers
ce6925b487 Update history to reflect merge of #1501 2013-09-05 15:12:16 -05:00
Matt Rogers
becab85c7c Merge pull request #1501 from dpree/patch-1
XML-escape blog post title in feed.xml
2013-09-05 13:10:07 -07:00
Davide Ficano
d122bfd5ab Added link to TOC Generator Filter Plugin 2013-09-05 11:54:30 +02:00
Jens Bissinger
1b63aff279 XML-escape blog post title in feed.xml 2013-09-04 19:21:23 +02:00
Parker Moore
da1e6d27c2 Update history to reflect merge of #1491 2013-09-04 10:37:47 -04:00
Parker Moore
a6a74a5d27 Merge pull request #1491 from penibelst/list-plugin-good-include
Add Good Include to plugin list
2013-09-04 07:36:45 -07:00
Troy Swanson
b487dff7bf Add kramdown as a development dependency 2013-09-03 13:12:49 -05:00
Parker Moore
22847029eb Update history to reflect merge of #1497 2013-09-03 14:00:43 -04:00
Parker Moore
f3ed0bc65f Merge pull request #1497 from maul-esel/ruby-badges
Add all the ruby badges!
2013-09-03 10:59:01 -07:00
Troy Swanson
2ababea17d Remove kramdown as a gem dependency 2013-09-02 23:38:08 -05:00
maul.esel
3e3973981d add gem version and dependency status badges to README 2013-09-02 21:14:47 +02:00
maul.esel
09ed340835 Fix include tag to avoid NameError 2013-09-02 14:25:13 +02:00
maul.esel
be54303fa9 Use File#read instead of #readlines.join construct 2013-09-02 14:00:58 +02:00
Anatol Broder
bfe93729dd Add Good Include to plugin list 2013-09-02 09:04:21 +02:00
Parker Moore
2cc5dc3704 Update history to reflect merge of #1488 2013-09-01 13:37:06 -04:00
Parker Moore
245e9fdb7b Merge pull request #1488 from troyswanson/iso8601
Clarify that date_to_xmlschema returns an ISO 8601 string
2013-09-01 10:35:44 -07:00
Troy Swanson
afda7c273f Clarify that date_to_xmlschama returns an ISO 8601 string
References #1435
2013-09-01 12:05:18 -05:00
Parker Moore
4a7da0070f Update history to reflect merge of #1486 2013-09-01 12:39:50 -04:00
Parker Moore
5c5e53e451 Merge pull request #1486 from nquinlan/patch-1
added jekyll-pageless-redirects to plugin list
2013-09-01 09:38:32 -07:00
Nick Quinlan
bec508261d added jekyll-pageless-redirects to plugin list 2013-09-01 07:50:41 -07:00
Parker Moore
4fafdfccf3 Add cucumber test for jekyll.version. 2013-08-30 18:59:35 -04:00
Parker Moore
b7e34175d0 Put version under 'jekyll' namespace. 2013-08-30 18:54:03 -04:00
Parker Moore
20f44be87f Merge branch 'patch-1' of git://github.com/pathawks/jekyll into pathawks-patch-1
* 'patch-1' of git://github.com/pathawks/jekyll:
  Use proper Ruby syntax for constant
  Expose Jekyll version to templates
2013-08-30 18:50:58 -04:00
Parker Moore
8a431686cd Update history to reflect merge of #1480 2013-08-30 18:41:56 -04:00
Parker Moore
a2d67c5cd7 Merge pull request #1480 from mojombo/ignore-_site-in-deploy
Ignore _site in jekyllrb.com deploy.
2013-08-30 15:41:10 -07:00
Parker Moore
39d8f40b72 Update history to reflect merge of #1463 2013-08-30 18:39:27 -04:00
Parker Moore
6475cce179 Merge pull request #1463 from penibelst/add-site-repository
Add site.repository for the URL on Github. Close #1456
2013-08-30 15:38:35 -07:00
Parker Moore
9e0ed07399 Update history to reflect merge of #1477 2013-08-30 18:33:07 -04:00
Parker Moore
bed2978255 Fix docs/templates.md private gist example.
Duplicate of #1477 because we develop on the master branch.
2013-08-30 18:32:37 -04:00
Parker Moore
da1780f6d2 Ignore _site in jekyllrb.com deploy. 2013-08-30 18:30:53 -04:00
Matt Rogers
289117d4fe Update history to reflect merge of #1341 2013-08-29 22:21:48 -05:00
Matt Rogers
a9e2a74ea6 Merge pull request #1341 from maul-esel/minor-refactors
Minor refactors
2013-08-29 20:21:08 -07:00
Matt Rogers
49c529f420 Update history to reflect merge of #1474 2013-08-29 21:58:47 -05:00
Matt Rogers
8fae7bbc95 Merge pull request #1474 from mgp/master
Clarify that --config flag can take multiple files
2013-08-29 19:56:22 -07:00
Michael Parker
cccfe1be78 Clarify that --config flag can take multiple files 2013-08-29 16:27:47 -07:00
Parker Moore
590d22d628 Update history to reflect merge of #1462 2013-08-28 18:13:18 -04:00
Parker Moore
1a69c87cb1 Merge pull request #1462 from penibelst/patch-1
Add trailing slash to site’s post URL
2013-08-28 15:11:08 -07:00
Parker Moore
b3d831d4ab Update history to reflect merge of #1382 2013-08-28 18:03:57 -04:00
Parker Moore
0d890e4b70 Merge pull request #944 from x3ro/permalink-special-characters
WIP - Improve permalink generation for URLs with special characters
2013-08-28 15:02:20 -07:00
Anatol Broder
0ab2b4207a Add site.repository for the URL on Github. Close #1456 2013-08-28 09:23:11 +02:00
Anatol Broder
ff6cfc6bf8 Add trailing slash to post URL
Related to #1411
2013-08-28 08:36:41 +02:00
Parker Moore
5033437fa5 Update history to reflect merge of #1429 2013-08-26 17:02:46 -04:00
Parker Moore
8ea336945c Merge pull request #1429 from maul-esel/refactor-cleanup
Refactor `Site#cleanup` into Jekyll::Site::Cleaner class
2013-08-26 14:01:53 -07:00
Parker Moore
0c1d27fc66 Update history to reflect merge of #1458 2013-08-26 17:00:30 -04:00
Parker Moore
146ce3d577 Merge pull request #1458 from dafi/patch-1
Fixed --layouts option
2013-08-26 13:58:56 -07:00
Davide Ficano
79ac2d6b53 Fixed --layouts option
The --layouts option isn't correctly declared causing a parse error when user specify it on command line
2013-08-26 17:19:32 +02:00
Matt Rogers
0b4ba4f771 Update history to reflect merge of #1454 2013-08-25 21:34:23 -05:00
Matt Rogers
044ec036dd Merge pull request #1454 from bdesham/fix-typos-in-history
Fix two typos in History.markdown
2013-08-25 19:33:34 -07:00
Benjamin Esham
56e2bdd0da Fix two typos in History.markdown 2013-08-25 13:05:52 -04:00
Matt Rogers
34e3dcdb9f Update history to reflect merge of #1443 2013-08-24 22:17:37 -05:00
Matt Rogers
4fa4ad2232 Merge pull request #1443 from ddavison/detachment
Detachment
2013-08-24 20:16:42 -07:00
ddavison
b163bf637e final mods 2013-08-24 21:31:05 -04:00
Matt Rogers
e50217a2ce Update history to reflect merge of #1444 2013-08-24 11:08:32 -05:00
Matt Rogers
1b40226cfd Merge pull request #1444 from chrisnicotera/master
Fix docs server options override
2013-08-24 09:07:33 -07:00
maul.esel
4c015fc5ff move Jekyll::Cleaner to Jekyll::Site::Cleaner 2013-08-23 20:42:27 +02:00
maul.esel
dbd368f6ee remove no longer necessary condition 2013-08-23 20:41:13 +02:00
Parker Moore
07d23535af Update history to reflect the merge of #1430 2013-08-23 18:08:14 +02:00
Parker Moore
319a09ae61 Merge pull request #1430 from penibelst/site-speed
Update normalize.css to v2.1.2 and minify
2013-08-23 09:06:32 -07:00
Parker Moore
06bf97d332 Fix TypeError on Generation
After several page build fails, this seems to have fixed up the following error:

lib/jekyll/excerpt.rb:108:in `partition': type mismatch: NilClass given (TypeError)
2013-08-23 01:39:54 -04:00
ddavison
aedac6060b adding new -B flag for -background- 2013-08-23 01:19:41 -04:00
Matt Rogers
a91988d436 Update history to reflect merge of #1445 2013-08-22 11:11:16 -05:00
Matt Rogers
025535a7d1 Merge pull request #1445 from penibelst/patch-1
Add code tags
2013-08-22 09:10:04 -07:00
Christopher Nicotera
4b4103cc4a Use more efficient merge 2013-08-22 11:31:55 -04:00
Christopher Nicotera
fb1003c06f Revert "Use more efficient merging"
This reverts commit 78df4ddb70.
2013-08-22 11:29:23 -04:00
Christopher Nicotera
78df4ddb70 Use more efficient merging 2013-08-22 11:27:30 -04:00
ddavison
8463e62d92 adding note about running detached 2013-08-22 13:45:06 +00:00
Anatol Broder
aadf992616 Add code tags 2013-08-22 08:32:56 +02:00
Christopher Nicotera
a721dae0a8 Fix docs server options override
Override the source and destination before passing it along to the
configuration
2013-08-21 23:53:30 -04:00
Parker Moore
a3b63662ba Update history to reflect merge of #1439 2013-08-21 22:00:03 -04:00
Parker Moore
9bdc20ad24 Merge pull request #1439 from bdesham/pluralize-and-reading-time
Add "pluralize" and "reading_time" filters to docs
2013-08-21 18:59:20 -07:00
Parker Moore
eeabdd7bec Update history to reflect merge of #1441 2013-08-21 21:53:02 -04:00
Parker Moore
20b28f0fa8 Merge pull request #1441 from sleeper/master
Fix a misleading typo
2013-08-21 18:51:54 -07:00
ddavison
8efcca9ddc adding documentation on using detach 2013-08-21 21:10:42 +00:00
Anatol Broder
148b3f5fdc Remove duplicate 2013-08-21 23:08:26 +02:00
Anatol Broder
7525324757 Add update_normalize_css task 2013-08-21 23:02:49 +02:00
ddavison
9681f3a776 adding default configuration to false 2013-08-21 21:00:18 +00:00
ddavison
4e52869f0f adding detachment functionality 2013-08-21 20:53:01 +00:00
Frederic ROS
bca28056ef Fix a misleading typo 2013-08-21 14:53:10 +02:00
Benjamin Esham
1177cb6f54 Add "pluralize" and "reading_time" filters to docs 2013-08-20 20:57:15 -04:00
maul.esel
d28858a9e9 put the Cleaner instance in a Site#site_cleaner method 2013-08-19 20:15:54 +02:00
maul.esel
0b3005b3b4 make obsolete_files a method (@mattr-) 2013-08-19 20:01:36 +02:00
Matt Rogers
d40e7942c5 Update history to reflect merge of #1389 2013-08-18 10:59:11 -05:00
Matt Rogers
820f526569 Merge pull request #1389 from mojombo/doctor-conflicting-permalinks
Implement URL conflict checking in `jekyll-doctor`.
2013-08-18 08:57:49 -07:00
maul.esel
506cdc5179 include: more helpful error message for symlinks 2013-08-18 17:08:42 +02:00
Anatol Broder
854db4a7f8 Update normalize.css to v2.1.2 and minify 2013-08-18 14:23:06 +02:00
maul.esel
5d7dba476c change site_cleaner to use attr_accessor 2013-08-17 22:33:01 +02:00
Parker Moore
8b8fa4da4e Use Doctor#healthy? and ensure _all_ items are checked before process quits. 2013-08-17 15:16:14 -04:00
maul.esel
5da13d2b66 Refactor Site#cleanup
Move the cleanup logic out into a separate class,
`Jekyll::Cleaner`.
2013-08-17 17:14:08 +02:00
maul.esel
95719fa4ce improve error handling in include tag
* Reduce condition to one-liner
* Remove `self`
* Implicit return value
* Explicit error message for symlinks
2013-08-17 16:24:06 +02:00
Pat Hawks
32e55e7717 Use proper Ruby syntax for constant 2013-08-16 21:01:09 -07:00
Pat Hawks
2744b66fac Expose Jekyll version to templates
Make available `site.version` to liquid
2013-08-16 20:30:26 -07:00
Parker Moore
ac4ca1edc3 Replace defunked mailing list link with info on IRC room. 2013-08-16 11:56:36 -04:00
Parker Moore
751ed0ab58 Update history to reflect fixing of #1424. 2013-08-16 11:56:07 -04:00
Parker Moore
6f933dc524 Fix link to contributing page in README. Fixes #1424. 2013-08-16 11:55:03 -04:00
Parker Moore
c261eeaf6f Update history to reflect merge of #1415 2013-08-14 03:34:17 +02:00
Parker Moore
33ac6519b0 Merge pull request #1415 from mojombo/full-path-output-for-liquid-exception
When a Liquid Exception is caught, show the full path (rel to site source)
2013-08-13 18:33:26 -07:00
Matt Rogers
cb57ede320 Update history to reflect merge of #1418 2013-08-13 19:36:59 -05:00
Matt Rogers
894ae74619 Merge pull request #1418 from nfagerlund/docs_redcarpet
Docs: Explain what goes into the redcarpet: extensions: array
2013-08-13 17:34:43 -07:00
Matt Rogers
b039aadec0 Update history to reflect merge of #1419 2013-08-13 19:24:06 -05:00
Matt Rogers
cb95e25d3f Merge pull request #1419 from penibelst/typo-apostrophe
Update curly apostrophes in documentation
2013-08-13 17:23:18 -07:00
Anatol Broder
00285411eb Update curly apostrophes 2013-08-13 22:56:04 +02:00
Nick Fagerlund
6f22c83249 Docs: Explain what goes into the redcarpet: extensions: array
- Document the two secret-sauce extensions that Jekyll adds, which don't seem to
  be mentioned elsewhere.
- Link to the Redcarpet documentation for other extensions.
- Mention the three or so most common extensions.
- Mention that Redcarpet 2.2.2 lacks several extensions that were added later.
2013-08-13 13:50:56 -07:00
Parker Moore
46f9fe545c Update history to reflect merge of #1411 2013-08-13 17:11:57 +02:00
Parker Moore
fd06fd9dd7 Merge pull request #1411 from penibelst/master
Correct internal links
2013-08-13 08:11:00 -07:00
Parker Moore
5f4efd34bd When a Liquid Exception is caught, show the full path (rel to site source) 2013-08-12 21:19:54 +02:00
Anatol Broder
9e0e6a721c Correct section links 2013-08-12 19:11:04 +02:00
Anatol Broder
d7b5c40901 Correct internal links 2013-08-11 15:09:23 +02:00
Parker Moore
a5b035ece8 Update history to reflect merge of #963 2013-08-11 12:52:24 +02:00
Parker Moore
9e11a7f35f Fix date format in permalink.features. 2013-08-11 12:40:28 +02:00
Parker Moore
d4300be758 Merge branch 'permalink-no-dir' of git://github.com/maul-esel/jekyll into maul-esel-permalink-no-dir
* 'permalink-no-dir' of git://github.com/maul-esel/jekyll:
  test per-post permalinks
  do not force the permalink to be a dir if it ends on .html

Conflicts:
	features/step_definitions/jekyll_steps.rb
2013-08-11 12:08:56 +02:00
Parker Moore
4c4a0ca246 Update history to reflect merge of #1408 2013-08-11 12:04:52 +02:00
Parker Moore
b46f22860c Merge pull request #1408 from penibelst/master
Update dummy email address to example.com domain. Fix #1406
2013-08-11 03:03:51 -07:00
Anatol Broder
affffb4ed4 Update dummy email address to example.com domain 2013-08-10 15:29:33 +02:00
Matt Rogers
8d23046524 Update history to reflect merge of #1400 2013-08-09 22:23:44 -05:00
Matt Rogers
18a6cb0478 Merge pull request #1400 from penibelst/patch-1
Correct the social dummy URLs
2013-08-09 20:22:38 -07:00
Parker Moore
d452135f1e Add rake task to create a new release post.
Adds all the necessary metadata and add two newlines at the
top of the post to start with.
2013-08-10 03:47:15 +02:00
Anatol Broder
381a8148e3 Correct the social dummie URLs
Twitter and Github seem to always force HTTPS. They don’t use backslashes after the username.
2013-08-09 17:09:24 +02:00
Parker Moore
7d26be5102 Call ruby's 'abort' if the site is unhealthy 2013-08-08 18:33:55 +02:00
Parker Moore
318a379747 Nuke comment. 2013-08-08 18:32:13 +02:00
Parker Moore
b3e3d8a734 Update history to reflect merge of #1386 2013-08-08 11:41:03 +02:00
Parker Moore
bc3dccf0e5 Merge pull request #1386 from mojombo/disable-excerpts
Disable automatically-generated excerpts with option
2013-08-08 02:39:06 -07:00
Parker Moore
bad5ea55d1 Update history to reflect merge of #1397 2013-08-08 11:15:34 +02:00
Parker Moore
3703bde3b1 Merge pull request #1397 from nfagerlund/error_187_undefined_method_encoding_for_mailto
Fix 'undefined method `encoding` for "mailto"' errors w/ Ruby 1.8 and Kramdown > 0.14.0
2013-08-08 02:14:36 -07:00
Nick Fagerlund
9ca7f70d70 Fix 'undefined method encoding for "mailto"' errors w/ Ruby 1.8 and Kramdown > 0.14.0
When using Ruby 1.8.7 and Kramdown 0.14.0 and newer, the following build error
would occur if any page in your site contained a `<name@example.com>` email
address link:

Generating...   Conversion error: There was an error converting 'contribute.markdown'.
/Users/nick/Documents/puppet-docs/vendor/bundle/ruby/1.8/gems/kramdown-1.0.2/lib/kramdown/converter/html.rb:404:in `obfuscate': undefined method `encoding' for "mailto":String (NoMethodError)

See also:
http://rubyforge.org/tracker/index.php?func=detail&aid=29750&group_id=7403&atid=28673

This problem traced back to the following line in the Kramdown source:

result.force_encoding(text.encoding) if result.respond_to?(:force_encoding)

Strings aren't supposed to respond to the :force_encoding method in Ruby < 1.9,
but lib/jekyll/core_ext.rb was modifying the string class like so:

def force_encoding(enc)
  self
end

Strings still won't respond to :encoding, though, so we get an error when
Kramdown tries to read the incoming encoding and everything will blow up.

An ack of the codebase suggests that this was only added so we could force an
encoding for rdiscount on 1.9 without having to check whether we were running
under 1.8. Since testing for said method to learn whether one is running under a
1.9-like encoding regime seems to be a thing in libraries we rely on, we
shouldn't insert this dummy method without also dummying every other part of the
Ruby 1.9+ encoding system.

This commit removes the dummy :force_encoding method to stop poisoning core
classes for libraries we use, and moves the adjustment for 1.9-like encoding
regimes to the one place where it's needed.
2013-08-07 20:07:54 -07:00
Matt Rogers
3c12495b00 Add test for disabled excerpts 2013-08-07 20:22:32 -05:00
Parker Moore
95534733ed should_generate_excerpt? ~> generate_excerpt? 2013-08-08 00:35:42 +02:00
Parker Moore
a87d6f9ddd Update history to reflect merge of #1390 2013-08-08 00:29:34 +02:00
Parker Moore
cb52535c03 Merge pull request #1390 from mojombo/better-errors
Catch and fix (somehow) common configuration errors
2013-08-07 15:28:16 -07:00
Parker Moore
983c36f557 Update history to reflect merge of #1394 2013-08-07 23:43:41 +02:00
Parker Moore
d05fd32732 Merge pull request #1394 from catsby/drafts_flag
Add -D short-form switch for drafts
2013-08-07 14:38:49 -07:00
Clint Shryock
f4c8bcc317 Add -D short-form switch for drafts
Add -D short-form switch for the drafts option, to compliment --drafts
2013-08-07 16:01:21 -05:00
Parker Moore
ab0a39fde9 Update history to reflect merge of #1364 2013-08-07 17:13:03 +02:00
Parker Moore
826293ebe3 Merge pull request #1364 from koron/write-in-binary-mode
use binary mode when writing file.
2013-08-07 08:12:27 -07:00
Parker Moore
ccedcd0eb9 Use .empty? instead of == '' 2013-08-07 17:12:13 +02:00
Parker Moore
46b0d5037b Add test for Configuration#fix_common_issues 2013-08-06 21:22:08 +02:00
Parker Moore
d19c6983f2 paginate option cannot be 0. 2013-08-06 21:04:15 +02:00
Parker Moore
6eec3a7942 Print warning when paginate is set to true.
Related to #1105.

Sample output:
~/code/jekyll/tsite$ ../bin/jekyll build --trace
Configuration file: /Users/parker/code/jekyll/tsite/_config.yml
    Config Warning: The `paginate` key must be a positive integer or nil. It's currently set to 'true'.
            Source: /Users/parker/code/jekyll/tsite
       Destination: /Users/parker/code/jekyll/tsite/_site
      Generating... done.
2013-08-06 20:56:29 +02:00
Parker Moore
8f7e229e8c Cleaned up the deprecator a little 2013-08-06 20:56:20 +02:00
Parker Moore
1d14692e5d Implement URL conflict checking in jekyll-doctor. 2013-08-06 20:41:00 +02:00
Parker Moore
a7356f065d Update history to reflect merge of #1315 2013-08-06 20:12:26 +02:00
Parker Moore
aee7a41bc3 Align {{ content }} call with its siblings in site template. 2013-08-06 20:12:26 +02:00
Wlodek Bzyl
ece35e5e36 Remove div.container from the default html template 2013-08-06 20:12:26 +02:00
Parker Moore
fbecb6b875 Update history to reflect closing of #1388. 2013-08-06 20:08:27 +02:00
Parker Moore
e3abda9897 Fix 'undefined method `gsub' for nil:NilClass' when undefined method is called.
Closes #1388.
http://stackoverflow.com/questions/18037596/error-undefined-method-gsub-for-nilnilclass/18038912
2013-08-06 20:06:33 +02:00
Parker Moore
14daff8965 Update history to reflect merge of #1382 2013-08-06 18:48:49 +02:00
Parker Moore
ae218dd0db Merge pull request #1382 from torsneyt/fix_md_ext
Markdown extension matching matches only exact matches
2013-08-06 09:47:33 -07:00
Parker Moore
f17f799221 It's WordPress - capital P, dang it.
WordPress, like GitHub, is a camel-cased name that deserves to be
written properly. Props to @jeremyvisser for pointing this out.

Closes #1384
2013-08-06 18:44:20 +02:00
Parker Moore
a73b17d08c Docs about disabling excerpts. 2013-08-06 18:24:47 +02:00
Parker Moore
cb8bc5accc Just clarifying the Post#should_generate_excerpt? 2013-08-06 18:15:06 +02:00
Parker Moore
3af0e2ea4c bugs in the site 2013-08-06 18:08:58 +02:00
Parker Moore
5817d5a372 We don't need excerpts in jekyllrb.com 2013-08-06 18:08:22 +02:00
Parker Moore
9dc90333c1 Only generate excerpts if the excerpt_separator isn't blank 2013-08-06 18:05:15 +02:00
Thomas Torsney-Weir
627916bc54 force markdown match to match the full extension 2013-08-06 10:56:24 +02:00
Thomas Torsney-Weir
c983f38cc9 add test to demonstrate issue with markdown extension parsing. adding mkd as an extension should not cause mkdn files to also be markdownified 2013-08-06 10:52:24 +02:00
Parker Moore
9193f5ea60 Update history to reflect merge of #1373. 2013-08-05 01:25:56 +02:00
Parker Moore
2e8b6e097e Merge pull request #1373 from indirect/patch-1
Add postfiles plugin
2013-08-04 16:25:04 -07:00
André Arko
fdf14d3911 Escape tag literal 2013-08-04 12:30:06 -07:00
André Arko
73d03e5b54 Add postfiles plugin
Add my postfiles plugin to the list of plugins.
2013-08-04 01:21:17 -07:00
Parker Moore
d08edc4ad6 Update history to reflect merge of #1370 2013-08-03 20:28:00 +02:00
Parker Moore
af6c0ec9a0 Merge pull request #1370 from matze/add-ditaa-plugin
Add jekyll-ditaa to plugins list
2013-08-03 11:27:04 -07:00
Matthias Vogelgesang
0b9199bba5 Add jekyll-ditaa to plugins list 2013-08-02 16:57:11 +02:00
Lucas Jenss
362fcf28f0 Use do ... end for multiline block 2013-07-31 23:17:56 +02:00
Lucas Jenss
a23e94ad48 Improve comment for url_placeholders method 2013-07-31 23:17:06 +02:00
Lucas Jenss
cce58159ce Use symbols for all placeholders
See https://github.com/mojombo/jekyll/pull/944#discussion_r5443105
for a discussion.
2013-07-31 23:11:51 +02:00
MURAOKA Taro
8a155e0a50 use binary mode when writing file. 2013-07-30 21:35:02 +09:00
MURAOKA Taro
d8bf10d761 disable reverse lookup 2013-07-30 21:28:27 +09:00
Matt Rogers
51cf55ebec Update history to reflect merge of #1358 2013-07-29 12:55:49 -05:00
Matt Rogers
2fc2558b04 Update history to reflect merge of #1360 2013-07-29 12:42:53 -05:00
Matt Rogers
8025e4d8d4 Merge pull request #1360 from mojombo/readme-dep-updates
Update dependencies in README
2013-07-29 10:41:55 -07:00
Parker Moore
9f21c94a59 Update dependencies in README 2013-07-28 22:25:22 +02:00
maul.esel
b5d25427e5 Merge branch 'master' into minor-refactors 2013-07-28 21:21:50 +02:00
maul.esel
01922a10ac Convertible#to_liquid: allow an alternate attribute set to be passed 2013-07-28 21:18:54 +02:00
Matt Rogers
8227f5e7b6 Update history to reflect merge of #1356 2013-07-26 10:01:16 -05:00
Matt Rogers
d0f44deb5d Merge pull request #1356 from mojombo/remove-redundant-arg
Remove redundant argument in Jekyll::Commands::New#scaffold_post_content
2013-07-26 07:59:04 -07:00
Parker Moore
e973e59306 Remove redundant argument in Jekyll::Commands::New#scaffold_post_content 2013-07-26 16:25:39 +02:00
Lucas Jenss
f5d0be9660 Move URL generation to own class instead of a module
As suggested by @parkr in #944
2013-07-25 22:44:27 +02:00
Lucas Jenss
41b2f0824e Merge branch 'master' of https://github.com/mojombo/jekyll into permalink-special-characters 2013-07-25 21:33:55 +02:00
Matt Rogers
09e50a5008 Update history to reflect merge of #1354 2013-07-25 13:53:36 -05:00
Matt Rogers
7bc98cba24 Merge pull request #1354 from agelber/add-jekyll-rss-to-plugins
Added jekyll-rss plugin to docs
2013-07-25 11:52:18 -07:00
Assaf Gelber
2c960bf4ed Added the word 'feed' :| 2013-07-25 21:50:19 +03:00
Parker Moore
ee9939b101 Merge pull request #1346 from penibelst/patch-1
Use different quote types for HTML and Liquid
2013-07-25 11:19:43 -07:00
Matt Rogers
a88493007c @parkr releases 1.1.2 and I'll release 1.1.4
Wonder twin powers, activate!
2013-07-25 12:48:01 -05:00
Assaf Gelber
67186e6318 Added jekyll-rss plugin to docs 2013-07-25 20:28:45 +03:00
Matt Rogers
ec9d6ab693 Update history to reflect merge of #1353 2013-07-25 09:55:19 -05:00
Matt Rogers
8811333f91 Merge pull request #1353 from benbalter/1-1-2-blog-post
1.1.2/1.0.4 announcement posts improvements
2013-07-25 07:54:25 -07:00
Ben Balter
f2481cf6c0 s/you are may/you may/ 2013-07-25 09:44:28 -04:00
Ben Balter
7d4a442cbf get the version # right 2013-07-25 09:37:57 -04:00
Ben Balter
2b56f0dd7c 💄 2013-07-25 09:36:47 -04:00
Ben Balter
a1afe8918d Write blog posts for humans
* Polish blog-post language for a less-technical crowd
* Emphasize that it's not a core issue
* Emphasize that it doesn't affect sites without plugins
* Break into paragraphs for easier skimability
* Explain that it affects users with access to templates, not just plugin authors
2013-07-25 09:33:45 -04:00
Parker Moore
0db5dcf832 Release 1.1.2 2013-07-25 09:15:34 +02:00
Matt Rogers
49189844ef Update history to reflect merge of #1349 2013-07-24 20:27:24 -05:00
Matt Rogers
911707f933 Merge pull request #1349 from benbalter/bump-liquid
Require liquid >= 2.5.1
2013-07-24 18:25:42 -07:00
Ben Balter
fe34165dcd require liquid >= 2.5.1 2013-07-24 21:05:52 -04:00
Parker Moore
fe10f21d8d Release 1.1.1 2013-07-24 22:42:03 +02:00
Matt Rogers
ca39d4cb59 Merge pull request #1347 from rmehner/patch-1
page.title is the title of the page, not the post
2013-07-24 12:29:03 -07:00
Robin Mehner
d0d9a1b482 page.title is the title of the page, not the post 2013-07-24 19:01:21 +02:00
maul.esel
6c6dd173c7 Post + Page: extract real path retrieval into separate method (@parkr) 2013-07-24 16:30:24 +02:00
maul.esel
d815e2b2a2 coding style preferences (@parkr) 2013-07-24 16:28:03 +02:00
Anatol Broder
df1a4100a1 Use different quote types for HTML and Liquid 2013-07-24 08:21:42 +02:00
Matt Rogers
8e0a4e927f Update history to reflect merge of #1339 2013-07-23 20:44:11 -05:00
Matt Rogers
d68d29c06f Merge pull request #1339 from mojombo/no-layouts-for-excerpt
No layouts for excerpt
2013-07-23 18:43:08 -07:00
Matt Rogers
dd4ec1691b Update history to reflect merge of #1343 2013-07-23 20:37:06 -05:00
Matt Rogers
9cc647c208 Merge pull request #1343 from penibelst/patch-1
Add master branch feed
2013-07-23 18:36:05 -07:00
Parker Moore
0bb2af8dee Remove superfluous conditional, props @mattr- 2013-07-23 20:04:39 +02:00
Parker Moore
8e7b6bf5ff Update history to reflect merge of #1338 2013-07-23 20:00:27 +02:00
Parker Moore
8352083bca Merge pull request #1338 from mojombo/abort-with-non-zero-exit-codes
Abort with non-zero exit codes
2013-07-23 10:59:26 -07:00
Anatol Broder
d717ec7f3d Add master branch feed 2013-07-23 19:21:06 +02:00
maul.esel
ba5db5ad5b refactor Include tag file validation
Split validation into a separate method, and give a more
descriptive error on symlinks.
2013-07-23 14:23:33 +02:00
maul.esel
86e007f970 remove no-longer needed LSI accessor
LSI has been moved to another class (Jekyll::RelatedPosts),
but this was left in Post.
2013-07-23 11:24:23 +02:00
maul.esel
75d6587d27 Move #to_liquid to Convertible 2013-07-22 16:34:01 +02:00
maul.esel
21de43090a Posts: move slug to title in a separate method 2013-07-22 16:23:40 +02:00
maul.esel
5efadd6674 Support missing kramdown coderay option 2013-07-22 16:02:50 +02:00
maul.esel
955f913f04 simplify Site#initialize 2013-07-22 16:02:50 +02:00
maul.esel
fd907fa631 simplify coderay option handling 2013-07-22 16:02:50 +02:00
maul.esel
5d777eb9e9 With the move of path handling, Page#to_liquid can be simplified 2013-07-22 16:02:50 +02:00
maul.esel
08567b1091 move path handling in pages to the path method, as in posts 2013-07-22 16:02:50 +02:00
maul.esel
f0e2468249 simplify some code with Hash#fetch 2013-07-22 16:02:42 +02:00
Parker Moore
a62d868c74 s/sitej/site/ props @benbalter 2013-07-22 14:57:44 +02:00
Parker Moore
1e7dbcaaff 1.8.7 doesn't support Time.new(*args), so use Time.parse instead 2013-07-22 14:37:51 +02:00
Parker Moore
5d6b755d7d feature maybe? 2013-07-22 13:42:40 +02:00
Parker Moore
95491eb7e7 update categories on the new post to not fuck up old numbers 2013-07-22 13:04:07 +02:00
Parker Moore
930aac3b79 Unit tests are simple 2013-07-22 13:03:48 +02:00
Parker Moore
3418a9197a Add categories and tags and test #to_liquid 2013-07-22 12:57:03 +02:00
Parker Moore
1bbacbd396 Dumb tests are helpful anyway 2013-07-22 12:40:49 +02:00
Parker Moore
81a7b22672 Add a new post, bump @site.posts.size 2013-07-22 12:22:47 +02:00
Parker Moore
f883acc664 Remove debug statements 2013-07-22 11:33:19 +02:00
Parker Moore
26dc14881c Moving data around to make sure excerpts have no layouts but that they are still converted with liquid and the proper converter 2013-07-22 11:31:15 +02:00
Parker Moore
e359472870 May as well add Stevenson#debug 2013-07-22 11:30:19 +02:00
Parker Moore
c6a37a424b Debug statements - take them out later 2013-07-22 10:11:32 +02:00
Parker Moore
f99c726085 Override Excerpt#render_all_layouts to just assign content to output 2013-07-22 10:11:32 +02:00
Parker Moore
0e0e25b9ba start with Excerpt#output, otherwise call #to_s 2013-07-22 10:11:32 +02:00
Parker Moore
04e0b318c8 Remove duplicate comment 2013-07-22 10:11:32 +02:00
Parker Moore
374e6fcdf4 Add Jekyll::Stevenson#abort_with 2013-07-22 10:07:15 +02:00
Parker Moore
5fb13d8047 Create a default command to run help if there are no arguments but to fail with non-zero exit code if the command is invalid.
Props to @ggilder.
2013-07-22 10:04:45 +02:00
Parker Moore
9e22d23801 Update history to reflect closing of #1303 2013-07-21 00:13:44 +02:00
Parker Moore
f4d6ffeaac Include an HTML file in Templates docs so as not to confuse - we don't automatically markdownify/textilize includes. Fixes #1303. 2013-07-21 00:12:31 +02:00
Parker Moore
36e5d5da03 Update history to reflect closing of #1327 2013-07-21 00:08:05 +02:00
Parker Moore
234f35a025 Update Quick-Start page to include reminder that all requirements must be installed for Jekyll to work. Fixes #1327. 2013-07-21 00:07:25 +02:00
Parker Moore
258c7d6e4a Update history to reflect merge of #1318 2013-07-20 23:57:29 +02:00
Parker Moore
b505eb04b3 Merge pull request #1318 from johnkhughes/master
Update Extras page in the docs
2013-07-20 14:56:27 -07:00
Parker Moore
b3b46f2874 Update history to reflect merge of #1330 2013-07-20 23:55:21 +02:00
Parker Moore
2b6bd5a40f Update history to reflect merge of #1328 2013-07-20 23:54:44 +02:00
Parker Moore
95271adc13 Merge pull request #1330 from robwierzbowski/add-grunt-yeoman
Add generator-jekyllrb and grunt-jekyll to plugins page
2013-07-20 14:52:28 -07:00
Rob Wierzbowski
5c9aa19123 Add generator-jekyllrb and grunt-jekyll to plugins page 2013-07-19 11:13:26 -04:00
Parker Moore
9f05406741 Merge pull request #1328 from mojombo/remove_table_selector
Remove superfluous 'table' selector from main.css in 'jekyll new' site template
2013-07-19 07:02:30 -07:00
Wlodek Bzyl
a880b7f99f Remove superfluous 'table' selector from main.css in 'jekyll new' site template.
Closes #1323
2013-07-19 16:01:32 +02:00
Matt Rogers
4df051c49b Update history to reflect merge of #1310 2013-07-16 22:49:32 -05:00
Matt Rogers
08aef455be Merge pull request #1310 from robwierzbowski/organize-plugins
Organize plugins into categories.
2013-07-16 20:48:51 -07:00
Matt Rogers
840f57ca07 Update history to reflect merge of #1320 2013-07-16 22:38:02 -05:00
Matt Rogers
635f39195b Merge pull request #1320 from penibelst/patch-1
Add description for drafts folder. Fix #1319
2013-07-16 20:36:40 -07:00
Anatol Broder
7d18d2843b Add description for drafts folder. Fix #1319 2013-07-17 01:11:00 +02:00
John Hughes
2e8c4359a1 Change syntax highlighting to YAML on Extras page 2013-07-16 21:06:30 +01:00
John Hughes
aae84c4180 Add brackets around sudo on Extras page 2013-07-16 21:01:01 +01:00
John Hughes
52b3afdb71 Update Extras page in the docs to include Kramdown to fix #1313 2013-07-16 20:30:22 +01:00
Parker Moore
475c4c399d Update history to reflect removal of erroneous statement in docs about site.pages' sorting. 2013-07-16 18:05:53 +02:00
Parker Moore
37dc759410 Pages are not alphabetical.
f25fe1c86f (commitcomment-3644377)
2013-07-16 18:04:56 +02:00
Rob Wierzbowski
afb1561c83 Escape/remove single '_' and '*'s that maruku chokes on. 2013-07-16 10:50:47 -04:00
Rob Wierzbowski
b8b9e79899 Organize plugins into categories, clean up copy. 2013-07-16 10:50:47 -04:00
Parker Moore
5f12373f1a Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Add Jekyll Image Tag to the plugins list
2013-07-16 11:24:30 +02:00
Parker Moore
1f6839baca Update history page in the docs to include #1304. 2013-07-16 11:24:14 +02:00
Parker Moore
349ec1f75d Update history to reflect merge of #1306. 2013-07-16 11:23:20 +02:00
Parker Moore
68537ebc6d Merge pull request #1306 from robwierzbowski/add-jit-plugin
Add Jekyll Image Tag to the plugins list
2013-07-16 02:21:40 -07:00
Rob Wierzbowski
d402427b81 Add Jekyll Image Tag to the plugins list 2013-07-14 18:58:45 -04:00
Lucas Jenss
2ac98a7358 Merge branch 'master' into permalink-special-characters
Conflicts:
	lib/jekyll/page.rb
	lib/jekyll/post.rb
2013-07-14 23:58:22 +02:00
Matt Rogers
404332ae35 Update history to reflect merge of #1304 2013-07-14 13:53:47 -05:00
Parker Moore
11142992ae Woopsie. 2013-07-14 20:14:26 +02:00
Parker Moore
e5b2b9b4cd @mojombo asked us to use Releases on GitHub. Link to it in our release notes. 2013-07-14 20:12:04 +02:00
Parker Moore
05e843c34b Make 'docs' and 'include' code. 2013-07-14 19:58:18 +02:00
Parker Moore
07406baabe Update history files. 2013-07-14 19:57:09 +02:00
Parker Moore
e8662422e3 Add Jekyll v1.1.0 release notes post. 2013-07-14 19:53:48 +02:00
Parker Moore
d572e588e8 Release 1.1.0 2013-07-14 19:52:44 +02:00
Parker Moore
5d91b8f346 merge bang to modify in place. Woops. #1201 2013-07-14 17:48:34 +02:00
Parker Moore
e95086b211 Fix for kramdown coderay options. #1201. 2013-07-14 17:47:13 +02:00
Parker Moore
db0be233cf Update history to reflect merge of #1201. 2013-07-14 17:45:56 +02:00
Parker Moore
4ce89ac96d Merge pull request #1201 from zachgersh/all_kramdown
Supporting more kramdown options.
2013-07-14 08:45:05 -07:00
Matt Rogers
0751052a14 Merge pull request #1304 from DamianLettie/PostTimeZoneDocs
Add optional time zone when specifying page.date.
2013-07-14 07:31:15 -07:00
Damian Lettie
7521414d11 Add optional time zone when specifying page.date. 2013-07-14 18:17:09 +10:00
zachgersh
b0fbfdb87d Added a configuration warning to our docs for the two kramdown options we don't support. 2013-07-14 00:32:48 -05:00
zachgersh
90500f37ac Deleted unused code. 2013-07-14 00:24:57 -05:00
zachgersh
774bf07380 Supporting more kramdown options. 2013-07-14 00:24:56 -05:00
Parker Moore
d815c12571 Don't try to be smarter than the computer. Pass Excerpt#to_liquid to its parent post. 2013-07-14 04:22:34 +02:00
Matt Rogers
21b52bbf70 Update history to reflect merge of #1302 2013-07-13 20:40:37 -05:00
Matt Rogers
17c2296ff6 Merge pull request #1302 from mojombo/excerpt
Add support for liquid in post excerpts
2013-07-13 18:39:51 -07:00
Parker Moore
e78d5dd5cb Will now have to render the post, not just transform it. 2013-07-13 16:18:38 +02:00
Parker Moore
015ace6773 Shuffle around rendering of extracted excerpt so it can be liquified. 2013-07-13 16:18:20 +02:00
Parker Moore
9f867c8014 Update history to reflect merge of #1098 2013-07-12 18:29:04 +02:00
Parker Moore
87a3774f2e Merge pull request #1098 from mojombo/catch-missing-configs
Crash if a specified config file isn't there
2013-07-12 09:27:31 -07:00
Parker Moore
253fc8c506 Raise LoadError if the file doesn't exist but do not catch it. :) 2013-07-12 12:22:06 +02:00
Parker Moore
a7efb86d5c Throw ArgumentError when there's an invalid config file, and catch only that. 2013-07-12 11:56:22 +02:00
Parker Moore
456ac01890 Crash if a config file isn't there.
If a configuration file is specified via the command line but does not exist,
fail loudly and crash to preserve the current state. Do not fail if the requested
file is the default configuration file, _config.yml. In that case, fall back on
the defaults.
2013-07-12 11:18:46 +02:00
Parker Moore
86fd1c5dd4 Update history to reflect merge of #1144. 2013-07-12 10:52:28 +02:00
Parker Moore
e1ecae250c Site#site_files_each ~> Site#each_site_file 2013-07-12 10:52:00 +02:00
Parker Moore
979d5c13c4 Merge pull request #1144 from jpiasetz/cleanup
Refactor Jekyll::Site
2013-07-12 01:48:34 -07:00
Parker Moore
05b9d6d736 Update history to reflect merge of #1289 2013-07-11 12:00:04 +02:00
Parker Moore
ef0384a662 Merge pull request #1289 from mojombo/drafts-docs
Documentation for drafts
2013-07-11 02:56:45 -07:00
Matt Rogers
a5b6522ee2 Make the text around generating the site more clear
Thanks to @jpiasetz for the suggestion!
2013-07-10 23:34:48 -05:00
Parker Moore
d10007182d Be (mostly) anal-retentive about line columns. 🌽 😛 2013-07-11 00:14:38 +02:00
Parker Moore
07896a2923 Update history to reflect merge of #1296. 2013-07-11 00:12:54 +02:00
Parker Moore
71c997273e Merge pull request #1296 from jannypie/master
Troubleshooting tip for Mac OSX Mountain Lion
2013-07-10 15:05:20 -07:00
jannypie
d6bc3d00af Update troubleshooting.md for Mac OSX native gem install issue 2013-07-10 17:10:29 -04:00
Matt Rogers
1ca967b839 Update history to reflect merge of #1290 and 1294 2013-07-10 13:41:26 -05:00
Donald Perry
530ad08210 Update the S3 deployment documentation
This is just #1294 on the appropriate branch.
2013-07-10 13:16:56 -05:00
Matt Swensen
73f942cf7d Adding details to GitHub Pages deployment docs regarding relative URLs.
Fixes #1291.
2013-07-10 13:54:02 +02:00
John Piasetzki
13fd798ec0 Extracted each method 2013-07-09 20:50:22 -04:00
Parker Moore
14a57529e4 Merge pull request #1290 from kolorahl/gemspec
Update gemspec to match new file extensions
2013-07-09 15:21:26 -07:00
Tyler Margison
cf21de08c5 Update gemspec to match new file extensions 2013-07-09 15:05:09 -07:00
Parker Moore
9fe42fe09c Add _drafts to site structure page 2013-07-09 23:55:37 +02:00
Parker Moore
61a9988ef3 link to really crappy docs page 2013-07-09 23:55:27 +02:00
Parker Moore
3bc912c3c2 Really crappy docs page for drafts 2013-07-09 23:55:18 +02:00
Parker Moore
42ac16b28f Update history to reflect merge of #1204. 2013-07-09 23:17:14 +02:00
Parker Moore
08f6f3c2ed Merge pull request #1204 from maul-esel/include-params2
Support parameters for liquid include tags.
2013-07-09 14:14:40 -07:00
Parker Moore
f6db08302b Update history to reflect merge of #1046 2013-07-09 23:12:13 +02:00
Parker Moore
3209b50022 Merge pull request #1046 from mojombo/jekyll-docs
Add 'docs' subcommand. Solves #1043, solves #1288.
2013-07-09 14:10:31 -07:00
Parker Moore
0358d520d3 Add 'docs' subcommand. Solves #1043. 2013-07-09 22:50:15 +02:00
Parker Moore
79f95b7a1c Update history to reflect merge of #1267. 2013-07-08 22:21:10 +02:00
Parker Moore
1286d980e6 Merge pull request #1267 from jpiasetz/Text-files
Standardized all text files on markdown and set all their extensions to ...
2013-07-08 13:19:23 -07:00
Parker Moore
6afbf2b05c Update history to reflect merge of #1093, #1285, #1286
NEWS SECTION YAY!!!!!!!!!!!!!!!
2013-07-08 22:17:43 +02:00
Parker Moore
dca7158037 Merge pull request #1286 from cobyism/news-responsivityness
News responsivityness
2013-07-08 13:14:31 -07:00
Matt Rogers
ff48b88a4f Update history to reflect merge of #1093 2013-07-08 14:01:35 -05:00
Matt Rogers
66c2ceeda3 Merge pull request #1093 from mojombo/blog-posts
News: Blog Posts on jekyllrb.com
2013-07-08 12:00:48 -07:00
Coby Chapple
a6c0fa9b6d don’t indent lists so much on narrow screens 2013-07-08 20:00:21 +01:00
Coby Chapple
57994ef4c9 ensure overview nav has horizontal padding on mobiles 2013-07-08 19:48:47 +01:00
maul.esel
9d2849c562 set value outside if/else block 2013-07-08 20:43:03 +02:00
Coby Chapple
a4eee86fdb don’t center blog post titles on mobiles 2013-07-08 19:41:26 +01:00
Coby Chapple
3061720501 extend menu word hiding to include portrait tablets 2013-07-08 19:41:15 +01:00
Coby Chapple
e6de4b3f21 fix negative right margin on release label 2013-07-08 19:40:50 +01:00
Parker Moore
e0e72ca38b Merge pull request #1283 from cobyism/blog-posts-tweaks
News section tweaks
2013-07-08 11:26:32 -07:00
Coby Chapple
d5742cf383 category label -> red 2013-07-08 19:06:36 +01:00
Parker Moore
dbc20b787d Update history to reflect merge of #1271. 2013-07-08 19:58:06 +02:00
Parker Moore
e8d82fd88c Merge pull request #1271 from sanandnarayan/related_posts
Latest post  first in related posts
2013-07-08 10:55:39 -07:00
Parker Moore
af8266e320 Update history to reflect merge of #1284. 2013-07-08 19:50:13 +02:00
Parker Moore
c4fd5ddc8b Merge pull request #1284 from mojombo/include-exclude-deprecation-simplification
Include exclude deprecation simplification
2013-07-08 10:49:09 -07:00
Coby Chapple
731c7b18aa resolve conflicts in _posts files from mojombo/blog-posts 2013-07-08 17:53:34 +01:00
maul.esel
f72365da4f more code improvements
Remove unused variable, extract validation to method (@mattr-).
Do not require markup to be passed to parse_params as argument.
2013-07-08 18:48:47 +02:00
Parker Moore
9d3d095bca Simplify check for String include/exclude option. 2013-07-08 18:35:16 +02:00
Parker Moore
bbd466497f Remove duplication for include/exclude options in backwards_compatibilize. 2013-07-08 18:34:26 +02:00
Coby Chapple
08d9f4e8e9 💀 2013-07-08 16:46:46 +01:00
Coby Chapple
c800e57075 sneakily join up articles if there’s more than one being shown 2013-07-08 16:45:26 +01:00
Coby Chapple
65a3195a5d category label -> blue 2013-07-08 16:44:44 +01:00
Coby Chapple
f4580fb40c tart up the post meta info a little bit 2013-07-08 16:36:07 +01:00
Coby Chapple
1a7bbcaafc reuse existing article and aside styles, reducing nested markup 2013-07-08 15:52:44 +01:00
Coby Chapple
5ff0f12628 permalink 2013-07-08 15:21:16 +01:00
Coby Chapple
74d90626b3 reorganize categories and right sidebar for more clarity 2013-07-08 14:56:44 +01:00
Coby Chapple
cf25da9431 kill the above-container heading 2013-07-08 14:28:03 +01:00
Parker Moore
be91ee3df2 Update Wordpressdotcom migrator example to match jekyll-import initial beta2. Fixes #1281. 2013-07-08 14:58:20 +02:00
Parker Moore
2bc050133c Update history to reflect merge of #1280. 2013-07-08 00:47:14 +02:00
Parker Moore
6d9eccb90d Merge pull request #1280 from robwierzbowski/add-jpt-plugin
Adds Jekyll Picture Tag to the Plugins page
2013-07-07 15:45:43 -07:00
Rob Wierzbowski
c172f0b72e Adds Jekyll Picture Tag to the Plugins page 2013-07-07 18:33:18 -04:00
John Piasetzki
570079bbb8 Standardized all text files on markdown and set all their extensions to the shortform 2013-07-06 13:51:33 -04:00
Parker Moore
b6c86579f3 Add feed and link to feed in header. Props @benbalter 2013-07-06 18:05:27 +02:00
Parker Moore
6950809900 Remove "-dot-"'s from release posts. Props @benbalter. 2013-07-06 17:19:59 +02:00
Parker Moore
5737a50782 Don't offer more before you've given any. props @benbalter 2013-07-06 17:13:20 +02:00
Parker Moore
6b82942156 s/works/work/ props @benbalter 2013-07-06 17:10:57 +02:00
Parker Moore
91427c16ec Update links to history page in blog posts. 2013-07-06 14:58:46 +02:00
Parker Moore
78d169ce05 Add post about Jekyll v1.0.3 2013-07-06 14:58:35 +02:00
Parker Moore
caa2482014 Don't center the posts on mobile 2013-07-06 14:36:11 +02:00
Parker Moore
d8cf817b85 Add news_item layout for each post 2013-07-06 14:36:02 +02:00
Parker Moore
ca6f3614a4 Each mobile nav item should only be 25% wide. 2013-07-06 14:35:54 +02:00
Parker Moore
27c915b908 CSS for news aside. 2013-07-06 14:35:42 +02:00
Parker Moore
01a04c8467 Tweaks to News design 2013-07-06 14:35:24 +02:00
Parker Moore
0f9d205d05 Camelcasing is so 2005. 2013-07-06 14:34:49 +02:00
Parker Moore
c853de4800 Cleaned up post details markup 2013-07-06 14:34:34 +02:00
Parker Moore
74ee8c3bf3 Some very, very minor work on the posts. 2013-07-06 13:47:27 +02:00
Parker Moore
f0f36466b5 Linkify @benbalter's mention in Jekyll 1.0.0 release post. 2013-07-06 13:47:27 +02:00
Parker Moore
43117b9d0f Beginnings of something beautiful 2013-07-06 13:47:27 +02:00
Parker Moore
02d6d77964 Index file for news 2013-07-06 13:47:27 +02:00
Parker Moore
f150ae209e Posts! YAY! 2013-07-06 13:47:27 +02:00
Parker Moore
4687b1f010 news includes 2013-07-06 13:47:27 +02:00
Parker Moore
49ca6d4484 Styles for news 2013-07-06 13:47:27 +02:00
Parker Moore
411911977b Call it "news" 2013-07-06 13:47:27 +02:00
Parker Moore
cd3e95beac Fix site title to use HTML entities 2013-07-06 13:47:26 +02:00
Parker Moore
699ae71f67 Add blog to list of primary nav items 2013-07-06 13:47:26 +02:00
Parker Moore
eae825cd75 Site permalink based on a blog 2013-07-06 13:47:26 +02:00
Anand Narayan
dfca2c6edc Latest post is chosen first in related posts 2013-07-06 15:11:52 +05:30
John Piasetzki
b5d4a96149 Refactored site.rb, I tried to clean a bunch of the methods code climate was complaining about 2013-07-05 16:12:10 -04:00
Parker Moore
c688ee67b6 Update history to reflect merge of #1263. 2013-07-05 16:04:37 +02:00
Parker Moore
f1941f89d4 Merge changes on docs/plugins/ page. 2013-07-05 16:03:38 +02:00
Parker Moore
f5dc9d0eee Merge pull request #1263 from sectore/master
plugin jekyll-swfobject
2013-07-05 07:02:28 -07:00
maul.esel
ef22ebd7f1 code improvements according to @parkr's suggestions 2013-07-05 14:13:40 +02:00
Jens Krause
9a73d35104 Adding jekyll-swfobject to plugins.md 2013-07-05 11:56:10 +02:00
Parker Moore
6eeb2e3f7e Added hyphen to 'Timeago' in third-party plugins list. 2013-07-03 11:48:13 +02:00
Parker Moore
45c7de0bb2 Update history to reflect merge of #1260. 2013-07-03 01:01:20 +02:00
Parker Moore
4080691b38 Merge pull request #1260 from markets/add_plugin_link
Add jekyll-timeago to plugins list
2013-07-02 16:00:07 -07:00
markets
efcfa4ec84 Add jekyll-timeago to plugins list 2013-07-02 21:13:31 +02:00
Parker Moore
e1dd55a6d6 Remove duplicate period in travis message. 2013-07-01 17:41:11 +02:00
Parker Moore
4118886c2b Update template for Travis message in #jekyll irc room. 2013-07-01 17:23:24 +02:00
Matt Rogers
7e750f3230 Update history to reflect merge of #1118 2013-07-01 09:53:34 -05:00
Matt Rogers
2484833bc8 Merge pull request #1118 from maul-esel/dir-bug-take2
[bugfix #417] delete old files that have been replaced by a directory
2013-07-01 07:52:29 -07:00
Matt Rogers
826a70f54f Update history to reflect merge of #1253 2013-07-01 09:46:33 -05:00
Matt Rogers
359383b5b4 Merge pull request #1253 from mojombo/catch-conversion-errors
Catch conversion errors.
2013-07-01 07:45:24 -07:00
Parker Moore
cb1a2d1818 Catch conversion errors. Constituent of #1105. 2013-06-30 16:38:35 +02:00
Parker Moore
a8123e06f0 Update history to reflect closing of #1248. 2013-06-30 15:56:44 +02:00
Parker Moore
9509201670 Add note that gist tag supports private gists. Fixes #1248. 2013-06-30 15:55:36 +02:00
Parker Moore
13a88a6d09 Update history to reflect closing of #1250. 2013-06-30 15:52:47 +02:00
Parker Moore
99bffd112b Add Youku and Tudou Embed link on Plugins page in site/. Fixes #1250. 2013-06-30 15:52:04 +02:00
Parker Moore
a6e4832797 Update history to reflect merge of #1251. 2013-06-30 15:46:12 +02:00
tomsugden
f25fe1c86f Add site.pages to Variables page in Docs. Fixes #1251 2013-06-30 15:45:30 +02:00
Parker Moore
1763acd6f9 Update history to reflect merge of #1247. 2013-06-27 20:21:23 +02:00
Parker Moore
15bb9c6759 Merge pull request #1247 from mojombo/jekyll-new-redcarpet
Complete the transition to Redcarpet for new sites
2013-06-27 11:18:21 -07:00
Matt Rogers
90962a5acc Update the QuickStart guide for the default engine change
As of Jekyll 1.1, we'll be using Redcarpet as the default for all new
sites.
2013-06-27 12:52:04 -05:00
Matt Rogers
d5caebfc06 Make redcarpet a runtime dependency 2013-06-27 12:35:01 -05:00
Matt Rogers
744cc3c001 Update history to reflect merge of #1245 2013-06-27 12:21:35 -05:00
Matt Rogers
c5bf1349d2 Merge pull request #1245 from mojombo/jekyll-new-redcarpet
Default Markdown template parser for new sites to RedCarpet
2013-06-27 10:19:11 -07:00
Parker Moore
a26ab60ca4 Update history to reflect restriction of activesupport dependency. 2013-06-27 18:58:49 +02:00
Parker Moore
36fc16b4a4 Default Markdown template parser for new sites to RedCarpet via _config.yml. Related: #1236. 2013-06-27 18:57:17 +02:00
Parker Moore
f652d0d045 Restrict activesupport dependency to pre-4.0.0 to maintain <= 1.9.2 compatibility. 2013-06-27 18:51:39 +02:00
Parker Moore
bfdcdeebf1 Fix coolaj86 link to migrate from Blogger to Jekyll. Modifies #1242. 2013-06-26 18:33:42 +02:00
Parker Moore
a1b4537d13 Update history to reflect merge of #1242 2013-06-26 18:31:12 +02:00
Parker Moore
a7f905deab Merge pull request #1242 from Florent2/patch-1
Update URL of article about Blogger migration
2013-06-26 09:29:11 -07:00
Florent Guilleux
d305226abb Update URL of article about Blogger migration 2013-06-26 11:04:09 -05:00
Matt Rogers
63390ecb93 Update history to reflect merge of #1215 2013-06-25 06:20:37 -07:00
Matt Rogers
c1850a38f7 Merge pull request #1215 from sanandnarayan/folder_plus
removed cgi unescape in page destination
2013-06-25 06:19:41 -07:00
Matt Rogers
ae85b57bdd Update history to reflect merge of #1171 2013-06-25 00:26:36 -05:00
Matt Rogers
fdebe492cc Merge pull request #1171 from zachgersh/new_empty
Added a --blank command which scaffolds empty files.
2013-06-24 22:25:25 -07:00
Matt Rogers
175c3a5ed1 Update history to reflect merge of #1192 2013-06-24 16:52:25 -05:00
Matt Rogers
7f9ccf1e48 Merge pull request #1192 from zachgersh/update_contrib
Updated contributing documentation as per parkr.
2013-06-24 14:50:59 -07:00
Parker Moore
84113c3674 Update history to reflect merge of #1198. 2013-06-23 15:07:17 +02:00
Parker Moore
f9d1739680 Merge pull request #1198 from mojombo/fix-pagination
Fix Pagination
2013-06-23 06:05:20 -07:00
Parker Moore
22a6f0ada3 Update history to reflect merge of #1228. 2013-06-23 15:04:31 +02:00
Parker Moore
5fdf2d87b2 Merge pull request #1228 from zachgersh/plugin_updates
Updates to the plugin's page on jekyll.rb
2013-06-23 06:03:15 -07:00
maul.esel
656dcca3d2 Add a cucumber test for passing variables 2013-06-22 15:47:59 +02:00
imathis
2b01b06ec8 Support passing Liquid variables to includes
Change the regex matching to allow Liquid variables and object fields
to be passed to the include. Use the render context to retrieve the
variable value. Also, relax syntax checks by allowing surrounding spaces
and dashes in parameter names.
2013-06-22 15:47:16 +02:00
maul.esel
f8f6784305 move parameter parsing to render time 2013-06-22 15:30:10 +02:00
maul.esel
00ed567f99 move regex to the top 2013-06-22 15:07:10 +02:00
Parker Moore
55f77d2ced Update history to reflect merge of #1227 2013-06-22 12:51:09 +02:00
Parker Moore
6391f87462 Merge pull request #1227 from zachgersh/doc_update
Removed the link that is now not working to "Maintain your blog with git"
2013-06-22 03:50:23 -07:00
Matt Rogers
99c700a8a4 Update history to reflect merge of #1229 2013-06-21 22:39:28 -05:00
Matt Rogers
d97509ced8 Merge pull request #1229 from edsl/add-plugin-pandoc-multiple-formats
Add jekyll-pandoc-multiple-formats to plugins list
2013-06-21 20:38:32 -07:00
Nicolás Reynolds
f5eed58954 Add jekyll-pandoc-multiple-formats to plugins list 2013-06-18 15:48:39 -03:00
zachgersh
b40cfb623e Another plugin linking to personal site instead of github. 2013-06-18 08:43:57 -07:00
zachgersh
1cb9de26e5 Jammit gist no longer exists. 2013-06-18 08:39:33 -07:00
zachgersh
fb2703fb3c Changed a plugin link to github as README is there. 2013-06-18 08:37:48 -07:00
zachgersh
11e10700a5 Really not a plugin but a walkthrough with one small part about creating a plugin. 2013-06-18 08:33:01 -07:00
zachgersh
5c82835cfd Plugin 404s on Github. 2013-06-18 08:31:37 -07:00
zachgersh
c0c92a2e82 Damn you spacing on my lines. 2013-06-18 08:17:57 -07:00
zachgersh
2b8dc2bb35 Removed the link that is now not working. 2013-06-18 08:02:54 -07:00
zachgersh
270ad54eb3 Removed extra steps and refactored my tests thanks to Maul. 2013-06-18 07:57:59 -07:00
zachgersh
042c960df0 Moved md post into else block. Added _drafts blank dir. 2013-06-18 07:57:59 -07:00
zachgersh
a3d53a74be Refactored per @parkr suggestions. Much cleaner. 2013-06-18 07:57:59 -07:00
zachgersh
eb06cf0d3d Adding back the removal of the TEST_DIR. Thanks to sharp eyes. 2013-06-18 07:57:59 -07:00
zachgersh
44cfa0540f Switch it to file.exists? and File.directory? so 1.8.7 doesn't complain. 2013-06-18 07:57:59 -07:00
zachgersh
3fdeb8c591 Fixed my tests, I need more specific tests for the new command. 2013-06-18 07:57:59 -07:00
zachgersh
b19997aee4 Broken test committed. Can't find proper directories. 2013-06-18 07:57:59 -07:00
zachgersh
7fba828f02 The start of something cucumber. 2013-06-18 07:57:59 -07:00
zachgersh
16314ee4a2 New leaving empty layouts / posts dirs and empty index.html. 2013-06-18 07:57:58 -07:00
zachgersh
a21031eae9 Added a --blank command which scaffolds empty files. 2013-06-18 07:57:58 -07:00
zachgersh
6e0bb5e0ba Final changes for M & P. 2013-06-17 21:36:08 -07:00
zachgersh
ec1644dfd2 Slight formatting changes to make everyone happy. 2013-06-17 21:26:01 -07:00
zachgersh
86b0537008 Slight rewording of the english to make it sound better. 2013-06-17 21:26:01 -07:00
zachgersh
5ada13fb45 Updated contributing documentation as per parkr. 2013-06-17 21:26:01 -07:00
Matt Rogers
58dacf796f Update history to reflect merge of #1225 2013-06-17 21:16:31 -05:00
Matt Rogers
6825b8ad9f Merge pull request #1225 from ixti/patch-1
Adds jekyll-assets plugin link
2013-06-17 19:15:43 -07:00
Aleksey V. Zapparov
5593a2d72c Adds jekyll-assets plugin link 2013-06-17 21:14:00 +03:00
Matt Rogers
02037b5f63 Update history to reflect merge of #1223 2013-06-17 13:06:52 -05:00
Matt Rogers
106455b471 Merge pull request #1223 from mojombo/remove-obsolete-plugins
Remove plugins that have been obsoleted by changes in the core
2013-06-17 11:05:42 -07:00
Matt Rogers
0ee385f217 Remove plugins that have been obsoleted by changes in the core 2013-06-17 09:30:47 -05:00
Matt Rogers
98247a1c95 Update history to reflect merge of #1222 2013-06-17 09:19:07 -05:00
Matt Rogers
8024dc1073 Merge pull request #1222 from zachleat/patch-1
Add ReadInXMinutes to plugin list
2013-06-17 07:18:08 -07:00
Zach Leatherman
4a88bf2249 Add ReadInXMinutes plugin 2013-06-17 09:03:53 -05:00
Anand Narayan
7e79b9df92 added a plus to permalink 2013-06-15 23:18:31 +05:30
maul.esel
bdd84f275e Ruby 1.8.7 only supports 1 param to Regexp.match() 2013-06-15 18:28:26 +02:00
maul.esel
99721ee8aa To satisfy Ruby 1.8.7, use look-ahead instead of look-behind 2013-06-15 18:19:52 +02:00
Anand Narayan
5c47014c90 removed cgi unescape in page destination 2013-06-15 18:38:14 +05:30
Parker Moore
872eba313c Update history to reflect merge of #1214 2013-06-15 14:16:30 +02:00
Parker Moore
76e5b7fa13 Merge pull request #1214 from jadbirch/docs_correction
Very small documentation correction
2013-06-15 05:14:29 -07:00
Jarrod Birch
9f1e1d4b4e Edited the two contributing pages to ensure that they point readers towards site/docs for the docs rather than site/_posts (which doesn't exist) 2013-06-15 12:21:53 +01:00
maul.esel
0fa03d2651 stupid Ruby 1.8.7 doesn't support named groups 2013-06-13 18:48:40 +02:00
maul.esel
53dec6a4f6 add single-quote cucumber testing 2013-06-13 18:39:00 +02:00
maul.esel
639acea0a7 do parameter parsing with @imathis' incredible regex
This also introduces single-quote support.
2013-06-13 18:38:14 +02:00
Parker Moore
7ee89982e8 Update history to reflect merge of #1210. 2013-06-13 14:58:39 +02:00
Parker Moore
e5d2b2fb9a Update history to reflect merge of #1208. 2013-06-13 14:57:50 +02:00
Matt Rogers
9a8c5aa19d Merge pull request #1208 from mojombo/imageoptim
Run site/img through ImageOptim
2013-06-13 05:23:10 -07:00
Parker Moore
fe957af27f Merge pull request #1210 from snappylabs/jpap-docs-plugin-jade
Added Jade Converter to docs/plugins
2013-06-13 04:23:52 -07:00
John Papandriopoulos
12fe8ed00a Added Jade Converter to docs/plugins 2013-06-13 04:07:58 -07:00
Nick Quaranto
ab351fb073 Run site/img through ImageOptim 2013-06-12 17:25:20 -04:00
Parker Moore
4c750da1be Add freenode verification file to jekyllrb.com. 2013-06-12 21:45:52 +02:00
maul.esel
1b20a185ca fix liquid syntax in the docs 2013-06-12 18:14:03 +02:00
maul.esel
1e15df0701 fix cucumber feature to obey new date format 2013-06-11 16:28:50 +02:00
maul.esel
5a990f7854 add unit tests for include tag parameters 2013-06-11 16:11:56 +02:00
maul.esel
fad210100b document include tag parameters 2013-06-11 16:08:47 +02:00
maul.esel
f612330565 add support for parameters to {% include %} tags 2013-06-11 16:04:42 +02:00
maul.esel
73e589df56 add a cucumber feature for passing parameters to includes 2013-06-11 16:04:42 +02:00
Parker Moore
7f10b32431 Fix tests to match new behaviour of Pager.paginate_path 2013-06-09 21:09:06 +02:00
Parker Moore
7dc6767bc9 Fix Pager.in_hierarchy to actually do the right thing 2013-06-09 21:08:45 +02:00
Parker Moore
05218711b2 Add warning when pagination is enabled but no template page has been found 2013-06-09 21:08:29 +02:00
Parker Moore
6e80ba868e Fix tests for Pager. 2013-06-09 18:52:24 +02:00
Parker Moore
81a2d03e58 WIP – fixing tests. 2013-06-09 18:31:09 +02:00
Parker Moore
bd0e45c1b9 Fixed bugs with pagination in a subdirectory. 2013-06-09 18:31:09 +02:00
Parker Moore
a71b755e9e Remove superfluous "After" block from step defintions. 2013-06-09 18:31:09 +02:00
Parker Moore
ce3fa7fd02 Add feature to test new functionality. 2013-06-09 18:31:08 +02:00
Parker Moore
f9d26bfd51 Update history to reflect fixing of #1196. 2013-06-09 18:12:03 +02:00
Parker Moore
62a2390470 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Update history to reflect merge of #1191
  Update history to reflect merge of #1151
  Moving Quick-start guide to own section
  Remove extra parentheses and swapped regex back
  Combined two features into one
2013-06-09 18:09:31 +02:00
Parker Moore
9b668be281 Update ProTip on Installation page in docs to point to all the info about Pygments and the 'highlight' tag. Fixes #1196. 2013-06-09 18:08:55 +02:00
Matt Rogers
1374a63542 Update history to reflect merge of #1191 2013-06-08 12:50:43 -05:00
Matt Rogers
da691b579f Merge pull request #1191 from leggetter/master
Moving Quick-start guide to own section
2013-06-08 10:49:32 -07:00
Matt Rogers
6850aa8094 Update history to reflect merge of #1151 2013-06-08 12:47:34 -05:00
Matt Rogers
a75b4a865d Merge pull request #1151 from jpiasetz/refactors-steps
Combined layout and theme features into one
2013-06-08 10:46:13 -07:00
Parker Moore
bbd789e549 Update history to reflect addition of fix for #1129. 2013-06-08 17:47:51 +02:00
Parker Moore
c4cf167ff1 Add documentation about paginate_path to "Templates" page in the docs. Closes #1129. 2013-06-08 17:46:58 +02:00
Parker Moore
03bdc2a2df Update history to reflect merge of #1175. 2013-06-08 17:34:41 +02:00
Parker Moore
bc3d4f9e33 Merge pull request #1175 from we-also-do-cookies/update_markuru_link_to_docs
Updated link to the official Maruku repo as stated on Maruku homepage
2013-06-08 08:33:58 -07:00
Parker Moore
f288eb271d Update history to reflect fix of #1182. 2013-06-08 17:32:23 +02:00
Parker Moore
c294d65730 Python is a dependency of Pygments. Closes #1182. 2013-06-08 17:32:08 +02:00
Parker Moore
1b2ae456d1 Update history to reflect the addition of the History page in the docs. 2013-06-08 17:26:40 +02:00
Parker Moore
10e3f67f1f Cleaned up code that generates History command. 2013-06-08 17:20:41 +02:00
Parker Moore
96051568fb Restructured docs a bit to accomodate new 'History' page. 2013-06-08 17:20:27 +02:00
Parker Moore
f8bb36c1cd Include instructions to upgrade to the latest version of Jekyll on 'Upgrading' page. Fixes #1194 2013-06-08 17:19:14 +02:00
Parker Moore
700d840a06 Release 1.0.3 2013-06-07 21:02:13 +02:00
Parker Moore
32143588ef Update history to reflect merge of #1189. Solves #1185. 2013-06-07 20:56:21 +02:00
Parker Moore
86e5a1f7a9 Merge pull request #1189 from mojombo/private-gist-support
Support new private gist syntax.
2013-06-07 11:55:09 -07:00
Parker Moore
f211560dcc Update history to reflect merge of #1190. Fixes #673. 2013-06-07 20:45:08 +02:00
Parker Moore
ae4da46ea1 Merge pull request #1190 from mojombo/maruku-errors
Fail loudly on MaRuKu errors (exit code other than 0).
2013-06-07 11:43:37 -07:00
Phil Leggetter
990d13cb17 Moving Quick-start guide to own section
As a new user to jekyll I wanted to get up and running as quickly as possible.

The first thing I did was jump to the docs (missing the example on the homepage - my bad) and look for the quick start guide. Since I couldn't find one I went for the 'Basic Usage' section. I ended up muddling around for about 10 minutes until I hit the home page again to see the simple - and very easy - example of how to get started.

So, in this pull request I've moved the Quick-start Guide out to it's own section so that users who really are impatient (like me) can clearly look for and jump to the quick start guide, follow the super-easy steps, and be up and running in a matter of minutes.

Interested to hear if this is thought of as being a good idea.
2013-06-07 11:54:01 +01:00
Parker Moore
1c18394afc Catch and print errors when MaRuKu freaks out, and exit with an error code other than 0. 2013-06-07 01:41:30 +02:00
Parker Moore
066912556e Support new private gist syntax. 2013-06-07 00:34:23 +02:00
Parker Moore
5e9b8d64c6 Merge pull request #1186 from gcapizzi/fix_command_line_params
Set short versions of --port and --host as -P and -H, respectively. Fixes #1173.
2013-06-06 15:08:42 -07:00
Giuseppe Capizzi
788ab57109 Fix #1173 2013-06-06 16:24:04 +02:00
Nicolas Alpi
e1b9363297 Updated link to the official Markuru repo as stated on Markuru homepage 2013-06-04 16:10:12 +01:00
Parker Moore
004125bcd2 Update history to reflect merge of #1147. 2013-06-03 21:02:07 +02:00
Parker Moore
94e5cb151f Merge pull request #1147 from beeeswax/frontmatter-nil
Add a Pro Tip to docs about front matter variables being optional
2013-06-03 12:00:40 -07:00
m
4efaaa8232 Add a Pro Tip to docs about front matter variables being optional 2013-06-03 11:07:35 -05:00
Matt Rogers
4270cce2e0 Update history to reflect merge of #1170. 2013-06-03 10:09:43 -05:00
Matt Rogers
cd3732e612 Merge pull request #1170 from mojombo/remove-ids-from-site-template
For template site, convert #post to .post. Fixes #1161.
2013-06-03 08:07:09 -07:00
Parker Moore
a3d1777251 Update history to reflect merge of #1166. 2013-06-02 19:07:04 +02:00
Parker Moore
c0bead4ae1 Merge pull request #1166 from dracula2000/stevenson
Fix typo in Stevenson: "ERROR" only has three "R's".
2013-06-02 10:05:51 -07:00
Parker Moore
2d27deaec7 For template site, convert #post to .post. 2013-06-02 18:48:45 +02:00
Parker Moore
3d267b3baa Update history to reflect merge of #1065 2013-06-02 14:31:50 +02:00
Parker Moore
3ef819833d Update files in gemspec. 2013-06-02 14:30:53 +02:00
Parker Moore
27cf7aad83 Merge pull request #1065 from zachgersh/changelist_page
Added changelist to site as /docs/history/
2013-06-02 05:29:14 -07:00
Matt Rogers
5e6a4135b4 Update history to reflect merge of #1150 2013-06-01 21:54:00 -05:00
Matt Rogers
a45d2d544e Merge pull request #1150 from jpiasetz/iso-dates
Switch cucumber features to use iso dates
2013-06-01 19:47:38 -07:00
Parker Moore
b3908d5bf7 Move note about drafts on Upgrading page a bit higher. 2013-06-01 16:07:14 +02:00
Parker Moore
d9784fa55c Capitalize all words in titles on Upgrading page in documentation. 2013-06-01 16:06:21 +02:00
Parker Moore
2dad826aff Update history to reflect merge of #1146. 2013-06-01 16:04:45 +02:00
Parker Moore
d2d6d3a1d6 Merge branch 'master' of git://github.com/beeeswax/jekyll into beeeswax-master
* 'master' of git://github.com/beeeswax/jekyll:
  Add note to upgrading docs on new config file options.
2013-06-01 16:01:42 +02:00
Brian Kim
1083bfd533 Fix typo in Stevenson 2013-05-31 17:23:57 -04:00
Parker Moore
6296010c43 Update history to reflect merge of #1149. 2013-05-29 12:06:36 +02:00
Parker Moore
21c153a8df Merge pull request #1149 from mojombo/jekyll-logger
Use Jekyll.logger instead of Jekyll::Stevenson to log things
2013-05-29 03:05:32 -07:00
Parker Moore
14a4e32bbe Use singleton instance variable instead of class variable 2013-05-29 12:04:50 +02:00
Josh Branchaud
19ec56c494 The command-line flags for Jekyll for the source directory and the destination directory are now specified in the docs for the deployment methods.
Fixes #1157.
2013-05-29 12:01:16 +02:00
Parker Moore
1f59e9c757 Use Jekyll.logger instead of Jekyll::Stevenson to log things. 2013-05-29 11:58:35 +02:00
zachgersh
cffd3a051b Added a prereq to generate history before publishing to gh-pages. 2013-05-28 22:47:45 -07:00
zachgersh
4440f273e0 Added more comments as per mattr. 2013-05-28 22:39:37 -07:00
zachgersh
db1eb14cb2 Added correct permalink and made sure back/next links were working properly. 2013-05-28 22:34:53 -07:00
zachgersh
75ced04c8d Added latest rev of history. 2013-05-28 22:14:03 -07:00
zachgersh
d8be0b1906 Removed exclamation points for mattr. 2013-05-28 22:13:48 -07:00
zachgersh
19572d9a81 Removed history dir and updated Rakefile to write to history.md. 2013-05-28 22:02:35 -07:00
zachgersh
20eda0e89f Merge branch 'master' into changelist_page 2013-05-28 21:54:49 -07:00
Matt Rogers
2defdad3ae Update history to reflect merge of #1156 2013-05-28 21:38:19 -05:00
Matt Rogers
86e72db4cd Merge pull request #1156 from nathany/span-go-1153
Qualify .go class for Pygments, fixes #1153
2013-05-28 19:35:55 -07:00
Nathan Youngman
2cfc70735d Qualify .go class for Pygments, fixes #1153 2013-05-26 19:51:05 -06:00
John Piasetzki
240bcccd2f Remove extra parentheses and swapped regex back 2013-05-25 16:32:36 -04:00
John Piasetzki
54d7ac6e33 Combined two features into one 2013-05-25 11:45:30 -04:00
John Piasetzki
72fa7f8a73 Switch cucumber features to use iso dates 2013-05-25 11:35:28 -04:00
m
e9902292d3 Add note to upgrading docs on new config file options. 2013-05-25 00:53:15 -05:00
Matt Rogers
8eec9f7759 Update history to reflect merge of #1143 2013-05-23 20:32:40 -05:00
Matt Rogers
e6098493c7 Merge pull request #1143 from redwallhp/changing-plugins-page
Added JekyllGalleryTag to plugins.md
2013-05-23 18:31:23 -07:00
redwallhp
0e8e2fd3ca Added JekyllGalleryTag to plugins.md 2013-05-23 19:28:07 -04:00
Parker Moore
8b8d2f830e Merge @mattr's history update with mine 2013-05-23 23:30:58 +02:00
Parker Moore
da7e44cd46 Update history to reflect merge of #1139. Fixes #622. 2013-05-23 23:29:46 +02:00
Matt Rogers
d454abf386 Update history to reflect merge of #1124 2013-05-23 16:29:31 -05:00
Parker Moore
4b6baf01cb Merge pull request #1139 from scribu/cucumber-fix
Fix for #622 (Cucumber infinite loop)
2013-05-23 14:28:31 -07:00
Matt Rogers
1cf9efcfa1 Merge pull request #1124 from jpiasetz/master
Change cucumber tests to not write posts with timezones
2013-05-23 14:28:01 -07:00
Parker Moore
23d0c130a5 Update history to reflect merge of #1142. 2013-05-23 23:27:06 +02:00
Parker Moore
2393ae58b7 Merge pull request #1142 from kmikael/filters-documentation
Documentation for `date_to_rfc822` and `uri_escape`
2013-05-23 14:26:01 -07:00
John Piasetzki
e043c419f5 Trying to edit my history to remove the mistakes 2013-05-23 16:49:43 -04:00
Mikael Konutgan
9adfd6ddeb Document uri_escape 2013-05-23 20:18:08 +02:00
Mikael Konutgan
008a094e95 Document Jekyll's date_to_rfc822 and uri_escape filters on the site 2013-05-23 20:15:24 +02:00
John Piasetzki
c4750cf48f Fixes so that the timezone gets written when it explicit is specificied in a test 2013-05-23 14:04:22 -04:00
John Piasetzki
6936bbded8 Changed the jekyll steps to write only the date and time for tests. This avoids timezone issues. 2013-05-23 14:04:22 -04:00
scribu
7579c1c42d cucumber: don't manually include assertions
It causes hard to debug infinite loops and it's done automatically
in recent versions of Cucumber anyway.
2013-05-23 20:35:27 +03:00
scribu
09d229de33 make bin/jekyll executable
`bundle install` makes it executable and it should be anyway, since it
has the hashbang at the top.
2013-05-23 20:35:07 +03:00
Matt Rogers
5cc65de628 Stick to the 1.0.x versions of rr 2013-05-23 12:16:06 -05:00
Parker Moore
afc5cf098a Fix syntax errors in Drupal migration docs. 2013-05-23 00:00:40 +02:00
Matt Rogers
8ab4915182 Update history to reflect merge of #1136 2013-05-22 16:51:53 -05:00
Matt Rogers
8d87d4ee30 Merge pull request #1136 from mojombo/migrators-docs-updates
Updated the docs for migrators
2013-05-22 14:48:52 -07:00
Parker Moore
9aca84c55b Updated the docs for migrators so they're at least a bit more helpful. 2013-05-22 23:43:10 +02:00
Matt Rogers
cbc0e72847 Update history to reflect merge of #1063 2013-05-22 14:42:18 -05:00
Matt Rogers
1eab13c068 Merge pull request #1063 from Kelsin/fixing-paginate_path-for-windows
Fixing pagination on windows
2013-05-22 12:26:54 -07:00
Parker Moore
19461bc186 Install jekyll-import with the --pre flag for now. 2013-05-21 15:36:29 +02:00
maul.esel
45576a39a6 test this fix with a cucumber feature 2013-05-18 22:30:03 +02:00
Parker Moore
9ab2448e5a Update history to reflect merge of #1123 2013-05-18 14:09:05 +02:00
Parker Moore
d36f4dfea9 Merge pull request #1123 from mainerror/docs_overflow_auto
Documentation highlight boxes shouldn't show scrollbars if not necessary. Fixes #1122.
2013-05-18 05:07:27 -07:00
Matt Rogers
70d38c70f7 Update history to reflect merge of #1115 2013-05-17 23:16:26 -05:00
Matt Rogers
7c012a9e0c Merge pull request #1115 from clang1234/master
Add --force flag to new command
2013-05-17 21:15:17 -07:00
Matt Rogers
786a120b51 Update history to reflect fixing of #1099 and #1119 2013-05-17 22:49:09 -05:00
Matt Rogers
6a7ed52b37 Update history to reflect merge of #1114 2013-05-17 22:46:11 -05:00
Matt Rogers
9614d516f0 Update history to reflect merge of #1121 2013-05-17 22:43:56 -05:00
Matt Rogers
2b84173eca Merge pull request #1121 from mojombo/non-zero-exit-on-liquid-exception
Non zero exit on Liquid exception
2013-05-17 20:41:04 -07:00
Matt Rogers
ddba4cde8b Merge pull request #1114 from mojombo/backwards-compatibilize-exclude-include
Backwards-compatibilize 'exclude' and 'include' config tags
2013-05-17 19:56:48 -07:00
Octavian Damiean
d9fd0fd7ad Fix for issue #1122. 2013-05-18 01:12:17 +02:00
Parker Moore
ff8cf7c868 provide access to the layout name so when shit goes down we get the name of the layout which couldn't be processed 2013-05-17 22:45:39 +02:00
Parker Moore
a95fa70d72 raise things when there's a yaml exception (non-zero exit code 2013-05-17 22:44:46 +02:00
Parker Moore
63dc563621 Add tests for exclude/include backwards-compatibility 2013-05-17 21:05:09 +02:00
Parker Moore
fa1cbb7708 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Update history to reflect merge of #1116
  Removed space characters in empty lines
2013-05-17 20:44:40 +02:00
Parker Moore
3e7b0bbe47 Pygments does not need to be installed. Fixes #1099 #1119 2013-05-17 20:44:29 +02:00
maul.esel
96efa9ed06 delete old files that have been replaced by a directory
Fixes #417.
Replaces #1086, more logical code.
2013-05-17 17:45:51 +02:00
Casey Lang
fafacc43ca Add ? to preserve_source_location 2013-05-16 16:15:21 -05:00
Casey Lang
00dd37d2e4 Extract check for force to improve readability 2013-05-16 16:13:13 -05:00
Casey Lang
09eb0c5718 Merge in additional changes from mojombo/jekyll 2013-05-16 16:08:44 -05:00
Matt Rogers
4123406bd2 Update history to reflect merge of #1116 2013-05-16 15:27:50 -05:00
Matt Rogers
70672c98d9 Merge pull request #1116 from blinry/master
Removed space characters in empty lines
2013-05-16 12:47:17 -07:00
Sebastian Morr
151ffab6fe Removed space characters in empty lines 2013-05-16 20:27:27 +02:00
Casey Lang
294437fbf1 Merge latest commits from mojombo/jekyll 2013-05-15 17:36:48 -05:00
Casey Lang
2ce39bc20a Add '--force' to 'new' command. Implements #1104 2013-05-15 17:29:27 -05:00
Parker Moore
8e3ab9ea36 Backwards-compatibilize 'exclude' and 'include' config tags. Fixes #1109 2013-05-16 00:25:16 +02:00
Parker Moore
d1c626f2e2 Update history to reflect merge of #1035 2013-05-15 23:59:51 +02:00
Parker Moore
13ed02fdb0 Merge pull request #1035 from tkareine/add_minibundle_to_plugin_list
Add link to jekyll-minibundle in the doc's plugins list
2013-05-15 14:59:05 -07:00
Parker Moore
784aaee40a Update gemspec with new files. 2013-05-15 23:58:32 +02:00
Tuomas Kareinen
fb28c0292b Add link to jekyll-minibundle in the doc's plugins list 2013-05-15 22:00:07 +03:00
Parker Moore
98923f87b5 Update history to reflect merge of #1057 👍 2013-05-15 16:26:41 +02:00
Parker Moore
ef48cbefec Merge pull request #1057 from mojombo/refactor-related-posts
Move the building of related posts into their own class
2013-05-15 07:25:53 -07:00
Parker Moore
5258e3afa3 Logger ~> Stevenson and don't inherit from Ruby Logger. #1106. 2013-05-15 15:15:00 +02:00
Parker Moore
7b22502c94 Quick patch for migration docs. 2013-05-15 13:58:08 +02:00
Parker Moore
8537c6770e Update history to reflect merge of #1107 2013-05-15 13:45:16 +02:00
Parker Moore
77ddb2765b Merge pull request #1107 from pauloppenheim/master
doc fix: migrations - wordpressdotcom command
2013-05-15 04:43:57 -07:00
Paul Oppenheim
98f8ee31e3 doc fix: migrations - wordpressdotcom command
The new paths are what just worked for me. Was frustrating figuring it out, figured I'd share.
2013-05-15 03:32:17 -07:00
Matt Rogers
98aff03595 Use Jekyll::Stevenson#formatted_topic for printing messages
Beats trying to line them up yourself. :-)
2013-05-14 22:04:34 -05:00
Matt Rogers
ff600bfcd9 Merge branch 'master' into refactor-related-posts 2013-05-14 21:54:12 -05:00
Parker Moore
8877d0db66 Update history to reflect merge of #1106 2013-05-14 22:03:37 +02:00
Parker Moore
e71e90cebc Merge pull request #1106 from mojombo/stevenson
Rename Jekyll::Logger ~> Jekyll::Stevenson to fix inheritance problem
2013-05-14 13:01:38 -07:00
Parker Moore
35f4f09c3e Rename Jekyll::Logger ~> Jekyll::Stevenson to fix inheritance problem
Problem described here: ca888cad76
2013-05-14 21:07:23 +02:00
Parker Moore
7186a557f6 Update history to reflect merge of #1068. 2013-05-14 21:01:06 +02:00
Parker Moore
ed80f6b017 Merge branch 'add_contentblocks' of git://github.com/rustygeldmacher/jekyll into rustygeldmacher-add_contentblocks
* 'add_contentblocks' of git://github.com/rustygeldmacher/jekyll:
  Added jekyll-contentblocks to the plugins list
2013-05-14 21:00:00 +02:00
Parker Moore
7611b936b1 The --watch has two dashes. Prevent MaRuKu blending them into an emdash. 2013-05-14 20:58:28 +02:00
Parker Moore
8793048add The CLI command isn't capitalized :) 2013-05-14 20:29:14 +02:00
Parker Moore
3f21f87ccf Make MaRuKu bend to our will. 2013-05-14 20:27:17 +02:00
Parker Moore
03887262a3 Update history to reflect merge of #1089. 2013-05-14 19:58:48 +02:00
Parker Moore
a85f7c1cf2 Merge pull request #1089 from zachgersh/cobyism_style
Adds margin to code highlights. Tweaks colorscheme of notes.
2013-05-14 10:57:18 -07:00
zachgersh
fed4f516bf Simplified based on cobyism suggestion. 2013-05-14 08:25:54 -07:00
Parker Moore
1ce36fb1ff Update history to reflect merge of #1101. 2013-05-14 12:40:04 +02:00
Parker Moore
93a041d871 Merge pull request #1101 from sankage/upgrade-docs
relative permalinks in upgrade docs are reversed
2013-05-14 03:37:31 -07:00
zachgersh
f2d7cdea89 Fixed shading on notes, made it less apparent. 2013-05-13 23:31:05 -07:00
David Briggs
47e1a449e1 fix upgrade docs 2013-05-14 00:12:48 -04:00
Parker Moore
d99b4324e7 When talking about post excerpts, be singular about it. 2013-05-12 23:19:38 +02:00
Parker Moore
6aaf631fcf Fix some language problems, props @maul-esel 2013-05-12 23:18:25 +02:00
Parker Moore
f1c5579c5b Add docs for post excerpt #1072 2013-05-12 17:54:15 +02:00
zachgersh
4a3826aee6 Needed to be issues and not issue in the url. Regenerated file. 2013-05-12 08:36:15 -07:00
zachgersh
94b5f22cfa Merge branch 'master' into changelist_page 2013-05-12 08:20:03 -07:00
Parker Moore
483ecec2b4 Update history to reflect addition of docs for gist tag #1072 2013-05-12 16:20:46 +02:00
Parker Moore
208becee86 Add docs for gist tag. 2013-05-12 16:20:05 +02:00
Parker Moore
f56090be3f Updated language for relative_permalinks 2013-05-12 16:05:18 +02:00
Parker Moore
8051df0f4c Release 1.0.2 2013-05-12 15:26:45 +02:00
Parker Moore
56e7f7688e Add note in history about documentation for #1081 2013-05-12 14:08:11 +02:00
Parker Moore
61faef46cc Add documentation about relative_permalinks. #1081 2013-05-12 14:07:30 +02:00
Parker Moore
7671b45a92 Update history to reflect merge of #1066. 2013-05-12 12:12:49 +02:00
Parker Moore
179a746091 Merge pull request #1066 from Rowno/data-language
Add a `data-lang` attribute to code blocks
2013-05-12 03:11:11 -07:00
Parker Moore
427bb6aec7 Update history to reflect merge of #1081. 2013-05-12 11:57:56 +02:00
Parker Moore
28b9e351c4 Merge pull request #1081 from mojombo/relative-permalinks
Backwards-compatibilize relative permalinks
2013-05-12 02:55:49 -07:00
Parker Moore
91317b29b3 Update history to reflect merge of #1078 2013-05-12 11:53:37 +02:00
Parker Moore
f9502dc9f5 Merge pull request #1078 from maul-esel/fix-num-category
Fix number category
2013-05-12 02:52:39 -07:00
Parker Moore
d9e056bd60 Update history to reflect merge of #1084 2013-05-12 11:51:52 +02:00
Parker Moore
9140aad429 Merge pull request #1084 from maul-esel/deprecate-old-config
Deprecate old config 'server_port'
2013-05-12 02:50:20 -07:00
zachgersh
d2fabfcf15 Programatically create github issue links via rake task. 2013-05-11 23:27:06 -07:00
zachgersh
e4543e268f Added /history directory to the gemspec. 2013-05-11 21:40:26 -07:00
zachgersh
16954daa19 Updated rakefile to support new directory and parsing structure. 2013-05-11 21:16:50 -07:00
zachgersh
9ac69e3091 Moved changelist to /history directory. 2013-05-11 20:31:53 -07:00
zachgersh
59b3f095fa Merge branch 'master' into changelist_page 2013-05-11 20:08:11 -07:00
Parker Moore
665e8d15f7 Turn off relative permalinks on Jekyll docs. 2013-05-12 01:43:36 +02:00
Parker Moore
1d1d3727ce Merge branch 'master' into relative-permalinks
* master:
  Update history to reflect merge of #1079
  Update gemspec for new page-based docs.
  remove docs on installing pygments
2013-05-12 01:21:55 +02:00
Parker Moore
c59cfcfd2e Not automatically deprecated. 2013-05-12 01:19:04 +02:00
Parker Moore
d9f0dce67d make sure relative_permalinks is set to TRUE 2013-05-12 01:16:52 +02:00
Parker Moore
2e1316ec8b Ensure the page is in a subdir. That's the only time it's eff'd. 2013-05-12 01:08:33 +02:00
Parker Moore
6167747440 Say happy things when everything is cool 2013-05-12 01:07:58 +02:00
maul.esel
1b80fc8cc8 always be polite to the user :) 2013-05-11 20:03:55 +02:00
maul.esel
a8788f4a0a copy over deprecated config option to new one 2013-05-11 19:57:11 +02:00
maul.esel
c44d4248ac warn on use of deprecated "server_port" option 2013-05-11 19:54:06 +02:00
Parker Moore
0e82b4eb2f Use site config to determine whether permalinks should be relative. 2013-05-11 18:26:20 +02:00
Parker Moore
161244fd78 Add better language and link to Upgrading page in docs for relative permalinks deprecation msg 2013-05-11 18:06:33 +02:00
maul.esel
eda11aa534 ensure number category is NOT included as fixnum 2013-05-11 18:03:51 +02:00
Parker Moore
1f23bc4dc0 Add support for relative permalinks 2013-05-11 18:03:03 +02:00
Parker Moore
19bc54bb07 Add doctor command 2013-05-11 18:02:53 +02:00
Parker Moore
6294c4a204 Better-formatted output with relation to 'Generating... done.' 2013-05-11 17:56:42 +02:00
Parker Moore
b355ef6469 Add jekyll doctor command 2013-05-11 17:49:20 +02:00
Parker Moore
e22b1bb74a Add deprecation support for pages in subfolders with relative permalinks. 2013-05-11 17:40:00 +02:00
Parker Moore
470a187395 Update history to reflect merge of #1079 2013-05-11 17:10:50 +02:00
Parker Moore
3b50f4116a Merge pull request #1079 from maul-esel/docs-remove-pygments
Remove docs on installing pygments
2013-05-11 08:09:53 -07:00
Parker Moore
d869f99345 Update gemspec for new page-based docs. 2013-05-11 17:08:46 +02:00
maul.esel
ef06f19a9e remove docs on installing pygments
This is no longer needed as stated by @parkr in #1021,
as jekyll now comes bundled with pygments.rb.

Fixes #1021.
2013-05-11 16:52:39 +02:00
zachgersh
81bbafefea Reverted my upgrading.md to fix merge conflict. 2013-05-10 20:01:34 -07:00
Parker Moore
d675ef6662 Fixed some things on the site. 2013-05-10 23:28:42 +02:00
Parker Moore
fdceb50595 Can't use post_url to ask for the url's of the docs anymore. 2013-05-10 23:09:12 +02:00
Parker Moore
fe921190c7 Moving /docs to /docs/home 2013-05-10 23:05:59 +02:00
Parker Moore
9530e56176 Fix links to /docs/ in the site. 2013-05-10 22:57:51 +02:00
Parker Moore
23087b9c3f Add permalink to docs/upgrading/ 2013-05-10 22:55:27 +02:00
Parker Moore
d8070ec6be Make Upgrading docs page a Page. 2013-05-10 22:55:01 +02:00
Parker Moore
6bd7feeaa8 Update history to reflect merge of #985. Closes #980. 2013-05-10 22:13:32 +02:00
Parker Moore
628f8280d0 Merge benbalter:docs-pages #985 2013-05-10 22:11:36 +02:00
Parker Moore
65a1b33f6c Update history to reflect merge of #1073. 2013-05-10 21:55:57 +02:00
Parker Moore
6a36ace5ab Merge pull request #1073 from zachgersh/link_change
Changed link to liquid, was going to a dead link and it really bothered me
2013-05-10 12:54:46 -07:00
zachgersh
59f2a41ced Changed liquid link of the homepage. 2013-05-10 09:15:56 -07:00
zachgersh
29c165ef4c Changed the liquid link in posts. 2013-05-10 09:13:18 -07:00
zachgersh
7a2a9d36a7 Corrected additional liquid link on the Welcome page. 2013-05-10 08:59:56 -07:00
zachgersh
07d87b2cc0 Changed link to liquid, was going to a dead link and it really bothered me. 2013-05-10 08:53:47 -07:00
maul.esel
17cdd59206 adjust tests to new test post 2013-05-10 14:07:43 +02:00
maul.esel
eae3ae8479 fix handling of number categories 2013-05-10 14:07:23 +02:00
Roland Warmerdam
2a6c722e78 Add a data-lang attribute to code blocks 2013-05-10 19:18:13 +12:00
Rafael Revi
528c94e481 new test case: numbers in categories 2013-05-10 02:20:43 -04:00
Rusty Geldmacher
1646c223c4 Added jekyll-contentblocks to the plugins list 2013-05-09 10:09:12 -04:00
Parker Moore
012717ed04 Update history to reflect merge of #1061. 2013-05-09 13:51:55 +02:00
Mort Yao
8d0543d54c Bump pygments.rb version to 0.5.0 2013-05-09 13:51:25 +02:00
Parker Moore
3fbddc583c Update history to reflect merge of #1067 2013-05-09 13:48:34 +02:00
Parker Moore
cd260535d3 Merge pull request #1067 from stomar/kramdown
Update to kramdown 1.0.2
2013-05-09 04:47:43 -07:00
Marcus Stollsteimer
7977c5ed1b Update to kramdown 1.0.2 2013-05-09 13:26:29 +02:00
zachgersh
0712916d7d Manually fixed formatting for now. 2013-05-09 00:04:53 -07:00
zachgersh
2c5807faad Rake task added to move History into site and update its formatting. 2013-05-08 23:59:59 -07:00
zachgersh
eb5a8a6358 Cleaned up the formatting of changelist page and removed HEAD section. 2013-05-08 22:06:16 -07:00
zachgersh
cfc6d7797d Created new changelist page. It currently looks bad. 2013-05-08 21:31:57 -07:00
Matt Rogers
770402d912 Also stub the building of the index
Since we don't actually use the index in getting the related posts from
the tests there's no need to build an index, which can take a long time
if the ruby bindings for the GSL library are not installed.
2013-05-08 22:33:20 -05:00
Matt Rogers
08b49ec9db Update the display of the LSI progress output
It now fits more in line with what the other messages display.
2013-05-08 22:02:23 -05:00
Matt Rogers
1aa49fa734 Wrap tests around Jekyll::RelatedPosts
This gives me more confidence that we're doing the right things when it
comes to both the LSI and non-LSI cases and prevents regressions.
2013-05-08 21:57:10 -05:00
Christopher Giroir
b0c04c89f4 Further clarify what paginate_path should do in the case of directories in the path 2013-05-08 14:08:03 -07:00
Matt Rogers
64f8a7b228 Move the require for related_posts to jekyll.rb 2013-05-08 07:39:00 -05:00
Parker Moore
0c04e5d55b Catching that the Redcarpet gem has been installed. Fixes #1059 2013-05-08 11:55:19 +02:00
Christopher Giroir
09fafd6418 Fixing paginate_path on windows 2013-05-07 23:24:10 -07:00
Matt Rogers
f67f7f3db4 Move the building of related posts into their own class 2013-05-07 22:27:38 -05:00
Parker Moore
8bd14f18f6 Update History to reflect release of 1.0.1. 2013-05-08 01:06:11 +02:00
Parker Moore
abc633a36a Release 1.0.1 2013-05-08 01:03:51 +02:00
Parker Moore
c758f8d24f Release 1.0.1 2013-05-08 01:03:14 +02:00
Parker Moore
2bee768e79 Update history to reflect merge of #1053. Closes #1038. 2013-05-08 00:58:31 +02:00
Parker Moore
cb0054b6d7 Merge pull request #1053 from mojombo/redcarpet-respect-pygments
Respect pygments config option in Redcarpet renderer.
2013-05-07 15:57:17 -07:00
Parker Moore
739f752580 Properly wrap and encode non-pygmentized code. 2013-05-08 00:45:55 +02:00
Parker Moore
f69c39c3ac fix up tests for pygments-aware redcarpet 2013-05-08 00:45:42 +02:00
Parker Moore
62b4fd77ac Using modules instead of classes for Redcarpet with/without Pygments. 2013-05-08 00:28:51 +02:00
Parker Moore
2114bb3c2e Respect pygments config option in Redcarpet renderer. 2013-05-08 00:10:18 +02:00
Parker Moore
3fef9607bc Update history to reflect introduction of #1051. 2013-05-07 23:54:02 +02:00
Chris Jones
25cb387953 Changed https to http in the GitHub Pages link. fixes #1051. 2013-05-07 23:53:17 +02:00
Parker Moore
eda088136f Update history to reflect merge of #1048. 2013-05-07 22:13:21 +02:00
Parker Moore
541dbf1a04 Merge pull request #1048 from mojombo/fix-toc-rdiscount
Check to make sure there is a toc_token before trying to use it.
2013-05-07 13:11:10 -07:00
Parker Moore
1d2f172d6b Check to make sure there is a toc_token before trying to use it. Fixes #1047 2013-05-07 18:12:47 +02:00
Parker Moore
81fea5ae22 Update history to reflect merge of #1037. 2013-05-07 16:46:02 +02:00
Parker Moore
5dd3b0b71d Update tests to be compliant with #1037. 2013-05-07 16:45:15 +02:00
Parker Moore
f9e3cf21f9 Provide backwards-compatibility for change in #1037. 2013-05-07 16:45:06 +02:00
Parker Moore
6b9ef70d7b Merge pull request #1037 from djui/patch-1
Add newer `language-` class name prefix to code blocks
2013-05-07 07:41:08 -07:00
Parker Moore
cacc0d0872 Clean up history file. Update it to reflect merge of #1027 2013-05-07 15:20:50 +02:00
Parker Moore
ea29bff239 Fix up markdownified history file. 2013-05-07 15:19:09 +02:00
Parker Moore
b625dbdbe3 I have weird preferences with filenames. Sorry, not sorry. 2013-05-07 15:18:01 +02:00
Parker Moore
3728f8149c Merge pull request #1027 from benbalter/markdownify-changelog
Markdownify the changelog
2013-05-07 06:17:07 -07:00
Benjamin J. Balter
6928d5b550 rebase changelog 2013-05-07 08:59:16 -04:00
Parker Moore
877e328650 Update history to reflect merge of #1045 2013-05-07 14:32:37 +02:00
Parker Moore
368582832d Merge pull request #1045 from mojombo/fix-lsi-build
Fix the index build with LSI. Fixes #1039.
2013-05-07 05:31:39 -07:00
Matt Rogers
39d33b48b0 Fix the index build with LSI 2013-05-07 06:58:54 -05:00
Parker Moore
e12482fc6b Update history to reflect fix of #1040 2013-05-07 13:16:15 +02:00
Parker Moore
d0a9948eed Let Commander handle bad args after printing of deprecation warning. Fixes #1040. 2013-05-07 13:15:03 +02:00
Parker Moore
7dccb6c996 Update history to reflect fix of #1041. 2013-05-07 13:11:17 +02:00
Parker Moore
a0ad8a4031 Don't print deprecation warning if no arg is specified. Fixes #1041. 2013-05-07 13:10:29 +02:00
Uwe Dauernheim
3770bcbdb7 Use newer language- class name prefix
This change makes it partly possible to use Jekyll+RedCarpet+Prism.js without using a plugin.

Another change will respect Jekyll's `pygments` configuration option and not render the code block using Pygments. Together, these two changes allow using prism.js with Jekyll out of the box.
2013-05-07 02:33:58 +03:00
Parker Moore
dde2d7c3f6 Update history to reflect merge of #1032 2013-05-06 22:10:18 +02:00
Parker Moore
b9a94123d6 Merge pull request #1032 from pborreli/typos
Fixed typos, add missing <div> to site_template
2013-05-06 12:51:49 -07:00
Pascal Borreli
29b3dc97f0 Fixed typos 2013-05-06 20:27:00 +01:00
Pascal Borreli
410e5912a2 Fixed html 2013-05-06 20:26:39 +01:00
Parker Moore
c7b707cdfd Ignore --help and --version in Deprecator. Fixes #1030 2013-05-06 20:17:28 +02:00
Parker Moore
60bbcaa863 Update history to reflect merge of #1028 2013-05-06 20:06:53 +02:00
Parker Moore
7cea0657ba Merge pull request #1028 from pborreli/site-typos
Fixed some typos
2013-05-06 11:05:31 -07:00
Pascal Borreli
d34991ce3d Removed useless measure in css 2013-05-06 16:10:29 +01:00
Pascal Borreli
221c525057 Fixed duplicate attribute in css 2013-05-06 16:09:26 +01:00
Pascal Borreli
b61f81c64d Removed duplicate css entry 2013-05-06 16:08:36 +01:00
Pascal Borreli
eacf7e948b Fixed typos 2013-05-06 16:07:45 +01:00
Pascal Borreli
e4e73bddb3 Fixed select closing tag 2013-05-06 15:57:43 +01:00
Benjamin J. Balter
6f3fbc69e7 markdownify the changelog 2013-05-06 09:50:38 -04:00
Parker Moore
0c76792aa7 Update history to reflect merge of #1025 2013-05-06 15:27:36 +02:00
Parker Moore
494f0aac4f Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Removing manual install of Pip and Distribute
2013-05-06 15:27:00 +02:00
Parker Moore
4cf99f7de0 Merge pull request #1025 from Nikkau/patch-1
Removing manual install of Pip and Distribute
2013-05-06 06:26:36 -07:00
Nikkau
f4f2932cb8 Removing manual install of Pip and Distribute
Brew automatically install Pip and Distribute.

https://github.com/mxcl/homebrew/blob/master/Library/Formula/python.rb#L245-247
2013-05-06 16:19:47 +03:00
Parker Moore
dd242db3da Update history to reflect merge of #1022 2013-05-06 11:15:00 +02:00
Parker Moore
cbe1448ad1 Merge pull request #1022 from olov/patch-1
Updated URL for Markdown references plugin (moved from Gist to project)
2013-05-06 02:14:19 -07:00
Olov Lassus
7a65f2d268 Updated URL for Markdown references plugin (moved from Gist to a GitHub project) 2013-05-06 11:53:52 +03:00
David Briggs
a5a6be1b1b fix unescaped liquid tag, fixes #1019 2013-05-06 10:51:08 +02:00
Parker Moore
d30117aeb2 Update history to reflect merge of #1018 2013-05-06 02:07:51 +02:00
Parker Moore
21e99430bc Update history to reflect release of 1.0.0. 2013-05-06 02:07:11 +02:00
Parker Moore
097ac95d49 Merge pull request #1018 from kivikakk/readme_links
Update README links.
2013-05-05 17:05:31 -07:00
Arlen Cuss
fadd53ab8b Update README links. 2013-05-06 10:01:51 +10:00
Parker Moore
9f94eaf061 Release 1.0.0 2013-05-06 01:16:34 +02:00
Parker Moore
9f6da26bb4 remove failsave for docs publishing 2013-05-06 01:16:14 +02:00
Parker Moore
4d9d6b689b Cleaning up the site template CSS. 2013-05-06 01:00:00 +02:00
Parker Moore
58103d11c9 Add Upgrading docs page to gemspec. 2013-05-05 23:51:10 +02:00
Parker Moore
24d694e6a0 We now have native drafts, wahoo 2013-05-05 23:42:08 +02:00
Parker Moore
0619265e5b Update Upgrading docs. #965 2013-05-05 23:39:42 +02:00
Parker Moore
04837f7c78 Merge pull request #965 from benbalter/upgrading-docs
Add docs to help users upgrade from < 1.0, fixes #877
2013-05-05 14:10:44 -07:00
Parker Moore
06beb4b72b Bump version for 1.0.0. 2013-05-05 23:02:45 +02:00
Parker Moore
0b1d22dd61 Merge pull request #1016 from mojombo/fix-pagination
Paginate in subdirectories properly
2013-05-05 14:01:29 -07:00
Parker Moore
bcf1464162 Update history to reflect merge of #992 2013-05-05 22:58:55 +02:00
Parker Moore
ce999f12fc Merge pull request #992 from maul-esel/consistent-page.url
add leading slash to page.url and post.url
2013-05-05 13:56:15 -07:00
Parker Moore
8bd1e0f06e Update history to reflect merge of #964. 2013-05-05 21:08:03 +02:00
Parker Moore
50d66831ff Merge pull request #964 from benbalter/html-template-site
Make Template site HTML5
2013-05-05 12:05:47 -07:00
Benjamin J. Balter
8ec08fceb6 Downgrade default site template for Internet exploder
Swap `<header>` and `<footer>` tags to `<div>`s, so we can support IE without the need for an html5 shim.
2013-05-05 14:28:58 -04:00
Parker Moore
dcd7b36269 Fixing Pager test for 1.8.7. 2013-05-05 18:08:03 +02:00
Parker Moore
1c146ec649 Instead of just a string name, Pager.pagination_enabled? now accepts a page 2013-05-05 17:26:48 +02:00
Parker Moore
050e982006 Add extra question to ensure that the index.html file is in thepagination path's directory 2013-05-05 17:26:29 +02:00
Parker Moore
2d0e65b5f7 In Cucumber step definitions, it'd be smart not to chdir into a dir we're about to kill 2013-05-05 17:25:42 +02:00
Parker Moore
5836b441f6 Fixing up pagination feature test 2013-05-05 17:25:09 +02:00
Parker Moore
ea71036e8c Paginate in subdirectories properly. Fixes #878. 2013-05-05 15:40:13 +02:00
Parker Moore
3e670e72ab Update gemspec. 2013-05-05 15:20:18 +02:00
Parker Moore
20334aabbe Test all cases for post_url modifications. #998 2013-05-05 15:13:17 +02:00
Parker Moore
9179f56ed7 Quick clean-up from #998. 2013-05-05 14:59:50 +02:00
Parker Moore
0edbbc1641 Update history to reflect merge of #998 2013-05-05 14:22:01 +02:00
Parker Moore
290ba131e2 Merge pull request #998 from dhcole/master
Use post's directory path when matching for the post_url tag
2013-05-05 05:16:39 -07:00
Parker Moore
0d49aacc29 Update history to reflect merge of #1015 2013-05-05 13:49:34 +02:00
Parker Moore
1b994a9682 Merge pull request #1015 from mojombo/loose-pygments-dep
Loosen Pygments Dependency
2013-05-05 04:48:37 -07:00
Parker Moore
bd0ff6644e Update history to reflect merge of #1014 2013-05-05 13:44:09 +02:00
Parker Moore
dcf3911176 Merge pull request #1014 from mojombo/string-times
Parse strings into Time objects for date-related parsing
2013-05-05 04:42:26 -07:00
Parker Moore
ca888cad76 When pygments is required after Jekyll::Logger is required, its internal require to Ruby's stdlib Logger class chokes. This is an ugly-ass work-around. 2013-05-04 15:31:02 +02:00
Parker Moore
3feb18bb56 Redcarpet Parser requires pygments 2013-05-04 15:29:43 +02:00
Parker Moore
3c218d2dcd Only require pygments where it's needed. 2013-05-04 15:04:57 +02:00
Parker Moore
67aaada839 Clean up some copy in the limit_posts error handling. 2013-05-04 14:57:27 +02:00
Parker Moore
c9bd1437a3 Testing parsing of String objects which represent times to Date filters 2013-05-04 14:41:21 +02:00
Parker Moore
7554c4ce61 Parse strings into Time objects for date-related parsing. Fixes #997. 2013-05-04 14:01:44 +02:00
Parker Moore
1c4f5b4ee5 Update history to reflect the merge of #860 2013-05-02 23:55:49 +02:00
Parker Moore
1404a97cd4 Merge pull request #860 from cobyism/responsify
Responsive jekyllrb.com (thanks to @cobyism)
2013-05-02 14:53:46 -07:00
Coby Chapple
e419029b93 update github logo in footer 2013-05-02 21:56:45 +01:00
Coby Chapple
eaaba892a2 derp 2013-05-02 21:56:35 +01:00
Coby Chapple
f0fc262812 tweak some of the code blocks on the troubleshooting page to work better on mobiles 2013-05-02 21:46:43 +01:00
Coby Chapple
cdcb92bb38 make these clone instructions behave as blocks 2013-05-02 21:43:22 +01:00
Coby Chapple
6cc77dfeee this code block was sticking way out, usage detailed on gist anyway 2013-05-02 21:38:24 +01:00
Coby Chapple
72d4e1f65b oops, pagination page got left out 2013-05-02 21:34:47 +01:00
Coby Chapple
04bbca5871 use <th> instead of <td> for table headers on variable page 2013-05-02 21:32:41 +01:00
Coby Chapple
6f2f296578 more padding for extra quick-start command line 2013-05-02 21:32:07 +01:00
Parker Moore
4c7b9cb953 #583 has been merged, but should wait for #860. 2013-05-02 22:19:01 +02:00
Coby Chapple
6a57d5248b merge in changes from latest master
conflicts:
- site/_posts/2012-07-01-permalinks.md
- site/css/style.css
- site/index.html
2013-05-02 21:16:47 +01:00
Coby Chapple
e0640d6687 side scrolling wrappers for remaining tables 2013-05-02 21:08:18 +01:00
Coby Chapple
0d80d10ebf wrappers for permalinks page 2013-05-02 14:17:16 +01:00
Coby Chapple
c6ce15e435 notes, warnings etc should break out rightwards too, come to think of it 2013-05-02 14:16:19 +01:00
Coby Chapple
8446f47247 wrapper classes for frontmatter page 2013-05-02 14:05:44 +01:00
Coby Chapple
951cb11d48 padding should be even when table fits without overflow 2013-05-02 13:52:21 +01:00
Coby Chapple
fb642bb97f break side scrolling tables out of the grid/parent containers 🤘 2013-05-02 13:51:26 +01:00
Coby Chapple
f924a04733 scroll tables sideways on mobiles 2013-05-02 13:50:46 +01:00
Parker Moore
40b587c46c Update history to reflect change to solve #1008 2013-04-30 22:18:58 +02:00
Parker Moore
c32b570114 Checking the arguments to ensure we have a subcommand before proceeding. (#1008) 2013-04-30 22:17:22 +02:00
Parker Moore
463ea15a3e Update history to reflect merge of #1007 2013-04-30 22:02:36 +02:00
Parker Moore
1f02150ee9 Merge pull request #1007 from michaelklishin/patch-1
Catch all exceptions, not just StandardError descendents
2013-04-30 12:59:02 -07:00
Michael Klishin
82ec02905e Catch all exceptions, not just StandardError descendents
We've hit a few edge cases in Liquid/Markdown rendering
with http://clojurewerkz.org documentation sites.
They resulted in exceptions Jekyll silently swallowed because
they were not StandardException subclasses.
2013-04-30 23:33:08 +04:00
Dave Cole
b1cf3d5dd5 Adjust expected post count for tests. 2013-04-30 12:46:31 -04:00
Parker Moore
48fe514c54 Updating Configuration page in docs with the defaults 2013-04-30 16:08:21 +02:00
Parker Moore
0b1bc0c24d Update history to reflect merge of #1004 2013-04-30 15:54:58 +02:00
Parker Moore
7efd0a8d11 Merge pull request #1004 from uu59/fix_limit_posts_from_cli
Fix `jekyll serve --limit_posts n` failed
2013-04-30 06:53:05 -07:00
Dave Cole
805f378586 Add test for nested post_url 2013-04-29 17:48:10 -04:00
uu59
0f52f15cc2 Clean up code #1104 2013-04-29 21:07:46 +09:00
uu59
94756340cd Remove to_i. Let commander gem do it #1004 2013-04-29 15:56:02 +09:00
Parker Moore
b4b66d5713 Merge pull request #1001 from mojombo/refactoring-convertible
Refactoring Jekyll::Convertible
2013-04-28 16:43:38 -07:00
Parker Moore
3237b39f21 Merge pull request #1002 from mojombo/refactor-post
Refactor Jekyll::Post
2013-04-28 16:40:22 -07:00
uu59
20a837d15c Change default value of limit_posts from nil to 0 (see #1004)
Before this commit meaning of limit_posts:
  nil: no limit. generate all posts
  0: raise error
  n ( > 0): generate n posts only
  n ( < 0): raise error
  else: raise error

After this commit:
  nil: same as 0
  0: no limit. generate all posts
  n ( > 0): generate n posts only
  n ( < 0): raise error
  else: almost same as 0 (depend on `to_i` result)
2013-04-29 01:41:22 +09:00
Parker Moore
f7fde70f5f 'The Best of Both Worlds,' à la @chad's comment 2013-04-28 15:21:17 +02:00
uu59
ad2c706a34 Fix jekyll serve --limit_posts n failed 2013-04-28 02:03:08 +09:00
Parker Moore
46ce757b71 Compliant with Ruby 2.0.0 2013-04-26 21:20:48 +02:00
Parker Moore
5f13e00791 Comments for Convertible.render_all_layouts and Convertible.render_liquid 2013-04-26 21:09:02 +02:00
Parker Moore
fcbab9a3ca Post#is_published ~> Post#published? 2013-04-26 21:00:47 +02:00
Parker Moore
f7841d1713 Remove unnecessary self.tags.flatten! in favour of a one-line sol'n. 2013-04-26 20:59:54 +02:00
Parker Moore
422a4bd5cd Renamed tag- and category-instantiation methods 2013-04-26 20:25:07 +02:00
Parker Moore
6d9845a58b Refactor Post category instantiation 2013-04-26 20:23:58 +02:00
Parker Moore
482986e346 Refactored setting of Post.published flag 2013-04-26 20:21:17 +02:00
Parker Moore
266a52b161 The call to Post#read_yaml was in an unnecessary begin...rescue block. 2013-04-26 20:09:18 +02:00
Parker Moore
09c1c01d07 Refactor Post#related_posts to build the index in a different method 2013-04-26 20:05:52 +02:00
Parker Moore
ffa93c22f1 Refactor Post#to_liquid 2013-04-26 20:03:57 +02:00
Parker Moore
29a1c18300 Refactoring Jekyll::Convertible 2013-04-26 19:36:52 +02:00
Parker Moore
fe36b0f479 Update history to reflect fixing of #981 2013-04-26 19:16:23 +02:00
Parker Moore
217b2298d1 Update history to reflect fixing of #836 2013-04-26 19:13:21 +02:00
Parker Moore
6923865091 Update history to reflect fixing of #993 2013-04-26 19:12:32 +02:00
Parker Moore
6bb8b82a1e Update history to reflect merge of #989 2013-04-26 19:10:53 +02:00
Parker Moore
9a5a702e47 When one clones one's fork of Jekyll, one should not use the readonly git:// protocol. Instead, use SSH. 2013-04-26 19:09:11 +02:00
Parker Moore
d2f364b60c Merge pull request #989 from mojombo/docs-proofreading
Proofread and fix up the documentation
2013-04-26 09:43:48 -07:00
Dave Cole
fc09ac4862 Use post's directory path when matching for the post_url tag 2013-04-25 13:58:05 -04:00
Parker Moore
61c24c601a Add UTF-8 encoding where we read in YAML so it reads in UTF-8 characters properly. Fixes #836. 2013-04-25 02:15:25 +02:00
Parker Moore
5a20fa4382 --plugins can now accept plugin directories. Fixes #993. 2013-04-23 01:50:57 +02:00
Parker Moore
8ed092ed94 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Moving comparison for PostUrl tag to the PostComparer class
  Fail if destination directory for jekyll new exists and is not empty. Fixes #981.
  Remove code duplication: #write in Page and Post is the same.
2013-04-23 01:41:43 +02:00
Stephen McDonald
a38902b5a7 Use valid css class names when pygments language contains invalid chars, eg html+jango 2013-04-23 06:48:31 +10:00
Parker Moore
24aabbe05f Moving comparison for PostUrl tag to the PostComparer class 2013-04-22 12:57:52 +02:00
maul.esel
9582a7cc84 note leading slash in the docs 2013-04-20 13:34:54 +02:00
maul.esel
6f28b6d432 fix tests for always-present slash 2013-04-20 13:21:31 +02:00
maul.esel
d73841c961 always ADD a leading slash to page.url or post.url 2013-04-20 13:15:40 +02:00
Matt Rogers
47f8fb5091 Don't end an independent thought with a preposition. 2013-04-19 22:56:19 -05:00
Matt Rogers
b05afb022f Use 'the' instead of 'a' 2013-04-19 22:51:18 -05:00
Matt Rogers
7d59df92b3 Use 'from' instead of 'at' 2013-04-19 22:50:45 -05:00
maul.esel
c6df2e150a remove leading slash from page.url and post.url 2013-04-19 16:37:48 +02:00
Matt Rogers
94449c4088 Tell people to update the site not the wiki.
We want to kill the wiki with fire.
2013-04-18 23:17:09 -05:00
Matt Rogers
7d3dcc0116 Fix the link to the Homebrew wiki 2013-04-18 23:17:09 -05:00
Matt Rogers
898d9d13a8 Remove the word 'also' when describing Typo migrations.
The use of the 'also' is out of place here. We're only talking about one thing.
2013-04-18 23:17:08 -05:00
Matt Rogers
35a59ab766 Use 'newer' instead of 'future'
When talking about versions of Drupal greater than 6.1, use the word newer to
indicate that those versions have already been released. The word future implies
that those versions haven't been released yet.
2013-04-18 23:17:08 -05:00
Matt Rogers
205e65d017 Be explicit about what we require when migrating systems
We require access to the database from the old system and we're generating posts
for Jekyll.
2013-04-18 23:17:08 -05:00
Matt Rogers
96fa05ac3d Make the text clearer for the layout option 2013-04-18 23:17:08 -05:00
Matt Rogers
a8361315ed Add a missing 'the'
We're serving the website. There can be only one.
2013-04-18 23:17:08 -05:00
Matt Rogers
f5a4d36efc Add a missing comma
We have three or more terms with a single conjunction. According to Strunk and
White, we need a comma.
2013-04-18 23:17:08 -05:00
Matt Rogers
c06bb76610 Fix a verb tense mismatch 2013-04-18 23:17:08 -05:00
Matt Rogers
ef6ae8c073 Add a word that was missing 2013-04-18 23:17:08 -05:00
Matt Rogers
2e65658920 Fix up some verbiage that didn't jive quite right. 2013-04-18 23:17:08 -05:00
Matt Rogers
8d7be33dfb Wrap at 80 columns 2013-04-18 23:16:53 -05:00
Benjamin J. Balter
e1f04968e8 Use pages for documentation, not posts, fixes #980. 2013-04-18 10:10:59 -04:00
Parker Moore
ba64a9fe30 Fail if destination directory for jekyll new exists and is not empty. Fixes #981. 2013-04-16 18:24:10 +02:00
Benjamin J. Balter
11419868dc CSS reorganization
1. Fix regression on s/.footer/footer/
2. Fix whitespace and tabbing
3. Reorganize properties more logically
2013-04-16 09:48:18 -04:00
Parker Moore
6ed41e373c Remove code duplication: #write in Page and Post is the same. 2013-04-16 02:55:31 +02:00
Parker Moore
aba0e3a79e Release 1.0.0.rc1 2013-04-16 00:49:31 +02:00
Parker Moore
c0c0150bb5 Release 1.0.0.rc1 2013-04-16 00:47:31 +02:00
Parker Moore
82f32d5c02 Merge configuration properly. Closes #978. 2013-04-16 00:41:10 +02:00
Benjamin J. Balter
55b890b407 Move site title to H1 tag, wrap header in header tag. 2013-04-15 16:50:01 -04:00
Benjamin J. Balter
3bf38ad0d3 significant rewrite of baseurl section for clarity, props mattr- 2013-04-15 16:25:40 -04:00
Benjamin J. Balter
db31c1a453 s/mardown/markdown/ part deux 2013-04-15 16:16:27 -04:00
Benjamin J. Balter
4063e47fb9 s/--server/serve/ part deux 2013-04-15 16:15:38 -04:00
Benjamin J. Balter
766ef9e3da s/mardown/markdown, props @mattr 2013-04-15 16:13:46 -04:00
Benjamin J. Balter
7a0b6da5ed s/along side/alongside/ h/t @mattr 2013-04-15 16:13:22 -04:00
Benjamin J. Balter
6b624fb699 upper case P dangit 2013-04-15 16:12:54 -04:00
Benjamin J. Balter
075e14aaad moar hard word wrapping 2013-04-15 16:12:13 -04:00
Benjamin J. Balter
380e7a9744 s/--server/serve 2013-04-15 16:10:19 -04:00
Benjamin J. Balter
783d59045b remove stray comma 2013-04-15 16:09:24 -04:00
Benjamin J. Balter
343d56dfe3 hard wrap *all* the things! 2013-04-15 16:09:02 -04:00
Benjamin J. Balter
223dbdc155 86'd conditional IE classes 2013-04-15 13:37:05 -04:00
Benjamin J. Balter
91bcb83c8a plurlize file(s) 2013-04-15 13:34:38 -04:00
Benjamin J. Balter
55368898f5 Clarify new way to do server and auto, props @parkr
see https://github.com/mojombo/jekyll/pull/965#issuecomment-16396829
2013-04-15 13:33:53 -04:00
Parker Moore
e7546a98f6 Remove unnecessary override of #read_yaml in Page. 2013-04-15 19:24:23 +02:00
Parker Moore
f6f3aa6218 Update history to reflect merge of #977. Repealed #580. 2013-04-15 19:21:15 +02:00
Parker Moore
9571e4c536 Merge pull request #977 from maul-esel/no-layout-defaults
No layout defaults (reverts #580)
2013-04-15 10:19:32 -07:00
Parker Moore
e4b8dbc112 Add files to the manifest in the gemspec 2013-04-15 19:15:55 +02:00
Benjamin J. Balter
db76121d89 Make --config usage more explicit.
See https://github.com/mojombo/jekyll/pull/965#discussion_r3797116 and https://github.com/mojombo/jekyll/pull/965#discussion_r3797085

Props @parkr.
2013-04-15 12:56:33 -04:00
Benjamin J. Balter
14ca57893f 86'd Chrome Frame in template site 2013-04-15 12:04:27 -04:00
Benjamin J. Balter
532adddbb8 quick shout out to jekyll new 2013-04-15 12:02:06 -04:00
Benjamin J. Balter
f8e8160358 clarify baseurl usage 2013-04-15 11:56:46 -04:00
maul.esel
cc5ce06d78 remove tests for default layouts 2013-04-15 17:24:18 +02:00
maul.esel
b7064a4bc3 remove 'post' and 'page' default layouts 2013-04-15 17:24:09 +02:00
Parker Moore
5a8a04391c Update history to reflect merge of #957. 2013-04-15 16:25:42 +02:00
Parker Moore
afa3ef90b9 Merge pull request #957 from mojombo/timezonify
Set Timezone in _config.yml
2013-04-15 07:23:53 -07:00
Parker Moore
457e90fd41 Just remove the darn TEST_DIR 2013-04-15 15:42:21 +02:00
Parker Moore
b4f68baafb Jekyll.set_timezone accepts just the timezone, not the config 2013-04-15 15:39:36 +02:00
Parker Moore
b68d33ed8b Remove 'shell' from description of changing TZ 2013-04-15 14:37:37 +02:00
Parker Moore
aa1f52fce8 Renamed timezone feature scenarios 2013-04-15 14:35:28 +02:00
Parker Moore
83cb01dd59 Using File.exists? more generally instead of File.directory? so /tmp/jekyll is always removed before running tests 2013-04-15 14:34:06 +02:00
Parker Moore
88e68e038a Extract out date parsing in feature steps 2013-04-15 14:32:14 +02:00
Parker Moore
9c57fad430 Finished feature for timezone shifting. 2013-04-15 00:42:14 +02:00
Parker Moore
df868b308a Set Jekyll path relative to the env file, not to CWD 2013-04-15 00:42:14 +02:00
Parker Moore
48795462c2 Cucumber: remove test dir if it's there 2013-04-15 00:42:14 +02:00
Parker Moore
b51b796a1e Feature for timezone switching 2013-04-15 00:42:13 +02:00
Parker Moore
fbf818b618 Add example TZ and default value note. 2013-04-15 00:42:13 +02:00
Parker Moore
d6a08b093a Add docs for timezone setting. 2013-04-15 00:42:13 +02:00
Parker Moore
c0a2d0f888 Fixed syntax error 2013-04-15 00:42:13 +02:00
Parker Moore
b249289b9d Set the timezone for the process 2013-04-15 00:42:13 +02:00
Parker Moore
5bcce7a1f1 Fix unit tests for Configuration#backwards_compatibilize 2013-04-15 00:41:46 +02:00
Parker Moore
d33f45ff05 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Print deprecation warnings for 'server', 'watch' and 'auto' when loaded from files. Fixes #972
  Fixes multiple config loading. Closes #973. Rel: #945.
2013-04-15 00:32:17 +02:00
Parker Moore
f7310f554e Whitespace in post.rb 2013-04-15 00:32:04 +02:00
Parker Moore
55a964a7da Print deprecation warnings for 'server', 'watch' and 'auto' when loaded from files. Fixes #972 2013-04-14 23:18:47 +02:00
Parker Moore
e531925cae Fixes multiple config loading. Closes #973. Rel: #945. 2013-04-14 23:04:20 +02:00
Parker Moore
e0335e2167 .formatted_topic has moved back to Jekyll::Logger. Update Build.watch to use it 2013-04-14 20:21:39 +02:00
Parker Moore
85fc27bdd5 Update history to reflect merge of #959. 2013-04-14 20:06:58 +02:00
Parker Moore
398cd633b6 Merge pull request #959 from mojombo/deprecator
Refactor Logging and Deprecation Messaging
2013-04-14 11:05:07 -07:00
Parker Moore
6a4a607aea Merge pull request #968 from maul-esel/cucumber-fix
minor test fix: the variable is named page.path
2013-04-14 10:42:27 -07:00
Benjamin J. Balter
47e9c978bf Direct users to the proper command when previewing drafts. 2013-04-14 13:35:24 -04:00
Benjamin J. Balter
38e7d61858 fix typo in draft post explanation, props @parkr 2013-04-14 13:31:17 -04:00
Benjamin J. Balter
6133252f06 s/root/source/, props @parkr 2013-04-14 13:30:14 -04:00
Parker Moore
4ef107f3e8 Remove Logger methods from main Jekyll module. 2013-04-14 19:27:19 +02:00
Benjamin J. Balter
30859cd979 First pass at baseurl documentation 2013-04-14 13:27:14 -04:00
Benjamin J. Balter
87d3ddc1d9 Add draft functionality explanation to upgrading docs 2013-04-14 13:18:03 -04:00
Benjamin J. Balter
f4c61e59a6 clean up language a bit to clarify meaning 2013-04-14 13:11:37 -04:00
Benjamin J. Balter
37f332d58e Note that --auto is not --watch 2013-04-14 13:06:55 -04:00
Benjamin J. Balter
ff88254ccb De-deprecate --safe, props @mojombo 2013-04-14 13:03:06 -04:00
Benjamin J. Balter
c038ea6cc2 s/problematically/programmatically/, props @mojombo 2013-04-14 13:00:59 -04:00
Benjamin J. Balter
652b548ca5 Hard line wrap FTW! 2013-04-14 12:59:09 -04:00
Benjamin J. Balter
ba2281c4a3 Strip CSS, JS, and IMG from template site
Per #964, just upgrade the template site from XHTML to HTML5,
leaving the existing CSS. No need to get fancy.

The HTML is essentially HTML5 Boilerplate. No need for a holy war.

Look and feel should remain the same.
2013-04-14 12:52:27 -04:00
maul.esel
64702f2faf minor test fix: the variable is named page.path 2013-04-14 09:52:30 +02:00
maul.esel
c0dfe3165c test per-post permalinks
Add tests for setting a permalink on a post (in YAML frontmatter),
both the "old way" (generating an index.html) and with an .html ex-
tension.
2013-04-14 09:47:40 +02:00
Parker Moore
91b9d974b2 Update history to reflect merge of #955 2013-04-14 05:26:32 +02:00
Parker Moore
81e44bf5f4 Merge pull request #955 from mojombo/refactor-markdown
Refactor Markdown Parser Logic
2013-04-13 20:25:37 -07:00
Parker Moore
7a7990fb9a Moved markdown converters into lib/jekyll/converters/markdown 2013-04-14 05:23:42 +02:00
Parker Moore
30b49e7d4d Update history to reflect merge of #907 2013-04-14 04:22:29 +02:00
Parker Moore
c708d1d71b Merge pull request #907 from advatar/pkpass_mime_type_support
Added pkpass to the list
2013-04-13 19:17:35 -07:00
Parker Moore
7557e732a2 Update history to reflect addition of docs for page.path #951 2013-04-13 20:42:35 +02:00
Parker Moore
0ba7bc12b0 Update history to reflect merge of #956 2013-04-13 20:41:43 +02:00
Parker Moore
db3a2ab941 Update history to reflect merge of #966 2013-04-13 20:39:52 +02:00
Parker Moore
10c2445003 Merge pull request #966 from benbalter/quick-start-scaffold
Update quickstart instructions with `new` command
2013-04-13 11:38:56 -07:00
Parker Moore
ef51b0f9e4 Error message is red 2013-04-13 20:27:44 +02:00
Parker Moore
ef9d8ddb7d Matching tests to new colorized output 2013-04-13 20:24:45 +02:00
Benjamin J. Balter
f69a716d93 Update quickstart instructions with new command
Quickstart instructions as written would serve an empty directory.

They instruct the user to install Jekyll (:metal), `cd` to a directory that may not exist, and then run `jekyll serve` (:hurtrealbad:).

Instead, lets have them run `jekyll new` to stand up a scaffold site, so they can see how things work and poke around a bit.

It's one more command, but IMHO a better user experience for someone just getting started.
2013-04-13 14:09:58 -04:00
Benjamin J. Balter
c2dc80b95e Add docs to help users upgrade from < 1.0, fixes #877
* Help with new command line usage
* Help with deprecated flags
* Help with baseurl
* Help with drafts
2013-04-13 14:03:16 -04:00
Parker Moore
b99baeae27 Colorize warns as yellow 2013-04-13 19:58:41 +02:00
Parker Moore
97dbadb5dd Add colorator gem 2013-04-13 19:46:25 +02:00
Parker Moore
cef0a80897 Update history to reflect merge of #961 2013-04-13 19:27:21 +02:00
Parker Moore
9b5ebb874f Merge pull request #961 from benbalter/default-markdown-engine
Move template site to default markdown renderer
2013-04-13 10:26:34 -07:00
Parker Moore
3e04655025 Merge pull request #962 from dracula2000/refactor-site
Move defaults found in site.rb to DEFAULTS Hash
2013-04-13 10:24:35 -07:00
Benjamin J. Balter
1163fa905e Make template site HTML5
It would really pain me if the default Jekyll site were XHTML. That'd be bad for the internet.

Instead, use Twitter Bootstrap as a base (while still keeping @mojombo's origin design), to give users a great initial baseline to build beautiful, simple sites.

Defaults are more than just the starting point. It's what 80% of users are going to use. Look at WordPress and the default theme. May as well lead by example and start the user off right.

* Add Bootstrap base CSS as a better reset and base layer
* Update default layout to HTML5 with boilerplate best practices
* Add title and post date to post.html (rather than including in the post itself)
* Make site title a variable and add to _config.yml
* Add page title to header
* Add default .gitignore to ignore `_site`
* Remove unused `rss.png` and `.gitkeep`
* Add Modernizr for legacy IE support
2013-04-13 13:15:31 -04:00
maul.esel
40e44a2051 do not force the permalink to be a dir if it ends on .html
Fixes #798.
2013-04-13 18:45:40 +02:00
Benjamin J. Balter
485b37e3d1 move template site to default markdown renderer 2013-04-13 12:41:03 -04:00
Brian Kim
028e580bb8 Remove short-circuits from Site 2013-04-13 12:39:49 -04:00
Brian Kim
e7815d873c Add implicit defaults to DEFAULTS 2013-04-13 12:37:38 -04:00
Parker Moore
17f97cdbab Move manual printing to Jekyll.info and Jekyll.warn 2013-04-13 18:22:34 +02:00
Parker Moore
c5f6e527b5 Bring Logger and Deprecator into the fold 2013-04-13 18:05:03 +02:00
Parker Moore
a355762190 Run Jekyll::Deprecator.process upon invocation of Jekyll 2013-04-13 18:04:37 +02:00
Parker Moore
bc6748f139 Add Jekyll::Deprecator 2013-04-13 18:03:38 +02:00
Parker Moore
61465053eb Add Jekyll::Logger 2013-04-13 18:02:16 +02:00
Parker Moore
dcad4b2867 Merge pull request #956 from jhauraw/doc-var-excerpt
Add 'excerpt' page variable to Docs Variables page.
2013-04-13 07:19:46 -07:00
Parker Moore
891ccbd656 Merge pull request #953 from mojombo/refactor-configuration
Refactor Jekyll Configuration
2013-04-13 07:19:03 -07:00
Jhaura Wachsman
48bb29c1f7 Moved 'excerpt' var below 'title'. 2013-04-12 18:26:29 -07:00
Jhaura Wachsman
73a1ffd77a Add 'excerpt' page variable to Docs Variables page. 2013-04-12 17:42:48 -07:00
Parker Moore
a971fec801 rescue block for the method and added redcarpet as option for parser 2013-04-13 02:13:50 +02:00
Parker Moore
3bc497c1c9 Moved out conversion logic 2013-04-13 01:55:03 +02:00
Parker Moore
63cdd21353 Move initialization of parsers to separate classes 2013-04-13 01:47:40 +02:00
Parker Moore
47653381b1 Merge pull request #954 from maul-esel/liquid-override-path
Allow overriding "path" in YAML frontmatter
2013-04-12 15:16:11 -07:00
maul.esel
c20fc03604 add cucumber tests for overriding path 2013-04-13 00:06:09 +02:00
maul.esel
968f3b0911 allow overriding page.path in YAML frontmatter 2013-04-13 00:05:49 +02:00
Parker Moore
6881d3bfbf Refactored Configuration#config_files 2013-04-12 23:59:37 +02:00
Parker Moore
b44cf939e6 Add note in docs about page.path. #951. 2013-04-12 23:43:25 +02:00
Parker Moore
dc39f02132 Add new pagination variables to the Variables page in the docs site. #942 2013-04-12 23:39:20 +02:00
Parker Moore
65f0d66e39 Update history to reflect merge of #951 2013-04-12 23:34:34 +02:00
Parker Moore
92db4ed89f Merge pull request #951 from maul-esel/liquid-file-path
Expose file path to Liquid
2013-04-12 14:33:19 -07:00
Parker Moore
bd8d271ce3 Moving the backwards-compatibilizing to Configuration#read_config_files. @mattr- 2013-04-12 23:11:38 +02:00
Parker Moore
0f600a322c Added a unit test for Configuration#backwards_compatibilize 2013-04-12 22:42:54 +02:00
Parker Moore
7c7bacffe7 Refactor setup block for test of Configuration#config_files 2013-04-12 22:37:01 +02:00
Parker Moore
25a882fa75 Merge pull request #952 from mojombo/refactor-commands
Remove code duplication in Build command
2013-04-12 13:36:19 -07:00
Parker Moore
879b08a0b0 In Configuration#config_files, cascade to the Configuration's value of 'source' before the default 2013-04-12 22:29:52 +02:00
Parker Moore
0812c1b4c9 Add unit tests for Configuration#config_files 2013-04-12 22:29:27 +02:00
Parker Moore
0c0b13e69b Unit test for Configuration#stringify_keys 2013-04-12 21:56:45 +02:00
Parker Moore
f2f20d18f0 TomDoc Jekyll::Configuration 2013-04-12 21:38:30 +02:00
Parker Moore
810a29c719 Rescue the entire method instead of just a begin block 2013-04-12 22:25:58 +03:00
Parker Moore
e2967c96cd Jekyll.configuration should use the new Jekyll::Configuration class 2013-04-12 21:20:30 +02:00
Parker Moore
64f224933b Add Jekyll::Configuration 2013-04-12 21:20:14 +02:00
Parker Moore
04fd68a232 Move Jekyll::DEFAULTS to Jekyll::Configuration::DEFAULTS 2013-04-12 21:19:20 +02:00
Parker Moore
0884a52fea Add TomDoc for Jekyll::Command.process_site 2013-04-12 20:01:25 +02:00
Parker Moore
5f54507204 Remove code duplication 2013-04-12 19:35:46 +02:00
maul.esel
5a92a73010 add cucumber tests for page.path variable 2013-04-12 18:18:17 +02:00
maul.esel
dc4d7c0bf4 fix path for posts: must include "_posts" 2013-04-12 18:17:57 +02:00
maul.esel
d64fd1e8fe expose file path relative to source dir to liquid
Fixes #633.
2013-04-12 17:37:16 +02:00
Parker Moore
5c680db758 Update history to reflect merge of #946. 2013-04-12 15:42:09 +02:00
Parker Moore
bee8cd9d77 Merge pull request #946 from maul-esel/preserve_excerpt
Preserve 'excerpt` in YAML Front-Matter
2013-04-12 06:24:51 -07:00
Parker Moore
64aa31b3d3 Update history to reflect merge of #945 2013-04-12 15:20:55 +02:00
Parker Moore
17c1e23203 Merge pull request #945 from voidfiles/master
Accept multiple config files from command line
2013-04-12 06:19:55 -07:00
maul.esel
2b238786a2 one more indentation fix 2013-04-12 12:05:07 +02:00
maul.esel
bcda51f97b do not allow markdown etc. in excerpt
Adjust the tests accordingly. Also
add a message for one of the tests.
2013-04-11 21:02:08 +02:00
maul.esel
b10e06ce47 new test: ensure the correct excerpt is exposed to liquid
Also shorten test code a little bit.
2013-04-11 19:33:32 +02:00
Alex Kessinger
14a669530e Fixing tests, and making it more ruby friendly 2013-04-11 10:17:59 -07:00
maul.esel
951ee09a75 remove useless attr_reader for excerpt (is a method now) 2013-04-11 19:05:28 +02:00
maul.esel
654d598fcf rework excerpt to be an accessor method
Instead of setting self.excerpt, make it a method
that returns either the custom excerpt or the pre-
viously extracted excerpt.
2013-04-11 17:13:15 +02:00
maul.esel
2792e1e427 fix indentation of test 2013-04-11 16:51:48 +02:00
maul.esel
0113fea7a1 Add tests for using custom excerpt 2013-04-11 14:26:20 +02:00
maul.esel
069e70d1b3 do not override custom excerpt set in YAML frontmatter
Fixes #933.
2013-04-11 14:25:47 +02:00
Alex Kessinger
1e209c9bf3 Upgrade --config to accept an array of files 2013-04-10 11:38:49 -07:00
Alex Kessinger
df1efeff25 Accept multiple config files from command line
Parse config as if it can contain multiple references to config files.
This allows you to pass in multiple config files from the command line

Helps with issues #514 and #703
2013-04-10 10:19:48 -07:00
Parker Moore
8446d6e8ad Update history to reflect merge of #413. 2013-04-10 01:58:06 +02:00
Parker Moore
abb8e5039e Merge pull request #413 from sethladd/master
add page variable to liquid custom tags and blocks
2013-04-09 16:54:20 -07:00
Lucas Jenss
cfcbe1f830 Refactor URL processing/generation into separate module
This is done to prepare for improved permalink generation
for URLs containing special characters, as proposed in
issue #782
2013-04-09 23:53:46 +02:00
Parker Moore
1319b823f8 Release 1.0.0.beta4 2013-04-09 21:31:23 +02:00
Parker Moore
a715a8970b Update history to reflect merge of #942 2013-04-09 21:25:16 +02:00
Parker Moore
b7646cc9ca Merge pull request #942 from mojombo/pagination-paths
Add paginator.previous_page_path and paginator.next_page_path
2013-04-09 12:24:30 -07:00
Parker Moore
88f92729bc Use paginate_path and don't help too much 2013-04-09 21:00:27 +02:00
Parker Moore
c9a8a1b29f A bunch of pagination attributes will be nil if the subsequent/previous pages don't exist 2013-04-09 20:29:48 +02:00
Parker Moore
9c296f04a9 Join the path with baseurl in Pager.paginate_url 2013-04-09 20:26:08 +02:00
Parker Moore
b9e7a31ab8 Return nil if num_page is nil 2013-04-09 20:25:43 +02:00
Parker Moore
e5bf5aa09e Documentation for Pager.paginate_url 2013-04-09 20:25:33 +02:00
Parker Moore
102e29899f Add some docs regarding what the paginator exposes in liquid 2013-04-09 20:11:12 +02:00
Parker Moore
c0f50f2c78 Update docs to use paginator.{next,previous}_page_path 2013-04-09 19:51:26 +02:00
Parker Moore
b10939912f Add paginator.previous_page_path and paginator.next_page_path 2013-04-09 19:48:41 +02:00
Parker Moore
fd82635868 Merge pull request #941 from dracula2000/refactor-features
Remove superfluous references to File#close
2013-04-09 03:17:29 -07:00
Brian Kim
c9b03991f8 Remove superfluous references to File#close 2013-04-08 17:08:17 -04:00
Parker Moore
1b8c955446 Merge pull request #939 from jroes/patch-1
Link to LICENSE
2013-04-08 06:57:02 -07:00
Jonathan Roes
6dcf3ad265 Link to LICENSE 2013-04-08 09:47:30 -04:00
Parker Moore
59040b84db Update history to reflect merge of #938 2013-04-08 15:41:34 +02:00
Parker Moore
5f8895dc5f Merge pull request #938 from maul-esel/restrict-cucumber
exclude cucumber 1.2.4
2013-04-08 06:39:50 -07:00
maul.esel
439278fc2c exclude cucumber 1.2.4 2013-04-08 13:25:47 +02:00
Tom Preston-Werner
fbbcf78a99 Update GH Pages docs for github.io change. 2013-04-07 15:33:21 -07:00
Parker Moore
7d71650b4c Update history to reflect merge of #935 2013-04-08 00:20:59 +02:00
Parker Moore
b667a6a1a8 Merge pull request #935 from mojombo/baseurl-normalization
Fix cascade problem with site.baseurl.
2013-04-07 15:19:23 -07:00
Parker Moore
dbb3dd3a1a Move port and host configuration options to Jekyll::DEFAULTS so Commander doesn't override in serving awkwardly. 2013-04-07 23:55:04 +02:00
Parker Moore
90366941a2 Update history to reflect merge of #928 2013-04-07 22:53:56 +02:00
Parker Moore
8bf55ef8fa Merge pull request #928 from danieldriver/ordinal_date
add ordinal date permalink style (/YYYY/DDD/slug.html)
2013-04-07 13:52:30 -07:00
Parker Moore
1526aa3b1d Fix cascade problem with site.baseurl. Fixes #931. 2013-04-07 22:47:55 +02:00
Parker Moore
5fe31bcbca Update history to reflect merge of #934. 2013-04-07 22:39:53 +02:00
Parker Moore
659ad36329 Merge pull request #934 from mojombo/auto-to-watch
Backwards-compatibility for 'auto'
2013-04-07 13:38:42 -07:00
Parker Moore
ae462afb76 Backwards-compatibility for 'auto'. Fixes #821. 2013-04-07 22:29:30 +02:00
Parker Moore
b5d1b4e344 Update history to reflect merge of #918 2013-04-07 22:22:05 +02:00
Parker Moore
3e968ad14f Merge pull request #918 from mojombo/awesome-docs
Clean up site docs to prepare for 1.0 release.
2013-04-07 13:20:03 -07:00
Parker Moore
b1c0f90d36 Update history to reflect merge of #875 2013-04-07 21:56:28 +02:00
Parker Moore
0f2c9d29ee Merge pull request #875 from mojombo/posts-cant-be-dirs
Directories with valid post names should be filtered out
2013-04-07 12:54:42 -07:00
Parker Moore
ccf9d19aea Update history to reflect merge of #892. 2013-04-07 21:44:49 +02:00
Parker Moore
7b36d26240 Merge pull request #892 from rafaelrosafu/master
Added date_to_rfc822 used on RSS feeds
2013-04-07 12:43:50 -07:00
Tom Preston-Werner
e427e82785 Clarify config option docs for problem in #858. 2013-04-07 11:39:43 -07:00
Tom Preston-Werner
565e815354 Fixes for @parkr comments. 2013-04-06 23:14:03 -07:00
Daniel Driver
ea753130e6 add ordinal date permalink style (/YYYY/DDD/slug.html) 2013-04-06 08:17:02 -04:00
Parker Moore
7376d66af2 Upgrade pygments.rb to 0.4.2. Fixes #927 2013-04-05 19:04:10 +02:00
Parker Moore
464ea6e90c Update history to reflect merge of #890 2013-04-05 18:48:08 +02:00
Parker Moore
483a0b68b6 Merge pull request #890 from zachgersh/abbreviated_month
Added abbreviated month + test.
2013-04-05 09:44:50 -07:00
Parker Moore
8e18df5b09 Merge pull request #921 from tombell/patch-1
Remove pygments as a dependency
2013-04-05 09:40:39 -07:00
Coby Chapple
972b67cad7 more robust header responsivityishness 2013-04-05 11:20:41 +01:00
Coby Chapple
077deb2435 go back to thirds, for the header on tablets and above 2013-04-05 11:20:02 +01:00
Coby Chapple
aa6bc7dae9 change header grid so the nav doesn’t look so squished 2013-04-04 20:50:00 +01:00
Coby Chapple
7fa4633c00 monospace type tweaks 2013-04-04 18:15:33 +01:00
Coby Chapple
65eadd4172 💄 prettier diff 2013-04-04 18:11:57 +01:00
Coby Chapple
91e66310c3 add code highlighting stuff back in 2013-04-04 18:09:18 +01:00
Coby Chapple
a765b75b5e some polish for the docs nav/content responsiveness 2013-04-04 18:05:03 +01:00
Coby Chapple
f583e4fbb5 some simple js to switch location using the dropdown on mobiles 2013-04-04 17:30:41 +01:00
Coby Chapple
780472ff55 not sure wtf happened here 2013-04-04 17:01:10 +01:00
Coby Chapple
258df5146c add a dropdown for navigating docs on mobiles 2013-04-04 16:51:43 +01:00
Coby Chapple
6270ae0d33 derp we need one of these 2013-04-04 16:51:26 +01:00
Coby Chapple
662bc3b5ac start working docs styles back in 2013-04-04 16:51:18 +01:00
Coby Chapple
68e82a1cac twerk the github pages section a bit so it mostly works 2013-04-04 16:28:25 +01:00
Coby Chapple
f98482d0fa retinafy octojekyll 2013-04-04 16:28:08 +01:00
Parker Moore
6782ac9ef5 Release 1.0.0.beta3 2013-04-04 16:15:02 +02:00
Parker Moore
28097a9ebb Updated version to 1.0.0.beta3. 2013-04-04 16:14:54 +02:00
Coby Chapple
8354ef1960 Merge remote-tracking branch 'mojombo/master' into responsify 2013-04-04 15:11:23 +01:00
Coby Chapple
95672bac99 some polish for the quick-start instructions section 2013-04-04 15:10:55 +01:00
Coby Chapple
fbfe891295 finally style the mobile nav items a bit more consistently 2013-04-04 14:49:30 +01:00
Coby Chapple
0abc3dc975 don’t cut off the edges of the logo 2013-04-04 14:30:02 +01:00
Tom Bell
608088105c Remove pygments as a dependency
Pygments is bundled in pygments.rb it's no longer required
to be installed by the user.
2013-04-04 10:09:11 +02:00
Parker Moore
d3e92183fd Update history to reflect merge of #909. 2013-04-03 23:11:40 +02:00
Parker Moore
cf461ea1a5 Merge pull request #909 from x3ro/symlinked-static-files
Fix symlinked static files not being correctly built in unsafe mode
2013-04-03 14:10:35 -07:00
Matt Rogers
8316e1da4a Add a URL for Drupal 2013-04-03 14:10:24 -05:00
Matt Rogers
3b39a2a00c Highlight “localhost” as code in the migration docs 2013-04-03 14:09:00 -05:00
Matt Rogers
bdcc50d3c7 Fix up a few places where words were missing.
This makes the text sound better when I read it out loud.
2013-04-03 14:06:38 -05:00
Matt Rogers
d6d04573da Remove an unnecesary word. 2013-04-03 13:48:13 -05:00
Tom Preston-Werner
17bb13a686 Clean up site docs to prepare for 1.0 release. 2013-04-03 19:06:05 +02:00
Parker Moore
cf393cb862 Using directory_watcher 1.4.1.
1.5.1 has issues on ubuntu.
#916.
2013-04-03 19:03:25 +02:00
Parker Moore
5f7b9b8504 Merge pull request #916 from AlexanderEkdahl/directory_pre_load
Preloads directory_watcher glob
2013-04-03 09:52:36 -07:00
Parker Moore
e0a1bbe6e5 Update history to reflect inclusion of fix from #916. 2013-04-03 00:59:25 +02:00
Alexander Ekdahl
91197a1928 Fixes for directory_watcher 1.5.x integration. Closes #916. 2013-04-03 00:58:25 +02:00
Parker Moore
050bcbf6d1 Merge pull request #913 from dracula2000/master
Add code climate badge to README
2013-04-02 15:45:41 -07:00
Alexander Ekdahl
8810dc6479 Preloads directory_watcher glob 2013-04-02 17:46:07 +02:00
Brian Kim
d1de9e29d1 Add code climate badge to README 2013-04-01 16:42:53 -04:00
Parker Moore
6c6c576098 Update history to reflect merge of #910. 2013-04-01 20:03:33 +02:00
Parker Moore
791fa3ea7d Merge pull request #910 from x3ro/fix-import-command-parameters
Fix import command parameters
2013-04-01 11:02:20 -07:00
Lucas Jenss
571bdd686c Move tests for symlinked files to separate test cases 2013-04-01 12:02:15 +02:00
Lucas Jenss
88bd349ca9 Fix import command parameters
Apparently, the Commander gem treats options as boolean values
when one does not indicate that a certain options is followed
by a string. This led to the jekyll-import gem only receiving
booleans instead of dbname/user/pwd...
2013-03-31 22:49:07 +02:00
Lucas Jenss
2c7325223f Fix symlinked assets not being included, even in unsafe mode 2013-03-31 20:49:43 +02:00
Lucas Jenss
0bebe0f31c Add test for processing of symlinked static files and pages 2013-03-31 20:20:15 +02:00
Johan Sellström
8d1b6720c3 Added pkpass to the list 2013-03-31 18:22:41 +03:00
Rafael Rosa Fu
7879d2e02c Fixed expected output from xmlschema and rfc822 2013-03-29 01:07:47 -04:00
zachgersh
e931414b77 Changed to short_month and re-ran tests. 2013-03-27 08:40:58 -07:00
Rafael Rosa Fu
186b68adb0 Added filter date_to_rfc822
According to the W3C RSS Feed Validator, feeds must format dates as described
on RFC-822 to be valid. Refer to their site to get more info:
http://feedvalidator.org/docs/error/InvalidRFC2822Date.html

I also added a couple of missing unit tests to the other date filters
2013-03-27 02:21:48 -04:00
zachgersh
6657f2add9 Added abbreviated month + test. 2013-03-26 23:06:34 -07:00
Parker Moore
58f64e8269 Merge pull request #885 from mattr-/remove-unused-code
Remove unused code
2013-03-26 04:11:30 -07:00
Matt Rogers
fa39a97bc6 Remove unused code 2013-03-25 21:22:42 -05:00
Parker Moore
0520ecb3c4 Update history to reflect merge of #883 2013-03-25 19:01:57 +01:00
Parker Moore
51e130bb79 Force usage of older directory_watcher gem as 1.5 is broken. #883 2013-03-25 19:01:28 +01:00
Aleksey V. Zapparov
196e26b580 Flatten tags and categories lists. Fixes #741. 2013-03-19 23:16:53 +01:00
Parker Moore
0353733455 @mojombo and I are sick of Travis emails. 2013-03-19 22:38:58 +01:00
Parker Moore
a72cdc9293 Auto-regeneration fails loudly. Fixes #470. 2013-03-19 22:31:37 +01:00
Parker Moore
d6e0e5e297 Syncing STDOUT. Fixes #625. 2013-03-19 22:22:46 +01:00
Parker Moore
8f890cb064 Fix tests that fail due to having a directory that looks like a post 2013-03-19 21:59:43 +01:00
Parker Moore
6f6ad001d2 Ignore entries if they are directories. 2013-03-19 21:59:06 +01:00
Parker Moore
787d68f512 Release 1.0.0.beta2 2013-03-19 00:11:33 +01:00
Parker Moore
de8f0c986c Update version for 1.0.0.beta2. 2013-03-19 00:08:56 +01:00
Parker Moore
51ec073e34 Add 0.12.1 release notes to History.txt in master. #866 2013-03-18 18:32:50 +01:00
Parker Moore
c1f309d2d7 Update history to reflect merge of #872. Closes #842. 2013-03-18 00:00:48 +01:00
Parker Moore
b83d0a3fa5 Merge pull request #872 from mojombo/downcase-post-cats
Ensure all Post categories are downcase
2013-03-17 15:59:25 -07:00
Parker Moore
73ca35ee81 Ensure all categories are downcase. Fix for #842. 2013-03-17 23:43:37 +01:00
Parker Moore
9d814a4eb7 Add method String#force_encoding to 1.8.7 2013-03-17 23:35:46 +01:00
Parker Moore
e3192792cd Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Added note to highlight common pitfall/misconception regarding Pagination's capabilities.
2013-03-17 22:31:50 +01:00
Parker Moore
036fce8799 Update history to reflect merge of #555. Closes #555. 2013-03-17 22:29:50 +01:00
Dave Wasmer
f7f64576e5 Force encoding of the rdiscount TOC to UTF8 to avoid conversion errors 2013-03-17 22:28:52 +01:00
Parker Moore
dd7cf6511e Merge pull request #853 from davecranwell/master
Pagination can't be filtered by tag or category, but this isn't clear and is often found out too late by an implementer
2013-03-17 14:24:57 -07:00
Parker Moore
677a87e437 Update history to reflect #861 2013-03-17 21:34:35 +01:00
Parker Moore
a054ce2788 Merge pull request #861 from danielgrieve/gist-tag
display single files from gist
2013-03-17 13:33:10 -07:00
Parker Moore
309e03b1d3 Update history to reflect merge of #871. 2013-03-17 21:31:30 +01:00
Parker Moore
7ba5a27a74 Merge pull request #871 from mojombo/gh-pages-mime-types
Use GH Pages MIME types.
2013-03-17 13:22:51 -07:00
Parker Moore
4400e89898 Expect a 'baseurl' to be passed in to Site 2013-03-17 21:18:45 +01:00
Parker Moore
0765d07730 Added sanity tests for #869. 2013-03-17 21:15:17 +01:00
Tom Preston-Werner
8c6c33a6c8 Use GH Pages MIME types. 2013-03-17 13:14:35 -07:00
Parker Moore
ee697a6308 Add Jekyll::DEFAULTS['baseurl'] and set the default pygments option to _true_ 2013-03-17 21:09:58 +01:00
Parker Moore
92a2a9ff61 Update gemspec so bundler doesn't complain. 2013-03-17 21:07:27 +01:00
Parker Moore
69edec8559 Update history to reflect merge of #869. 2013-03-17 20:54:52 +01:00
Parker Moore
ebcf3eb385 Merge pull request #869 from mojombo/baseurl-in-liquid
Expose site.baseurl to Liquid templates.
2013-03-17 12:53:27 -07:00
Parker Moore
b3c319743c Update history to reflect merge of #862. 2013-03-17 20:49:58 +01:00
Parker Moore
6c1a08ce87 Merge pull request #862 from mojombo/fix-autogen-dest-prob
Stop DirectoryWatcher from watching the destination directory
2013-03-17 12:48:30 -07:00
Parker Moore
d5ed4fc5d0 Add baseurl to Site attr_accessor list. 2013-03-17 20:42:11 +01:00
Parker Moore
eef13d7d43 Expose site.baseurl to Liquid templates. 2013-03-17 17:26:33 +01:00
Daniel Grieve
b9cbce5e5f fix regex 2013-03-17 15:04:03 +00:00
Parker Moore
88f59c6154 Update history to reflect merge of #837. 2013-03-17 15:54:47 +01:00
Parker Moore
936ed1f849 Merge pull request #837 from ixti/feature-excerpt
Adds excerpt to posts
2013-03-17 07:53:41 -07:00
Parker Moore
43213c2e79 Update history to reflect merge of #764 2013-03-17 15:50:01 +01:00
Parker Moore
e2d0697f30 Merge pull request #764 from mojombo/jekyll-new
`jekyll new`: scaffold site generator
2013-03-17 07:47:56 -07:00
Parker Moore
a15e0c811b Remove git poop. 2013-03-17 15:47:26 +01:00
Parker Moore
9726bd625d Whitespace issue in bin/jekyll 2013-03-17 15:46:46 +01:00
Parker Moore
aa7a234c18 Merge master into jekyll-new 2013-03-17 15:45:37 +01:00
Aleksey V Zapparov
66c5ef2556 Fix typos and remove some obtrusive code 2013-03-17 13:42:46 +01:00
Daniel Grieve
22d1fdab54 tie down the regex match on gist filenames 2013-03-17 11:29:42 +00:00
Parker Moore
9ae7ca008b Update history to reflect merge of #723. 2013-03-16 21:21:13 +01:00
paco
23a01e7766 Patch for multibyte URI problem. Closes #723. 2013-03-16 21:20:11 +01:00
Daniel Grieve
6c5d001986 replace \s with space 2013-03-16 19:20:54 +00:00
Parker Moore
df7b9f4f01 Update history to reflect merge of #864. 2013-03-16 20:11:11 +01:00
Parker Moore
5d34a4c533 Merge pull request #864 from mojombo/prioritize_plugins
Prioritize plugins & DRY subclass instantiation
2013-03-16 12:09:43 -07:00
Parker Moore
bdc3d67799 Update history to reflect merge of #863 2013-03-16 20:09:22 +01:00
Parker Moore
d091cfe3fc Merge pull request #863 from mojombo/accept-custom-config
Accept custom configuration
2013-03-16 12:07:31 -07:00
Parker Moore
39f144ed01 Newline. 2013-03-16 20:06:50 +01:00
Parker Moore
1d05e0be81 Added tests for generators. 2013-03-16 20:06:40 +01:00
Tommy Sullivan
caa6a4ebfd Sort instantiated subclasses in Site. 2013-03-16 15:24:34 +01:00
Matt Rogers
10ee5c8999 Remove the duplication when creating Converters and Generators
Encapsulate it in a method and give the method the class to walk the
subclass tree for to create new objects.
2013-03-16 15:20:11 +01:00
Tommy Sullivan
7425b2c32e Add test to ensure plugins are executed in order of priority. 2013-03-16 15:12:57 +01:00
Parker Moore
7a57451962 Add --config switch to build and serve commands. 2013-03-16 14:54:44 +01:00
Parker Moore
9100967ebd Add unit tests for custom configuration. 2013-03-16 14:46:26 +01:00
Parker Moore
7e1100962c Load in config from --config switch 2013-03-16 14:44:49 +01:00
Parker Moore
8acb1b29bd Using 1.8.7-compliant File.expand_path instead of >1.9 File.realpath 2013-03-16 14:24:34 +01:00
Parker Moore
52efb71aa2 Added directory_with_contents() to DRY up test code and ensure folders exist in TestCommand. 2013-03-16 14:09:53 +01:00
Parker Moore
d93faac3b8 Rudimentary tests for Jekyll::Command 2013-03-16 13:59:59 +01:00
Parker Moore
a0c0d983bf Using a test_dir helper method for tests. 2013-03-16 13:59:40 +01:00
Parker Moore
1d920f52f1 Fix bug where Command.globs didn't delete the destination directory.
There was often a mix between absolute and relative paths and in the
previous version, the destination argument was usually an absolute
path where the glob array (from Dir['*']) was a relative path.
2013-03-16 13:57:28 +01:00
Parker Moore
b49bba9351 Renamed test under wrong name. 2013-03-16 13:15:15 +01:00
Daniel Grieve
92d9c4301b display single files from gist 2013-03-15 22:37:14 +00:00
Coby Chapple
6e831b65d2 basic grid section for gh-pages section 2013-03-15 15:29:45 +00:00
Coby Chapple
bd63042582 start bringing the quickstart instruction section back in too 2013-03-15 15:24:14 +00:00
Coby Chapple
e23f0d126d start working intro into the equation 2013-03-15 13:38:51 +00:00
Coby Chapple
7dcc0ba820 start spiking out a more responsive header/nav 2013-03-15 13:25:35 +00:00
Coby Chapple
02785d09a9 more footer tweaks 2013-03-15 12:47:57 +00:00
Coby Chapple
0249c5b901 how was did this not being retina-ready slip by before? 2013-03-15 12:47:45 +00:00
Coby Chapple
6d19924d35 start ripping this thing apart so it can be responsive 2013-03-15 12:34:13 +00:00
Parker Moore
bc673722d6 Release 1.0.0.beta1 2013-03-14 21:26:42 +01:00
Parker Moore
5c35a84662 Updated version and gemspec to reflect 1.0.0.beta1 release 2013-03-14 21:26:06 +01:00
Parker Moore
7ba7328d47 Release 1.0.0.pre 2013-03-14 21:23:53 +01:00
Parker Moore
dbc356f9f4 Bump version to 1.0.0.pre. 2013-03-14 21:23:34 +01:00
Parker Moore
5bde4a3131 Merge pull request #856 from danielgrieve/jekyll-new
Jekyll 'new' command fixes
2013-03-13 16:05:15 -07:00
Daniel Grieve
5bcc2fd8f9 update safe_yaml 2013-03-13 21:57:08 +00:00
Daniel Grieve
4be5dfdb9a fix copying of site template files 2013-03-13 21:27:41 +00:00
Daniel Grieve
1ab83ff9e9 fix test to highlight issue with FileUtils.cp_r 2013-03-13 19:55:15 +00:00
Parker Moore
98b37a54b1 Merge pull request #855 from danielgrieve/remove-ruby-version
ignore .ruby-version
2013-03-13 12:24:45 -07:00
Daniel Grieve
099fcc27d6 raise ArgumentError if no args. rename sample post 2013-03-13 19:21:11 +00:00
Daniel Grieve
e8b8234898 ignore .ruby-version 2013-03-13 18:47:07 +00:00
Daniel Grieve
b306835ce0 Add tests for 'new' command. 2013-03-12 19:38:05 +01:00
Parker Moore
74def64bef Merge pull request #851 from jroes/jekyll-new
Make `jekyll new` work when installed via `gem install`
2013-03-12 11:34:08 -07:00
Parker Moore
df9964c3b5 Merge pull request #838 from mattr-/dedupe-entry-generation
Remove code duplication during site generation
2013-03-12 11:27:56 -07:00
Parker Moore
2053a8fa8c Update history to reflect merge of #847 2013-03-12 19:07:51 +01:00
Parker Moore
2473bdbd7c Merge pull request #847 from mojombo/mime_file
Load in Apache MIME Types
2013-03-12 11:06:26 -07:00
Dave Cranwell
a6f3c4f1cd Added note to highlight common pitfall/misconception regarding Pagination's capabilities. 2013-03-12 15:21:56 +00:00
Jonathan Roes
7a86d901f1 Refactor Commands::New a bit and remove scaffold post once copied. 2013-03-12 00:48:22 -04:00
Jonathan Roes
b71ec624f8 Add commands/new and scaffold post to gemspec so they get copied over. 2013-03-12 00:47:42 -04:00
Parker Moore
4e794a73e0 Merge pull request #829 from stomar/patch-1
Update Readme to link to the Plugins wiki page
2013-03-11 14:17:37 -07:00
Parker Moore
8886727bd8 Requiring safe_yaml ~> 0.7.0 because 0.8.x has weird bugs. 2013-03-11 22:17:19 +01:00
Marcus Stollsteimer
605332cc05 Fix link in Readme 2013-03-11 20:34:34 +01:00
Parker Moore
005f58c900 Update history to reflect merge of #536 2013-03-10 02:09:15 +01:00
Parker Moore
725b127f9b Merge pull request #536 from fotos/fix_page_dir
Added path in url.
2013-03-09 17:07:16 -08:00
Fotos Georgiadis
f79662719b Fix indentation. 2013-03-09 15:07:27 +02:00
Parker Moore
524aa1f36a Jekyll::Commands::Serve reads in mime.types file. 2013-03-08 20:12:52 +01:00
Parker Moore
5e6c2f6e4b Added mime.types file from Apache SVN repo. 2013-03-08 20:12:21 +01:00
Matt Rogers
6399ec9b2b Remove duplication when aggregating post information 2013-03-05 19:11:07 -06:00
Matt Rogers
2dd98816d4 Remove duplication when generating list of entries to process
Posts and Drafts share the same logic to get the list of files to
process into objects when generating the site. Factor this logic into
its own method and use it when reading posts and reading drafts.
2013-03-05 19:06:20 -06:00
Aleksey V Zapparov
22dcc4e20f Adds excerpt to posts 2013-03-04 17:13:25 +01:00
Parker Moore
5dea057db7 Merge pull request #835 from larrylv/fix-typo
Fix typo.
2013-03-04 02:47:07 -08:00
larrylv
035bbdf99f Fix typo. 2013-03-04 14:59:34 +08:00
Tom Preston-Werner
3a9ca0a796 Merge branch 'drafts-fixup'
Add a drafts feature. This allows you to place draft posts into an _drafts
folder in the site root while you're working on them, and then request that
they be rendered as normal posts via a command line switch.

Draft files should be named just like normal posts, except they must not
contain the date prefix. When you're ready to make a post live, rename it
with the date and move it to the proper place.

To preview your drafts, run Jekyll with the `--drafts` switch. This will
render all the posts with a date corresponding to the last time the file
was modified.
2013-03-03 18:57:36 -08:00
Tom Preston-Werner
da273b685a Update history for drafts feature. 2013-03-03 18:55:50 -08:00
Tom Preston-Werner
b46000f6af Kill unnecessary return keyword. 2013-03-03 18:43:54 -08:00
Parker Moore
0d3ea5b710 Forgot to escape newlines. 2013-03-04 03:41:18 +01:00
Parker Moore
ee057a99a7 Update history to reflect merge of #832. 2013-03-04 03:24:26 +01:00
Parker Moore
968ca6967c Merge pull request #832 from mojombo/features-html
Add rake features:html
2013-03-03 18:23:12 -08:00
Tom Preston-Werner
2b9b613687 Normalize CLI options to match configuration expectations. 2013-03-03 18:23:02 -08:00
Parker Moore
5af8e1f40c Applying a more 'Ruby' style to post_url.rb 2013-03-04 03:20:59 +01:00
Parker Moore
800bd290ec Update history to reflect merge of #831 2013-03-04 03:19:57 +01:00
Parker Moore
e98053ea8a Merge pull request #831 from dhilgarth/feature/fix_post_url
Fix broken post_url with posts with a time in their YAML front matter.
2013-03-03 18:17:24 -08:00
Parker Moore
6cef28ed58 Add features:html task to Rakefile, use cucumber profiles 2013-03-04 03:13:06 +01:00
Parker Moore
a4e37c9d0a Change default format to pretty and create travis profile 2013-03-04 03:12:31 +01:00
Tom Preston-Werner
ef9388684b Turn off debug mode on feature to suppress output. 2013-03-03 18:04:31 -08:00
Tom Preston-Werner
4caf613be8 Merge branch 'drafts' of https://github.com/scribu/jekyll into scribu-drafts 2013-03-03 12:57:55 -08:00
Tom Preston-Werner
197f52b0e6 Fix jekyll-import LoadError message. 2013-03-03 12:51:25 -08:00
Daniel Hilgarth
87f6f8c971 Fix invalid ordering of posts published on the same day and move post_url specific comparison of posts where it belongs: Into post_url 2013-03-03 15:36:16 +01:00
Daniel Hilgarth
ce8e1afba6 Add support for Ruby < 1.9 2013-03-03 15:12:21 +01:00
Daniel Hilgarth
cc83501489 Fix broken post_url with posts with a time in their YAML front matter. 2013-03-03 14:56:18 +01:00
scribu
1a351284ca rename get_base() to containing_dir() 2013-03-03 12:56:12 +02:00
Parker Moore
17c875f6f5 Fixed plugin test error. 2013-03-02 18:51:42 +01:00
Marcus Stollsteimer
053373de27 Update Readme to link to the Plugins wiki page 2013-03-02 13:00:37 +01:00
Parker Moore
7258b10f88 We don't need YAML in the new command. 2013-02-28 22:19:38 +01:00
Parker Moore
149b95d767 Typos in sample post. 2013-02-28 22:17:24 +01:00
Parker Moore
5c788582a8 Update history to reflect merge of #826. 2013-02-28 21:57:01 +01:00
Parker Moore
e827797440 Merge pull request #826 from chapmajs/patch-1
Explicitly require HTTPS rubygems source
2013-02-28 12:55:56 -08:00
Fotos Georgiadis
441eddf1ca Fix pretty url style paths.
Ignore the basename if the page is an index page, preserve it if it's just an
html page and use the full path in every other case.
2013-02-28 03:49:39 +02:00
chapmajs
3a34957b41 Explicitly require HTTPS rubygems source
Use HTTPS rubygems.org source to help prevent MITM attacks
2013-02-27 20:28:09 -05:00
Parker Moore
c648bc1157 Update history to reflect merge of #785. 2013-02-27 01:59:36 +01:00
Parker Moore
bd9a112ff1 Merge pull request #785 from lenniboy/master
Improve debugability of error message for a malformed highlight tag
2013-02-26 16:58:36 -08:00
Parker Moore
3fbb615d19 Update history to reflect merge of #824. 2013-02-27 01:56:06 +01:00
Parker Moore
63d0eef646 Merge pull request #824 from sinamt/symlinked_folders
Allow symlinked folders in unsafe mode (with tests). Closes #796, resolves #233.
2013-02-26 16:54:52 -08:00
Paul Leitmanis
849c34e913 Add tests for filtering symlink entries when safe mode enabled 2013-02-27 10:39:46 +11:00
Parker Moore
3253e4132e Update history to reflect merge of #654 2013-02-26 21:35:48 +01:00
Parker Moore
465e25021b Merge pull request #654 from mattr-/issue-653
Look for plugins under the source directory. Fixes #653.
2013-02-26 12:34:11 -08:00
Matt Rogers
d58859570d Fix up the whitespace.
Remove an extra blank line and fix another whitespace error pointed out
by git diff
2013-02-25 13:24:37 -06:00
Matt Rogers
5a9c20983d Rename setup_plugins to plugins_path 2013-02-25 13:20:32 -06:00
Matt Rogers
ffc42310b4 Add back a test that was mistakenly removed. 2013-02-25 13:19:45 -06:00
Matt Rogers
d2c79a8841 Merge branch 'master' into issue-653 2013-02-25 13:08:23 -06:00
Parker Moore
83675ee095 Updated history to reflect merge of #822. 2013-02-24 02:01:10 +01:00
Parker Moore
e0870fa178 Merge pull request #822 from mojombo/gist-tag
Add 'gist' liquid tag to master
2013-02-23 16:59:53 -08:00
Parker Moore
f8a90d711f Using https protocol instead of http. 2013-02-24 01:54:13 +01:00
Parker Moore
cdd3c0ef0c Remove 'type' attribute from script tag in gist liquid tag. 2013-02-24 01:30:41 +01:00
Parker Moore
7e7cee6e56 Strip space from the gist number, add test for gist tag 2013-02-24 00:58:13 +01:00
sterebooster
425f466842 'gist' liquid tag by @stereobooster. Fixes #463. 2013-02-24 00:38:19 +01:00
Parker Moore
cc0f84197a Updated history to reflect merge of #820. 2013-02-22 14:20:05 +01:00
Parker Moore
f2299a2bf5 Merge pull request #820 from mojombo/fix-autoregen-loop
Fix issue with watching (auto-regeneration) continuously running
2013-02-22 05:19:11 -08:00
Parker Moore
7457cbae25 Fix issue with watching (auto-regeneration) continuously running if destination is not '_site'. #457. 2013-02-22 00:59:44 +01:00
Parker Moore
a22527c7ff Update history to reflect merge of #795. Fixes #790. 2013-02-20 23:16:56 +01:00
Parker Moore
02da17b769 Merge pull request #795 from mojombo/new-log-format
New log format
2013-02-20 14:15:36 -08:00
Parker Moore
db5d27639e Fixed merge conflicts: rebasing on master. 2013-02-20 23:14:58 +01:00
Parker Moore
a19bb1815a Fixed merge conflicts in test/test_configuration.rb 2013-02-20 23:13:06 +01:00
Parker Moore
5d8e012899 Fixed merge with new log output in lib/jekyll.rb 2013-02-20 23:10:42 +01:00
Parker Moore
9eb79ff135 Improved output for auto-regeneration. 2013-02-20 23:09:54 +01:00
Parker Moore
bf79b0ac37 Fixed merge with new log output in lib/jekyll.rb 2013-02-20 23:09:34 +01:00
Parker Moore
388e0c8077 Fixed typo in History file 2013-02-20 22:15:23 +01:00
Parker Moore
090bbbe4f6 Update history to reflect merge of #788. 2013-02-20 22:15:03 +01:00
Parker Moore
c042a77496 Merge pull request #788 from mojombo/add-opts
Add 2 opts back into bin/jekyll
2013-02-20 13:13:42 -08:00
Parker Moore
d0d947995a Update history to reflect merge of #815. 2013-02-20 22:01:12 +01:00
Parker Moore
3b156d21af Merge pull request #815 from bhardin/fixing_help
Changing help message to reflect what actually happens
2013-02-20 12:17:19 -08:00
Brett Hardin
03e2e8d063 Changing help message to reflect what actually happens when running build and serve 2013-02-20 09:37:19 -08:00
Parker Moore
151ec1a487 Update history to reflect merge of #807. 2013-02-19 12:02:10 +01:00
Parker Moore
d361a70391 Merge pull request #807 from mojombo/safeyaml-warnings
Fix SafeYAML Warnings
2013-02-19 03:01:27 -08:00
Parker Moore
ac8c7a0944 Relax Kramdown version to 0.14. Fixes #808. 2013-02-19 02:38:18 +01:00
Parker Moore
35c3ef05bf Update history to reflect merge of #801. 2013-02-10 21:38:02 +01:00
Parker Moore
ac502d175a Merge pull request #801 from kevinSuttle/master
Bump .ruby-version to 1.9.3-p374
2013-02-10 12:36:38 -08:00
Parker Moore
c7c0a9432c Updating tests for safe_yaml. 2013-02-10 19:09:36 +01:00
Parker Moore
11eb1ecae1 Safe loading of files and YAML. 2013-02-10 19:07:38 +01:00
Parker Moore
0c6d56365a Upgrading to safe_yaml v0.7 2013-02-10 19:07:05 +01:00
Parker Moore
382b1b5a11 Updated History to reflect merge of #806 2013-02-10 17:06:46 +01:00
Parker Moore
78c37180f2 Merge pull request #806 from scribu/patch-1
Explicitly mention defacto styleguide
2013-02-10 08:05:32 -08:00
Cristi Burcă
311bcbb7ed mention styleguide to new contributors 2013-02-10 17:19:22 +02:00
scribu
538c2086a5 whitespace fixes 2013-02-10 04:49:27 +02:00
scribu
3e164d6daf don't check if draft is published or if its date is in the future 2013-02-09 23:48:38 +02:00
scribu
2588d681c9 fix draft filename processing 2013-02-09 23:38:13 +02:00
scribu
78831d94cd don't mess with dir parameter 2013-02-09 23:19:35 +02:00
scribu
642349f797 implement and use Draft.valid? 2013-02-09 22:41:47 +02:00
scribu
1ac46b17c4 Don't require date in draft filenames. 2013-02-09 21:35:41 +02:00
Parker Moore
372628c22a Merge pull request #799 from apodlaski/remove-migrators-from-gemspec
Remove migrator files from jekyll.gemspec
2013-02-07 14:36:05 -08:00
Kevin Suttle
b4c5d707a5 Bump .ruby-version to 1.9.3-p374 2013-02-07 15:19:33 -05:00
Aleksander Podlaski
fae771d1a0 Remove migrator files from jekyll.gemspec
Some files no longer exists but was not removed from jekyll.gemspec:
- lib/jekyll/commands/migrate.rb 
- lib/jekyll/migrators/*.rb
2013-02-07 07:21:55 +01:00
Parker Moore
8e48848b7a Removed migrate tasks from Rakefile. 2013-02-07 00:42:37 +01:00
Alexander Ekdahl
4cd7c22ee7 Now uses the more semantically correct AND operator 2013-02-04 22:17:03 +01:00
Alexander Ekdahl
7512e6bb66 Allow symlinked folders in unsafe mode 2013-02-04 17:16:01 +01:00
Parker Moore
a3d95957dd Updating tests for new config output. 2013-02-03 21:31:05 +01:00
Parker Moore
f6d38def5a Reworking errors with configuration file. 2013-02-03 21:30:52 +01:00
Parker Moore
90fa3f2921 Improved output for auto-regeneration. 2013-02-03 20:36:34 +01:00
Parker Moore
dd7c5870d9 Cleaner output when generating site. 2013-02-03 20:29:58 +01:00
Parker Moore
e4042e56b7 Update history to reflect merge of #792. Closes #789. 2013-02-03 18:56:42 +01:00
Parker Moore
f002ee4f9f Merge pull request #792 from mojombo/alias-serve-to-server
Aliased jekyll server to jekyll serve
2013-02-03 09:55:14 -08:00
Parker Moore
7a44965c88 Updated history to reflect merge of #793. Closes #787. 2013-02-03 01:54:52 +01:00
Parker Moore
9ea1becf13 Merge pull request #793 from mojombo/remove-migrators
Remove migrators - move to jekyll-import gem.
2013-02-02 16:34:07 -08:00
Parker Moore
f5137850e4 Using abort instead of puts & exit when jekyll-import gem isn't available. 2013-02-03 01:24:38 +01:00
scribu
daa9e11994 fix whitespace in drafts.feature 2013-01-31 05:35:19 +02:00
Parker Moore
9bb0bfc0b2 Eliminating migrator tests (in this repo). 2013-01-31 01:19:56 +01:00
Parker Moore
e8384e6a97 Eliminating migrator dependencies. 2013-01-31 01:19:34 +01:00
Parker Moore
82f29bb627 The jekyll-import gem provides Jekyll::Commands::Import, not Jekyll::Commands::Migrate. 2013-01-31 00:18:54 +01:00
Parker Moore
28a074ff7a Remove Jekyll::Commands::Migrate 2013-01-31 00:18:22 +01:00
Parker Moore
b70c59667c Requiring jekyll-import gem. Printing error and exiting if it does not exist. 2013-01-30 23:43:26 +01:00
Parker Moore
221c2f4c0e Aliased jekyll server to jekyll serve 2013-01-30 23:30:04 +01:00
Parker Moore
2e73671cf4 Updated Kramdown tests to reflect numeral HTML entities. 2013-01-30 23:25:49 +01:00
Parker Moore
1cfd0c8b15 Updated history to reflect merging of #744. 2013-01-30 23:21:23 +01:00
Parker Moore
04b60ffe7f Merge pusewicz/bump-gems from #744 2013-01-30 23:20:23 +01:00
Parker Moore
62bba37c1f Update history to reflect merge of #768 2013-01-30 22:19:24 +01:00
Parker Moore
6e8202f9a6 Added in --limit-posts 2013-01-30 22:04:56 +01:00
Parker Moore
7023a5e622 Added the --future switch back to the CLI 2013-01-30 21:56:54 +01:00
Parker Moore
cff4ec72ea Using .erb file for the new post 2013-01-30 21:05:52 +01:00
Leonard Ehrenfried
a7f0d04bda Improve error message for malformed highlight tags 2013-01-29 12:16:33 +01:00
Parker Moore
704307d7fe Added very basic code snippet example to sample post 2013-01-27 23:30:32 +01:00
Parker Moore
bf78fe9b75 Move post scaffold content to a separate method. 2013-01-27 23:23:53 +01:00
Parker Moore
a68b67c65e Added newline to New command for stylistic congruence. 2013-01-27 23:21:31 +01:00
Parker Moore
ac691a1465 removed related posts segment of scaffold site. 2013-01-27 23:21:02 +01:00
Parker Moore
a8671ed52b Using modularized commands (Jekyll::Commands) as per @tombell's latest PR merge 2013-01-27 23:17:45 +01:00
Parker Moore
f3856a444a Added command to primary binary. 2013-01-27 23:16:34 +01:00
Parker Moore
2bc04e4a60 Added the site_template files to the gemspec manifest. 2013-01-27 23:16:34 +01:00
Parker Moore
272dd5ef35 Added the NewCommand class 2013-01-27 23:16:34 +01:00
Parker Moore
ce7e307cba Scaffold site, based on @mojombo's site (with permission). 2013-01-27 23:16:34 +01:00
Parker Moore
b4bea4a586 Merge branch 'code-cleanup' of git://github.com/tombell/jekyll into code-cleanup
Module Cleanup

* 'code-cleanup' of git://github.com/tombell/jekyll:
  Remove new lines between module and class
  Update tag classes moving into a module
  Update pagination classes moving into a module
  Update converter classes moving into a module
  Strip extra newlines
  Update command classes moving into a module

Conflicts:
	lib/jekyll/commands/serve.rb
2013-01-27 23:13:16 +01:00
Parker Moore
35165d19f8 Update history to reflect merge of #775. 2013-01-27 23:08:44 +01:00
Parker Moore
b736676904 Merge pull request #775 from metamatt/issue773
Address issue 773 (bugs preventing tumblr.rb from running)
2013-01-27 14:06:41 -08:00
Parker Moore
1d85664340 Update history to reflect merge of #767. 2013-01-26 22:35:13 +01:00
Parker Moore
409eedafd8 Merge pull request #767 from mojombo/string-categories
Force Categories to be Strings
2013-01-26 13:32:26 -08:00
Matt Ginzton
c95c5e3b7d Use Dir.pwd instead of "." as the source argument to Post.new, since
this has historically supplied an absolute path in this call.
2013-01-25 15:57:45 -08:00
Parker Moore
cd2f3b8dce Updated history to reflect merge of #777. 2013-01-25 17:23:40 +01:00
Parker Moore
4041579b70 Merge pull request #777 from mastahyeti/safe_yaml
Safe YAML
2013-01-25 08:22:10 -08:00
Parker Moore
2b8c85cd9d Reflect merge of #407 2013-01-25 06:22:35 +01:00
Jordon Bedwell
4f7881ba40 Add SVG support to Jekyll/Webrick. Fixes #406. 2013-01-25 06:20:07 +01:00
Parker Moore
2c76311ada Updated history to reflect merge of #776. 2013-01-25 06:06:33 +01:00
Parker Moore
130406a101 Merge pull request #776 from tombell/script-bootstrap
Add a bootstrap script
2013-01-24 21:04:46 -08:00
Ben Toews
d758d424b4 deleted junk 2013-01-23 17:19:32 -06:00
Ben Toews
d82179048e adding files 2013-01-23 11:31:59 -06:00
Ben Toews
1528cfe1cd adding safe_yaml to protect against object instantiation from yaml 2013-01-23 11:30:24 -06:00
Ben Toews
c85d834036 lets try this differently 2013-01-23 11:07:44 -06:00
Tom Bell
507f1c3995 Add a bootstrap script 2013-01-22 23:10:51 +00:00
Ben Toews
799c997b45 adding gem 2013-01-22 15:21:10 -06:00
Ben Toews
073bac6047 using sane_yaml to prevent code execution 2013-01-22 15:18:46 -06:00
Matt Ginzton
fbc9d0c663 Fix truncation of overly long post names.
Delete the old truncate_post_name; it was called too late (if url rewriting
is enabled which it is by default), didn't run (it tried to use + to concat
a Fixnum onto a String), and even with those problems fixed, didn't actually
shorten the string enough to use as a pathname.

Instead, apply simple string truncation at the point we generate the slug,
which is used in the filename and is the part that could be unboundedly
long. I arbitrarily chose 200 as the maximum length; even shorter might be
better (really long slugs are just visually ugly); it might also be nicer
to truncate at a hyphen boundary.

This fixes the rest of issue #773 (subissue 4).
2013-01-22 10:25:07 -08:00
Matt Ginzton
863643c7e8 Look for _posts directory relative to cwd, not relative to tumblr.rb.
That's where we put it earlier, so that's where we'll find it now.

This addresses part of issue #773 (subissue 3).
2013-01-22 10:24:33 -08:00
Parker Moore
adce57e9e1 Updated history to reflect merge of #771. 2013-01-21 22:20:00 -05:00
Parker Moore
8d05e1ea5a Merge pull request #771 from mojombo/fix-coverage
Fix SimpleCov Execution
2013-01-21 19:01:52 -08:00
Parker Moore
607b4c84fd Only running simplecov if RUBY_VERSION is 1.9 or greater, and COVERAGE env is set to 'true' 2013-01-20 22:16:23 -05:00
Parker Moore
914f1e834d Added simplecov-gem-adapter dev dependency. 2013-01-20 22:15:44 -05:00
scribu
c48de6b320 add drafts.feature 2013-01-20 05:23:56 +02:00
scribu
2df63e5b9d fix tests 2013-01-20 05:23:56 +02:00
scribu
0ad623fb85 first pass at --drafts flag 2013-01-20 05:23:56 +02:00
Tom Bell
517e6f81d3 Remove new lines between module and class 2013-01-20 00:00:49 +00:00
Tom Bell
2c45150545 Update tag classes moving into a module 2013-01-19 23:50:44 +00:00
Tom Bell
10d980b6e1 Update pagination classes moving into a module 2013-01-19 23:42:40 +00:00
Tom Bell
663a1321d2 Update converter classes moving into a module 2013-01-19 23:07:38 +00:00
Tom Bell
6514fe2d22 Strip extra newlines 2013-01-19 22:38:51 +00:00
Tom Bell
e03f48085a Update command classes moving into a module 2013-01-19 22:36:46 +00:00
Parker Moore
065b251383 Added note in gemspec for easy extraction of dev dependencies to migrator gem. 2013-01-18 10:35:21 -05:00
Parker Moore
f231ef7644 Merge pull request #684 from mattr-/issue-680. 2013-01-18 10:28:14 -05:00
Parker Moore
85c3bf66d0 Reflected merging of #671 in History. 2013-01-17 22:34:59 -05:00
Parker Moore
2615291e6d Printing error message in WP.com migrator. #671. 2013-01-17 22:33:37 -05:00
Parker Moore
3bca5c3297 Merge pull request #671 from fzero/master
Rescue from import errors on Wordpress.com plugin.
2013-01-17 19:30:51 -08:00
Parker Moore
ce798a5956 Added test for all-String categories. 2013-01-17 21:57:21 -05:00
Parker Moore
cd05f6be78 Ensures that categories are Strings before escaping. Fixes #759. 2013-01-17 21:55:01 -05:00
Tom Preston-Werner
ab539622dd Refine CONTRIBUTE with more detail and better formatting. 2013-01-17 12:38:27 -08:00
Tom Preston-Werner
568208ca9b Update history to reflect merge of #765. 2013-01-17 12:25:45 -08:00
Tom Preston-Werner
733587fa05 Merge pull request #765 from mattr-/fix-coverage
Fix coverage
2013-01-17 12:22:58 -08:00
Matt Rogers
5e08cddb98 filter out test files in coverage results 2013-01-16 22:27:23 -06:00
Matt Rogers
79fceedab3 add the coverage directory to .gitignore 2013-01-16 22:22:33 -06:00
Matt Rogers
00d74fa53f Add SimpleCov to the unit tests 2013-01-16 22:20:34 -06:00
Matt Rogers
06a6b8aadb Add simplecov as a dependency
Simplecov works with Ruby 1.9.x for generating test coverage
2013-01-16 22:18:10 -06:00
Matt Rogers
9007f9c851 Remove the coverage rake task
RCov does not work on Ruby 1.9.x
2013-01-16 22:15:45 -06:00
Matt Rogers
f460a6cf71 Merge branch 'master' into issue-653 2013-01-16 21:52:32 -06:00
Parker Moore
8b83feac06 Update history to reflect merge of #664 2013-01-16 21:36:48 -05:00
Parker Moore
8fb36ab064 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  Slight stylistic tweak to LSI initialisation.
  faster_lsi: Massively accelerate LSI performance.
2013-01-16 21:36:07 -05:00
Parker Moore
faf5e44c47 Merge pull request #664 from Jashank/faster_lsi
faster_lsi: Massively accelerate LSI performance.
2013-01-16 18:36:01 -08:00
Parker Moore
cbbf8b496d Update history to reflect merge of 496 2013-01-16 21:35:12 -05:00
Parker Moore
2e76edd837 Merge pull request #496 from dunsmoreb/issue/481
Truncate post slugs when importing from Tumblr.
2013-01-16 18:34:21 -08:00
Parker Moore
5848476960 Merge pull request #751 from mojombo/new-cmds-docs
Documentation for new command structure & opts
2013-01-16 16:43:38 -08:00
Parker Moore
a017f36d4b Added description to History file 2013-01-15 15:03:52 -08:00
Parker Moore
c0a6e1e5a2 Changed 'six' to 'some' on Sites page 2013-01-15 14:56:04 -08:00
Parker Moore
070f5111e1 A link to the sites page on the wiki (in addition to this curated list) 2013-01-15 14:44:06 -08:00
Parker Moore
282a3bce73 Updated history 2013-01-12 22:26:05 -08:00
Parker Moore
6a7a030eee Fixed failing Cucumber test 2013-01-12 22:25:55 -08:00
Parker Moore
963721fb46 Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll:
  add Enumerable#glob_include?
  fixed a syntax error
  use any? instead
  update test for include,exclude glob support
  Update test/test_site.rb
  Update lib/jekyll/site.rb
  add regexp support for option 'include','exclude'
2013-01-12 22:16:28 -08:00
Parker Moore
e383bfe65d Merge pull request #743 from mccxj/master
add glob support to include, exclude option
2013-01-12 22:16:07 -08:00
Parker Moore
fbda85210a Added html_report profile to cucumber 2013-01-12 21:55:59 -08:00
Parker Moore
45f10a22da Update number of Jekyll-powered blogs on Sites page 2013-01-12 15:36:11 -08:00
Parker Moore
078972de4b Remove Octopress site from list of Jekyll-powered Sites 2013-01-12 15:35:21 -08:00
Parker Moore
4bb5158b09 New sub-titles for sub-command options table 2013-01-12 15:34:05 -08:00
Parker Moore
5a3e05dbff Ensuring that layout is only set to the default value if layout is not specified 2013-01-12 15:31:14 -08:00
Parker Moore
11ca1dfa78 Updated history to reflect merging of #580. 2013-01-12 15:15:32 -08:00
7rans
e8c74fe7a8 Layouts default to page or post depending upon type. 2013-01-12 13:49:45 -08:00
Parker Moore
d9bc6b57d5 Updated gemspec to include new command and fixture files in manifest 2013-01-12 13:19:29 -08:00
Parker Moore
e2affb2257 Added passing tests for #616 2013-01-12 00:14:00 -08:00
Parker Moore
a05b9159d9 Merge pull request #616 from hokaccha/fix_pygments_opt
fixed pygments linenos options for pygments.rb
2013-01-12 00:11:18 -08:00
Parker Moore
3d093f0035 Using new command structure in Rakefile 2013-01-11 23:59:21 -08:00
Parker Moore
42fa1046db Using internal links for homepage 2013-01-11 23:51:32 -08:00
Parker Moore
5db1bba6fd auto => watch 2013-01-11 23:51:22 -08:00
Parker Moore
64cbaa1d85 Configuration docs updated with new structure 2013-01-11 23:51:06 -08:00
Parker Moore
39b159c258 Return of the "sites" page - for learning purposes 2013-01-11 23:50:36 -08:00
Parker Moore
9fc89482b3 Using build and serve sub-commands in docs 2013-01-11 23:50:13 -08:00
Parker Moore
14cabab254 Merge pull request #690 from tombell/jekyll-command-redux
The Big Jekyll Command Cleanup
2013-01-11 21:47:59 -08:00
Tom Bell
7f072ed578 Merge branch 'master' 2013-01-12 01:18:41 +00:00
Parker Moore
9414281521 Merge pull request #750 from mojombo/update-travis-config
Updating travis configuration to explicitly run 'rake' behind bundle exec
2013-01-11 16:52:00 -08:00
Parker Moore
8b9baeee0e Revert "Specific patch version of 1.9.3: 362."
This reverts commit e4517c42af.
2013-01-11 16:45:17 -08:00
Parker Moore
e4517c42af Specific patch version of 1.9.3: 362. 2013-01-11 16:26:06 -08:00
Parker Moore
a8d07dd5f5 Updating travis configuration to explicitly run 'rake' behind bundle exec. 2013-01-11 16:21:31 -08:00
Parker Moore
36ba434115 Updated history to reflected merged PRs, #745 and #685. 2013-01-11 16:17:03 -08:00
Parker Moore
4336b6dd4e Added Travis CI badge to README 2013-01-11 15:55:14 -08:00
Parker Moore
d2e750cc74 removed extraneous whitespace in test_site.rb 2013-01-11 15:54:57 -08:00
Parker Moore
418ef419dd Merge pull request #685 from edeustace/keep_files_feature
Keep files feature
2013-01-11 15:47:26 -08:00
edeustace
0fa55418e9 merge lastest from mojombo/jekyll master 2013-01-11 12:23:53 +01:00
Piotr Usewicz
9b8b5b2bda Dont test kramdown
It should have it's own tests for that
2013-01-11 11:02:07 +00:00
Jashank Jeremy
68333cd221 Slight stylistic tweak to LSI initialisation.
Recommended-by: parkr
2013-01-11 20:02:31 +11:00
mccxj
660e5e0e14 Merge remote-tracking branch 'jekyll/master' 2013-01-11 15:45:54 +08:00
mccxj
3cf29eeee2 add Enumerable#glob_include? 2013-01-11 15:33:11 +08:00
Parker Moore
6253f79de2 Added space between arguments in Convertible errors 2013-01-10 22:11:13 -08:00
Parker Moore
824df94066 Merge pull request #745 from erictheise/master
output full path & name for files that don't parse
2013-01-10 21:44:10 -08:00
Parker Moore
c729fbb5c9 Merge pull request #746 from mattr-/contributor-guidelines
Add a CONTRIBUTING file
2013-01-10 21:35:23 -08:00
Matt Rogers
151275d09e Add TomDoc 2013-01-10 21:53:21 -06:00
Matt Rogers
7782e0b1a1 Add a CONTRIBUTING file
This uses the content of the 'Contribute' wiki page.
2013-01-10 21:44:08 -06:00
Matt Rogers
92eb926bf8 Look for plugins under the source directory by default 2013-01-10 21:24:28 -06:00
Matt Rogers
f3f181484d Merge remote-tracking branch 'upstream/master' into issue-653 2013-01-10 20:41:32 -06:00
Tom Bell
9c517c6d7d Rename migrate command to import 2013-01-11 00:32:39 +00:00
Tom Bell
e210a0603f Revert "Remove migrators"
This reverts commit b9da30bc8f.
2013-01-11 00:30:17 +00:00
Eric Theise
a5c908ac3f no good reason for making 'name' an instance variable 2013-01-10 14:13:11 -08:00
Eric Theise
cf42c56630 stick to good coding standards 2013-01-10 14:07:10 -08:00
Eric Theise
3e7f00ae19 test the path, not the parts 2013-01-10 13:01:50 -08:00
Piotr Usewicz
5d48c5390d Add test/unit 2013-01-10 20:47:55 +00:00
Eric Theise
ba48870ead outputting full path when file does not parse 2013-01-10 12:29:04 -08:00
xiaojian cai
b3e27f2c5d fixed a syntax error 2013-01-10 19:41:11 +08:00
xiaojian cai
c627cd3519 use any? instead 2013-01-10 09:16:09 +08:00
Tom Bell
e3bd250e69 Remove old jekyll command 2013-01-09 23:42:57 +00:00
Tom Bell
b70b57cb89 Merge branch 'master' into 'jekyll-command-redux' 2013-01-09 23:40:27 +00:00
Piotr Usewicz
50b4a8c0ab Bump kramdown, rake, shoulda, cucumber, redcarpet 2013-01-09 10:29:40 +00:00
xiaojian cai
adba101734 update test for include,exclude glob support 2013-01-09 16:44:53 +08:00
xiaojian cai
655cf3b3a8 Update test/test_site.rb 2013-01-09 16:23:58 +08:00
xiaojian cai
1e892678bc Update lib/jekyll/site.rb 2013-01-09 16:06:43 +08:00
edeustace
6eed91871f Changes based on @mojombo's feedback 2013-01-08 23:17:06 +01:00
xiaojian cai
44822a252e add regexp support for option 'include','exclude' 2013-01-06 21:23:31 +08:00
Tom Preston-Werner
dd0e208daa Merge branch 'patch-1' of https://github.com/jlecour/jekyll into jlecour-patch-1 2013-01-03 22:26:09 -08:00
Tom Preston-Werner
4c70c036e7 TomDoc lib/jekyll/post.rb. 2013-01-03 22:20:42 -08:00
Tom Preston-Werner
9328a1a0dd Merge branch 'docs' of https://github.com/icco/jekyll into icco-docs 2013-01-03 22:06:50 -08:00
Tom Preston-Werner
c4a43d748f Merge pull request #728 from mojombo/ruby-version-file
Added support for .ruby-version to ensure congruent dev environment
2013-01-03 20:55:04 -08:00
Parker Moore
6ec1c45d5d Added support for .ruby-version to ensure congruent dev environment 2013-01-02 19:59:20 -05:00
Nick Quaranto
c0ae646cdc Kill sites page on the new docs site. It's a moshpit of slightly useful content, and really there should be a featured site list or an actual directory separate from the docs site 2013-01-01 19:57:06 -05:00
Nick Quaranto
0776078487 If we're going to use Launchy, let's use Dir.chdir 2013-01-01 19:46:56 -05:00
Parker Moore
f7eacb7666 Using local jekyll bin to generate docs site 2013-01-01 19:44:11 -05:00
Tom Preston-Werner
72c8ceba4e Merge pull request #651 from alagu/master
Posterous importer update
2012-12-31 18:24:43 -08:00
Tom Preston-Werner
ff04018275 Update history. 2012-12-31 16:41:38 -08:00
Tom Preston-Werner
b36c9788ac Merge branch 'master' of https://github.com/enure/jekyll into enure-master 2012-12-31 14:22:24 -08:00
Tom Preston-Werner
a041d7a19a Merge pull request #721 from mrueg/patch-1
Update Dependencies in Readme, alphabetize
2012-12-31 14:09:46 -08:00
Tom Preston-Werner
d32f655716 Update history. 2012-12-31 14:04:02 -08:00
Tom Preston-Werner
2c0b3b33d9 Merge branch 'message-for-yaml-error' of https://github.com/stereobooster/jekyll into stereobooster-message-for-yaml-error 2012-12-31 13:25:05 -08:00
Tom Preston-Werner
a6c79396ab Merge pull request #699 from nitoyon/0-12-0-history
Add pull request #569 to history
2012-12-31 13:11:16 -08:00
Tom Preston-Werner
43216ac629 Make sure we do not forget to merge #583 in the future. 2012-12-31 13:10:15 -08:00
Tom Preston-Werner
00d979759e Update history. 2012-12-31 13:01:40 -08:00
Tom Preston-Werner
cc73f04eb7 Update site dir with contents of #583 at rev cb19367.
This is the big site redesign by @cobyism. To work with the new
site deployment mechanism, it is being copied from the gh-pages
branch of that PR into the existing site dir. Before we finally
deploy the new site, we should remember to merge #583 so that we
keep all the history from that PR.
2012-12-31 12:48:04 -08:00
Tom Preston-Werner
62c8ba089a Update history. 2012-12-31 12:18:03 -08:00
Manuel Rüger
ea0d111362 Update Dependencies in Readme, alphabetize 2012-12-31 03:14:30 +01:00
stereobooster
da096f307b Add testcases for YAML syntax error and non UTF-8 encoding 2012-12-30 02:39:02 +02:00
Tom Preston-Werner
83b3b2a340 More robust site:publish. 2012-12-29 16:24:26 -08:00
Tom Preston-Werner
95b07a3c2b Use Launchy for cross platform site:preview. Thx @ixti. 2012-12-29 15:29:56 -08:00
stereobooster
a5a6900948 fix error for case with broken encoding 2012-12-30 00:07:21 +02:00
stereobooster
2dbce8ca9f fix error for case with wrong encoding or error in YAML 2012-12-29 23:32:34 +02:00
Tom Preston-Werner
88bdb15338 Add site namespace and rename site preview/publish rake tasks. 2012-12-28 16:09:42 -06:00
Tom Preston-Werner
6c02483255 Do not copy _site dir to gh-pages dir on release. 2012-12-26 15:42:39 -07:00
Tom Preston-Werner
708ae28d8a A better way to preview and release the Jekyll site. 2012-12-26 15:13:57 -07:00
Tom Preston-Werner
b56a2d1ab1 Update history. 2012-12-26 14:21:22 -07:00
Tom Preston-Werner
c23302f4fa Merge branch 'deletion_protection' of https://github.com/jasonroelofs/jekyll into jasonroelofs-deletion_protection 2012-12-26 14:02:41 -07:00
Fabio Neves
12a19eaf3a Merge branch 'master' of git://github.com/mojombo/jekyll 2012-12-26 14:23:32 -05:00
nitoyon
6a78eb9f5b Add pull request #569 to history 2012-12-24 00:43:06 +09:00
Tom Preston-Werner
d58a0c1088 Release 0.12.0 2012-12-22 16:46:30 -07:00
Tom Bell
b9da30bc8f Remove migrators 2012-12-22 17:49:33 +00:00
Tom Bell
a151a16f09 Remove command options from default config
Removing command line options from the config is a path towards cleaning up the
configuration file and not including options which don't really belong there.
2012-12-19 18:23:34 +00:00
Tom Bell
e24bb02576 Update the Jekyll command for features testing
 🤘 🌟
2012-12-19 17:54:58 +00:00
Tom Bell
b7944c5274 Add initial MigrateCommand
Not all migrators can actually be calld from the comand line. Some require
options which are not passed in and have to be called by other means.
2012-12-19 17:50:21 +00:00
Tom Bell
9c65ceb22d Remove comments 2012-12-19 16:56:08 +00:00
Tom Bell
d298e2bd57 Add LSI option for build and serve commands 2012-12-19 16:44:03 +00:00
Tom Bell
4578c15a24 Add TODOs for current switches 2012-12-19 16:34:03 +00:00
Tom Bell
053c2eb0a7 Rename Args to Options in command docs 2012-12-19 14:13:32 +00:00
Tom Bell
be20a03bb9 Update to make the help command default 2012-12-19 14:09:02 +00:00
Nat Welch
934495b272 Adds some random docs for stuff I saw while skimming the code. 2012-12-18 22:42:42 -08:00
Tom Bell
dc139e2ac9 Update the sym->str key conversion 2012-12-18 22:13:17 +00:00
Tom Bell
bd1c8fe760 Update Jekyll.configuration to convert symbol keys
Because Commander uses symbol keys in the options hash and I don't want to go
back backport every hash string key to symbols in Jekyll. 
2012-12-18 21:55:00 +00:00
Tom Bell
5b2e95b443 Add missing ] in self.watch string 2012-12-18 21:54:01 +00:00
Tom Bell
d8f328b87c Update loop position so trap handler is used 2012-12-18 21:41:18 +00:00
Tom Bell
72f99eb8a7 Update global options and command descriptions 2012-12-18 21:18:05 +00:00
Tom Bell
3b4feb41f0 Add initial serve command
The `ServeCommand` will let you serve your site locally for development. You
can specify `--port`, `--host` and `--baseurl` options if you wish to change the
defaults.

Additionally the `BuildCommand` will be called before the processing of the
serve command, this makes sure that the site is actually built. This means you
are able to pass the `--watch` option to auto-regenerate your site, even while
serving it locally.
2012-12-18 21:00:24 +00:00
Tom Bell
14766497c8 Add bin/jekyll2 and initial BuildCommand
The `BuildCommand` class is responsible for handling the building of the site.
It can also optionally watch for changes to files and regenerate the site if
needed.

The `Command` class holds any methods which are used by any command
implementation.
2012-12-18 20:34:09 +00:00
Tom Bell
6c0c5b6187 Add commander dependency 2012-12-16 21:53:44 +00:00
Tom Preston-Werner
ffc68bdd48 Update history. 2012-12-15 22:21:25 -08:00
Tom Preston-Werner
3a8ebb4b71 Merge branch 'fix/front-matter-regexp' of https://github.com/zimbatm/jekyll into zimbatm-fix/front-matter-regexp 2012-12-15 22:09:41 -08:00
Tom Preston-Werner
22f4b12836 Clean up default config spec. 2012-12-15 22:09:21 -08:00
Tom Preston-Werner
583f9e0019 Merge branch 'master' of https://github.com/Neil-Smithline/jekyll into Neil-Smithline-master 2012-12-15 16:42:26 -08:00
Tom Preston-Werner
e8d68551af Update history. 2012-12-15 16:38:20 -08:00
Tom Preston-Werner
26f8d60542 Merge branch 'master' of https://github.com/wbrady/jekyll into wbrady-master 2012-12-15 16:35:45 -08:00
Tom Preston-Werner
0b62b37122 Remove newline to fix failing Redcarpet test. 2012-12-15 16:34:32 -08:00
Tom Preston-Werner
db96a88cee Update history. 2012-12-15 14:25:37 -08:00
Tom Preston-Werner
098da3d3fa Merge branch 'redcarpet-update' of https://github.com/tombell/jekyll into tombell-redcarpet-update 2012-12-15 14:09:55 -08:00
Tom Preston-Werner
5b5341ff9f Merge pull request #683 from petedmarsh/master
Add license to gemspec
2012-12-15 11:25:17 -08:00
edeustace
4bae42a671 use Array.join instead of Array.inject, add .svn to defaults 2012-12-09 11:43:49 +01:00
petedmarsh
a2dd4bf203 Add license to gemspec 2012-12-07 15:24:33 +00:00
Matt Rogers
8fb4e8fcca Convert slashes in titles to dashes when migrating from WordPress
When a post has a title that contains a slash, such as 'This is my cool
blog post part 1/2', convert the slash to a dash so that the post
filename is created correctly.

Fixes issue #680
2012-12-04 20:45:20 -06:00
Tom Bell
38ac55381b Only pass first class to Pygments
This prevents an exception if something like the following is used:

~~~ {foo bar}
some code
~~~
2012-11-13 07:59:36 +00:00
Tom Bell
a78b587e25 Update pygments.rb version 2012-11-13 07:54:53 +00:00
Fabio Neves
20ac62d30e Making sure errors don't halt the import.
Wrapped file operations in a begin/rescue block.
2012-11-11 23:28:10 -05:00
Jashank Jeremy
85f2dfffa6 faster_lsi: Massively accelerate LSI performance.
Currently, Classifier::LSI rebuilds the index every time an entry is
added.  This runs into massive performance overheads on my website;
theoretically, disabling automatic index rebuilds, and explicitly
rebuilding the LSI index at the end of the LSI repopulation should
speed things up nicely.

As a side note, here, I use pandoc-ruby to provide a more featureful
Markdown transformer, so be mindful that the numbers I quote here have
artifically imposed I/O overheads.

With just the 76 posts I wrote this year (abysmal, I know), I come up
with the following figures:

    Without faster_lsi:
      jekyll --lsi  16.91s user 0.88s system 97% cpu 18.302 total
    With faster_lsi:
      jekyll --lsi  2.72s user 0.77s system 88% cpu 3.940 total

With 109 posts, we begin to see even better improvements:

    Without faster_lsi:
      jekyll --lsi  51.00s user 1.47s system 98% cpu 53.060 total
    With faster_lsi:
      jekyll --lsi  5.04s user 1.12s system 91% cpu 6.735 total

At this point, we begin to see I/O overheads being slower than LSI
when faster_lsi is active.  I call that fairly conclusive.  But wait,
there's more.  I have 273 posts lying around... I wonder what happens
if I feed them all in.  With faster_lsi, it was nice and clippy.
Without it, I simply gave up, and went and refilled my cup of tea.
And it was still going.

    Without faster_lsi:
      jekyll --lsi  1277.86s user 10.90s system 99% cpu 21:30.29 total
    With faster_lsi:
      jekyll --lsi  34.62s user 4.43s system 96% cpu 40.430 total

That is, in anyone's books, a major improvement.  Note, however, that
I don't know just how well this will perform with `jekyll --auto`
because I don't know how it does the LSI rebuilds.  I _think_ (but
please, don't commit me on this) that the LSI is rebuilt every time
Jekyll picks up a file change.

So, all up, the performance improvement is massive, and scales
depending on how many files you have.  At the last point, the
improvement is just on 3200%.

A more optimal solution would be to cache the LSI index and/or content
data somehow.  I'll leave that to when faster_lsi takes over ten
minutes to run.
2012-10-31 22:19:59 +11:00
Matt Rogers
bab29f64f7 Look for plugins under the source directory
When generating the site, Jekyll will now look for plugins under the
source directory by default. The plugin location can still be changed in
_config.yml
2012-10-12 22:43:20 -05:00
Alagu
2726a5f27c Merge branch 'master' of git://github.com/mojombo/jekyll 2012-10-03 19:33:21 -07:00
Alagu
67f403a9d6 Merge branch 'alagu-posterous-importer-rebased' of git://github.com/simensen/jekyll 2012-10-03 19:33:01 -07:00
edeustace
3da0bb3a74 removed puts 2012-08-23 12:13:04 +02:00
edeustace
7c800d3b07 Added a configuration variable: keep_files (default: ['.git']), based on this pull request: https://github.com/mojombo/jekyll/pull/556 2012-08-23 12:07:30 +02:00
Will Brady
336ea66983 Better error reporting on Liquid exceptions 2012-08-14 17:35:41 -04:00
Tom Bell
7f706f47fc Update redcarpet support to version 2 2012-08-13 15:03:33 +01:00
hokaccha
3d2664d983 pygments options for pygments.rb 2012-08-09 00:34:44 +09:00
Neil-Smithline
3904fd9257 make yaml parsing errors more informative 2012-06-29 12:08:57 -04:00
Tom Preston-Werner
fa8400ab61 Merge pull request #574 from tombell/remove-rbx-travisci
Update travis-ci configuration file
2012-06-11 16:53:45 -07:00
Tom Bell
49a4be44cd Update travis-ci configuration file 2012-06-12 00:35:21 +01:00
Tom Preston-Werner
ee402dd18a Merge branch 'switch-to-pygmentsrb' of https://github.com/tombell/jekyll into tombell-switch-to-pygmentsrb 2012-06-11 15:53:44 -07:00
Tom Preston-Werner
88428a8eb1 Merge pull request #568 from tombell/travis-ci
Add travis-ci configuration file
2012-06-11 15:52:58 -07:00
Tom Preston-Werner
202894c196 Merge branch 'custom-layout-directory' of https://github.com/tombell/jekyll into tombell-custom-layout-directory
Conflicts:
	lib/jekyll/site.rb
2012-06-11 15:40:22 -07:00
Tom Preston-Werner
47090ffd2a Fix up a few TomDocs. 2012-06-06 11:59:49 -07:00
Tom Preston-Werner
0e9e7fbc85 Simplify Site#read_layouts. 2012-06-06 11:59:49 -07:00
Tom Bell
58654176de No longer need pygments locally 2012-05-31 16:06:49 -04:00
Tom Bell
b2a1d61c04 Swap out albino for pygments.rb 2012-05-31 15:51:34 -04:00
Tom Bell
c71d7d5290 Add travis-ci configuration file
* Tests against: 1.9.3, 1.9.2, 1.8.7, rbx-18mode
* Fixes #387
2012-05-31 14:55:16 -04:00
Tom Bell
df2ad2ac59 Allow a custom 'layouts' directory
* Add 'layouts' option to change the dir from '_layouts' to anything relative
  to the source directory
* Add cucumber scenario for testing an alternative directory '_theme'
* Closes #563
2012-05-30 21:39:43 -04:00
Jonas Pfenniger
da4e8f2ee1 Front-matter should be at start of file
It's the theme of the moment ; regexp checking.

Just in case we have two line start with --- in the file, we want to
make sure it's not interpreted as a front-matter.
2012-05-25 18:59:26 +01:00
Luca Grulla
7d88f72409 avoiding to call site_payload one time per each post and page. Speed site creation up of a 20%. 2012-04-29 00:27:11 -07:00
Tom Preston-Werner
305695398c Update History. 2012-04-23 17:23:11 -07:00
Tom Preston-Werner
4533e60489 Merge branch 'master' of https://github.com/daneharrigan/jekyll into daneharrigan-master
Conflicts:
	lib/jekyll.rb
2012-04-23 16:48:18 -07:00
Tom Preston-Werner
8a0fbf02f5 Cleanup for RDiscount TOC support. Closes #333. 2012-04-23 16:15:55 -07:00
Michishige Kaito
6471ebf0ef Fixed helper inclusion in redcarpet test 2012-04-23 15:57:06 -07:00
Michishige Kaito
fd5447a6e6 Added a test case for rdiscount toc rendering. 2012-04-23 15:56:46 -07:00
Michishige Kaito
f5b2acf8cd Added support for inline TOCs with RDiscount 2012-04-23 15:56:28 -07:00
Tom Preston-Werner
e29490c1c6 Allow setting of Kramdown smart_quotes. Fixes #482. 2012-04-23 15:34:54 -07:00
Fotos Georgiadis
4090500c5a Added path in url.
Page#dir was returning the wrong dir ('/') for pages in directories.
2012-04-09 03:08:41 +03:00
Jason Roelofs
604b60c9ba Add checks to prevent accidental deletion of the source directory 2012-04-03 22:05:18 -05:00
Jason Roelofs
8368485fa0 Remove deletion of dot files on cleanup.
This is a potentially very dangerous action that's impossible to test that it's correct.
If the '..' check line ever disappears, even running the tests will start deleting
everything accessible on the person's computer.

All dot-files that are generated are already known by Jekyll as either a static file or
a page (yaml front matter), only remove those files.
2012-04-03 21:33:35 -05:00
Charles Stuart
cb336dbb71 fix issue 457: Custom destination in _config.yml causes jekyll server to auto-regenerate continuously 2012-03-20 13:58:32 -06:00
Dane Harrigan
316cc8559c moved paginate_path to default config 2012-02-26 20:58:14 -08:00
Jérémy Lecour
41f2805b7f No need to have a variable assignment, especially if it has the same name as the method parameter. 2012-02-11 09:05:59 +01:00
dunsmoreb
5fb801474e Truncate post slugs when importing from Tumblr.
Fixes #481.
2012-02-01 06:44:01 -06:00
Tom Preston-Werner
4499df8033 Shorten plugin loading code and update history. 2012-01-29 12:49:57 -08:00
Tom Preston-Werner
02366ae5ff Merge branch 'PluginsAsArray' of https://github.com/simensen/jekyll into simensen-PluginsAsArray 2012-01-29 12:32:59 -08:00
Tom Preston-Werner
9d70088f01 Properly select dotfiles during directory scan.
Fixes #363.
Fixes #431.
Fixes #377.
2012-01-23 00:21:08 -08:00
Beau Simensen
e6d89c6a0f More testing, whitespace and comment cleanup. 2012-01-22 22:17:25 -08:00
Beau Simensen
dcf546275b Tweaked plugin directory handling, tests. 2012-01-22 22:10:12 -08:00
Beau Simensen
0284b8b22f Handle Posterous rate limiting 2012-01-22 20:58:56 -08:00
Beau Simensen
5d6e87bbf3 Merge remote-tracking branch 'origin/alagu-master' into alagu-posterous-importer-rebased
Conflict created due to #472.

Conflicts:
	lib/jekyll/migrators/posterous.rb
2012-01-22 19:35:25 -08:00
Tom Preston-Werner
e27e2554d9 Merge pull request #472 from nfm/patch-1
Update Posterous migrator to take an api_token
2012-01-22 16:27:32 -08:00
Tom Preston-Werner
2da64d9c44 Update history. 2012-01-22 16:25:15 -08:00
Tom Preston-Werner
16a4855200 Merge branch 'post_url' of https://github.com/thatguystone/jekyll into thatguystone-post_url 2012-01-22 16:03:10 -08:00
Tom Preston-Werner
c04a9549ea Make note of self.name requirement for Convertible. 2012-01-22 15:02:41 -08:00
Tom Preston-Werner
ac41b459fc Merge pull request #446 from ossxp-com/patch-1
Invalid migrator for WordPress because of a typo.
2012-01-22 15:02:09 -08:00
Tom Preston-Werner
3c2519f07d Merge pull request #419 from vjt/master
Exception handler in Convertible references nonexisting method .name
2012-01-22 00:25:55 -08:00
Tom Preston-Werner
613a7a46a3 Merge pull request #460 from kendagriff/master
RSS Migrator
2012-01-22 00:20:33 -08:00
Tom Preston-Werner
8adfaea339 Merge pull request #426 from joshbrown/master
Added a Joomla migrator
2012-01-22 00:19:35 -08:00
Tom Preston-Werner
22159b3d61 Merge pull request #368 from jacius/wordpress
Greatly improved and extended the wordpress.rb migrator.
2012-01-22 00:18:33 -08:00
Tom Preston-Werner
1292c02ec0 Merge pull request #384 from voxpelli/drupal-alias-redirect
Added redirects for Drupal posts' URL-aliases
2012-01-21 20:04:40 -08:00
Tom Preston-Werner
6e921c5852 Merge pull request #383 from voxpelli/drupal-db-prefix
Added table prefix option to Drupal migration
2012-01-21 20:03:09 -08:00
Tom Preston-Werner
574e933d81 Merge branch 'master' of https://github.com/jpravetz/jekyll into jpravetz-master 2012-01-21 19:59:05 -08:00
Tom Preston-Werner
d36a1064a7 Merge pull request #437 from stephenmcd/master
Improved Tumblr Support
2012-01-21 19:54:00 -08:00
Tom Preston-Werner
456a9f3574 Update history. 2012-01-21 19:49:41 -08:00
Tom Preston-Werner
d00bc8e8fe Merge branch 'master' of https://github.com/tmtk75/jekyll into tmtk75-master 2012-01-21 19:49:08 -08:00
Tom Preston-Werner
8d48992f22 Merge pull request #447 from mking/master
Fix comment typo
2012-01-21 19:46:27 -08:00
Tom Preston-Werner
c797d420c4 Merge branch 'patch-1' of https://github.com/hypertexthero/jekyll into hypertexthero-patch-1 2012-01-21 19:45:24 -08:00
Tom Preston-Werner
03ad973523 Update history. 2012-01-21 19:43:32 -08:00
Tom Preston-Werner
65890da3d1 Merge branch 'categories_with_space' of https://github.com/spk/jekyll into spk-categories_with_space 2012-01-21 19:36:09 -08:00
Nicholas Firth-McCoy
19fc8cb488 Oops, still need email and pass. Update usage comment 2012-01-18 11:08:02 +11:00
Nicholas Firth-McCoy
c3b12457a0 Update Posterous migrator to take an api_token instead of email and pass
The Posterous API call for retrieving a user's API token (`/api/2/auth/token`) is no longer supported and returns 410 GONE. This patch updates the #process method to accept an API token instead of an email address and password. A user's API token can be retrieved from http://posterous.com/api.
2012-01-18 10:55:58 +11:00
Tom Preston-Werner
fa6d013791 Update history. 2012-01-15 21:08:21 -08:00
Tom Preston-Werner
d0d143452a Merge branch 'master' of https://github.com/laumann/jekyll 2012-01-15 20:39:55 -08:00
Tom Preston-Werner
c14eb346a3 Allow [+.#-] in highlight lang shortnames. Fixes #282. 2012-01-15 20:35:09 -08:00
Tom Preston-Werner
4fe5e6ba99 Update history and fix up style. 2012-01-14 20:17:35 -08:00
Tom Preston-Werner
1f44e1ad64 Merge branch 'master' of https://github.com/RJ/jekyll into RJ-master 2012-01-14 20:15:31 -08:00
Tom Preston-Werner
89180169a4 Merge branch 'include' of https://github.com/lukebayes/jekyll into lukebayes-include
Conflicts:
	lib/jekyll.rb
	lib/jekyll/site.rb
2012-01-14 19:48:04 -08:00
Stephen McDonald
f2502dfab2 Added handling for Tumblr missing image extensions. 2011-12-30 23:25:09 +11:00
Stephen McDonald
c26bd30318 Fix photo link URL. 2011-12-29 11:58:11 +11:00
Stephen McDonald
bab178d9f8 Strip HTML from any caption-based titles. 2011-12-29 11:37:46 +11:00
Stephen McDonald
743e01f231 Fixed a change in Tumblr's API whereby photos no longer have a single URL field. 2011-12-29 11:37:06 +11:00
Tom Preston-Werner
b66840ca46 Release 0.11.2 2011-12-27 17:53:50 -07:00
Tom Preston-Werner
4ece77300b Gah, did not commit these for v0.11.1 version release. 2011-12-27 17:48:00 -07:00
Stephen McDonald
3ab7658d1f Fixed Tumblr URL redirects. 2011-12-28 08:16:19 +11:00
Tom Preston-Werner
febb31ba3e Release 0.11.1 2011-12-27 10:59:18 -07:00
Tom Preston-Werner
8754a024b5 Update history. 2011-12-27 10:57:20 -07:00
Stephen McDonald
886b9740f2 Fixed grab_images handling. 2011-12-27 10:09:59 +11:00
Kendall Buchanan
9523c3990e Adding migrator for RSS feeds. 2011-12-22 12:33:15 -07:00
Simon Griffee
06d9446ade Added missing <code>require 'yaml'</code>, without which the TextPattern migrator script was failing. 2011-12-04 23:35:36 +01:00
jpravetz
9a3429dc74 Update lib/jekyll/convertible.rb 2011-12-04 08:37:42 -08:00
Matthew King
14d51bfd25 Fix typo "destintation" => "destination" 2011-12-03 22:36:18 -05:00
Stephen McDonald
0f51c81cfa Added support for rewriting Tumblr URLs to Jekyll URLs in posts, meta redirects for Github pages, and automatic addition of Pygments highlight tags. 2011-12-04 12:01:37 +11:00
OpenSourceXpress
b18bdee6f1 Invalid migrator for WordPress because of a typo.
WordPress importer name should be WordPress not Wordpress.
2011-12-01 09:42:12 +08:00
Thomas Laumann
d80c773b01 New solution for passing restrictions to RedCloth - all tests pass with ruby 1.8 (just invoking rake) 2011-11-28 14:05:34 +01:00
Tomotaka Sakuma
76fa7f016b Fix an issue NoMethodError happens in case number of files under _posts is less than limit_posts. 2011-11-28 16:32:20 +09:00
Tom Preston-Werner
1da88bb30a Update and clarify dependencies. 2011-11-26 18:48:51 -08:00
Tom Preston-Werner
3fa51d5da9 Ignore .DS_Store files. 2011-11-26 10:05:46 -08:00
Tom Preston-Werner
ebc8ab5b53 Remove accidentally added doc stuff and change rakefile to prevent this. 2011-11-26 10:05:15 -08:00
Alagu
20385b54ed Merge pull request #1 from simensen/alagu-master
Fixed critical bug, added a few minor features
2011-11-25 17:44:37 -08:00
Beau Simensen
840b0c14ae YAML front matter fix, cleaned up slug generation, added tags and store some posterous information from the original post. 2011-11-25 19:06:16 -06:00
Stephen McDonald
bc20ba9be9 Preserve HTML tables as per markdown's support for tables. 2011-11-25 06:11:09 +11:00
Stephen McDonald
ab85c82356 Use Tumblr's JSON format instead of XML, to correctly preserve white-space when converting to markdown. 2011-11-24 06:11:57 +11:00
Beau Simensen
ab08acace9 Support plugins being a list of directories to scan. 2011-11-21 21:09:39 -06:00
Stephen McDonald
1b3abb61d8 Clean up extraneous newlines left by html2text. 2011-11-21 05:49:49 +11:00
Stephen McDonald
b762a1d5c5 Add a format option for converting posts to markdown via Python's html2text. 2011-11-20 22:15:36 +11:00
Stephen McDonald
87316894cc Quote the post's title so reserved yaml chars don't blow up. 2011-11-20 22:13:01 +11:00
Stephen McDonald
6826317e00 Use the post's title for the filename rather than its ID, as per Jekyll's naming convention. 2011-11-20 22:09:43 +11:00
Stephen McDonald
06f5b7d2e3 Fixed cgi module name. 2011-11-20 22:07:56 +11:00
Thomas Laumann
ab3927499f Forgot to remove debugging code :-/ 2011-11-04 17:41:47 +01:00
Thomas Laumann
8c4edb655e Have TextileConverter pass any arguments set to true in config's redcloth section to RedCloth constructor as an array of symbols.
This means explicitly setting (for example):

  redcloth:
    hard_breaks: false
    lite_mode: true
    no_span_caps: true

will cause RedCloth to be invoked thusly:

  RedCloth.new(content, [:lite_mode, :no_span_caps])

(Notice that hard_breaks is ignored.) This means, however, anything set to true in the redcloth section in _config.yml _will_ be passed to RedCloth. Mayhem may ensue.
2011-11-04 17:33:53 +01:00
Thomas Jespersen
bb9f1064d3 Merge pull request #1 from cgroner/master
(cgroner) Missing test cases for defaults.
2011-11-04 09:24:30 -07:00
Carl Groner
69e7f4abef Add test cases for default values with no explicit config. for hard_breaks. 2011-11-03 11:54:49 -07:00
Thomas Laumann
a78f86f1ac Merge github.com:mojombo/jekyll 2011-11-03 11:47:47 +01:00
Josh Brown
bb37858e67 Added a sweet Joomla 1.5 migrator 2011-10-24 14:09:22 -04:00
Marcello Barnaba
f0f99eae8a Fix exception thrown in exception handler at convertible.rb:81 2011-10-18 23:05:39 +02:00
Aman Gupta
9fbf90ce59 Merge pull request #409 from wagenet/master
Fix non-pygments code highlighting
2011-09-27 07:06:38 -07:00
Peter Wagenet
4a9094f2d4 Fix non-pygments code highlighting 2011-09-26 23:47:04 -07:00
Seth Ladd
e09f058a06 add page variable to liquid custom tags and blocks. thx to mike west for the patch 2011-09-20 13:03:31 -07:00
Alagu
ddd5dbb5fb Change to new posterous API 2011-09-16 15:31:01 -07:00
Pelle Wessman
2ce0eb00e7 Added redirects for Drupal posts' URL-aliases 2011-08-08 16:19:02 +02:00
Pelle Wessman
e8f604b5ae Added table prefix option to Drupal migration
It's good practice in the Drupal community to always prefix the tables with something so that if you ever need to host two sites in the same database then you will easily know which tables belongs to which site.

This commit adds an option to the Drupal migration scripts that makes it possible to add such a prefix to the migration query.
2011-08-08 15:22:25 +02:00
Andrew Stone
5cffe5ecb5 Adding in the ability to link to posts internally. Syntax: {% post_url 2010-07-21-name-of-post %}; useful for: [Some Link]({% post_url 2010-07-21-name-of-post %}) 2011-07-21 19:49:09 -04:00
John Croisant
1b2b5ff278 Greatly improved and extended the wordpress.rb migrator.
* It can now export comments, categories, and tags.
* It can convert non-ASCII chars into HTML entities.
* It can export published, draft, private, and/or revision posts.
* It can process "<!-- more -->" tags to automatically generate
  a post excerpt and #anchors.

Read the big documentation comment for all the available options.
2011-07-17 17:00:55 -05:00
Tom Preston-Werner
72b7b1f056 Release 0.11.0 2011-07-10 15:14:25 -07:00
Laurent Arnoud
1356e75811 Generate escaped url for categories with space.
Space in URLs should be encoded.

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
2011-07-10 23:56:56 +02:00
Thomas Laumann
ed7f914459 removed unused code 2011-07-07 11:29:40 +02:00
Thomas Laumann
0aab73e156 Merge https://github.com/mojombo/jekyll 2011-07-07 11:14:32 +02:00
Tom Preston-Werner
3241d882b5 Merge remote-tracking branch 'kou/fix-error-message' 2011-07-05 22:31:25 -07:00
Tom Preston-Werner
3c94ff3480 Merge remote-tracking branch 'richbecks/master' 2011-07-05 22:25:51 -07:00
Richard Jones
00a0d14702 Tidied up indentation 2011-07-04 05:09:50 -07:00
Richard Jones
8c35cc957b Create import_hash with .new(0) so that we don't have to check if
a hash exists before incrementing it.
2011-07-04 04:59:40 -07:00
Aman Gupta
f6b5d827e7 Merge pull request #356 from mpalmer/yaml-exception-message
Give name of file that generated YAML exception message
2011-07-01 17:42:49 -07:00
Matt Palmer
eebeaf5dfb Give name of file that generated YAML exception message
It's not much good saying "hey, there was a problem" if you don't know where
the problem *is*.  Hunting through several hundred YAML files is no fun.
2011-07-02 10:35:41 +10:00
Thomas Laumann
fccb6c7f74 Merge git://github.com/mojombo/jekyll 2011-06-29 12:07:21 +02:00
Richard Jones
eb6a2b9bd0 Now creates _<directory> for each post type (e.g. _posts, _pages, _attachments) 2011-06-28 07:21:45 -07:00
Richard Jones
29c4808f2a Drafts are now marked as published:false 2011-06-28 06:31:03 -07:00
Richard Jones
3389c6d508 Sometimes wp:post_name can be empty (e.g. when a post is still draft), in this case we make up an appropriate permalink_title that will be used as the filename. The importer can always rename the file later on, and at least the file is unlikely to have been overwritten by another draft on the same day. 2011-06-28 02:31:42 -07:00
Richard Jones
365f57e8b3 Added meta tag import goodness. This for instance allows you to preserve all your hard-worked on WP SEO keywords, images, alternative images and other yummy-ness.
Replaced PubDate with wp:post_date, this is better than PubDate since some of the posts you import could be a draft (in this case the pubDate is invalid and contains a non-sensical value).
Added wp:status so we now know whether the post is published, draft or in the trash.
Added wp:post_type so we differentiate between posts and image or other post types
2011-06-28 02:05:51 -07:00
Aman Gupta
e679729ac7 Merge pull request #354 from juliangruber/patch-1
fixed redcarpet typo
2011-06-26 14:11:35 -07:00
Julian Gruber
89f48927ad fixed redcarpet typo 2011-06-26 07:09:01 -07:00
Kouhei Sutou
70aaded1e9 fix path name in syntax error message. 2011-06-20 22:46:38 +09:00
Dane Harrigan
58d8fef7ec added command-line option --paginate_path 2011-06-05 15:11:35 -04:00
Dane Harrigan
2b8017dfdc can now set a custom pagination location with pagination_path 2011-06-05 14:57:53 -04:00
Dane Harrigan
b2ab245835 gave the assertion a failure message 2011-06-05 14:57:53 -04:00
Lee Jarvis
6a756881f9 clean up some warnings 2011-06-03 23:38:39 +01:00
Tom Preston-Werner
851172b5ef Replace rdiscount filter with config-aware markdownify. 2011-05-31 14:40:21 -07:00
Tom Preston-Werner
cae0eaf19c Merge remote-tracking branch 'mjschultz/master'
Conflicts:
	lib/jekyll/filters.rb
2011-05-30 12:27:11 -07:00
Tom Preston-Werner
70b1112cca Update history. 2011-05-30 11:45:30 -07:00
Tom Preston-Werner
da9930657e Merge remote-tracking branch 'derekprior/configurable_coverter_file_extensions' 2011-05-30 11:38:59 -07:00
Tom Preston-Werner
13f1cf5832 Merge pull request #328 from shoaibkamil/master
Bugfix in tumblr importer
2011-05-30 11:22:23 -07:00
Tom Preston-Werner
5568e5698c Merge remote-tracking branch 'vazexqi/patch-1' 2011-05-30 11:20:29 -07:00
Tom Preston-Werner
14f371c792 Update gemspec so bundler installs work. 2011-05-30 11:18:15 -07:00
Tom Preston-Werner
56ddf6a3c8 Merge branch 'next' 2011-05-29 22:46:10 -07:00
Tom Preston-Werner
897d3e4e30 Update history. 2011-05-29 22:44:04 -07:00
Tom Preston-Werner
e7135a669f Require cucumber 0.10.3 to fix tests with Ruby 1.9.2. 2011-05-29 22:43:36 -07:00
Tom Preston-Werner
2ad0fbc8ff Merge remote-tracking branch 'MattHall/redcarpet' 2011-05-29 21:38:34 -07:00
Aman Gupta
22585d4b7f avoid infinite recursion while rendering layouts 2011-05-23 17:23:21 -04:00
Nicholas Chen
5788ca88f8 Changed [:state] check RE and required YAML
1) The published state is actually stored as "published" in the database but the regular expression checks for "Published" and thus will actually skip all published posts.

2) The to_yaml method is not immediately available without the "require 'yaml'" directive. This caused the migration script to fail while executing it following the instructions. 

Tested with Typo 5.3
2011-05-14 10:09:59 -07:00
shoaibkamil
1f4dd4ed61 Fixed bug in "conversation" importing where <section> and <dialog> tags were not being closed. 2011-05-11 22:06:53 -07:00
Thomas Laumann
20d1bd1f10 Merge https://github.com/mojombo/jekyll 2011-05-09 12:01:17 +02:00
Tom Preston-Werner
f808c98232 Clean up Enki importer and update History. 2011-05-09 00:59:40 -07:00
Tom Preston-Werner
0dc55aacff Merge remote-tracking branch 'rodrigopinto/master' 2011-05-09 00:55:55 -07:00
Tom Preston-Werner
b86bc97c5f Clean up Tumblr importer and update History. 2011-05-09 00:54:26 -07:00
Tom Preston-Werner
9cc9c233d0 Merge remote-tracking branch 'tonycosentini/master' 2011-05-09 00:41:07 -07:00
Tom Preston-Werner
2de18d31ab Merge remote-tracking branch 'guilleiguaran/patch-1' into devel 2011-05-09 00:35:06 -07:00
Guillermo Iguaran
02b1d996d2 default_executable= have been deprecated 2011-05-09 00:11:52 -07:00
Tom Preston-Werner
0ce425443f Better Pager.calculate_pages implementation. 2011-05-08 23:44:20 -07:00
Tom Preston-Werner
82bd83fe7f More TomDoc and formatting cleanup. 2011-05-08 23:40:35 -07:00
Tom Preston-Werner
aa0d82fa96 Clean up migrators formatting. 2011-05-08 15:08:53 -07:00
Tom Preston-Werner
a428acec1c TomDoc some things. 2011-05-08 14:49:19 -07:00
Tony Cosentini
e12cbdbea2 Added Tumblr migrator. 2011-05-02 14:31:01 -04:00
Rodrigo Pinto
55f42d26be adding enki migrator 2011-04-28 21:28:13 -03:00
Tom Preston-Werner
155cbd1463 All tests/features run in 1.8 and 1.9. 2011-04-24 19:16:13 +08:00
Tom Preston-Werner
6a31e650f3 Tests and specs run under 1.9. 2011-04-24 18:39:27 +08:00
Tom Preston-Werner
093a5efbe1 Merge remote-tracking branch 'jbw/ruby-v1.9' into devel 2011-04-23 18:08:34 +08:00
MattHall
cf779b2760 Added Redcarpet for MD conversion 2011-04-20 10:04:42 +01:00
Derek Prior
d2377b2581 Fixed mistake in default markdown extensions 2011-04-12 17:30:56 -04:00
Derek Prior
5801220a98 Added the ability to configure the file extensions to be processed by each converter. Test cases included. 2011-04-12 17:03:28 -04:00
Thomas Laumann
ef7b4aa57a added test_redcloth to gemspec 2011-04-06 14:18:55 +02:00
Thomas Laumann
3f889ef077 added test case to hard_breaks (disable/enable in _config.yml) 2011-03-23 18:17:14 +01:00
Michael J Schultz
9e3ad69922 - added rdiscount filter for templating system (like the textilize filter, but for markdown) 2011-03-03 08:14:52 -06:00
laumann
3468f0a2c3 expanded config yaml to allow setting hard_breaks=false on RedCloth, modified textile converter to take this option into account 2011-02-09 01:37:30 +01:00
Richard Jones
2f9d4f5be6 Allow setting default mimetype for --server. Useful if permalinks don't end in .html 2011-02-05 12:25:32 +00:00
lukebayes
717a2540e1 Added support for 'include' configuration parameter. This parameter
should work just like 'exclude', except it gives us the ability
to enumerate any files that should not be ignored - even if they
begin with the dastardly dot or underscore.
2010-12-30 16:41:34 -08:00
Jason Watson
de7e0011f9 Add some colouring to the unit tests. 2010-08-31 03:41:00 +01:00
Jason Watson
75b93e3fa5 RDiscount is required to run the test suite. 2010-08-30 23:11:16 +01:00
Jason Watson
dc7a7d0090 Updated for 1.9 encoding support. 2010-08-30 23:03:04 +01:00
Jason Watson
4aae2a7bc7 RedGreen is broken in 1.9.2. Test::Unit has colouring ability now. 2010-08-30 22:57:13 +01:00
Jason Watson
e53a5407b9 Test::Unit is no longer ships with Ruby. 2010-08-30 22:55:39 +01:00
Jason Watson
e054202c2b fix load errors in ruby 1.9.2. 2010-08-30 22:35:15 +01:00
419 changed files with 29358 additions and 3575 deletions

12
.gitignore vendored
View File

@@ -6,3 +6,15 @@ pkg/
*~
_site/
.bundle/
.DS_Store
bbin/
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

35
.travis.yml Normal file
View File

@@ -0,0 +1,35 @@
language: ruby
cache: bundler
sudo: false
rvm:
- 2.2
- 2.1
- 2.0
- 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
notifications:
irc:
on_success: change
on_failure: change
channels:
- irc.freenode.org#jekyll
template:
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
email:
on_success: never
on_failure: never
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/)

106
CONTRIBUTING.markdown Normal file
View File

@@ -0,0 +1,106 @@
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
[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,
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.
* Please do your best to submit **small pull requests**. The easier the proposed
change is to review, the more likely it will be merged.
* When submitting a pull request, please make judicious use of the pull request
body. A description of what changes were made, the motivations behind the
changes and [any tasks completed or left to complete](http://git.io/gfm-tasks)
will also speed up review time.
Test Dependencies
-----------------
To run the test suite and build the gem you'll need to install Jekyll's
dependencies. Simply run this command to get all setup:
$ script/bootstrap
Before you start, run the tests and make sure that they pass (to confirm your
environment is configured properly):
$ 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
--------
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` ).
* 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 `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
does and the why you think it should be merged.
Updating Documentation
----------------------
We want the Jekyll documentation to be the best it can be. We've
open-sourced our docs and we welcome any pull requests if you find it
lacking.
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
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
-------
* 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.
* Please don't tag your GitHub issue with [fix], [feature], etc. The maintainers
actively read the issues and will label it once they come across it.
Finally...
----------
Thanks! Hacking on Jekyll should be fun. If you find any of this hard to figure
out, let us know so we can improve our process or documentation!

57
Gemfile
View File

@@ -1,2 +1,55 @@
source :rubygems
gemspec
source 'https://rubygems.org'
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

1865
History.markdown Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,294 +0,0 @@
== HEAD
* Major Enhancements
* Add command line importer functionality (#253)
* Minor Enhancements
* Switch to Albino gem
* Bundler support
* Use English library to avoid hoops (#292)
* Add Posterous importer (#254)
* Fixes for Wordpress importer (#274, #252, #271)
* Better error message for invalid post date (#291)
* Print formatted fatal exceptions to stdout on build failure
* Bug Fixes
* Secure additional path exploits
== 0.10.0 / 2010-12-16
* Bug Fixes
* Add --no-server option.
== 0.9.0 / 2010-12-15
* Minor Enhancements
* Use OptionParser's [no-] functionality for better boolean parsing.
* Add Drupal migrator (#245)
* Complain about YAML and Liquid errors (#249)
* Remove orphaned files during regeneration (#247)
* Add Marley migrator (#28)
== 0.8.0 / 2010-11-22
* Minor Enhancements
* Add wordpress.com importer (#207)
* Add --limit-posts cli option (#212)
* Add uri_escape filter (#234)
* Add --base-url cli option (#235)
* Improve MT migrator (#238)
* Add kramdown support (#239)
* Bug Fixes
* Fixed filename basename generation (#208)
* Set mode to UTF8 on Sequel connections (#237)
* Prevent _includes dir from being a symlink
== 0.7.0 / 2010-08-24
* Minor Enhancements
* Add support for rdiscount extensions (#173)
* Bug Fixes
* Highlight should not be able to render local files
* The site configuration may not always provide a 'time' setting (#184)
== 0.6.2 / 2010-06-25
* Bug Fixes
* Fix Rakefile 'release' task (tag pushing was missing origin)
* Ensure that RedCloth is loaded when textilize filter is used (#183)
* Expand source, destination, and plugin paths (#180)
* Fix page.url to include full relative path (#181)
== 0.6.1 / 2010-06-24
* Bug Fixes
* Fix Markdown Pygments prefix and suffix (#178)
== 0.6.0 / 2010-06-23
* Major Enhancements
* Proper plugin system (#19, #100)
* Add safe mode so unsafe converters/generators can be added
* Maruku is now the only processor dependency installed by default.
Other processors will be lazy-loaded when necessary (and prompt the
user to install them when necessary) (#57)
* Minor Enhancements
* Inclusion/exclusion of future dated posts (#59)
* Generation for a specific time (#59)
* Allocate site.time on render not per site_payload invocation (#59)
* Pages now present in the site payload and can be used through the
site.pages and site.html_pages variables
* Generate phase added to site#process and pagination is now a generator
* Switch to RakeGem for build/test process
* Only regenerate static files when they have changed (#142)
* Allow arbitrary options to Pygments (#31)
* Allow URL to be set via command line option (#147)
* Bug Fixes
* Render highlighted code for non markdown/textile pages (#116)
* Fix highlighting on Ruby 1.9 (#65)
* Fix extension munging when pretty permalinks are enabled (#64)
* Stop sorting categories (#33)
* Preserve generated attributes over front matter (#119)
* Fix source directory binding using Dir.pwd (#75)
== 0.5.7 / 2010-01-12
* Minor Enhancements
* Allow overriding of post date in the front matter (#62, #38)
* Bug Fixes
* Categories isn't always an array (#73)
* Empty tags causes error in read_posts (#84)
* Fix pagination to adhere to read/render/write paradigm
* Test Enhancement
* cucumber features no longer use site.posts.first where a better
alternative is available
== 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)
* Minor Enhancements
* Allow .mkd as markdown extension
* Use $stdout/err instead of constants (#99)
* Properly wrap code blocks (#91)
* Add javascript mime type for webrick (#98)
== 0.5.5 / 2010-01-08
* Bug Fixes
* Fix pagination % 0 bug (#78)
* Ensure all posts are processed first (#71)
== NOTE
* After this point I will no longer be giving credit in the history;
that is what the commit log is for.
== 0.5.4 / 2009-08-23
* Bug Fixes
* Do not allow symlinks (security vulnerability)
== 0.5.3 / 2009-07-14
* Bug Fixes
* Solving the permalink bug where non-html files wouldn't work
[github.com/jeffrydegrande]
== 0.5.2 / 2009-06-24
* Enhancements
* Added --paginate option to the executable along with a paginator object
for the payload [github.com/calavera]
* Upgraded RedCloth to 4.2.1, which makes <notextile> tags work once
again.
* Configuration options set in config.yml are now available through the
site payload [github.com/vilcans]
* Posts can now have an empty YAML front matter or none at all
[github.com/bahuvrihi]
* Bug Fixes
* Fixing Ruby 1.9 issue that requires to_s on the err object
[github.com/Chrononaut]
* Fixes for pagination and ordering posts on the same day [github.com/ujh]
* Made pages respect permalinks style and permalinks in yml front matter
[github.com/eugenebolshakov]
* Index.html file should always have index.html permalink
[github.com/eugenebolshakov]
* Added trailing slash to pretty permalink style so Apache is happy
[github.com/eugenebolshakov]
* Bad markdown processor in config fails sooner and with better message
[github.com/gcnovus]
* Allow CRLFs in yaml frontmatter [github.com/juretta]
* Added Date#xmlschema for Ruby versions < 1.9
== 0.5.1 / 2009-05-06
* Major Enhancements
* Next/previous posts in site payload [github.com/pantulis,
github.com/tomo]
* Permalink templating system
* Moved most of the README out to the GitHub wiki
* Exclude option in configuration so specified files won't be brought over
with generated site [github.com/duritong]
* Bug Fixes
* Making sure config.yaml references are all gone, using only config.yml
* Fixed syntax highlighting breaking for UTF-8 code [github.com/henrik]
* Worked around RDiscount bug that prevents Markdown from getting parsed
after highlight [github.com/henrik]
* CGI escaped post titles [github.com/Chrononaut]
== 0.5.0 / 2009-04-07
* Minor Enhancements
* Ability to set post categories via YAML [github.com/qrush]
* Ability to set prevent a post from publishing via YAML
[github.com/qrush]
* Add textilize filter [github.com/willcodeforfoo]
* Add 'pretty' permalink style for wordpress-like urls
[github.com/dysinger]
* Made it possible to enter categories from YAML as an array
[github.com/Chrononaut]
* Ignore Emacs autosave files [github.com/Chrononaut]
* Bug Fixes
* Use block syntax of popen4 to ensure that subprocesses are properly
disposed [github.com/jqr]
* Close open4 streams to prevent zombies [github.com/rtomayko]
* Only query required fields from the WP Database [github.com/ariejan]
* Prevent _posts from being copied to the destination directory
[github.com/bdimcheff]
* Refactors
* Factored the filtering code into a method [github.com/Chrononaut]
* Fix tests and convert to Shoulda [github.com/qrush,
github.com/technicalpickles]
* Add Cucumber acceptance test suite [github.com/qrush,
github.com/technicalpickles]
== 0.4.1
* Minor Enhancements
* Changed date format on wordpress converter (zeropadding)
[github.com/dysinger]
* Bug Fixes
* Add jekyll binary as executable to gemspec [github.com/dysinger]
== 0.4.0 / 2009-02-03
* Major Enhancements
* Switch to Jeweler for packaging tasks
* Minor Enhancements
* Type importer [github.com/codeslinger]
* site.topics accessor [github.com/baz]
* Add array_to_sentence_string filter [github.com/mchung]
* Add a converter for textpattern [github.com/PerfectlyNormal]
* Add a working Mephisto / MySQL converter [github.com/ivey]
* Allowing .htaccess files to be copied over into the generated site
[github.com/briandoll]
* Add option to not put file date in permalink URL [github.com/mreid]
* Add line number capabilities to highlight blocks [github.com/jcon]
* Bug Fixes
* Fix permalink behavior [github.com/cavalle]
* Fixed an issue with pygments, markdown, and newlines
[github.com/zpinter]
* Ampersands need to be escaped [github.com/pufuwozu, github.com/ap]
* Test and fix the site.categories hash [github.com/zzot]
* Fix site payload available to files [github.com/matrix9180]
== 0.3.0 / 2008-12-24
* Major Enhancements
* Added --server option to start a simple WEBrick server on destination
directory [github.com/johnreilly and github.com/mchung]
* Minor Enhancements
* Added post categories based on directories containing _posts
[github.com/mreid]
* Added post topics based on directories underneath _posts
* Added new date filter that shows the full month name [github.com/mreid]
* Merge Post's YAML front matter into its to_liquid payload
[github.com/remi]
* Restrict includes to regular files underneath _includes
* Bug Fixes
* Change YAML delimiter matcher so as to not chew up 2nd level markdown
headers [github.com/mreid]
* Fix bug that meant page data (such as the date) was not available in
templates [github.com/mreid]
* Properly reject directories in _layouts
== 0.2.1 / 2008-12-15
* Major Changes
* Use Maruku (pure Ruby) for Markdown by default [github.com/mreid]
* Allow use of RDiscount with --rdiscount flag
* Minor Enhancements
* Don't load directory_watcher unless it's needed [github.com/pjhyett]
== 0.2.0 / 2008-12-14
* Major Changes
* related_posts is now found in site.related_posts
== 0.1.6 / 2008-12-13
* Major Features
* Include files in _includes with {% include x.textile %}
== 0.1.5 / 2008-12-12
* Major Features
* Code highlighting with Pygments if --pygments is specified
* Disable true LSI by default, enable with --lsi
* Minor Enhancements
* Output informative message if RDiscount is not available
[github.com/JackDanger]
* Bug Fixes
* Prevent Jekyll from picking up the output directory as a source
[github.com/JackDanger]
* Skip related_posts when there is only one post [github.com/JackDanger]
== 0.1.4 / 2008-12-08
* Bug Fixes
* DATA does not work properly with rubygems
== 0.1.3 / 2008-12-06
* Major Features
* Markdown support [github.com/vanpelt]
* Mephisto and CSV converters [github.com/vanpelt]
* Code hilighting [github.com/vanpelt]
* Autobuild
* Bug Fixes
* Accept both \r\n and \n in YAML header [github.com/vanpelt]
== 0.1.2 / 2008-11-22
* Major Features
* Add a real "related posts" implementation using Classifier
* Command Line Changes
* Allow cli to be called with 0, 1, or 2 args intuiting dir paths
if they are omitted
== 0.1.1 / 2008-11-22
* Minor Additions
* Posts now support introspectional data e.g. {{ page.url }}
== 0.1.0 / 2008-11-05
* First release
* Converts posts written in Textile
* Converts regular site pages
* Simple copy of binary files
== 0.0.0 / 2008-10-19
* Birthday!

10
LICENSE
View File

@@ -1,9 +1,9 @@
(The MIT License)
The MIT License (MIT)
Copyright (c) 2008 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,10 +12,10 @@ 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
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.

52
README.markdown Normal file
View File

@@ -0,0 +1,52 @@
# [Jekyll](http://jekyllrb.com/)
[![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, 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.
## Philosophy
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 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
* [Migrate](http://import.jekyllrb.com/docs/home/) from your previous system
* Learn how the [YAML Front Matter](http://jekyllrb.com/docs/frontmatter/) works
* Put information on your site with [Variables](http://jekyllrb.com/docs/variables/)
* Customize the [Permalinks](http://jekyllrb.com/docs/permalinks/) your posts are generated with
* Use the built-in [Liquid Extensions](http://jekyllrb.com/docs/templates/) to make your life easier
* Use custom [Plugins](http://jekyllrb.com/docs/plugins/) to generate content specific to your site
## License
See [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE).

View File

@@ -1,40 +0,0 @@
h1. Jekyll
By Tom Preston-Werner, Nick Quaranto, and many awesome contributors!
Jekyll is a simple, blog aware, static site generator. It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind "GitHub Pages":http://pages.github.com, which you can use to host your project's page or blog right here from GitHub.
h2. Getting Started
* "Install":http://wiki.github.com/mojombo/jekyll/install the gem
* Read up about its "Usage":http://wiki.github.com/mojombo/jekyll/usage and "Configuration":http://wiki.github.com/mojombo/jekyll/configuration
* Take a gander at some existing "Sites":http://wiki.github.com/mojombo/jekyll/sites
* Fork and "Contribute":http://wiki.github.com/mojombo/jekyll/contribute your own modifications
* Have questions? Post them on the "Mailing List":http://groups.google.com/group/jekyll-rb
h2. Diving In
* "Migrate":http://wiki.github.com/mojombo/jekyll/blog-migrations from your previous system
* Learn how the "YAML Front Matter":http://wiki.github.com/mojombo/jekyll/yaml-front-matter works
* Put information on your site with "Template Data":http://wiki.github.com/mojombo/jekyll/template-data
* Customize the "Permalinks":http://wiki.github.com/mojombo/jekyll/permalinks your posts are generated with
* Use the built-in "Liquid Extensions":http://wiki.github.com/mojombo/jekyll/liquid-extensions to make your life easier
h2. Runtime Dependencies
* RedCloth: Textile support (Ruby)
* Liquid: Templating system (Ruby)
* Classifier: Generating related posts (Ruby)
* Maruku: Default markdown engine (Ruby)
* Directory Watcher: Auto-regeneration of sites (Ruby)
* Pygments: Syntax highlighting (Python)
h2. Developer Dependencies
* Shoulda: Test framework (Ruby)
* RR: Mocking (Ruby)
* RedGreen: Nicer test output (Ruby)
h2. License
See LICENSE.

324
Rakefile
View File

@@ -1,6 +1,11 @@
require 'rubygems'
require 'rake'
require 'rdoc'
require 'date'
require 'yaml'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w[lib]))
require 'jekyll/version'
#############################################################################
#
@@ -9,20 +14,15 @@ require 'date'
#############################################################################
def name
@name ||= Dir['*.gemspec'].first.split('.').first
"jekyll"
end
def version
line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
Jekyll::VERSION
end
def date
Date.today.to_s
end
def rubyforge_project
name
def docs_name
"#{name}-docs"
end
def gemspec_file
@@ -30,11 +30,59 @@ def gemspec_file
end
def gem_file
"#{name}-#{version}.gem"
"#{name}-#{Gem::Version.new(version).to_s}.gem"
end
def replace_header(head, header_name)
head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
def normalize_bullets(markdown)
markdown.gsub(/\n\s{2}\*{1}/, "\n-")
end
def linkify_prs(markdown)
markdown.gsub(/#(\d+)/) do |word|
"[#{word}]({{ site.repository }}/issues/#{word.delete("#")})"
end
end
def linkify_users(markdown)
markdown.gsub(/(@\w+)/) do |username|
"[#{username}](https://github.com/#{username.delete("@")})"
end
end
def linkify(markdown)
linkify_users(linkify_prs(markdown))
end
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(
custom_release_header_anchors(
liquid_escape(
linkify(
normalize_bullets(markdown)))))
end
#############################################################################
@@ -43,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'
@@ -52,15 +101,7 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
desc "Generate RCov test coverage and open in your browser"
task :coverage do
require 'rcov'
sh "rm -fr coverage"
sh "rcov test/test_*.rb"
sh "open coverage/index.html"
end
require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "#{name} #{version}"
@@ -68,6 +109,21 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.profile = "travis"
end
Cucumber::Rake::Task.new(:"features:html", "Run Cucumber features and produce HTML output") do |t|
t.profile = "html_report"
end
rescue LoadError
desc 'Cucumber rake task not available'
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
end
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/#{name}.rb"
@@ -75,34 +131,152 @@ end
#############################################################################
#
# Custom tasks (add your own tasks here)
# Site tasks - http://jekyllrb.com
#
#############################################################################
namespace :migrate do
desc "Migrate from mephisto in the current directory"
task :mephisto do
sh %q(ruby -r './lib/jekyll/migrators/mephisto' -e 'Jekyll::Mephisto.postgres(:database => "#{ENV["DB"]}")')
end
desc "Migrate from Movable Type in the current directory"
task :mt do
sh %q(ruby -r './lib/jekyll/migrators/mt' -e 'Jekyll::MT.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
end
desc "Migrate from Typo in the current directory"
task :typo do
sh %q(ruby -r './lib/jekyll/migrators/typo' -e 'Jekyll::Typo.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
end
end
namespace :site do
desc "Generate and view the site locally"
task :preview => [:history, :version_file] do
require "launchy"
require "jekyll"
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format progress"
# 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.
Thread.new do
sleep 4
puts "Opening in browser..."
Launchy.open("http://localhost:4000")
end
# Generate the site in server mode.
puts "Running Jekyll..."
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
rescue LoadError
desc 'Cucumber rake task not available'
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
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/_sass") do
sh 'curl "http://necolas.github.io/normalize.css/latest/normalize.css" -o "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, :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 "Creating gh-pages dir..."
sh "git clone git@github.com:jekyll/jekyll gh-pages"
end
# Ensure latest gh-pages branch history.
Dir.chdir('gh-pages') do
sh "git checkout gh-pages"
sh "git pull origin gh-pages"
end
# 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 rev-parse HEAD`.strip
Dir.chdir('gh-pages') do
sh "git add ."
sh "git commit --allow-empty -m 'Updating to #{sha}.'"
sh "git push origin gh-pages"
end
puts 'Done.'
end
desc "Create a nicely formatted history page for the jekyll site based on the repo history."
task :history do
if File.exist?("History.markdown")
history_file = File.read("History.markdown")
front_matter = {
"layout" => "docs",
"title" => "History",
"permalink" => "/docs/history/"
}
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))
end
end
else
abort "You seem to have misplaced your History.markdown file. I can haz?"
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|
raise "Specify a version: rake site:releases:new['1.2.3']" unless args.version
today = Time.new.strftime('%Y-%m-%d')
release = args.version.to_s
filename = "site/_posts/#{today}-jekyll-#{release.split('.').join('-')}-released.markdown"
File.open(filename, "wb") do |post|
post.puts("---")
post.puts("layout: news_item")
post.puts("title: 'Jekyll #{release} Released'")
post.puts("date: #{Time.new.strftime('%Y-%m-%d %H:%M:%S %z')}")
post.puts("author: ")
post.puts("version: #{release}")
post.puts("categories: [release]")
post.puts("---")
post.puts
post.puts
end
puts "Created #{filename}"
end
end
end
@@ -112,48 +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 -a -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 3.0-stable"
sh "git push origin v#{version}"
sh "gem push pkg/#{name}-#{version}.gem"
end
task :build => :gemspec do
sh "mkdir -p pkg"
desc "Build #{name} v#{version} into pkg/"
task :build do
mkdir_p "pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end
task :gemspec do
# read spec file and split out manifest section
spec = File.read(gemspec_file)
head, manifest, tail = spec.split(" # = MANIFEST =\n")
#############################################################################
#
# Packaging tasks for jekyll-docs
#
#############################################################################
# replace name version and date
replace_header(head, :name)
replace_header(head, :version)
replace_header(head, :date)
#comment this out if your rubyforge_project has a different name
replace_header(head, :rubyforge_project)
namespace :docs do
desc "Release #{docs_name} v#{version}"
task :release => :build do
unless `git branch` =~ /^\* 3\.0-stable$/
puts "You must be on the 3.0-stable branch to release!"
exit!
end
sh "gem push pkg/#{docs_name}-#{version}.gem"
end
# determine file list from git ls-files
files = `git ls-files`.
split("\n").
sort.
reject { |file| file =~ /^\./ }.
reject { |file| file =~ /^(rdoc|pkg|coverage)/ }.
map { |file| " #{file}" }.
join("\n")
# piece file back together and write
manifest = " s.files = %w[\n#{files}\n ]\n"
spec = [head, manifest, tail].join(" # = MANIFEST =\n")
File.open(gemspec_file, 'w') { |io| io.write(spec) }
puts "Updated #{gemspec_file}"
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

@@ -1,276 +1,42 @@
#!/usr/bin/env ruby
STDOUT.sync = true
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
$:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
help = <<HELP
Jekyll is a blog-aware, static site generator.
Basic Command Line Usage:
jekyll # . -> ./_site
jekyll <path to write generated site> # . -> <path>
jekyll <path to source> <path to write generated site> # <path> -> <path>
jekyll import <importer name> <options> # imports posts using named import script
Configuration is read from '<source>/_config.yml' but can be overriden
using the following options:
HELP
require 'optparse'
require 'jekyll'
require 'mercenary'
Jekyll::External.require_if_present(
Jekyll::External.blessed_gems
)
exec = {}
options = {}
opts = OptionParser.new do |opts|
opts.banner = help
Jekyll::PluginManager.require_from_bundler
opts.on("--file [PATH]", "File to import from") do |import_file|
options['file'] = import_file
end
opts.on("--dbname [TEXT]", "DB to import from") do |import_dbname|
options['dbname'] = import_dbname
end
opts.on("--user [TEXT]", "Username to use when importing") do |import_user|
options['user'] = import_user
end
opts.on("--pass [TEXT]", "Password to use when importing") do |import_pass|
options['pass'] = import_pass
end
opts.on("--host [HOST ADDRESS]", "Host to import from") do |import_host|
options['host'] = import_host
end
opts.on("--site [SITE NAME]", "Site to import from") do |import_site|
options['site'] = import_site
end
Jekyll::Deprecator.process(ARGV)
opts.on("--[no-]safe", "Safe mode (default unsafe)") do |safe|
options['safe'] = safe
end
Mercenary.program(:jekyll) do |p|
p.version Jekyll::VERSION
p.description 'Jekyll is a blog-aware, static site generator in Ruby'
p.syntax 'jekyll <subcommand> [options]'
opts.on("--[no-]auto", "Auto-regenerate") do |auto|
options['auto'] = auto
end
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_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'
opts.on("--server [PORT]", "Start web server (default port 4000)") do |port|
options['server'] = true
options['server_port'] = port unless port.nil?
end
Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
opts.on("--no-server", "Do not start a web server") do |part|
options['server'] = false
end
opts.on("--base-url [BASE_URL]", "Serve website from a given base URL (default '/'") do |baseurl|
options['baseurl'] = baseurl
end
opts.on("--[no-]lsi", "Use LSI for better related posts") do |lsi|
options['lsi'] = lsi
end
opts.on("--[no-]pygments", "Use pygments to highlight code") do |pygments|
options['pygments'] = pygments
end
opts.on("--rdiscount", "Use rdiscount gem for Markdown") do
options['markdown'] = 'rdiscount'
end
opts.on("--kramdown", "Use kramdown gem for Markdown") do
options['markdown'] = 'kramdown'
end
opts.on("--time [TIME]", "Time to generate the site for") do |time|
options['time'] = Time.parse(time)
end
opts.on("--[no-]future", "Render future dated posts") do |future|
options['future'] = future
end
opts.on("--permalink [TYPE]", "Use 'date' (default) for YYYY/MM/DD") do |style|
options['permalink'] = style unless style.nil?
end
opts.on("--paginate [POSTS_PER_PAGE]", "Paginate a blog's posts") do |per_page|
begin
options['paginate'] = per_page.to_i
raise ArgumentError if options['paginate'] == 0
rescue
puts 'you must specify a number of posts by page bigger than 0'
exit 0
end
end
opts.on("--limit_posts [MAX_POSTS]", "Limit the number of posts to publish") do |limit_posts|
begin
options['limit_posts'] = limit_posts.to_i
raise ArgumentError if options['limit_posts'] < 1
rescue
puts 'you must specify a number of posts by page bigger than 0'
exit 0
end
end
opts.on("--url [URL]", "Set custom site.url") do |url|
options['url'] = url
end
opts.on("--version", "Display current version") do
puts "Jekyll " + Jekyll::VERSION
exit 0
end
end
# Read command line options into `options` hash
opts.parse!
# Check for import stuff
if ARGV.size > 0
if ARGV[0] == 'import'
migrator = ARGV[1]
if migrator.nil?
puts "Invalid options. Run `jekyll --help` for assistance."
exit(1)
p.action do |args, options|
if args.empty?
Jekyll.logger.error "A subcommand is required."
puts p
abort
else
migrator = migrator.downcase
unless p.has_command?(args.first)
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
end
end
cmd_options = []
['file', 'dbname', 'user', 'pass', 'host', 'site'].each do |p|
cmd_options << "\"#{options[p]}\"" unless options[p].nil?
end
# It's import time
puts "Importing..."
# Ideally, this shouldn't be necessary. Maybe parse the actual
# src files for the migrator name?
migrators = {
:posterous => 'Posterous',
:wordpressdotcom => 'WordpressDotCom',
:wordpress => 'Wordpress',
:csv => 'CSV',
:drupal => 'Drupal',
:mephisto => 'Mephisto',
:mt => 'MT',
:textpattern => 'TextPattern',
:typo => 'Typo'
}
app_root = File.join(File.dirname(__FILE__), '..')
require "#{app_root}/lib/jekyll/migrators/#{migrator}"
if Jekyll.const_defined?(migrators[migrator.to_sym])
migrator_class = Jekyll.const_get(migrators[migrator.to_sym])
migrator_class.process(*cmd_options)
else
puts "Invalid migrator. Run `jekyll --help` for assistance."
exit(1)
end
exit(0)
end
end
# Get source and destintation from command line
case ARGV.size
when 0
when 1
options['destination'] = ARGV[0]
when 2
options['source'] = ARGV[0]
options['destination'] = ARGV[1]
else
puts "Invalid options. Run `jekyll --help` for assistance."
exit(1)
end
options = Jekyll.configuration(options)
# Get source and destination directories (possibly set by config file)
source = options['source']
destination = options['destination']
# Files to watch
def globs(source)
Dir.chdir(source) do
dirs = Dir['*'].select { |x| File.directory?(x) }
dirs -= ['_site']
dirs = dirs.map { |x| "#{x}/**/*" }
dirs += ['*']
end
end
# Create the Site
site = Jekyll::Site.new(options)
# Run the directory watcher for auto-generation, if required
if options['auto']
require 'directory_watcher'
puts "Auto-regenerating enabled: #{source} -> #{destination}"
dw = DirectoryWatcher.new(source)
dw.interval = 1
dw.glob = globs(source)
dw.add_observer do |*args|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
puts "[#{t}] regeneration: #{args.size} files changed"
site.process
end
dw.start
unless options['server']
loop { sleep 1000 }
end
else
puts "Building site: #{source} -> #{destination}"
begin
site.process
rescue Jekyll::FatalException => e
puts
puts "ERROR: YOUR SITE COULD NOT BE BUILT:"
puts "------------------------------------"
puts e.message
exit(1)
end
puts "Successfully generated site: #{source} -> #{destination}"
end
# Run the server on the specified port, if required
if options['server']
require 'webrick'
include WEBrick
FileUtils.mkdir_p(destination)
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
mime_types.store 'js', 'application/javascript'
s = HTTPServer.new(
:Port => options['server_port'],
:MimeTypes => mime_types
)
s.mount(options['baseurl'], HTTPServlet::FileHandler, destination)
t = Thread.new {
s.start
}
trap("INT") { s.shutdown }
t.join()
end

View File

@@ -1 +0,0 @@
default: --format progress

View File

@@ -0,0 +1,147 @@
Feature: Collections
As a hacker who likes to structure content
I want to be able to create collections of similar information
And render them
Scenario: Unrendered collection
Given I have an "index.html" page that contains "Collections: {{ site.methods }}"
And I have fixture 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 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[0].foo }} {{ site.collections[0] }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
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"
Scenario: Rendered collection at a custom URL
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
permalink: /:collection/:path/
"""
When I run jekyll build
Then the _site directory should exist
And I should see "<p>Whatever: foo.bar</p>" in "_site/methods/configuration/index.html"
Scenario: Rendered document in a layout
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have a default layout that contains "<div class='title'>Tom Preston-Werner</div> {{content}}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
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"
Scenario: Collections specified as an array
Given I have an "index.html" page that contains "Collections: {% for method in site.methods %}{{ method.relative_path }} {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
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 %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: Jekyll.configuration, Jekyll.escape, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html"

View File

@@ -3,18 +3,25 @@ Feature: Create sites
I want to be able to make a static site
In order to share my awesome ideas with the interwebs
Scenario: Blank site
Given I do not have a "test_blank" directory
When I run jekyll new test_blank --blank
Then the test_blank/_layouts directory should exist
And the test_blank/_posts directory should exist
And the "test_blank/index.html" file should exist
Scenario: Basic site
Given I have an "index.html" file that contains "Basic Site"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site" in "_site/index.html"
Scenario: Basic site with a post
Given I have a _posts directory
And I have the following post:
| title | date | content |
| Hackers | 3/27/2009 | My First Exploit |
When I run jekyll
| title | date | content |
| Hackers | 2009-03-27 | My First Exploit |
When I run jekyll build
Then the _site directory should exist
And I should see "My First Exploit" in "_site/2009/03/27/hackers.html"
@@ -22,7 +29,7 @@ Feature: Create sites
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
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: Basic Site with Layout" in "_site/index.html"
@@ -30,10 +37,21 @@ Feature: Create sites
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| Wargames | 3/27/2009 | default | The only winning move is not to play. |
| 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
When I run jekyll build
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: Basic site with layout inside a subfolder and a post
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 | post/simple | The only winning move is not to play. |
And I have a post/simple layout that contains "Post Layout: {{ content }}"
When I run jekyll build
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"
@@ -48,15 +66,15 @@ Feature: Create sites
And I have an "another_file" file that contains ""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 3/27/2009 | post | content for entry1. |
| entry2 | 4/27/2009 | post | content for entry2. |
| title | date | layout | content |
| entry1 | 2009-03-27 | post | content for entry1. |
| entry2 | 2009-04-27 | post | content for entry2. |
And I have a category/_posts directory
And I have the following posts in "category":
| title | date | layout | content |
| entry3 | 5/27/2009 | post | content for entry3. |
| entry4 | 6/27/2009 | post | content for entry4. |
When I run jekyll
| title | date | layout | content |
| entry3 | 2009-05-27 | post | content for entry3. |
| entry4 | 2009-06-27 | post | content for entry4. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html"
And I should see "No replacement \{\{ site.posts.size \}\}" in "_site/about.html"
@@ -71,7 +89,7 @@ Feature: Create sites
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
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
@@ -80,7 +98,7 @@ Feature: Create sites
And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
And I have an info directory
And I have an "info/index.html" page that contains "Basic Site with subdir include tag: {% include about.textile %}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"
@@ -89,6 +107,66 @@ Feature: Create sites
And I have an "_includes/about.textile" file that contains "Generated by {% include jekyll.textile %}"
And I have an "_includes/jekyll.textile" file that contains "Jekyll"
And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
When I debug jekyll
When I run jekyll build
Then the _site directory should exist
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 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 | 2008-01-01 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
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"
When I run jekyll build
Then the _site directory should exist
And I should see "SomeDirective" in "_site/.htaccess"
Scenario: File was replaced by a directory
Given I have a "test" file that contains "some stuff"
When I run jekyll build
Then the _site directory should exist
When I delete the file "test"
Given I have a test directory
And I have a "test/index.html" file that contains "some other stuff"
When I run jekyll build
Then the _site/test directory should exist
And I should see "some other stuff" in "_site/test/index.html"
Scenario: Basic site with unpublished page
Given I have an "index.html" page with title "index" that contains "Published page"
And I have a "public.html" page with published "true" that contains "Explicitly published page"
And I have a "secret.html" page with published "false" that contains "Unpublished page"
When I run jekyll build
Then the _site directory should exist
And the "_site/index.html" file should exist
And the "_site/public.html" file should exist
But the "_site/secret.html" file should not exist
When I run jekyll build --unpublished
Then the _site directory should exist
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

119
features/data.feature Normal file
View File

@@ -0,0 +1,119 @@
Feature: Data
In order to use well-formatted data in my blog
As a blog's user
I want to use _data directory in my site
Scenario: autoload *.yaml files in _data directory
Given I have a _data directory
And I have a "_data/products.yaml" file with content:
"""
- name: sugar
price: 5.3
- name: salt
price: 2.5
"""
And I have an "index.html" page that contains "{% for product in site.data.products %}{{product.name}}{% endfor %}"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "sugar" in "_site/index.html"
And I should see "salt" in "_site/index.html"
Scenario: autoload *.yml files in _data directory
Given I have a _data directory
And I have a "_data/members.yml" file with content:
"""
- name: Jack
age: 28
- name: Leon
age: 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 *.json files in _data directory
Given I have a _data directory
And I have a "_data/members.json" file with content:
"""
[{"name": "Jack", "age": 28},{"name": "Leon", "age": 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 *.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:
"""
- name: Jack
age: 28
- name: Leon
age: 34
"""
And I have an "index.html" page that contains "{% for member in site.data.team_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 *.yaml files in subdirectories in _data directory
Given I have a _data directory
And I have a _data/categories directory
And I have a "_data/categories/dairy.yaml" file with content:
"""
name: Dairy Products
"""
And I have an "index.html" page that contains "{{ site.data.categories.dairy.name }}"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "Dairy Products" in "_site/index.html"
Scenario: folders should have precedence over files with the same name
Given I have a _data directory
And I have a _data/categories directory
And I have a "_data/categories/dairy.yaml" file with content:
"""
name: Dairy Products
"""
And I have a "_data/categories.yaml" file with content:
"""
dairy:
name: Should not display this
"""
And I have an "index.html" page that contains "{{ site.data.categories.dairy.name }}"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "Dairy Products" in "_site/index.html"
Scenario: should be backward compatible with site.data in _config.yml
Given I have a "_config.yml" file with content:
"""
data:
- name: Jack
age: 28
- name: Leon
age: 34
"""
And I have an "index.html" page that contains "{% for member in site.data %}{{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"

46
features/drafts.feature Normal file
View File

@@ -0,0 +1,46 @@
Feature: Draft Posts
As a hacker who likes to blog
I want to be able to preview drafts locally
In order to see if they look alright before publishing
Scenario: Preview a draft
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll build --drafts
Then the _site directory should exist
And I should see "Not baked yet." in "_site/recipe.html"
Scenario: Don't preview a draft
Given I have a configuration file with "permalink" set to "none"
And I have an "index.html" page that contains "Totally index"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll build
Then the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Don't preview a draft that is not published
Given I have a configuration file with "permalink" set to "none"
And I have an "index.html" page that contains "Totally index"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | published | content |
| Recipe | 2009-03-27 | default | false | Not baked yet. |
When I run jekyll build --drafts
Then the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Use page.path variable
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| 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.markdown" in "_site/recipe.html"

View File

@@ -7,10 +7,10 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | default | These aren't the droids you're looking for. |
| 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 "{{ site.time | date_to_xmlschema }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see today's date in "_site/2009/03/27/star-wars.html"
@@ -18,10 +18,10 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star & Wars | 3/27/2009 | default | These aren't the droids you're looking for. |
| 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
When I run jekyll build
Then the _site directory should exist
And I should see "Star &amp; Wars" in "_site/2009/03/27/star-wars.html"
@@ -29,10 +29,10 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ content | xml_escape }}"
When I run jekyll
| 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 | 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"
@@ -40,21 +40,66 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | tags | content |
| Star Wars | 3/27/2009 | default | [scifi, movies, force] | These aren't the droids you're looking for. |
| title | date | layout | tags | content |
| Star Wars | 2009-03-27 | default | [scifi, movies, force] | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}"
When I run jekyll
When I run jekyll build
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 | 3/27/2009 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}"
When I run jekyll
| 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_' | 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"
Scenario: Sort by an arbitrary variable
Given I have a _layouts directory
And I have the following page:
| title | layout | value | content |
| Page-1 | default | 8 | Something |
And I have the following page:
| title | layout | value | content |
| Page-2 | default | 6 | Something |
And I have a default layout that contains "{{ site.pages | sort:'value' | map:'title' | join:', ' }}"
When I run jekyll build
Then the _site directory should exist
And I should see exactly "Page-2, Page-1" in "_site/page-1.html"
And I should see exactly "Page-2, Page-1" in "_site/page-2.html"
Scenario: Sort pages by the title
Given I have a _layouts directory
And I have the following page:
| title | layout | content |
| Dog | default | Run |
And I have the following page:
| title | layout | content |
| Bird | default | Fly |
And I have the following page:
| layout | content |
| default | Jump |
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
When I run jekyll build
Then the _site directory should exist
And I should see exactly "The rule of 3: Jump, Fly, Run," in "_site/bird.html"
Scenario: Sort pages by the title ordering pages without title last
Given I have a _layouts directory
And I have the following page:
| title | layout | content |
| Dog | default | Run |
And I have the following page:
| title | layout | content |
| Bird | default | Fly |
And I have the following page:
| layout | content |
| default | Jump |
And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', 'last' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
When I run jekyll build
Then the _site directory should exist
And I should see exactly "The rule of 3: Fly, Run, Jump," in "_site/bird.html"

View File

@@ -0,0 +1,189 @@
Feature: frontmatter defaults
Scenario: Use default for frontmatter variables internally
Given I have a _layouts directory
And I have a pretty layout that contains "THIS IS THE LAYOUT: {{content}}"
And I have a _posts directory
And I have the following post:
| title | date | content |
| default layout | 2013-09-11 | just some post |
And I have an "index.html" page with title "some title" that contains "just some page"
And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {layout: "pretty"}}]"
When I run jekyll build
Then the _site directory should exist
And I should see "THIS IS THE LAYOUT: <p>just some post</p>" in "_site/2013/09/11/default-layout.html"
And I should see "THIS IS THE LAYOUT: just some page" in "_site/index.html"
Scenario: Use default for frontmatter variables in Liquid
Given I have a _posts directory
And I have the following post:
| title | date | content |
| default data | 2013-09-11 | <p>{{page.custom}}</p><div>{{page.author}}</div> |
And I have an "index.html" page that contains "just {{page.custom}} by {{page.author}}"
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>\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
Given I have a _layouts directory
And I have a root layout that contains "root: {{ content }}"
And I have a subfolder layout that contains "subfolder: {{ content }}"
And I have a _posts directory
And I have the following post:
| title | date | content |
| about | 2013-10-14 | info on {{page.description}} |
And I have a special/_posts directory
And I have the following post in "special":
| title | date | path | content |
| about | 2013-10-14 | local | info on {{page.description}} |
And I have an "index.html" page with title "overview" that contains "Overview for {{page.description}}"
And I have an "special/index.html" page with title "section overview" that contains "Overview for {{page.description}}"
And I have a configuration file with "defaults" set to "[{scope: {path: "special"}, values: {layout: "subfolder", description: "the special section"}}, {scope: {path: ""}, values: {layout: "root", description: "the webpage"}}]"
When I run jekyll build
Then the _site directory should exist
And I should see "root: <p>info on the webpage</p>" in "_site/2013/10/14/about.html"
And I should see "subfolder: <p>info on the special section</p>" in "_site/special/2013/10/14/about.html"
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: Use frontmatter scopes for subdirectories
Given I have a _layouts directory
And I have a main layout that contains "main: {{ content }}"
And I have a _posts/en directory
And I have the following post under "en":
| title | date | content |
| helloworld | 2014-09-01 | {{page.lang}} is the current language |
And I have a _posts/de directory
And I have the following post under "de":
| title | date | content |
| hallowelt | 2014-09-01 | {{page.lang}} is the current language |
And I have a configuration file with "defaults" set to "[{scope: {path: "_posts/en"}, values: {layout: "main", lang: "en"}}, {scope: {path: "_posts/de"}, values: {layout: "main", lang: "de"}}]"
When I run jekyll build
Then the _site directory should exist
And I should see "main: <p>en is the current language</p>" in "_site/2014/09/01/helloworld.html"
And I should see "main: <p>de is the current language</p>" in "_site/2014/09/01/hallowelt.html"
Scenario: Override frontmatter defaults by type
Given I have a _posts directory
And I have the following post:
| title | date | content |
| this is a post | 2013-10-14 | blabla |
And I have an "index.html" page that contains "interesting stuff"
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {permalink: "/post.html"}}, {scope: {path: "", type: "page"}, values: {permalink: "/page.html"}}, {scope: {path: ""}, values: {permalink: "/perma.html"}}]"
When I run jekyll build
Then I should see "blabla" in "_site/post.html"
And I should see "interesting stuff" in "_site/page.html"
But the "_site/perma.html" file should not exist
Scenario: Actual frontmatter overrides defaults
Given I have a _posts directory
And I have the following post:
| title | date | permalink | author | content |
| override | 2013-10-14 | /frontmatter.html | some guy | a blog by {{page.author}} |
And I have an "index.html" page with permalink "override.html" that contains "nothing"
And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {permalink: "/perma.html", author: "Chris"}}]"
When I run jekyll build
Then I should see "a blog by some guy" in "_site/frontmatter.html"
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:
"""
---
---
Value: {{ page.myval }}
"""
And I have a "_config.yml" file with content:
"""
collections:
slides:
output: true
defaults:
-
scope:
path: ""
type: slides
values:
myval: "Test"
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Value: Test" in "_site/slides/slide1.html"
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:
"""
---
myval: Override
---
Value: {{ page.myval }}
"""
And I have a "_config.yml" file with content:
"""
collections:
slides:
output: true
defaults:
-
scope:
path: ""
type: slides
values:
myval: "Test"
"""
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

@@ -0,0 +1,79 @@
Feature: Include tags
In order to share their content across several pages
As a hacker who likes to blog
I want to be able to include files in my blog posts
Scenario: Include a file with parameters
Given I have an _includes directory
And I have an "_includes/header.html" file that contains "<header>My awesome blog header: {{include.param}}</header>"
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 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"
And I should not see "myparam" in "_site/2013/03/21/ignore-params-if-unused.html"
And I should see "<li>date = today</li>" in "_site/2013/03/21/list-multiple-parameters.html"
And I should see "<li>start = tomorrow</li>" in "_site/2013/03/21/list-multiple-parameters.html"
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 = \"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>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
And I have an "_includes/snippet.html" file that contains "a snippet"
And I have an "_includes/parametrized.html" file that contains "works with {{include.what}}"
And I have a configuration file with:
| key | value |
| include_file1 | snippet.html |
| include_file2 | parametrized.html |
And I have an "index.html" page that contains "{% include {{site.include_file1}} %} that {% include {{site.include_file2}} what='parameters' %}"
When I run jekyll build
Then the _site directory should exist
And I should see "a snippet that works with parameters" in "_site/index.html"
Scenario: Include a variable file in a loop
Given I have an _includes directory
And I have an "_includes/one.html" file that contains "one"
And I have an "_includes/two.html" file that contains "two"
And I have an "index.html" page with files "[one.html, two.html]" that contains "{% for file in page.files %}{% include {{file}} %} {% endfor %}"
When I run jekyll build
Then the _site directory should exist
And I should see "one two" in "_site/index.html"
Scenario: Include a file with variables and filters
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 | append: '.html' }} %}"
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

@@ -8,23 +8,25 @@ Feature: Markdown
And I have an "index.html" page that contains "Index - {% for post in site.posts %} {{ post.content }} {% endfor %}"
And I have a _posts directory
And I have the following post:
| title | date | content | type |
| Hackers | 3/27/2009 | # My Title | markdown |
When I run jekyll
| title | date | content | type |
| Hackers | 2009-03-27 | # My Title | markdown |
When I run jekyll build
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/2009/03/27/hackers.html"
And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/2009/03/27/hackers.html"
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:
| title | date | content | type |
| Hackers | 3/27/2009 | # My Title | markdown |
When I run jekyll
| title | date | content | type |
| Hackers | 2009-03-27 | # My Title | markdown |
When I run jekyll build
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"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"

View File

@@ -2,26 +2,86 @@ Feature: Site pagination
In order to paginate my blog
As a blog's user
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
And I have the following post:
| title | date | layout | content |
| Wargames | 3/27/2009 | default | The only winning move is not to play. |
| Wargames2 | 4/27/2009 | default | The only winning move is not to play2. |
| Wargames3 | 5/27/2009 | default | The only winning move is not to play3. |
| Wargames4 | 6/27/2009 | default | The only winning move is not to play4. |
When I run jekyll
And I have the following posts:
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll build
Then the _site/page<exist> directory should exist
And the "_site/page<exist>/index.html" file should exist
And I should see "<posts>" in "_site/page<exist>/index.html"
And the "_site/page<not_exist>/index.html" file should not exist
Examples:
| num | exist | posts | not_exist |
| 1 | 4 | 1 | 5 |
| 2 | 2 | 2 | 3 |
| 3 | 2 | 1 | 3 |
Scenario Outline: Setting a custom pagination path
Given I have a configuration file with:
| key | value |
| 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
And I have the following posts:
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll build
Then the _site/blog/page-<exist> directory should exist
And the "_site/blog/page-<exist>/index.html" file should exist
And I should see "<posts>" in "_site/blog/page-<exist>/index.html"
And the "_site/blog/page-<not_exist>/index.html" file should not exist
Examples:
| exist | posts | not_exist |
| 2 | 1 | 5 |
| 3 | 1 | 6 |
| 4 | 1 | 7 |
Scenario Outline: Setting a custom pagination path without an index.html in it
Given I have a configuration file with:
| key | value |
| 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!"
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. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll build
Then the _site/blog/page/<exist> directory should exist
And the "_site/blog/page/<exist>/index.html" file should exist
And I should see "<posts>" in "_site/blog/page/<exist>/index.html"
And the "_site/blog/page/<not_exist>/index.html" file should not exist
Examples:
| exist | posts | not_exist |
| 2 | 1 | 5 |
| 3 | 1 | 6 |
| 4 | 1 | 7 |

View File

@@ -6,20 +6,20 @@ Feature: Fancy permalinks
Scenario: Use none permalink schema
Given I have a _posts directory
And I have the following post:
| title | date | content |
| None Permalink Schema | 3/27/2009 | Totally nothing. |
| title | date | content |
| None Permalink Schema | 2009-03-27 | Totally nothing. |
And I have a configuration file with "permalink" set to "none"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Totally nothing." in "_site/none-permalink-schema.html"
Scenario: Use pretty permalink schema
Given I have a _posts directory
And I have the following post:
| title | date | content |
| Pretty Permalink Schema | 3/27/2009 | Totally wordpress. |
| title | date | content |
| Pretty Permalink Schema | 2009-03-27 | Totally wordpress. |
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll
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"
@@ -28,7 +28,7 @@ Feature: Fancy permalinks
And I have an "awesome.html" page that contains "Totally awesome"
And I have an "sitemap.xml" page that contains "Totally uhm, sitemap"
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Totally index" in "_site/index.html"
And I should see "Totally awesome" in "_site/awesome/index.html"
@@ -37,29 +37,86 @@ Feature: Fancy permalinks
Scenario: Use custom permalink schema with prefix
Given I have a _posts directory
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 3/27/2009 | Totally custom. |
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
When I run jekyll
| 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/"
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"
Scenario: Use custom permalink schema with category
Given I have a _posts directory
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 3/27/2009 | Totally custom. |
| title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/:categories/:title.html"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Totally custom." in "_site/stuff/custom-permalink-schema.html"
Scenario: Use custom permalink schema with squished date
Given I have a _posts directory
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 3/27/2009 | Totally custom. |
| title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/:month-:day-:year/:title.html"
When I run jekyll
When I run jekyll build
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 |
When I run jekyll build
Then the _site directory should exist
And the _site/custom/posts/1 directory should exist
And I should see "bla bla" in "_site/custom/posts/1/index.html"
Scenario: Use per-post ending in .html
Given I have a _posts directory
And I have the following post:
| title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/some.html | bla bla |
When I run jekyll build
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

@@ -7,10 +7,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post title: {{ page.title }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
@@ -18,10 +18,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post url: {{ page.url }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
@@ -29,21 +29,35 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post date: {{ page.date }}"
When I run jekyll
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post date: Fri Mar 27" in "_site/2009/03/27/star-wars.html"
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
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post id: {{ page.id }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
@@ -51,10 +65,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post content: {{ content }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
@@ -63,10 +77,46 @@ Feature: Post data
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
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.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, 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/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"
@@ -74,10 +124,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | tag | content |
| Star Wars | 5/18/2009 | simple | twist | Luke, I am your father. |
| title | date | layout | tag | content |
| Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
And I have a simple layout that contains "Post tags: {{ page.tags }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
@@ -87,42 +137,132 @@ Feature: Post data
And I have a scifi/movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/movies":
| title | date | layout | content |
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | 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
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 folders with mixed case
Given I have a scifi directory
And I have a scifi/Movies directory
And I have a scifi/Movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/Movies":
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | 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 category is 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 | 3/27/2009 | simple | movies | Luke, I am your father. |
| 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
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.categories variable when category is in YAML and is mixed-case
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. |
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.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 | categories | content |
| Star Wars | 3/27/2009 | simple | ['scifi', '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
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
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when categories are in YAML with mixed case
Given I have a _posts directory
And I have a _layouts directory
And I have the following posts:
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
| Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, 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"
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
And I have the following post in "<dir>":
| title | type | date | content |
| my-post | html | 2013-04-12 | Source path: {{ page.path }} |
When I run jekyll build
Then the _site directory should exist
And I should see "Source path: <path_prefix>_posts/2013-04-12-my-post.html" in "_site/<dir>/2013/04/12/my-post.html"
Examples:
| dir | path_prefix |
| . | |
| dir | dir/ |
| dir/nested | dir/nested/ |
Scenario: Override page.path variable
Given I have a _posts directory
And I have the following post:
| title | date | path | content |
| override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
When I run jekyll build
Then the _site directory should exist
And I should see "Custom path: override-path.html" in "_site/2013/04/12/override.html"
Scenario: Disable a post from being published
Given I have a _posts directory
And I have an "index.html" file that contains "Published!"
And I have the following post:
| title | date | layout | published | content |
| Star Wars | 3/27/2009 | simple | false | Luke, I am your father. |
When I run jekyll
| title | date | layout | published | content |
| Star Wars | 2009-03-27 | simple | false | Luke, I am your father. |
When I run jekyll build
Then the _site directory should exist
And the "_site/2009/03/27/star-wars.html" file should not exist
And I should see "Published!" in "_site/index.html"
@@ -131,10 +271,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | author | content |
| Star Wars | 3/27/2009 | simple | Darth Vader | Luke, I am your father. |
| title | date | layout | author | content |
| Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. |
And I have a simple layout that contains "Post author: {{ page.author }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
@@ -142,12 +282,12 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following posts:
| title | date | layout | author | content |
| Star Wars | 3/27/2009 | ordered | Darth Vader | Luke, I am your father. |
| Some like it hot | 4/27/2009 | ordered | Osgood | Nobody is perfect. |
| Terminator | 5/27/2009 | ordered | Arnold | Sayonara, baby |
| title | date | layout | author | content |
| Star Wars | 2009-03-27 | ordered | Darth Vader | Luke, I am your father. |
| Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. |
| Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby |
And I have a ordered layout that contains "Previous post: {{ page.previous.title }} and next post: {{ page.next.title }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "next post: Some like it hot" in "_site/2009/03/27/star-wars.html"
And I should see "Previous post: Some like it hot" in "_site/2009/05/27/terminator.html"

View File

@@ -0,0 +1,50 @@
Feature: Post excerpts
As a hacker who likes to blog
I want to be able to make a static site
In order to share my awesome ideas with the interwebs
But some people can only focus for a few moments
So just give them a taste
Scenario: An excerpt without a layout
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
Scenario: An excerpt from a post with a layout
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
And I have a _posts directory
And I have a _layouts directory
And I have a post layout that contains "{{ page.excerpt }}"
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And the _site/2007 directory should exist
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/2007/12/31/entry1.html"
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
Scenario: An excerpt from a post with a layout which has context
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
And I have a _posts directory
And I have a _layouts directory
And I have a post layout that contains "<html><head></head><body>{{ page.excerpt }}</body></html>"
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And the _site/2007 directory should exist
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 "<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

@@ -0,0 +1,50 @@
Feature: Rendering
As a hacker who likes to blog
I want to be able to make a static site
In order to share my awesome ideas with the interwebs
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!"
When I run jekyll build
Then the _site directory should exist
And I should see "Hi there, Jekyll development!\nAhoy, indeed" in "_site/index.html"
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: Render liquid in Sass
Given I have an "index.scss" page that contains ".foo-bar { color:{{site.color}}; }"
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 ".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

@@ -3,27 +3,48 @@ Feature: Site configuration
I want to be able to configure jekyll
In order to make setting up a site easier
Scenario: Change destination directory
Scenario: Change source directory
Given I have a blank site in "_sourcedir"
And I have an "_sourcedir/index.html" file that contains "Changing source directory"
And I have a configuration file with "source" set to "_sourcedir"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Changing source directory" in "_site/index.html"
Scenario: Change destination directory
Given I have an "index.html" file that contains "Changing destination directory"
And I have a configuration file with "destination" set to "_mysite"
When I run jekyll
When I run jekyll build
Then the _mysite directory should exist
And I should see "Changing destination directory" in "_mysite/index.html"
Scenario Outline: Similarly named source and destination
Given I have a blank site in "<source>"
And I have an "<source>/index.md" page that contains "markdown"
And I have a configuration file with:
| key | value |
| source | <source> |
| destination | <dest> |
When I run jekyll build
Then the <source> directory should exist
And the "<dest>/index.html" file should <file_exist> exist
And I should see "markdown" in "<source>/index.md"
Examples:
| source | dest | file_exist |
| mysite_source | mysite | |
| mysite | mysite_dest | |
| mysite/ | mysite | not |
| mysite | ./mysite | not |
| mysite/source | mysite | not |
| mysite | mysite/dest | |
Scenario: Exclude files inline
Given I have an "Rakefile" file that contains "I want to be excluded"
And I have an "README" file that contains "I want to be excluded"
And I have an "index.html" file that contains "I want to be included"
And I have a configuration file with "exclude" set to "Rakefile", "README"
When I run jekyll
And I have a configuration file with "exclude" set to "['Rakefile', 'README']"
When I run jekyll build
Then I should see "I want to be included" in "_site/index.html"
And the "_site/Rakefile" file should not exist
And the "_site/README" file should not exist
@@ -36,7 +57,7 @@ Feature: Site configuration
| value |
| README |
| Rakefile |
When I run jekyll
When I run jekyll build
Then I should see "I want to be included" in "_site/index.html"
And the "_site/Rakefile" file should not exist
And the "_site/README" file should not exist
@@ -44,30 +65,47 @@ Feature: Site configuration
Scenario: Use RDiscount 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 "rdiscount"
When I run jekyll
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"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use Kramdown 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 "kramdown"
When I run jekyll
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"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use Maruku for markup
Scenario: Use Redcarpet 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
And I have a configuration file with "markdown" set to "redcarpet"
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"
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" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
And I have a configuration file with "pygments" set to "true"
When I run jekyll
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
When I run jekyll build
Then the _site directory should exist
And I should see "puts 'Hello world!'" in "_site/index.html"
And I should see "Hello world!" in "_site/index.html"
And I should see "class=\"highlight\"" in "_site/index.html"
Scenario: Highlight code with rouge
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
And I have a configuration file with "highlighter" set to "rouge"
When I run jekyll build
Then the _site directory should exist
And I should see "Hello world!" in "_site/index.html"
And I should see "class=\"highlight\"" in "_site/index.html"
Scenario: Rouge renders code block once
Given I have a configuration file with "highlighter" set to "rouge"
And I have a _posts directory
And I have the following post:
| title | date | layout | content |
| foo | 2014-04-27 11:34 | default | {% highlight text %} test {% endhighlight %} |
When I run jekyll build
Then I should not see "highlight(.*)highlight" in "_site/2014/04/27/foo.html"
Scenario: Set time and no future dated posts
Given I have a _layouts directory
@@ -80,10 +118,10 @@ Feature: Site configuration
| future | false |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 12/31/2007 | post | content for entry1. |
| entry2 | 01/31/2020 | post | content for entry2. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
@@ -100,27 +138,108 @@ Feature: Site configuration
| future | true |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 12/31/2007 | post | content for entry1. |
| entry2 | 01/31/2020 | post | content for entry2. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
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: Generate proper dates with explicitly set timezone (same as posts' time)
Given I have a _layouts directory
And I have a page layout that contains "Page Layout: {{ site.posts.size }}"
And I have a post layout that contains "Post Layout: {{ content }} built at {{ page.date | date_to_xmlschema }}"
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 | America/New_York |
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. |
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>\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
And I have a page layout that contains "Page Layout: {{ site.posts.size }}"
And I have a post layout that contains "Post Layout: {{ content }} built at {{ page.date | date_to_xmlschema }}"
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 | 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. |
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/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
And I have a configuration file with:
| key | value |
| limit_posts | 2 |
And I have the following posts:
| title | date | content |
| Apples | 3/27/2009 | An article about apples |
| Oranges | 4/1/2009 | An article about oranges |
| Bananas | 4/5/2009 | An article about bananas |
When I run jekyll
| title | date | content |
| Apples | 2009-03-27 | An article about apples |
| Oranges | 2009-04-01 | An article about oranges |
| Bananas | 2009-04-05 | An article about bananas |
When I run jekyll build
Then the _site directory should exist
And the "_site/2009/04/05/bananas.html" file should exist
And the "_site/2009/04/01/oranges.html" file should exist
And the "_site/2009/03/27/apples.html" file should not exist
Scenario: Copy over normally excluded files when they are explicitly included
Given I have a ".gitignore" file that contains ".DS_Store"
And I have an ".htaccess" file that contains "SomeDirective"
And I have a configuration file with "include" set to:
| value |
| .gitignore |
| .foo |
When I run jekyll build
Then the _site directory should exist
And I should see ".DS_Store" in "_site/.gitignore"
And the "_site/.htaccess" file should not exist
Scenario: Using a different layouts directory
Given I have a _theme directory
And I have a page theme that contains "Page Layout: {{ site.posts.size }} on {{ site.time | date: "%Y-%m-%d" }}"
And I have a post theme that contains "Post Layout: {{ content }}"
And I have an "index.html" page with layout "page" that contains "site index page"
And I have a configuration file with:
| key | value |
| time | 2010-01-01 |
| future | true |
| layouts_dir | _theme |
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. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
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: 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 "FOO" in "_site/index.html"
And I should not see " " in "_site/index.html"

View File

@@ -4,14 +4,33 @@ Feature: Site data
In order to make the site slightly dynamic
Scenario: Use page variable in a page
Given I have an "contact.html" page with title "Contact" that contains "{{ page.title }}: email@me.com"
When I run jekyll
Given I have an "contact.html" page with title "Contact" that contains "{{ page.title }}: email@example.com"
When I run jekyll build
Then the _site directory should exist
And I should see "Contact: email@me.com" in "_site/contact.html"
And I should see "Contact: email@example.com" in "_site/contact.html"
Scenario Outline: Use page.path variable in a page
Given I have a <dir> directory
And I have a "<path>" page that contains "Source path: {{ page.path }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Source path: <path>" in "_site/<path>"
Examples:
| dir | path |
| . | index.html |
| dir | dir/about.html |
| dir/nested | dir/nested/page.html |
Scenario: Override page.path
Given I have an "override.html" page with path "custom-override.html" that contains "Custom path: {{ page.path }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Custom path: custom-override.html" in "_site/override.html"
Scenario: Use site.time variable
Given I have an "index.html" page that contains "{{ site.time }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see today's time in "_site/index.html"
@@ -19,11 +38,11 @@ Feature: Site data
Given I have a _posts directory
And I have an "index.html" page that contains "{{ site.posts.first.title }}: {{ site.posts.first.url }}"
And I have the following posts:
| title | date | content |
| First Post | 3/25/2009 | My First Post |
| Second Post | 3/26/2009 | My Second Post |
| Third Post | 3/27/2009 | My Third Post |
When I run jekyll
| title | date | content |
| First Post | 2009-03-25 | My First Post |
| Second Post | 2009-03-26 | My Second Post |
| Third Post | 2009-03-27 | My Third Post |
When I run jekyll build
Then the _site directory should exist
And I should see "Third Post: /2009/03/27/third-post.html" in "_site/index.html"
@@ -31,11 +50,11 @@ Feature: Site data
Given I have a _posts directory
And I have an "index.html" page that contains "{% for post in site.posts %} {{ post.title }} {% endfor %}"
And I have the following posts:
| title | date | content |
| First Post | 3/25/2009 | My First Post |
| Second Post | 3/26/2009 | My Second Post |
| Third Post | 3/27/2009 | My Third Post |
When I run jekyll
| title | date | content |
| First Post | 2009-03-25 | My First Post |
| Second Post | 2009-03-26 | My Second Post |
| Third Post | 2009-03-27 | My Third Post |
When I run jekyll build
Then the _site directory should exist
And I should see "Third Post Second Post First Post" in "_site/index.html"
@@ -43,10 +62,10 @@ Feature: Site data
Given I have a _posts directory
And I have an "index.html" page that contains "{% for post in site.categories.code %} {{ post.title }} {% endfor %}"
And I have the following posts:
| title | date | category | content |
| Awesome Hack | 3/26/2009 | code | puts 'Hello World' |
| Delicious Beer | 3/26/2009 | food | 1) Yuengling |
When I run jekyll
| title | date | category | content |
| Awesome Hack | 2009-03-26 | code | puts 'Hello World' |
| Delicious Beer | 2009-03-26 | food | 1) Yuengling |
When I run jekyll build
Then the _site directory should exist
And I should see "Awesome Hack" in "_site/index.html"
@@ -54,9 +73,9 @@ Feature: Site data
Given I have a _posts directory
And I have an "index.html" page that contains "{% for post in site.tags.beer %} {{ post.content }} {% endfor %}"
And I have the following posts:
| title | date | tag | content |
| Delicious Beer | 3/26/2009 | beer | 1) Yuengling |
When I run jekyll
| title | date | tag | content |
| Delicious Beer | 2009-03-26 | beer | 1) Yuengling |
When I run jekyll build
Then the _site directory should exist
And I should see "Yuengling" in "_site/index.html"
@@ -64,19 +83,25 @@ Feature: Site data
Given I have a _posts directory
And I have an "index.html" page that contains "{% for post in site.posts %}{{ post.title }}:{{ post.previous.title}},{{ post.next.title}} {% endfor %}"
And I have the following posts:
| title | date | content |
| first | 2/26/2009 | first |
| A | 3/26/2009 | A |
| B | 3/26/2009 | B |
| C | 3/26/2009 | C |
| last | 4/26/2009 | last |
When I run jekyll
| title | date | content |
| first | 2009-02-26 | first |
| A | 2009-03-26 | A |
| B | 2009-03-26 | B |
| C | 2009-03-26 | C |
| last | 2009-04-26 | last |
When I run jekyll build
Then the _site directory should exist
And I should see "last:C, C:B,last B:A,C A:first,B first:,A" in "_site/index.html"
Scenario: Use configuration date in site payload
Given I have an "index.html" page that contains "{{ site.url }}"
And I have a configuration file with "url" set to "http://mysite.com"
When I run jekyll
And I have a configuration file with "url" set to "http://example.com"
When I run jekyll build
Then the _site directory should exist
And I should see "http://mysite.com" in "_site/index.html"
And I should see "http://example.com" in "_site/index.html"
Scenario: Access Jekyll version via jekyll.version
Given I have an "index.html" page that contains "{{ jekyll.version }}"
When I run jekyll build
Then the _site directory should exist
And I should see "\d+\.\d+\.\d+" in "_site/index.html"

View File

@@ -1,41 +1,82 @@
def file_content_from_hash(input_hash)
matter_hash = input_hash.reject { |k, v| k == "content" }
matter = matter_hash.map { |k, v| "#{k}: #{v}\n" }.join.chomp
content = if input_hash['input'] && input_hash['filter']
"{{ #{input_hash['input']} | #{input_hash['filter']} }}"
else
input_hash['content']
end
<<-EOF
---
#{matter}
---
#{content}
EOF
end
Before do
FileUtils.mkdir(TEST_DIR)
FileUtils.mkdir_p(TEST_DIR) unless File.exist?(TEST_DIR)
Dir.chdir(TEST_DIR)
end
After do
Dir.chdir(TEST_DIR)
FileUtils.rm_rf(TEST_DIR)
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 do
MinitestWorld.new
end
Given /^I have a blank site in "(.*)"$/ do |path|
FileUtils.mkdir(path)
FileUtils.mkdir_p(path) unless File.exist?(path)
end
Given /^I do not have a "(.*)" directory$/ do |path|
File.directory?("#{TEST_DIR}/#{path}")
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'}
---
#{text}
EOF
f.close
end
end
Given /^I have an? "(.*)" file that contains "(.*)"$/ do |file, text|
File.open(file, 'w') do |f|
f.write(text)
f.close
end
end
Given /^I have a (.*) layout that contains "(.*)"$/ do |layout, text|
File.open(File.join('_layouts', layout + '.html'), 'w') do |f|
Given /^I have an? (.*) (layout|theme) that contains "(.*)"$/ do |name, type, text|
folder = if type == 'layout'
'_layouts'
else
'_theme'
end
destination_file = File.join(folder, name + '.html')
destination_path = File.dirname(destination_file)
unless File.exist?(destination_path)
FileUtils.mkdir_p(destination_path)
end
File.open(destination_file, 'w') do |f|
f.write(text)
end
end
Given /^I have an? "(.*)" file with content:$/ do |file, text|
File.open(file, 'w') do |f|
f.write(text)
f.close
end
end
@@ -43,38 +84,28 @@ Given /^I have an? (.*) directory$/ do |dir|
FileUtils.mkdir_p(dir)
end
Given /^I have the following posts?(?: (.*) "(.*)")?:$/ do |direction, folder, table|
table.hashes.each do |post|
date = Date.strptime(post['date'], '%m/%d/%Y').strftime('%Y-%m-%d')
title = post['title'].downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
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'] || 'markdown'
before, after = location(folder, direction)
if direction && direction == "in"
before = folder || '.'
elsif direction && direction == "under"
after = folder || '.'
end
path = File.join(before || '.', '_posts', after || '.', "#{date}-#{title}.#{post['type'] || 'textile'}")
matter_hash = {}
%w(title layout tag tags category categories published author).each do |key|
matter_hash[key] = post[key] if post[key]
end
matter = matter_hash.map { |k, v| "#{k}: #{v}\n" }.join.chomp
content = post['content']
if post['input'] && post['filter']
content = "{{ #{post['input']} | #{post['filter']} }}"
case status
when "draft"
dest_folder = '_drafts'
filename = "#{title}.#{ext}"
when "page"
dest_folder = ''
filename = "#{title}.#{ext}"
when "post"
parsed_date = Time.xmlschema(input_hash['date']) rescue Time.parse(input_hash['date'])
dest_folder = '_posts'
filename = "#{parsed_date.strftime('%Y-%m-%d')}-#{title}.#{ext}"
end
path = File.join(before, dest_folder, after, filename)
File.open(path, 'w') do |f|
f.write <<EOF
---
#{matter}
---
#{content}
EOF
f.close
f.write file_content_from_hash(input_hash)
end
end
end
@@ -82,7 +113,6 @@ end
Given /^I have a configuration file with "(.*)" set to "(.*)"$/ do |key, value|
File.open('_config.yml', 'w') do |f|
f.write("#{key}: #{value}\n")
f.close
end
end
@@ -91,7 +121,6 @@ Given /^I have a configuration file with:$/ do |table|
table.hashes.each do |row|
f.write("#{row["key"]}: #{row["value"]}\n")
end
f.close
end
end
@@ -101,17 +130,35 @@ Given /^I have a configuration file with "([^\"]*)" set to:$/ do |key, table|
table.hashes.each do |row|
f.write("- #{row["value"]}\n")
end
f.close
end
end
When /^I run jekyll$/ do
run_jekyll
Given /^I have fixture collections$/ do
FileUtils.cp_r File.join(JEKYLL_SOURCE_DIR, "test", "source", "_methods"), source_dir
end
When /^I debug jekyll$/ do
run_jekyll(:debug => true)
Given /^I wait (\d+) second(s?)$/ do |time, plural|
sleep(time.to_f)
end
##################
#
# Changing stuff
#
##################
When /^I run jekyll(.*)$/ do |args|
status = run_jekyll(args)
if args.include?("--verbose") || ENV['DEBUG']
puts jekyll_run_output
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|
@@ -120,26 +167,68 @@ When /^I change "(.*)" to contain "(.*)"$/ do |file, text|
end
end
Then /^the (.*) directory should exist$/ do |dir|
assert File.directory?(dir)
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
Then /^the (.*) directory should not exist$/ do |dir|
assert !File.directory?(dir), "The directory \"#{dir}\" exists"
end
Then /^I should see "(.*)" in "(.*)"$/ do |text, file|
assert_match Regexp.new(text), File.open(file).readlines.join
assert_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end
Then /^the "(.*)" file should exist$/ do |file|
assert File.file?(file)
Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file|
assert_equal text, file_contents(file).strip
end
Then /^I should not see "(.*)" in "(.*)"$/ do |text, file|
refute_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end
Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file|
assert_match Regexp.new(Regexp.escape(text)), file_contents(file)
end
Then /^the "(.*)" file should +exist$/ do |file|
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|
assert !File.exists?(file)
assert !File.exist?(file), "The file \"#{file}\" exists"
end
Then /^I should see today's time in "(.*)"$/ do |file|
assert_match Regexp.new(Regexp.escape(Time.now.to_s)), File.open(file).readlines.join
assert_match Regexp.new(seconds_agnostic_time(Time.now)), file_contents(file)
end
Then /^I should see today's date in "(.*)"$/ do |file|
assert_match Regexp.new(Date.today.to_s), File.open(file).readlines.join
assert_match Regexp.new(Date.today.to_s), file_contents(file)
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,19 +1,116 @@
require 'fileutils'
require 'rr'
require 'test/unit'
require 'posix-spawn'
require 'minitest/spec'
require 'time'
World do
include Test::Unit::Assertions
class MinitestWorld
extend Minitest::Assertions
attr_accessor :assertions
def initialize
self.assertions = 0
end
end
TEST_DIR = File.join('/', 'tmp', 'jekyll')
JEKYLL_PATH = File.join(ENV['PWD'], 'bin', 'jekyll')
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.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 run_jekyll(opts = {})
command = JEKYLL_PATH
command << " >> /dev/null 2>&1" if opts[:debug].nil?
system command
def source_dir(*files)
File.join(TEST_DIR, *files)
end
# work around "invalid option: --format" cucumber bug (see #296)
Test::Unit.run = true
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) 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)
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)
if title
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
else
Time.now.strftime("%s%9N") # nanoseconds since the Epoch
end
end
def location(folder, direction)
if folder
before = folder if direction == "in"
after = folder if direction == "under"
end
[before || '.', after || '.']
end
def file_contents(path)
File.open(path) do |file|
file.readlines.join # avoid differences with \n and \r\n line endings
end
end
def seconds_agnostic_datetime(datetime = Time.now)
date, time, zone = datetime.to_s.split(" ")
time = seconds_agnostic_time(time)
[
Regexp.escape(date),
"#{time}:\\d{2}",
Regexp.escape(zone)
].join("\\ ")
end
def seconds_agnostic_time(time)
if time.is_a? Time
time = time.strftime("%H:%M:%S")
end
hour, minutes, _ = time.split(":")
"#{hour}:#{minutes}"
end

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

@@ -1,142 +1,39 @@
# 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 |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.rubygems_version = '1.3.5'
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 = '>= 2.0.0'
s.name = 'jekyll'
s.version = '0.10.0'
s.date = '2010-12-16'
s.rubyforge_project = 'jekyll'
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 = 'http://github.com/mojombo/jekyll'
s.authors = ['Tom Preston-Werner']
s.email = 'tom@mojombo.com'
s.homepage = 'https://github.com/jekyll/jekyll'
s.require_paths = %w[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.executables = ["jekyll"]
s.default_executable = 'jekyll'
s.rdoc_options = ['--charset=UTF-8']
s.extra_rdoc_files = %w[README.markdown LICENSE]
s.rdoc_options = ["--charset=UTF-8"]
s.extra_rdoc_files = %w[README.textile LICENSE]
s.add_runtime_dependency('liquid', ">= 1.9.0")
s.add_runtime_dependency('classifier', ">= 1.3.1")
s.add_runtime_dependency('directory_watcher', ">= 1.1.1")
s.add_runtime_dependency('maruku', ">= 0.5.9")
s.add_runtime_dependency('kramdown', ">= 0.13.2")
s.add_runtime_dependency('albino', ">= 1.3.2")
s.add_development_dependency('redgreen', ">= 1.2.2")
s.add_development_dependency('shoulda', ">= 2.11.3")
s.add_development_dependency('rr', ">= 1.0.2")
s.add_development_dependency('cucumber', ">= 0.10.0")
s.add_development_dependency('RedCloth', ">= 4.2.1")
s.add_development_dependency('rdiscount', ">= 1.6.5")
# = MANIFEST =
s.files = %w[
History.txt
LICENSE
README.textile
Rakefile
bin/jekyll
cucumber.yml
features/create_sites.feature
features/embed_filters.feature
features/markdown.feature
features/pagination.feature
features/permalinks.feature
features/post_data.feature
features/site_configuration.feature
features/site_data.feature
features/step_definitions/jekyll_steps.rb
features/support/env.rb
jekyll.gemspec
lib/jekyll.rb
lib/jekyll/albino.rb
lib/jekyll/converter.rb
lib/jekyll/converters/identity.rb
lib/jekyll/converters/markdown.rb
lib/jekyll/converters/textile.rb
lib/jekyll/convertible.rb
lib/jekyll/core_ext.rb
lib/jekyll/errors.rb
lib/jekyll/filters.rb
lib/jekyll/generator.rb
lib/jekyll/generators/pagination.rb
lib/jekyll/layout.rb
lib/jekyll/migrators/csv.rb
lib/jekyll/migrators/drupal.rb
lib/jekyll/migrators/marley.rb
lib/jekyll/migrators/mephisto.rb
lib/jekyll/migrators/mt.rb
lib/jekyll/migrators/textpattern.rb
lib/jekyll/migrators/typo.rb
lib/jekyll/migrators/wordpress.com.rb
lib/jekyll/migrators/wordpress.rb
lib/jekyll/page.rb
lib/jekyll/plugin.rb
lib/jekyll/post.rb
lib/jekyll/site.rb
lib/jekyll/static_file.rb
lib/jekyll/tags/highlight.rb
lib/jekyll/tags/include.rb
test/helper.rb
test/source/.htaccess
test/source/_includes/sig.markdown
test/source/_layouts/default.html
test/source/_layouts/simple.html
test/source/_posts/2008-02-02-not-published.textile
test/source/_posts/2008-02-02-published.textile
test/source/_posts/2008-10-18-foo-bar.textile
test/source/_posts/2008-11-21-complex.textile
test/source/_posts/2008-12-03-permalinked-post.textile
test/source/_posts/2008-12-13-include.markdown
test/source/_posts/2009-01-27-array-categories.textile
test/source/_posts/2009-01-27-categories.textile
test/source/_posts/2009-01-27-category.textile
test/source/_posts/2009-01-27-empty-categories.textile
test/source/_posts/2009-01-27-empty-category.textile
test/source/_posts/2009-03-12-hash-#1.markdown
test/source/_posts/2009-05-18-empty-tag.textile
test/source/_posts/2009-05-18-empty-tags.textile
test/source/_posts/2009-05-18-tag.textile
test/source/_posts/2009-05-18-tags.textile
test/source/_posts/2009-06-22-empty-yaml.textile
test/source/_posts/2009-06-22-no-yaml.textile
test/source/_posts/2010-01-08-triple-dash.markdown
test/source/_posts/2010-01-09-date-override.textile
test/source/_posts/2010-01-09-time-override.textile
test/source/_posts/2010-01-09-timezone-override.textile
test/source/_posts/2010-01-16-override-data.textile
test/source/about.html
test/source/category/_posts/2008-9-23-categories.textile
test/source/contacts.html
test/source/css/screen.css
test/source/deal.with.dots.html
test/source/foo/_posts/bar/2008-12-12-topical-post.textile
test/source/index.html
test/source/sitemap.xml
test/source/win/_posts/2009-05-24-yaml-linebreak.markdown
test/source/z_category/_posts/2008-9-23-categories.textile
test/suite.rb
test/test_configuration.rb
test/test_core_ext.rb
test/test_filters.rb
test/test_generated_site.rb
test/test_kramdown.rb
test/test_page.rb
test/test_pager.rb
test/test_post.rb
test/test_rdiscount.rb
test/test_site.rb
test/test_tags.rb
]
# = MANIFEST =
s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
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_runtime_dependency('jekyll-watch', '~> 1.1')
end

View File

@@ -18,109 +18,161 @@ require 'rubygems'
# stdlib
require 'fileutils'
require 'time'
require 'yaml'
require 'English'
require 'pathname'
require 'logger'
require 'set'
# 3rd party
require 'safe_yaml/load'
require 'liquid'
require 'maruku'
require 'albino'
require 'kramdown'
require 'colorator'
# internal requires
require 'jekyll/core_ext'
require 'jekyll/site'
require 'jekyll/convertible'
require 'jekyll/layout'
require 'jekyll/page'
require 'jekyll/post'
require 'jekyll/filters'
require 'jekyll/static_file'
require 'jekyll/errors'
SafeYAML::OPTIONS[:suppress_warnings] = true
# extensions
require 'jekyll/plugin'
require 'jekyll/converter'
require 'jekyll/generator'
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.new
unless override.delete('skip_config_files')
config = config.read_config_files(config.config_files(override))
end
# Merge DEFAULTS < _config.yml < override
config = Configuration.from 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)
questionable_path.insert(0, '/') if questionable_path.start_with?('~')
clean_path = File.expand_path(questionable_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'
require_all 'jekyll/converters/markdown'
require_all 'jekyll/generators'
require_all 'jekyll/tags'
module Jekyll
VERSION = '0.10.0'
# Default options. Overriden by values in _config.yml or command-line opts.
# (Strings rather symbols used for compatability with YAML).
DEFAULTS = {
'safe' => false,
'auto' => false,
'server' => false,
'server_port' => 4000,
'source' => Dir.pwd,
'destination' => File.join(Dir.pwd, '_site'),
'plugins' => File.join(Dir.pwd, '_plugins'),
'future' => true,
'lsi' => false,
'pygments' => false,
'markdown' => 'maruku',
'permalink' => 'date',
'maruku' => {
'use_tex' => false,
'use_divs' => false,
'png_engine' => 'blahtex',
'png_dir' => 'images/latex',
'png_url' => '/images/latex'
},
'rdiscount' => {
'extensions' => []
},
'kramdown' => {
'auto_ids' => true,
'footnote_nr' => 1,
'entity_output' => 'as_char',
'toc_levels' => '1..6',
'use_coderay' => false,
'coderay' => {
'coderay_wrap' => 'div',
'coderay_line_numbers' => 'inline',
'coderay_line_number_start' => 1,
'coderay_tab_width' => 4,
'coderay_bold_every' => 10,
'coderay_css' => 'style'
}
}
}
# 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::DEFAULTS for a
# list of option names and their defaults.
#
# Returns the final configuration Hash.
def self.configuration(override)
# _config.yml may override default source location, but until
# then, we need to know where to look for _config.yml
source = override['source'] || Jekyll::DEFAULTS['source']
# Get configuration from <source>/_config.yml
config_file = File.join(source, '_config.yml')
begin
config = YAML.load_file(config_file)
raise "Invalid configuration - #{config_file}" if !config.is_a?(Hash)
$stdout.puts "Configuration from #{config_file}"
rescue => err
$stderr.puts "WARNING: Could not read configuration. " +
"Using defaults (and options)."
$stderr.puts "\t" + err.to_s
config = {}
end
# Merge DEFAULTS < _config.yml < override
Jekyll::DEFAULTS.deep_merge(config).deep_merge(override)
end
end
require 'jekyll-sass-converter'

105
lib/jekyll/cleaner.rb Normal file
View File

@@ -0,0 +1,105 @@
require 'set'
module Jekyll
# 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
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
files
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 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 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(site.in_dest_dir(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
Regexp.union(site.keep_files)
end
end
end

207
lib/jekyll/collection.rb Normal file
View File

@@ -0,0 +1,207 @@
module Jekyll
class Collection
attr_reader :site, :label, :metadata
attr_writer :docs
# Create a new Collection.
#
# site - the site to which this collection belongs.
# label - the name of the collection
#
# Returns nothing.
def initialize(site, label)
@site = site
@label = sanitize_label(label)
@metadata = extract_metadata
end
# Fetch the Documents in this collection.
# Defaults to an empty array if no documents have been read in.
#
# Returns an array of Jekyll::Document objects.
def docs
@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|
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
# All the entries in this collection.
#
# Returns an Array of file paths to the documents in this collection
# relative to the collection's directory
def entries
return Array.new unless exists?
@entries ||=
Dir.glob(collection_dir("**", "*.*")).map do |entry|
entry["#{collection_dir}/"] = ''; entry
end
end
# Filtered version of the entries in this collection.
# See `Jekyll::EntryFilter#filter` for more information.
#
# Returns a list of filtered entry paths.
def filtered_entries
return Array.new unless exists?
@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.
#
# Returns a String containing the directory name where the collection
# is stored on the filesystem.
def relative_directory
@relative_directory ||= "_#{label}"
end
# 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
@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.
# The directory must exist on the filesystem and must not be a symlink
# if in safe mode.
#
# Returns false if the directory doesn't exist or if it's a symlink
# and we're in safe mode.
def exists?
File.directory?(directory) && !(File.symlink?(directory) && site.safe)
end
# The entry filter for this collection.
# Creates an instance of Jekyll::EntryFilter.
#
# Returns the instance of Jekyll::EntryFilter for this collection.
def entry_filter
@entry_filter ||= Jekyll::EntryFilter.new(site, relative_directory)
end
# An inspect string.
#
# Returns the inspect string
def inspect
"#<Jekyll::Collection @label=#{label} docs=#{docs}>"
end
# Produce a sanitized label name
# Label names may not contain anything but alphanumeric characters,
# underscores, and hyphens.
#
# label - the possibly-unsafe label
#
# Returns a sanitized version of the label.
def sanitize_label(label)
label.gsub(/[^a-z0-9_\-\.]/i, '')
end
# Produce a representation of this Collection for use in Liquid.
# Exposes two attributes:
# - label
# - docs
#
# Returns a representation of this collection for use in Liquid.
def to_liquid
metadata.merge({
"label" => label,
"docs" => docs,
"files" => files,
"directory" => directory,
"output" => write?,
"relative_directory" => relative_directory
})
end
# Whether the collection's documents ought to be written as individual
# files in the output.
#
# Returns true if the 'write' metadata is true, false otherwise.
def write?
!!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') do
Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
end
end
# Extract options for this collection from the site configuration.
#
# Returns the metadata for this collection
def extract_metadata
if site.config['collections'].is_a?(Hash)
site.config['collections'][label] || Hash.new
else
{}
end
end
end
end

69
lib/jekyll/command.rb Normal file
View File

@@ -0,0 +1,69 @@
module Jekyll
class Command
class << self
# A list of subclasses of Jekyll::Command
def subclasses
@subclasses ||= []
end
# Keep a list of subclasses of Jekyll::Command every time it's inherited
# Called automatically.
#
# base - the subclass
#
# Returns nothing
def inherited(base)
subclasses << base
super(base)
end
# Run Site#process and catch errors
#
# site - the Jekyll::Site object
#
# Returns nothing
def process_site(site)
site.process
rescue Jekyll::Errors::FatalException => e
Jekyll.logger.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:"
Jekyll.logger.error "", "------------------------------------"
Jekyll.logger.error "", e.message
exit(1)
end
# Create a full Jekyll configuration with the options passed in as overrides
#
# options - the configuration overrides
#
# Returns a full Jekyll configuration
def configuration_from_options(options)
Jekyll.configuration(options)
end
# Add common options to a command for building configuration
#
# c - the Jekyll::Command to add these options to
#
# 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', '--[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
end
end

View File

@@ -0,0 +1,79 @@
module Jekyll
module Commands
class Build < Command
class << self
# Create the Mercenary command for the Jekyll CLI for this Command
def init_with_program(prog)
prog.command(:build) do |c|
c.syntax 'build [options]'
c.description 'Build your site'
c.alias :b
add_build_options(c)
c.action do |args, options|
options["serving"] = false
Jekyll::Commands::Build.process(options)
end
end
end
# Build your jekyll site
# Continuously watch if `watch` is set to true in the config.
def process(options)
# Adjust verbosity quickly
Jekyll.logger.adjust_verbosity(options)
options = configuration_from_options(options)
site = Jekyll::Site.new(options)
if options.fetch('skip_initial_build', false)
Jekyll.logger.warn "Build Warning:", "Skipping the initial build. This may result in an out-of-date site."
else
build(site, options)
end
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 - 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 in #{(Time.now - t).round(3)} seconds."
end
# Private: Watch for file changes and rebuild the site.
#
# site - A Jekyll::Site instance
# options - A Hash of options passed to the command
#
# Returns nothing.
def watch(site, options)
External.require_with_graceful_fail 'jekyll-watch'
Jekyll::Watcher.watch(options)
end
end # end of class << self
end
end
end

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

@@ -0,0 +1,96 @@
module Jekyll
module Commands
class Doctor < Command
class << self
def init_with_program(prog)
prog.command(:doctor) do |c|
c.syntax 'doctor'
c.description 'Search site and print specific deprecation warnings'
c.alias(:hyde)
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.action do |args, options|
Jekyll::Commands::Doctor.process(options)
end
end
end
def process(options)
site = Jekyll::Site.new(configuration_from_options(options))
site.read
if healthy?(site)
Jekyll.logger.info "Your test results", "are in. Everything looks fine."
else
abort
end
end
def healthy?(site)
[
fsnotify_buggy?(site),
!deprecated_relative_permalinks(site),
!conflicting_urls(site)
].all?
end
def deprecated_relative_permalinks(site)
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
end
def conflicting_urls(site)
conflicting_urls = false
urls = {}
urls = collect_urls(urls, site.pages, site.dest)
urls = collect_urls(urls, site.posts.docs, site.dest)
urls.each do |url, paths|
if paths.size > 1
conflicting_urls = true
Jekyll.logger.warn "Conflict:", "The URL '#{url}' is the destination" +
" for the following pages: #{paths.join(", ")}"
end
end
conflicting_urls
end
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)
if urls[dest]
urls[dest] << thing.path
else
urls[dest] = [thing.path]
end
end
urls
end
end
end
end
end

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

@@ -0,0 +1,82 @@
require 'erb'
module Jekyll
module Commands
class New < Command
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.action do |args, options|
Jekyll::Commands::New.process(args, options)
end
end
end
def 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)
end
end
Jekyll.logger.info "New jekyll site installed in #{new_blog_path}."
end
def create_blank_site(path)
Dir.chdir(path) do
FileUtils.mkdir(%w(_layouts _posts _drafts))
FileUtils.touch("index.html")
end
end
def scaffold_post_content
ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result
end
# 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
private
def preserve_source_location?(path, options)
!options["force"] && !Dir["#{path}/**/*"].empty?
end
def create_sample_files(path)
FileUtils.cp_r site_template + '/.', path
FileUtils.rm File.expand_path(scaffold_path, path)
end
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
end

View File

@@ -0,0 +1,151 @@
# -*- encoding: utf-8 -*-
module Jekyll
module Commands
class Serve < Command
class << self
def init_with_program(prog)
prog.command(:serve) do |c|
c.syntax 'serve [options]'
c.description 'Serve your site locally'
c.alias :server
c.alias :s
add_build_options(c)
c.option 'detach', '-B', '--detach', 'Run the server in the background (detach)'
c.option 'port', '-P', '--port [PORT]', 'Port to listen on'
c.option 'host', '-H', '--host [HOST]', 'Host to bind to'
c.option 'baseurl', '-b', '--baseurl [URL]', 'Base URL'
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["watch"] = true unless options.key?("watch")
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
end
end
# Boot up a WEBrick server which points to the compiled site's root.
def process(options)
options = configuration_from_options(options)
destination = options['destination']
setup(destination)
s = WEBrick::HTTPServer.new(webrick_options(options))
s.unmount("")
s.mount(
options['baseurl'],
custom_file_handler,
destination,
file_handler_options
)
Jekyll.logger.info "Server address:", server_address(s, options)
if options['detach'] # detach the server
pid = Process.fork { s.start }
Process.detach(pid)
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 }
t.join
end
end
def setup(destination)
require 'webrick'
FileUtils.mkdir_p(destination)
# monkey patch WEBrick using custom 404 page (/404.html)
if File.exist?(File.join(destination, '404.html'))
WEBrick::HTTPResponse.class_eval do
def create_error_page
@header['content-type'] = "text/html; charset=UTF-8"
@body = IO.read(File.join(@config[:DocumentRoot], '404.html'))
end
end
end
end
def webrick_options(config)
opts = {
:BindAddress => config['host'],
:DirectoryIndex => %w(index.html index.htm index.cgi index.rhtml index.xml),
:DocumentRoot => config['destination'],
:DoNotReverseLookup => true,
:MimeTypes => mime_types,
:Port => config['port'],
:StartCallback => start_callback(config['detach'])
}
if config['verbose']
opts.merge!({
:Logger => WEBrick::Log.new($stdout, WEBrick::Log::DEBUG)
})
else
opts.merge!({
:AccessLog => [],
:Logger => WEBrick::Log.new([], WEBrick::Log::WARN)
})
end
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." }
end
end
def mime_types
mime_types_file = File.expand_path('../mime.types', File.dirname(__FILE__))
WEBrick::HTTPUtils::load_mime_types(mime_types_file)
end
def server_address(server, options)
baseurl = "#{options['baseurl']}/" if options['baseurl']
[
"http://",
server.config[:BindAddress],
":",
server.config[:Port],
baseurl || ""
].map(&:to_s).join("")
end
# recreate NondisclosureName under utf-8 circumstance
def file_handler_options
WEBrick::Config::FileHandler.merge({
:FancyIndexing => true,
:NondisclosureName => ['.ht*','~*']
})
end
end
end
end
end

344
lib/jekyll/configuration.rb Normal file
View File

@@ -0,0 +1,344 @@
# encoding: UTF-8
module Jekyll
class Configuration < Hash
# Default options. Overridden by values in _config.yml.
# Strings rather than symbols are used for compatibility with YAML.
DEFAULTS = Configuration[{
# Where things are
'source' => Dir.pwd,
'destination' => File.join(Dir.pwd, '_site'),
'plugins_dir' => '_plugins',
'layouts_dir' => '_layouts',
'data_dir' => '_data',
'includes_dir' => '_includes',
'collections' => {},
# Handling Reading
'safe' => false,
'include' => ['.htaccess'],
'exclude' => [],
'keep_files' => ['.git','.svn'],
'encoding' => 'utf-8',
'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md',
# 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,
# Serving
'detach' => false, # default to not detaching the server
'port' => '4000',
'host' => '127.0.0.1',
'baseurl' => '',
# Output Configuration
'permalink' => 'date',
'paginate_path' => '/page:num',
'timezone' => nil, # use the local timezone
'quiet' => false,
'verbose' => false,
'defaults' => [],
'rdiscount' => {
'extensions' => []
},
'redcarpet' => {
'extensions' => []
},
'kramdown' => {
'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',
'coderay_line_numbers' => 'inline',
'coderay_line_number_start' => 1,
'coderay_tab_width' => 4,
'coderay_bold_every' => 10,
'coderay_css' => 'style'
}
}
}].freeze
class << self
# Static: Produce a Configuration ready for use in a Site.
# It takes the input, fills in the defaults where values do not
# exist, and patches common issues including migrating options for
# backwards compatiblity. Except where a key or value is being fixed,
# the user configuration will override the defaults.
#
# user_config - a Hash or Configuration of overrides.
#
# Returns a Configuration filled with defaults and fixed for common
# problems and backwards-compatibility.
def from(user_config)
Utils.deep_merge_hashes(DEFAULTS, Configuration[user_config].stringify_keys).
fix_common_issues.backwards_compatibilize.add_default_collections
end
end
# Public: Turn all keys into string
#
# Return a copy of the hash where all its keys are strings
def stringify_keys
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)
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/i
Jekyll::External.require_with_graceful_fail('toml') unless defined?(TOML)
TOML.load_file(filename)
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."
end
end
# Public: Generate list of configuration files from the override
#
# override - the command-line options hash
#
# 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.exist?(Jekyll.sanitized_path(source(override), "_config.#{ext}"))
end
config_files = Jekyll.sanitized_path(source(override), "_config.#{default}")
@default_config_file = true
end
config_files = [config_files] unless config_files.is_a? Array
config_files
end
# Public: Read configuration and return merged Hash
#
# file - the path to the YAML file to be read in
#
# Returns this configuration, overridden by the values in the file
def read_config_file(file)
next_config = safe_load_file(file)
raise ArgumentError.new("Configuration file: (INVALID) #{file}".yellow) unless next_config.is_a?(Hash)
Jekyll.logger.info "Configuration file:", file
next_config
rescue SystemCallError
if @default_config_file
Jekyll.logger.warn "Configuration file:", "none"
{}
else
Jekyll.logger.error "Fatal:", "The configuration file '#{file}' could not be found."
raise LoadError, "The Configuration file '#{file}' could not be found."
end
end
# Public: Read in a list of configuration files and merge with this hash
#
# files - the list of configuration file paths
#
# Returns the full configuration, with the defaults overridden by the values in the
# configuration files
def read_config_files(files)
configuration = clone
begin
files.each do |config_file|
next if config_file.nil? or config_file.empty?
new_config = read_config_file(config_file)
configuration = Utils.deep_merge_hashes(configuration, new_config)
end
rescue ArgumentError => err
Jekyll.logger.warn "WARNING:", "Error reading configuration. " +
"Using defaults (and options)."
$stderr.puts "#{err}"
end
configuration.fix_common_issues.backwards_compatibilize.add_default_collections
end
# Public: Split a CSV string into an array containing its values
#
# csv - the string of comma-separated values
#
# Returns an array of the values contained in the CSV
def csv_to_array(csv)
csv.split(",").map(&:strip)
end
# Public: Ensure the proper options are set in the configuration to allow for
# backwards-compatibility with Jekyll pre-1.0
#
# Returns the backwards-compatible configuration
def backwards_compatibilize
config = clone
# Provide backwards-compatibility
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"+
" --[no-]watch/-w command-line option instead."
config.delete('auto')
config.delete('watch')
end
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
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.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."
config['highlighter'] = 'pygments' if config['pygments']
config.delete('pygments')
end
%w[include exclude].each do |option|
if config.fetch(option, []).is_a?(String)
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) if config[option]
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.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.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
end
config
end
def add_default_collections
config = clone
# It defaults to `{}`, so this is only if someone sets it to null manually.
return config if config['collections'].nil?
# Ensure we have a hash.
if config['collections'].is_a?(Array)
config['collections'] = Hash[config['collections'].map{|c| [c, {}]}]
end
config['collections'] = Utils.deep_merge_hashes(
{ 'posts' => {} }, config['collections']
).tap do |collections|
collections['posts']['output'] = true
if config['permalink']
collections['posts']['permalink'] ||= style_to_permalink(config['permalink'])
end
end
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

@@ -1,28 +1,27 @@
module Jekyll
class Converter < Plugin
# Public: Get or set the pygments prefix. When an argument is specified,
# Public: Get or set the highlighter prefix. When an argument is specified,
# the prefix will be set. If no argument is specified, the current prefix
# will be returned.
#
# pygments_prefix - The String prefix (default: nil).
# highlighter_prefix - The String prefix (default: nil).
#
# Returns the String prefix.
def self.pygments_prefix(pygments_prefix = nil)
@pygments_prefix = pygments_prefix if pygments_prefix
@pygments_prefix
def self.highlighter_prefix(highlighter_prefix = nil)
@highlighter_prefix = highlighter_prefix if highlighter_prefix
@highlighter_prefix
end
# Public: Get or set the pygments suffix. When an argument is specified,
# Public: Get or set the highlighter suffix. When an argument is specified,
# the suffix will be set. If no argument is specified, the current suffix
# will be returned.
#
# pygments_suffix - The String suffix (default: nil).
# highlighter_suffix - The String suffix (default: nil).
#
# Returns the String suffix.
def self.pygments_suffix(pygments_suffix = nil)
@pygments_suffix = pygments_suffix if pygments_suffix
@pygments_suffix
def self.highlighter_suffix(highlighter_suffix = nil)
@highlighter_suffix = highlighter_suffix if highlighter_suffix
@highlighter_suffix
end
# Initialize the converter.
@@ -32,19 +31,18 @@ module Jekyll
@config = config
end
# Get the pygments prefix.
# Get the highlighter prefix.
#
# Returns the String prefix.
def pygments_prefix
self.class.pygments_prefix
def highlighter_prefix
self.class.highlighter_prefix
end
# Get the pygments suffix.
# Get the highlighter suffix.
#
# Returns the String suffix.
def pygments_suffix
self.class.pygments_suffix
def highlighter_suffix
self.class.highlighter_suffix
end
end
end
end

View File

@@ -1,22 +1,21 @@
module Jekyll
module Converters
class Identity < Converter
safe true
class IdentityConverter < Converter
safe true
priority :lowest
priority :lowest
def matches(ext)
true
end
def matches(ext)
true
def output_ext(ext)
ext
end
def convert(content)
content
end
end
def output_ext(ext)
ext
end
def convert(content)
content
end
end
end

View File

@@ -1,113 +1,77 @@
module Jekyll
module Converters
class Markdown < Converter
safe true
class MarkdownConverter < Converter
safe true
highlighter_prefix "\n"
highlighter_suffix "\n"
pygments_prefix "\n"
pygments_suffix "\n"
def setup
return if @setup
# Set the Markdown interpreter (and Maruku self.config, if necessary)
case @config['markdown']
when 'kramdown'
begin
require 'kramdown'
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")
end
when 'rdiscount'
begin
require 'rdiscount'
# Load rdiscount extensions
@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
when 'maruku'
begin
require 'maruku'
if @config['maruku']['use_divs']
require 'maruku/ext/div'
STDERR.puts 'Maruku: Using extended syntax for div elements.'
end
if @config['maruku']['use_tex']
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
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
else
STDERR.puts "Invalid Markdown processor: #{@config['markdown']}"
STDERR.puts " Valid options are [ maruku | rdiscount | kramdown ]"
raise FatalException.new("Invalid Markdown process: #{@config['markdown']}")
end
@setup = true
end
def matches(ext)
ext =~ /(markdown|mkdn?|md)/i
end
def output_ext(ext)
".html"
end
def convert(content)
setup
case @config['markdown']
when 'kramdown'
# Check for use of coderay
if @config['kramdown']['use_coderay']
Kramdown::Document.new(content, {
:auto_ids => @config['kramdown']['auto_ids'],
:footnote_nr => @config['kramdown']['footnote_nr'],
:entity_output => @config['kramdown']['entity_output'],
:toc_levels => @config['kramdown']['toc_levels'],
:coderay_wrap => @config['kramdown']['coderay']['coderay_wrap'],
:coderay_line_numbers => @config['kramdown']['coderay']['coderay_line_numbers'],
:coderay_line_number_start => @config['kramdown']['coderay']['coderay_line_number_start'],
:coderay_tab_width => @config['kramdown']['coderay']['coderay_tab_width'],
:coderay_bold_every => @config['kramdown']['coderay']['coderay_bold_every'],
:coderay_css => @config['kramdown']['coderay']['coderay_css']
}).to_html
def setup
return if @setup
@parser =
case @config['markdown'].downcase
when 'redcarpet' then RedcarpetParser.new(@config)
when 'kramdown' then KramdownParser.new(@config)
when 'rdiscount' then RDiscountParser.new(@config)
else
# not using coderay
Kramdown::Document.new(content, {
:auto_ids => @config['kramdown']['auto_ids'],
:footnote_nr => @config['kramdown']['footnote_nr'],
:entity_output => @config['kramdown']['entity_output'],
:toc_levels => @config['kramdown']['toc_levels']
}).to_html
# 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 [ #{valid_processors.join(" | ")} ]"
raise Errors::FatalException, "Invalid Markdown Processor: #{@config['markdown']}"
end
end
when 'rdiscount'
RDiscount.new(content, *@rdiscount_extensions).to_html
when 'maruku'
Maruku.new(content).to_html
@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)
extname_list.include? ext.downcase
end
def output_ext(ext)
".html"
end
def convert(content)
setup
@parser.convert(content)
end
private
# Private: Determine whether a class name is an allowed custom markdown
# class name
#
# parser_name - the name of the parser class
#
# Returns true if the parser name contains only alphanumeric characters
# and is defined within Jekyll::Converters::Markdown
def allowed_custom_class?(parser_name)
parser_name !~ /[^A-Za-z0-9]/ && self.class.constants.include?(parser_name.to_sym)
end
end
end
end

View File

@@ -0,0 +1,34 @@
module Jekyll
module Converters
class Markdown
class KramdownParser
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 Errors::FatalException.new("Missing dependency: kramdown")
end
def convert(content)
# Check for use of 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'].key?(key)
end
end
Kramdown::Document.new(content, Utils.symbolize_hash_keys(@config['kramdown'])).to_html
end
end
end
end
end

View File

@@ -0,0 +1,33 @@
module Jekyll
module Converters
class Markdown
class RDiscountParser
def initialize(config)
Jekyll::External.require_with_graceful_fail "rdiscount"
@config = config
@rdiscount_extensions = @config['rdiscount']['extensions'].map { |e| e.to_sym }
end
def convert(content)
rd = RDiscount.new(content, *@rdiscount_extensions)
html = rd.to_html
if @config['rdiscount']['toc_token']
html = replace_generated_toc(rd, html, @config['rdiscount']['toc_token'])
end
html
end
private
def replace_generated_toc(rd, html, toc_token)
if rd.generate_toc && html.include?(toc_token)
utf8_toc = rd.toc_content
utf8_toc.force_encoding('utf-8') if utf8_toc.respond_to?(:force_encoding)
html.gsub(toc_token, utf8_toc)
else
html
end
end
end
end
end
end

View File

@@ -0,0 +1,103 @@
module Jekyll
module Converters
class Markdown
class RedcarpetParser
module CommonMethods
def add_code_tags(code, lang)
code = code.to_s
code = code.sub(/<pre>/, "<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">")
code = code.sub(/<\/pre>/,"</code></pre>")
end
end
module WithPygments
include CommonMethods
def block_code(code, lang)
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' }),
lang
)
end
end
module WithoutHighlighting
require 'cgi'
include CommonMethods
def code_wrap(code)
"<figure class=\"highlight\"><pre>#{CGI::escapeHTML(code)}</pre></figure>"
end
def block_code(code, lang)
lang = lang && lang.split.first || "text"
add_code_tags(code_wrap(code), lang)
end
end
module WithRouge
def block_code(code, lang)
code = "<pre>#{super}</pre>"
output = "<div class=\"highlight\">"
output << add_code_tags(code, lang)
output << "</div>"
end
protected
def rouge_formatter(lexer)
Rouge::Formatters::HTML.new(:wrap => false)
end
end
def initialize(config)
External.require_with_graceful_fail("redcarpet")
@config = config
@redcarpet_extensions = {}
@config['redcarpet']['extensions'].each { |e| @redcarpet_extensions[e.to_sym] = true }
@renderer ||= class_with_proper_highlighter(@config['highlighter'])
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
])
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)
@redcarpet_extensions[:fenced_code_blocks] = !@redcarpet_extensions[:no_fenced_code_blocks]
@renderer.send :include, Redcarpet::Render::SmartyPants if @redcarpet_extensions[:smart]
markdown = Redcarpet::Markdown.new(@renderer.new(@redcarpet_extensions), @redcarpet_extensions)
markdown.render(content)
end
end
end
end
end

View File

@@ -1,33 +0,0 @@
module Jekyll
class TextileConverter < Converter
safe true
pygments_prefix '<notextile>'
pygments_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)
ext =~ /textile/i
end
def output_ext(ext)
".html"
end
def convert(content)
setup
RedCloth.new(content).to_html
end
end
end

View File

@@ -1,3 +1,7 @@
# encoding: UTF-8
require 'set'
# Convertible provides methods for converting a pagelike item
# from a certain type of markup into actual content
#
@@ -8,40 +12,71 @@
# self.data=
# self.ext=
# self.output=
# self.name
# self.path
# self.type -> :page, :post or :draft
module Jekyll
module Convertible
# Returns the contents as a String.
def to_s
self.content || ''
content || ''
end
# Whether the file is published or not, as indicated in YAML front-matter
def published?
!(data.key?('published') && data['published'] == false)
end
# Returns merged option hash for File.read of self.site (if exists)
# and a given param
def merged_file_read_opts(opts)
(site ? site.file_read_opts : {}).merge(opts)
end
# Read the YAML frontmatter.
#
# base - The String path to the dir containing the file.
# name - The String filename of the file.
# opts - optional parameter to File.read, default at site configs
#
# Returns nothing.
def read_yaml(base, name)
self.content = File.read(File.join(base, name))
if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
self.content = $POSTMATCH
begin
self.data = YAML.load($1)
rescue => e
puts "YAML Exception: #{e.message}"
def read_yaml(base, name, opts = {})
begin
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
self.data = SafeYAML.load($1)
end
rescue SyntaxError => e
Jekyll.logger.warn "YAML Exception reading #{File.join(base, name)}: #{e.message}"
rescue Exception => e
Jekyll.logger.warn "Error reading file #{File.join(base, name)}: #{e.message}"
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(self.content)
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.
@@ -49,15 +84,153 @@ module Jekyll
# Returns the String extension for the output file.
# e.g. ".html" for an HTML output file.
def output_ext
converter.output_ext(self.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 ||= self.site.converters.find { |c| c.matches(self.ext) }
def converters
@converters ||= site.converters.select { |c| c.matches(ext) }.sort
end
# Render Liquid in the content
#
# content - the raw Liquid content to render
# payload - the payload for Liquid
# info - the info for Liquid
#
# Returns the converted content
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
rescue Exception => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{path || self.path}"
raise e
end
# Convert this Convertible's data to a Hash suitable for use by Liquid.
#
# Returns the Hash representation of this Convertible.
def to_liquid(attrs = nil)
further_data = Hash[(attrs || self.class::ATTRIBUTES_FOR_LIQUID).map { |attribute|
[attribute, send(attribute)]
}]
defaults = site.frontmatter_defaults.all(relative_path, type)
Utils.deep_merge_hashes defaults, Utils.deep_merge_hashes(data, further_data)
end
# The type of a document,
# i.e., its classname downcase'd and to_sym'd.
#
# Returns the type of self.
def type
if is_a?(Page)
:pages
end
end
# returns the owner symbol for hook triggering
def hook_owner
if is_a?(Page)
:pages
end
end
# Determine whether the document is an asset file.
# Asset files include CoffeeScript files and Sass/SCSS files.
#
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
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.
#
# Always returns true.
def render_with_liquid?
true
end
# Determine whether the file should be placed into layouts.
#
# 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
# payload - the payload for Liquid
# info - the info for Liquid
#
# Returns nothing
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_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)
layout = nil # avoid recursive chain
else
used << layout
end
end
end
end
# Add any necessary layouts to this convertible document.
@@ -67,35 +240,55 @@ module Jekyll
#
# Returns nothing.
def do_layout(payload, layouts)
info = { :filters => [Jekyll::Filters], :registers => { :site => self.site } }
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["pygments_prefix"] = converter.pygments_prefix
payload["pygments_suffix"] = converter.pygments_suffix
payload["highlighter_prefix"] = converters.first.highlighter_prefix
payload["highlighter_suffix"] = converters.first.highlighter_suffix
begin
self.content = Liquid::Template.parse(self.content).render(payload, info)
rescue => e
puts "Liquid Exception: #{e.message} in #{self.data["layout"]}"
if render_with_liquid?
Jekyll.logger.debug "Rendering Liquid:", self.relative_path
self.content = render_liquid(content, payload, info, path)
end
self.transform
Jekyll.logger.debug "Rendering Markup:", self.relative_path
self.content = transform
# output keeps track of what will finally be written
self.output = self.content
self.output = content
# recursively render layouts
layout = layouts[self.data["layout"]]
while layout
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
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
begin
self.output = Liquid::Template.parse(layout.content).render(payload, info)
rescue => e
puts "Liquid Exception: #{e.message} in #{self.data["layout"]}"
end
# Write the generated page file to the destination directory.
#
# dest - The String path to the destination dir.
#
# Returns nothing.
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |f|
f.write(output)
end
Jekyll::Hooks.trigger hook_owner, :post_write, self
end
layout = layouts[layout.data["layout"]]
# Accessor for data properties by Liquid.
#
# property - The String name of the property to retrieve.
#
# Returns the String value or nil if the property isn't included.
def [](property)
if self.class::ATTRIBUTES_FOR_LIQUID.include?(property)
send(property)
else
data[property]
end
end
end

View File

@@ -1,52 +0,0 @@
class Hash
# Merges self with another hash, recursively.
#
# This code was lovingly stolen from some random gem:
# http://gemjack.com/gems/tartan-0.1.1/classes/Hash.html
#
# Thanks to whoever made it.
def deep_merge(hash)
target = dup
hash.keys.each do |key|
if hash[key].is_a? Hash and self[key].is_a? Hash
target[key] = target[key].deep_merge(hash[key])
next
end
target[key] = hash[key]
end
target
end
# Read array from the supplied hash favouring the singular key
# and then the plural key, and handling any nil entries.
# +hash+ the hash to read from
# +singular_key+ the singular key
# +plural_key+ the singular key
#
# Returns an array
def pluralized_array(singular_key, plural_key)
hash = self
if hash.has_key?(singular_key)
array = [hash[singular_key]] if hash[singular_key]
elsif hash.has_key?(plural_key)
case hash[plural_key]
when String
array = hash[plural_key].split
when Array
array = hash[plural_key].compact
end
end
array || []
end
end
# Thanks, ActiveSupport!
class Date
# Converts datetime to an appropriate format for use in XML
def xmlschema
strftime("%Y-%m-%dT%H:%M:%S%Z")
end if RUBY_VERSION < '1.9'
end

46
lib/jekyll/deprecator.rb Normal file
View File

@@ -0,0 +1,46 @@
module Jekyll
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'."
arg_is_present? args, "--no-auto", "To disable auto-replication, simply leave off \
the '--watch' switch."
arg_is_present? args, "--pygments", "The 'pygments'settings has been removed in \
favour of 'highlighter'."
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 no_subcommand(args)
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
deprecation_message "Jekyll now uses subcommands instead of just switches. Run `jekyll --help` to find out more."
abort
end
end
def arg_is_present?(args, deprecated_argument, message)
if args.include?(deprecated_argument)
deprecation_message(message)
end
end
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

483
lib/jekyll/document.rb Normal file
View File

@@ -0,0 +1,483 @@
# encoding: UTF-8
module Jekyll
class Document
include Comparable
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.
#
# site - the Jekyll::Site instance to which this Document belongs
# path - the path to the file
#
# Returns nothing.
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.
#
# Returns a Hash containing the data. An empty hash is returned if
# no data was read.
def data
@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
@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.
#
# Returns the base filename of the document.
def basename
@basename ||= File.basename(path)
end
# Produces a "cleaned" relative path.
# The "cleaned" relative path is the relative path without the extname
# and with the collection's directory removed as well.
# This method is useful when building the URL of the document.
#
# Examples:
# When relative_path is "_methods/site/generate.md":
# cleaned_relative_path
# # => "/site/generate"
#
# Returns the cleaned relative path of the document.
def cleaned_relative_path
@cleaned_relative_path ||=
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
end
# Determine whether the document is a YAML file.
#
# Returns true if the extname is either .yml or .yaml, false otherwise.
def yaml_file?
%w[.yaml .yml].include?(extname)
end
# Determine whether the document is an asset file.
# Asset files include CoffeeScript files and Sass/SCSS files.
#
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
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.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def render_with_liquid?
!(coffeescript_file? || yaml_file?)
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.
def place_in_layout?
!(asset_file? || yaml_file?)
end
# The URL template where the document would be accessible.
#
# Returns the URL template for the document.
def url_template
collection.url_template
end
# Construct a Hash of key-value pairs which contain a mapping between
# a key in the URL template and the corresponding value for this document.
#
# Returns the Hash of key-value pairs for replacement in the URL.
def url_placeholders
{
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
# The permalink for this Document.
# Permalink is set via the data Hash.
#
# Returns the permalink or nil if no permalink was set in the data.
def permalink
data && data.is_a?(Hash) && data['permalink']
end
# The computed URL for the document. See `Jekyll::URL#to_s` for more details.
#
# Returns the computed URL for the document.
def url
@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)
dest = site.in_dest_dir(base_directory)
path = site.in_dest_dir(dest, URL.unescape_path(url))
if url.end_with? "/"
path = File.join(path, "index.html")
else
path << output_ext unless path.end_with?(output_ext)
end
path
end
# Write the generated Document file to the destination directory.
#
# dest - The String path to the destination dir.
#
# Returns nothing.
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
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)
# and a given param
#
# opts - override options
#
# Return the file read options hash.
def merged_file_read_opts(opts)
site ? site.file_read_opts.merge(opts) : opts
end
# Whether the file is published or not, as indicated in YAML front-matter
#
# Returns true if the 'published' key is specified in the YAML front-matter and not `false`.
def published?
!(data.key?('published') && data['published'] == false)
end
# Read in the file and assign the content and data based on the file contents.
# Merge the frontmatter of the file with the frontmatter default
# values
#
# 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(relative_path, collection.label.to_sym)
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)
merge_data!(data_file, source: "YAML front matter") if data_file
end
post_read
rescue SyntaxError => e
Jekyll.logger.error "Error:", "YAML Exception reading #{path}: #{e.message}"
rescue Exception => e
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
@to_liquid ||= if data.is_a?(Hash)
Utils.deep_merge_hashes Utils.deep_merge_hashes({
"output" => output,
"content" => content,
"relative_path" => relative_path,
"path" => relative_path,
"url" => url,
"collection" => collection.label,
"next" => next_doc,
"previous" => previous_doc,
"id" => id,
}, data), { 'excerpt' => data['excerpt'].to_s }
else
data
end
end
# The inspect string for this document.
# Includes the relative path and the collection label.
#
# Returns the inspect string for this document.
def inspect
"#<Jekyll::Document #{relative_path} collection=#{collection.label}>"
end
# The string representation for this document.
#
# Returns the content of the document
def to_s
output || content || 'NO CONTENT'
end
# Compare this document against another document.
# Comparison is a comparison between the 2 paths of the documents.
#
# 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 <=>(other)
return nil if !other.respond_to?(:data)
cmp = data['date'] <=> other.data['date']
cmp = path <=> other.path if cmp.nil? || cmp == 0
cmp
end
# Determine whether this document should be written.
# Based on the Collection to which it belongs.
#
# True if the document has a collection and if that collection's #write?
# method returns true, otherwise false.
def write?
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

@@ -0,0 +1,72 @@
module Jekyll
class EntryFilter
SPECIAL_LEADING_CHARACTERS = ['.', '_', '#'].freeze
attr_reader :site
def initialize(site, base_directory = nil)
@site = site
@base_directory = derive_base_directory(@site, base_directory.to_s.dup)
end
def base_directory
@base_directory.to_s
end
def derive_base_directory(site, base_dir)
if base_dir.start_with?(site.source)
base_dir[site.source] = ""
end
base_dir
end
def relative_to_source(entry)
File.join(base_directory, entry)
end
def filter(entries)
entries.reject do |e|
unless included?(e)
special?(e) || backup?(e) || excluded?(e) || symlink?(e)
end
end
end
def included?(entry)
glob_include?(site.include, entry)
end
def special?(entry)
SPECIAL_LEADING_CHARACTERS.include?(entry[0..0]) ||
SPECIAL_LEADING_CHARACTERS.include?(File.basename(entry)[0..0])
end
def backup?(entry)
entry[-1..-1] == '~'
end
def excluded?(entry)
excluded = glob_include?(site.exclude, relative_to_source(entry))
Jekyll.logger.debug "EntryFilter:", "excluded #{relative_to_source(entry)}" if excluded
excluded
end
def symlink?(entry)
File.symlink?(entry) && site.safe
end
def ensure_leading_slash(path)
path[0..0] == "/" ? path : "/#{path}"
end
# Returns true if path matches against any glob pattern.
# Look for more detail about glob pattern in method File::fnmatch.
def glob_include?(enum, e)
entry = ensure_leading_slash(e)
enum.any? do |exp|
item = ensure_leading_slash(exp)
File.fnmatch?(item, entry) || entry.start_with?(item)
end
end
end
end

View File

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

129
lib/jekyll/excerpt.rb Normal file
View File

@@ -0,0 +1,129 @@
require 'forwardable'
module Jekyll
class Excerpt
extend Forwardable
attr_accessor :doc
attr_accessor :content, :ext
attr_writer :output
def_delegators :@doc, :site, :name, :ext, :relative_path, :extname,
:render_with_liquid?, :collection, :related_posts
# Initialize this Excerpt instance.
#
# doc - The Document.
#
# Returns the new Excerpt.
def initialize(doc)
self.doc = doc
self.content = extract_excerpt(doc.content)
end
# Fetch YAML front-matter data from related doc, without layout key
#
# Returns Hash of doc data
def data
@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 doc this excerpt belongs to with #excerpt appended
def path
File.join(doc.path, "#excerpt")
end
# Check if excerpt includes a string
#
# Returns true if the string passed in
def include?(something)
(output && output.include?(something)) || content.include?(something)
end
# The UID for this doc (useful in feeds).
# e.g. /2008/11/05/my-awesome-doc
#
# Returns the String UID.
def id
"#{doc.id}#excerpt"
end
def to_s
output || content
end
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 doc: everything before
# the first two new lines:
#
# ---
# title: Example
# ---
#
# First paragraph with [link][1].
#
# Second paragraph.
#
# [1]: http://example.com/
#
# This is fairly good option for Markdown and Textile files. But might cause
# 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 docs:
#
# # file: _config.yml
# excerpt_separator: "<!-- more -->"
#
# Notice that all markdown-style link references will be appended to the
# excerpt. So the example doc above will have this excerpt source:
#
# First paragraph with [link][1].
#
# [1]: http://example.com/
#
# Excerpts are rendered same time as content is rendered.
#
# Returns excerpt String
def extract_excerpt(doc_content)
head, _, tail = doc_content.to_s.partition(doc.excerpt_separator)
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,40 +1,163 @@
require 'uri'
require 'json'
require 'date'
module Jekyll
module Filters
def textilize(input)
TextileConverter.new.convert(input)
# Convert a Markdown string into HTML output.
#
# input - The Markdown String to convert.
#
# Returns the HTML formatted String.
def markdownify(input)
site = @context.registers[:site]
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.
#
# Returns the formatting String.
def date_to_string(date)
date.strftime("%d %b %Y")
time(date).strftime("%d %b %Y")
end
# Format a date in long format e.g. "27 January 2011".
#
# date - The Time to format.
#
# Returns the formatted String.
def date_to_long_string(date)
date.strftime("%d %B %Y")
time(date).strftime("%d %B %Y")
end
# Format a date for use in XML.
#
# date - The Time to format.
#
# Examples
#
# date_to_xmlschema(Time.now)
# # => "2011-04-24T20:34:46+08:00"
#
# Returns the formatted String.
def date_to_xmlschema(date)
date.xmlschema
time(date).xmlschema
end
# Format a date according to RFC-822
#
# date - The Time to format.
#
# Examples
#
# date_to_rfc822(Time.now)
# # => "Sun, 24 Apr 2011 12:34:46 +0000"
#
# Returns the formatted String.
def date_to_rfc822(date)
time(date).rfc822
end
# XML escape a string for use. Replaces any special characters with
# appropriate HTML entity replacements.
#
# input - The String to escape.
#
# Examples
#
# xml_escape('foo "bar" <baz>')
# # => "foo &quot;bar&quot; &lt;baz&gt;"
#
# Returns the escaped String.
def xml_escape(input)
CGI.escapeHTML(input)
CGI.escapeHTML(input.to_s)
end
# CGI escape a string for use in a URL. Replaces any special characters
# with appropriate %XX replacements.
#
# input - The String to escape.
#
# Examples
#
# cgi_escape('foo,bar;baz?')
# # => "foo%2Cbar%3Bbaz%3F"
#
# Returns the escaped String.
def cgi_escape(input)
CGI::escape(input)
end
# URI escape a string.
#
# input - The String to escape.
#
# Examples
#
# uri_escape('foo, bar \\baz?')
# # => "foo,%20bar%20%5Cbaz?"
#
# Returns the escaped String.
def uri_escape(input)
URI.escape(input)
end
# Count the number of words in the input string.
#
# input - The String on which to operate.
#
# Returns the Integer word count.
def number_of_words(input)
input.split.length
end
# Join an array of things into a string by separating with commas and the
# word "and" for the last one.
#
# array - The Array of Strings to join.
#
# Examples
#
# array_to_sentence_string(["apples", "oranges", "grapes"])
# # => "apples, oranges, and grapes"
#
# Returns the formatted String.
def array_to_sentence_string(array)
connector = "and"
case array.length
@@ -49,5 +172,175 @@ module Jekyll
end
end
# Convert the input into json string
#
# input - The Array or Hash to be converted
#
# Returns the converted json string
def jsonify(input)
as_liquid(input).to_json
end
# Group an array of items by a property
#
# input - the inputted Enumerable
# property - the property
#
# Returns an array of Hashes, each looking something like this:
# {"name" => "larry"
# "items" => [...] } # all the items where `property` == "larry"
def group_by(input, property)
if groupable?(input)
input.group_by do |item|
item_property(item, property).to_s
end.inject([]) do |memo, i|
memo << {"name" => i.first, "items" => i.last}
end
else
input
end
end
# Filter an array of objects
#
# input - the object array
# 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?(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
#
# input - the object array
# property - property within each object to filter by
# nils ('first' | 'last') - nils appear before or after non-nil values
#
# 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
case
when nils == "first"
order = - 1
when nils == "last"
order = + 1
else
raise ArgumentError.new("Invalid nils order: " +
"'#{nils}' is not a valid nils order. It must be 'first' or 'last'.")
end
input.sort { |apple, orange|
apple_property = item_property(apple, property)
orange_property = item_property(orange, property)
if !apple_property.nil? && orange_property.nil?
- order
elsif apple_property.nil? && !orange_property.nil?
+ order
else
apple_property <=> orange_property
end
}
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
Time.at(input)
else
Jekyll.logger.error "Invalid Date:", "'#{input}' is not a valid datetime."
exit(1)
end.localtime
end
def groupable?(element)
element.respond_to?(:group_by)
end
def item_property(item, property)
if item.respond_to?(:to_liquid)
item.to_liquid[property.to_s]
elsif item.respond_to?(:data)
item.data[property.to_s]
else
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

@@ -0,0 +1,180 @@
module Jekyll
# 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
#
# 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'].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 = Utils.deep_merge_hashes(defaults, set['values'])
old_scope = set['scope']
else
defaults = Utils.deep_merge_hashes(set['values'], 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.has_key?('path') || scope['path'].empty?
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

View File

@@ -1,7 +1,4 @@
module Jekyll
class Generator < Plugin
end
end
end

View File

@@ -1,87 +0,0 @@
module Jekyll
class Pagination < Generator
safe true
def generate(site)
site.pages.dup.each do |page|
paginate(site, page) if Pager.pagination_enabled?(site.config, page.name)
end
end
# Paginates the blog's posts. Renders the index.html file into paginated
# directories, ie: page2/index.html, page3/index.html, etc and adds more
# site-wide data.
# +page+ is the index.html Page that requires pagination
#
# {"paginator" => { "page" => <Number>,
# "per_page" => <Number>,
# "posts" => [<Post>],
# "total_posts" => <Number>,
# "total_pages" => <Number>,
# "previous_page" => <Number>,
# "next_page" => <Number> }}
def paginate(site, page)
all_posts = site.site_payload['site']['posts']
pages = Pager.calculate_pages(all_posts, site.config['paginate'].to_i)
(1..pages).each do |num_page|
pager = Pager.new(site.config, num_page, all_posts, pages)
if num_page > 1
newpage = Page.new(site, site.source, page.dir, page.name)
newpage.pager = pager
newpage.dir = File.join(page.dir, "page#{num_page}")
site.pages << newpage
else
page.pager = pager
end
end
end
end
class Pager
attr_reader :page, :per_page, :posts, :total_posts, :total_pages, :previous_page, :next_page
def self.calculate_pages(all_posts, per_page)
num_pages = all_posts.size / per_page.to_i
num_pages = num_pages + 1 if all_posts.size % per_page.to_i != 0
num_pages
end
def self.pagination_enabled?(config, file)
file == 'index.html' && !config['paginate'].nil?
end
def initialize(config, page, all_posts, num_pages = nil)
@page = page
@per_page = config['paginate'].to_i
@total_pages = num_pages || Pager.calculate_pages(all_posts, @per_page)
if @page > @total_pages
raise RuntimeError, "page number can't be greater than total pages: #{@page} > #{@total_pages}"
end
init = (@page - 1) * @per_page
offset = (init + @per_page - 1) >= all_posts.size ? all_posts.size : (init + @per_page - 1)
@total_posts = all_posts.size
@posts = all_posts[init..offset]
@previous_page = @page != 1 ? @page - 1 : nil
@next_page = @page != @total_pages ? @page + 1 : nil
end
def to_liquid
{
'page' => page,
'per_page' => per_page,
'posts' => posts,
'total_posts' => total_posts,
'total_pages' => total_pages,
'previous_page' => previous_page,
'next_page' => next_page
}
end
end
end

101
lib/jekyll/hooks.rb Normal file
View File

@@ -0,0 +1,101 @@
module Jekyll
module Hooks
DEFAULT_PRIORITY = 20
# compatibility layer for octopress-hooks users
PRIORITY_MAP = {
low: 10,
normal: 20,
high: 30,
}.freeze
# 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
end
# 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

@@ -1,36 +1,49 @@
module Jekyll
class Layout
include Convertible
attr_accessor :site
# Gets the Site object.
attr_reader :site
# 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
attr_accessor :data, :content
# Gets/Sets the Hash that holds the metadata for this layout.
attr_accessor :data
# Gets/Sets the content of this layout.
attr_accessor :content
# Initialize a new Layout.
# +site+ is the Site
# +base+ is the String path to the <source>
# +name+ is the String filename of the post file
#
# Returns <Page>
# site - The Site.
# base - The String path to the source.
# name - The String filename of the post file.
def initialize(site, base, name)
@site = site
@base = base
@name = name
@path = site.in_source_dir(base, name)
self.data = {}
self.process(name)
self.read_yaml(base, name)
process(name)
read_yaml(base, name)
end
# Extract information from the layout filename
# +name+ is the String filename of the layout file
# Extract information from the layout filename.
#
# Returns nothing
# name - The String filename of the layout file.
#
# Returns nothing.
def process(name)
self.ext = File.extname(name)
end
end
end
end

View File

@@ -0,0 +1,22 @@
module Jekyll
module LiquidExtensions
# Lookup a Liquid variable in the given context.
#
# context - the Liquid context in question.
# variable - the variable name, as a string.
#
# Returns the value of the variable in the context
# or the variable name if not found.
def lookup_variable(context, variable)
lookup = context
variable.split(".").each do |value|
lookup = lookup[value]
end
lookup || variable
end
end
end

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, line_numbers: true)
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

115
lib/jekyll/log_adapter.rb Normal file
View File

@@ -0,0 +1,115 @@
module Jekyll
class LogAdapter
attr_reader :writer, :messages
LOG_LEVELS = {
:debug => ::Logger::DEBUG,
:info => ::Logger::INFO,
:warn => ::Logger::WARN,
:error => ::Logger::ERROR
}
# 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
# Public: Set the log level on the writer
#
# level - (symbol) the log level
#
# Returns nothing
def log_level=(level)
writer.level = LOG_LEVELS.fetch(level)
end
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
#
# Returns nothing
def debug(topic, message = nil)
writer.debug(message(topic, message))
end
# Public: Print a message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def info(topic, message = nil)
writer.info(message(topic, message))
end
# Public: Print a message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def warn(topic, message = nil)
writer.warn(message(topic, message))
end
# Public: Print an error message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def error(topic, message = nil)
writer.error(message(topic, message))
end
# 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)
#
# Returns nothing
def abort_with(topic, message = nil)
error(topic, message)
abort
end
# 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)
msg = formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
messages << msg
msg
end
# Internal: Format the topic
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
#
# Returns the formatted topic statement
def formatted_topic(topic)
"#{topic} ".rjust(20)
end
end
end

View File

@@ -1,26 +0,0 @@
module Jekyll
module CSV
#Reads a csv with title, permalink, body, published_at, and filter.
#It creates a post file for each row in the csv
def self.process(file = "posts.csv")
FileUtils.mkdir_p "_posts"
posts = 0
FasterCSV.foreach(file) do |row|
next if row[0] == "title"
posts += 1
name = row[3].split(" ")[0]+"-"+row[1]+(row[4] =~ /markdown/ ? ".markdown" : ".textile")
File.open("_posts/#{name}", "w") do |f|
f.puts <<-HEADER
---
layout: post
title: #{row[0]}
---
HEADER
f.puts row[2]
end
end
"Created #{posts} posts!"
end
end
end

View File

@@ -1,86 +0,0 @@
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
module Jekyll
module Drupal
# Reads a MySQL database via Sequel and creates a post file for each
# post in wp_posts that has post_status = 'publish'.
# This restriction is made because 'draft' posts are not guaranteed to
# have valid dates.
QUERY = "SELECT node.nid, node.title, node_revisions.body, node.created, node.status FROM node, node_revisions WHERE (node.type = 'blog' OR node.type = 'story') AND node.vid = node_revisions.vid"
def self.process(dbname, user, pass, host = 'localhost')
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
FileUtils.mkdir_p "_drafts"
# Create the refresh layout
# Change the refresh url if you customized your permalink config
File.open("_layouts/refresh.html", "w") do |f|
f.puts <<EOF
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url={{ page.refresh_to_post_id }}.html" />
</head>
</html>
EOF
end
db[QUERY].each do |post|
# Get required fields and construct Jekyll compatible name
node_id = post[:nid]
title = post[:title]
content = post[:body]
created = post[:created]
time = Time.at(created)
is_published = post[:status] == 1
dir = is_published ? "_posts" : "_drafts"
slug = title.strip.downcase.gsub(/(&|&amp;)/, ' and ').gsub(/[\s\.\/\\]/, '-').gsub(/[^\w-]/, '').gsub(/[-_]{2,}/, '-').gsub(/^[-_]/, '').gsub(/[-_]$/, '')
name = time.strftime("%Y-%m-%d-") + slug + '.md'
# Get the relevant fields as a hash, delete empty fields and convert
# to YAML for the header
data = {
'layout' => 'post',
'title' => title.to_s,
'created' => created,
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
# Write out the data and content to file
File.open("#{dir}/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
# Make a file to redirect from the old Drupal URL
if is_published
FileUtils.mkdir_p "node/#{node_id}"
File.open("node/#{node_id}/index.md", "w") do |f|
f.puts "---"
f.puts "layout: refresh"
f.puts "refresh_to_post_id: /#{time.strftime("%Y/%m/%d/") + slug}"
f.puts "---"
end
end
end
# TODO: Make dirs & files for nodes of type 'page'
# Make refresh pages for these as well
# TODO: Make refresh dirs & files according to entries in url_alias table
end
end
end

View File

@@ -1,53 +0,0 @@
require 'yaml'
require 'fileutils'
module Jekyll
module Marley
def self.regexp
{ :id => /^\d{0,4}-{0,1}(.*)$/,
:title => /^#\s*(.*)\s+$/,
:title_with_date => /^#\s*(.*)\s+\(([0-9\/]+)\)$/,
:published_on => /.*\s+\(([0-9\/]+)\)$/,
:perex => /^([^\#\n]+\n)$/,
:meta => /^\{\{\n(.*)\}\}\n$/mi # Multiline Regexp
}
end
def self.process(marley_data_dir)
raise ArgumentError, "marley dir #{marley_data_dir} not found" unless File.directory?(marley_data_dir)
FileUtils.mkdir_p "_posts"
posts = 0
Dir["#{marley_data_dir}/**/*.txt"].each do |f|
next unless File.exists?(f)
#copied over from marley's app/lib/post.rb
file_content = File.read(f)
meta_content = file_content.slice!( self.regexp[:meta] )
body = file_content.sub( self.regexp[:title], '').sub( self.regexp[:perex], '').strip
title = file_content.scan( self.regexp[:title] ).first.to_s.strip
prerex = file_content.scan( self.regexp[:perex] ).first.to_s.strip
published_on = DateTime.parse( post[:published_on] ) rescue File.mtime( File.dirname(f) )
meta = ( meta_content ) ? YAML::load( meta_content.scan( self.regexp[:meta]).to_s ) : {}
meta['title'] = title
meta['layout'] = 'post'
formatted_date = published_on.strftime('%Y-%m-%d')
post_name = File.dirname(f).split(%r{/}).last.gsub(/\A\d+-/, '')
name = "#{formatted_date}-#{post_name}"
File.open("_posts/#{name}.markdown", "w") do |f|
f.puts meta.to_yaml
f.puts "---\n"
f.puts "\n#{prerex}\n\n" if prerex
f.puts body
end
posts += 1
end
"Created #{posts} posts!"
end
end
end

View File

@@ -1,79 +0,0 @@
# Quickly hacked together my Michael Ivey
# Based on mt.rb by Nick Gerakines, open source and publically
# available under the MIT license. Use this module at your own risk.
require 'rubygems'
require 'sequel'
require 'fastercsv'
require 'fileutils'
require File.join(File.dirname(__FILE__),"csv.rb")
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
module Jekyll
module Mephisto
#Accepts a hash with database config variables, exports mephisto posts into a csv
#export PGPASSWORD if you must
def self.postgres(c)
sql = <<-SQL
BEGIN;
CREATE TEMP TABLE jekyll AS
SELECT title, permalink, body, published_at, filter FROM contents
WHERE user_id = 1 AND type = 'Article' ORDER BY published_at;
COPY jekyll TO STDOUT WITH CSV HEADER;
ROLLBACK;
SQL
command = %Q(psql -h #{c[:host] || "localhost"} -c "#{sql.strip}" #{c[:database]} #{c[:username]} -o #{c[:filename] || "posts.csv"})
puts command
`#{command}`
CSV.process
end
# This query will pull blog posts from all entries across all blogs. If
# you've got unpublished, deleted or otherwise hidden posts please sift
# through the created posts to make sure nothing is accidently published.
QUERY = "SELECT id, permalink, body, published_at, title FROM contents WHERE user_id = 1 AND type = 'Article' AND published_at IS NOT NULL ORDER BY published_at"
def self.process(dbname, user, pass, host = 'localhost')
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
db[QUERY].each do |post|
title = post[:title]
slug = post[:permalink]
date = post[:published_at]
content = post[:body]
# more_content = ''
# Be sure to include the body and extended body.
# if more_content != nil
# content = content + " \n" + more_content
# end
# Ideally, this script would determine the post format (markdown, html
# , etc) and create files with proper extensions. At this point it
# just assumes that markdown will be acceptable.
name = [date.year, date.month, date.day, slug].join('-') + ".markdown"
data = {
'layout' => 'post',
'title' => title.to_s,
'mt_id' => post[:entry_id],
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
File.open("_posts/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
end
end
end
end

View File

@@ -1,77 +0,0 @@
# Created by Nick Gerakines, open source and publically available under the
# MIT license. Use this module at your own risk.
# I'm an Erlang/Perl/C++ guy so please forgive my dirty ruby.
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
module Jekyll
module MT
# This query will pull blog posts from all entries across all blogs. If
# you've got unpublished, deleted or otherwise hidden posts please sift
# through the created posts to make sure nothing is accidently published.
QUERY = "SELECT entry_id, entry_basename, entry_text, entry_text_more, entry_authored_on, entry_title, entry_convert_breaks FROM mt_entry"
def self.process(dbname, user, pass, host = 'localhost')
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
db[QUERY].each do |post|
title = post[:entry_title]
slug = post[:entry_basename].gsub(/_/, '-')
date = post[:entry_authored_on]
content = post[:entry_text]
more_content = post[:entry_text_more]
entry_convert_breaks = post[:entry_convert_breaks]
# Be sure to include the body and extended body.
if more_content != nil
content = content + " \n" + more_content
end
# Ideally, this script would determine the post format (markdown, html
# , etc) and create files with proper extensions. At this point it
# just assumes that markdown will be acceptable.
name = [date.year, date.month, date.day, slug].join('-') + '.' + self.suffix(entry_convert_breaks)
data = {
'layout' => 'post',
'title' => title.to_s,
'mt_id' => post[:entry_id],
'date' => date
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
File.open("_posts/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
end
end
def self.suffix(entry_type)
if entry_type.nil? || entry_type.include?("markdown")
# The markdown plugin I have saves this as "markdown_with_smarty_pants", so I just look for "markdown".
"markdown"
elsif entry_type.include?("textile")
# This is saved as "textile_2" on my installation of MT 5.1.
"textile"
elsif entry_type == "0" || entry_type.include?("richtext")
# richtext looks to me like it's saved as HTML, so I include it here.
"html"
else
# Other values might need custom work.
entry_type
end
end
end
end

View File

@@ -1,73 +0,0 @@
require 'rubygems'
require 'jekyll'
require 'fileutils'
require 'net/http'
require 'uri'
require "json"
# ruby -r './lib/jekyll/migrators/posterous.rb' -e 'Jekyll::Posterous.process(email, pass, blog)'
module Jekyll
module Posterous
def self.fetch(uri_str, limit = 10)
# You should choose better exception.
raise ArgumentError, 'Stuck in a redirect loop. Please double check your email and password' if limit == 0
response = nil
Net::HTTP.start('posterous.com') {|http|
req = Net::HTTP::Get.new(uri_str)
req.basic_auth @email, @pass
response = http.request(req)
}
case response
when Net::HTTPSuccess then response
when Net::HTTPRedirection then fetch(response['location'], limit - 1)
else response.error!
end
end
def self.process(email, pass, blog = 'primary')
@email, @pass = email, pass
@api_token = JSON.parse(self.fetch("/api/2/auth/token").body)['api_token']
FileUtils.mkdir_p "_posts"
posts = JSON.parse(self.fetch("/api/v2/users/me/sites/#{blog}/posts?api_token=#{@api_token}").body)
page = 1
while posts.any?
posts.each do |post|
title = post["title"]
slug = title.gsub(/[^[:alnum:]]+/, '-').downcase
date = Date.parse(post["display_date"])
content = post["body_html"]
published = !post["is_private"]
name = "%02d-%02d-%02d-%s.html" % [date.year, date.month, date.day, slug]
# Get the relevant fields as a hash, delete empty fields and convert
# to YAML for the header
data = {
'layout' => 'post',
'title' => title.to_s,
'published' => published
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
# Write out the data and content to file
File.open("_posts/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
end
page += 1
posts = JSON.parse(self.fetch("/api/v2/users/me/sites/#{blog}/posts?api_token=#{@api_token}&page=#{page}").body)
end
end
end
end

View File

@@ -1,50 +0,0 @@
require 'rubygems'
require 'sequel'
require 'fileutils'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
module Jekyll
module TextPattern
# Reads a MySQL database via Sequel and creates a post file for each post.
# The only posts selected are those with a status of 4 or 5, which means "live"
# and "sticky" respectively.
# Other statuses is 1 => draft, 2 => hidden and 3 => pending
QUERY = "select Title, url_title, Posted, Body, Keywords from textpattern where Status = '4' or Status = '5'"
def self.process(dbname, user, pass, host = 'localhost')
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
db[QUERY].each do |post|
# Get required fields and construct Jekyll compatible name
title = post[:Title]
slug = post[:url_title]
date = post[:Posted]
content = post[:Body]
name = [date.strftime("%Y-%m-%d"), slug].join('-') + ".textile"
# Get the relevant fields as a hash, delete empty fields and convert
# to YAML for the header
data = {
'layout' => 'post',
'title' => title.to_s,
'tags' => post[:Keywords].split(',')
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
# Write out the data and content to file
File.open("_posts/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
end
end
end
end

View File

@@ -1,49 +0,0 @@
# Author: Toby DiPasquale <toby@cbcg.net>
require 'fileutils'
require 'rubygems'
require 'sequel'
module Jekyll
module Typo
# this SQL *should* work for both MySQL and PostgreSQL, but I haven't
# tested PostgreSQL yet (as of 2008-12-16)
SQL = <<-EOS
SELECT c.id id,
c.title title,
c.permalink slug,
c.body body,
c.published_at date,
c.state state,
COALESCE(tf.name, 'html') filter
FROM contents c
LEFT OUTER JOIN text_filters tf
ON c.text_filter_id = tf.id
EOS
def self.process dbname, user, pass, host='localhost'
FileUtils.mkdir_p '_posts'
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
db[SQL].each do |post|
next unless post[:state] =~ /Published/
name = [ sprintf("%.04d", post[:date].year),
sprintf("%.02d", post[:date].month),
sprintf("%.02d", post[:date].day),
post[:slug].strip ].join('-')
# Can have more than one text filter in this field, but we just want
# the first one for this
name += '.' + post[:filter].split(' ')[0]
File.open("_posts/#{name}", 'w') do |f|
f.puts({ 'layout' => 'post',
'title' => post[:title].to_s,
'typo_id' => post[:id]
}.delete_if { |k, v| v.nil? || v == '' }.to_yaml)
f.puts '---'
f.puts post[:body].delete("\r")
end
end
end
end # module Typo
end # module Jekyll

View File

@@ -1,56 +0,0 @@
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
module Jekyll
module WordPress
def self.process(dbname, user, pass, host = 'localhost', table_prefix = 'wp_')
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
# Reads a MySQL database via Sequel and creates a post file for each
# post in wp_posts that has post_status = 'publish'.
# This restriction is made because 'draft' posts are not guaranteed to
# have valid dates.
query = "select post_title, post_name, post_date, post_content, post_excerpt, ID, guid from #{table_prefix}posts where post_status = 'publish' and post_type = 'post'"
db[query].each do |post|
# Get required fields and construct Jekyll compatible name
title = post[:post_title]
slug = post[:post_name]
date = post[:post_date]
content = post[:post_content]
name = "%02d-%02d-%02d-%s.markdown" % [date.year, date.month, date.day,
slug]
# Get the relevant fields as a hash, delete empty fields and convert
# to YAML for the header
data = {
'layout' => 'post',
'title' => title.to_s,
'excerpt' => post[:post_excerpt].to_s,
'wordpress_id' => post[:ID],
'wordpress_url' => post[:guid],
'date' => date
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
# Write out the data and content to file
File.open("_posts/#{name}", "w") do |f|
f.puts data
f.puts "---"
f.puts content
end
end
end
end
end

View File

@@ -1,45 +0,0 @@
# coding: utf-8
require 'rubygems'
require 'hpricot'
require 'fileutils'
require 'yaml'
module Jekyll
# This importer takes a wordpress.xml file,
# which can be exported from your
# wordpress.com blog (/wp-admin/export.php)
module WordpressDotCom
def self.process(filename = "wordpress.xml")
FileUtils.mkdir_p "_posts"
posts = 0
doc = Hpricot::XML(File.read(filename))
(doc/:channel/:item).each do |item|
title = item.at(:title).inner_text.strip
permalink_title = item.at('wp:post_name').inner_text
date = Time.parse(item.at(:pubDate).inner_text)
tags = (item/:category).map{|c| c.inner_text}.reject{|c| c == 'Uncategorized'}.uniq
name = "#{date.strftime('%Y-%m-%d')}-#{permalink_title}.html"
header = {
'layout' => 'post',
'title' => title,
'tags' => tags
}
File.open("_posts/#{name}", "w") do |f|
f.puts header.to_yaml
f.puts '---'
f.puts item.at('content:encoded').inner_text
end
posts += 1
end
puts "Imported #{posts} posts"
end
end
end

800
lib/jekyll/mime.types Normal file
View File

@@ -0,0 +1,800 @@
# Woah there. Do not edit this file directly.
# This file is generated automatically by script/vendor-mimes.
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

@@ -1,143 +1,161 @@
module Jekyll
class Page
include Convertible
attr_writer :dir
attr_accessor :site, :pager
attr_accessor :name, :ext, :basename, :dir
attr_accessor :name, :ext, :basename
attr_accessor :data, :content, :output
# Attributes for Liquid templates
ATTRIBUTES_FOR_LIQUID = %w[
content
dir
name
path
url
]
# Initialize a new Page.
# +site+ is the Site
# +base+ is the String path to the <source>
# +dir+ is the String path between <source> and the file
# +name+ is the String filename of the file
#
# Returns <Page>
# site - The Site object.
# base - The String path to the source.
# dir - The String path between the source and the file.
# name - The String filename of the file.
def initialize(site, base, dir, name)
@site = site
@base = base
@dir = dir
@name = name
self.process(name)
self.read_yaml(File.join(base, dir), name)
process(name)
read_yaml(File.join(base, dir), name)
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
# upon generation. This is derived from the permalink or, if
# permalink is absent, set to '/'
# permalink is absent, we be '/'
#
# Returns <String>
# Returns the String destination directory.
def dir
url[-1, 1] == '/' ? url : File.dirname(url)
end
# The full path and filename of the post.
# Defined in the YAML of the post body
# (Optional)
# The full path and filename of the post. Defined in the YAML of the post
# body.
#
# Returns <String>
# Returns the String permalink or nil if none has been set.
def permalink
self.data && self.data['permalink']
return nil if data.nil? || data['permalink'].nil?
data['permalink']
end
# The template of the permalink.
#
# Returns the template String.
def template
if self.site.permalink_style == :pretty && !index? && html?
"/:basename/"
if !html?
"/:path/:basename:output_ext"
elsif index?
"/:path/"
else
"/:basename:output_ext"
Utils.add_permalink_suffix("/:path/:basename", site.permalink_style)
end
end
# The generated relative url of this page
# e.g. /about.html
# The generated relative url of this page. e.g. /about.html.
#
# Returns <String>
# Returns the String url.
def url
return @url if @url
url = if permalink
permalink
else
{
"basename" => self.basename,
"output_ext" => self.output_ext,
}.inject(template) { |result, token|
result.gsub(/:#{token.first}/, token.last)
}.gsub(/\/\//, "/")
end
# sanitize url
@url = url.split('/').reject{ |part| part =~ /^\.+$/ }.join('/')
@url += "/" if url =~ /\/$/
@url
@url ||= URL.new({
:template => template,
:placeholders => url_placeholders,
:permalink => permalink
}).to_s
end
# Extract information from the page filename
# +name+ is the String filename of the page file
# Returns a hash of URL placeholder names (as symbols) mapping to the
# desired placeholder replacements. For details see "url.rb"
def url_placeholders
{
:path => @dir,
:basename => basename,
:output_ext => output_ext
}
end
# Extract information from the page filename.
#
# Returns nothing
# name - The String filename of the page file.
#
# Returns nothing.
def process(name)
self.ext = File.extname(name)
self.basename = name[0 .. -self.ext.length-1]
self.basename = name[0 .. -ext.length - 1]
end
# Add any necessary layouts to this post
# +layouts+ is a Hash of {"name" => "layout"}
# +site_payload+ is the site payload hash
#
# Returns nothing
# layouts - The Hash of {"name" => "layout"}.
# site_payload - The site payload Hash.
#
# Returns nothing.
def render(layouts, site_payload)
payload = {
"page" => self.to_liquid,
payload = Utils.deep_merge_hashes({
"page" => to_liquid,
'paginator' => pager.to_liquid
}.deep_merge(site_payload)
}, site_payload)
do_layout(payload, layouts)
end
def to_liquid
self.data.deep_merge({
"url" => File.join(@dir, self.url),
"content" => self.content })
end
# Obtain destination path.
# +dest+ is the String path to the destination dir
# The path to the source file
#
# Returns destination file path.
# Returns the path to the source file
def path
data.fetch('path') { relative_path.sub(/\A\//, '') }
end
# The path to the page source file, relative to the site source
def relative_path
File.join(*[@dir, @name].map(&:to_s).reject(&:empty?))
end
# Obtain destination path.
#
# dest - The String path to the destination dir.
#
# Returns the destination file path String.
def destination(dest)
# The url needs to be unescaped in order to preserve the correct filename
path = File.join(dest, @dir, CGI.unescape(self.url))
path = File.join(path, "index.html") if self.url =~ /\/$/
path = site.in_dest_dir(dest, URL.unescape_path(url))
if url.end_with? "/"
path = File.join(path, "index.html")
else
path << output_ext unless path.end_with?(output_ext)
end
path
end
# Write the generated page file to the destination directory.
# +dest+ is the String path to the destination dir
#
# Returns nothing
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'w') do |f|
f.write(self.output)
end
end
# Returns the object as a debug String.
def inspect
"#<Jekyll:Page @name=#{self.name.inspect}>"
"#<Jekyll:Page @name=#{name.inspect}>"
end
# Returns the Boolean of whether this Page is HTML or not.
def html?
output_ext == '.html'
end
# Returns the Boolean of whether this Page is an index file or not.
def index?
basename == 'index'
end
end
end

View File

@@ -1,5 +1,4 @@
module Jekyll
class Plugin
PRIORITIES = { :lowest => -100,
:low => -10,
@@ -7,22 +6,15 @@ module Jekyll
:high => 10,
:highest => 100 }
# Install a hook so that subclasses are recorded. This method is only
# ever called by Ruby itself.
# Fetch all the subclasses of this class and its subclasses' subclasses.
#
# base - The Class subclass.
#
# Returns nothing.
def self.inherited(base)
subclasses << base
subclasses.sort!
end
# The list of Classes that have been subclassed.
#
# Returns an Array of Class objects.
def self.subclasses
@subclasses ||= []
# Returns an array of descendant classes.
def self.descendants
descendants = []
ObjectSpace.each_object(singleton_class) do |k|
descendants.unshift k unless k == self
end
descendants
end
# Get or set the priority of this plugin. When called without an
@@ -34,7 +26,8 @@ module Jekyll
#
# Returns the Symbol priority.
def self.priority(priority = nil)
if priority && PRIORITIES.has_key?(priority)
@priority ||= nil
if priority && PRIORITIES.key?(priority)
@priority = priority
end
@priority || :normal
@@ -63,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.
@@ -72,5 +74,4 @@ module Jekyll
# no-op for default
end
end
end

View File

@@ -0,0 +1,102 @@
module Jekyll
class PluginManager
attr_reader :site
# Create an instance of this class.
#
# site - the instance of Jekyll::Site we're concerned with
#
# Returns nothing
def initialize(site)
@site = site
end
# Require all the plugins which are allowed.
#
# Returns nothing
def conscientious_require
require_plugin_files
require_gems
deprecation_checks
end
# Require each of the gem plugins specified.
#
# Returns nothing.
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
#
# Returns true if the gem name is in the whitelist or if the site is not
# in safe mode.
def plugin_allowed?(gem_name)
!site.safe || whitelist.include?(gem_name)
end
# Build an array of allowed plugin gem names.
#
# Returns an array of strings, each string being the name of a gem name
# that is allowed to be used.
def whitelist
@whitelist ||= Array[site.config['whitelist']].flatten
end
# Require all .rb files if safe mode is off
#
# Returns nothing.
def require_plugin_files
unless site.safe
plugins_path.each do |plugins|
Dir[File.join(plugins, "**", "*.rb")].sort.each do |f|
require f
end
end
end
end
# Public: Setup the plugin search path
#
# Returns an Array of plugin search paths
def plugins_path
if (site.config['plugins_dir'] == Jekyll::Configuration::DEFAULTS['plugins_dir'])
[site.in_source_dir(site.config['plugins_dir'])]
else
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
end
end

View File

@@ -1,255 +0,0 @@
module Jekyll
class Post
include Comparable
include Convertible
class << self
attr_accessor :lsi
end
MATCHER = /^(.+\/)*(\d+-\d+-\d+)-(.*)(\.[^.]+)$/
# Post name validator. Post filenames must be like:
# 2008-11-05-my-awesome-post.textile
#
# Returns <Bool>
def self.valid?(name)
name =~ MATCHER
end
attr_accessor :site
attr_accessor :data, :content, :output, :ext
attr_accessor :date, :slug, :published, :tags, :categories
# Initialize this Post instance.
# +site+ is the Site
# +base+ is the String path to the dir containing the post file
# +name+ is the String filename of the post file
# +categories+ is an Array of Strings for the categories for this post
#
# Returns <Post>
def initialize(site, source, dir, name)
@site = site
@base = File.join(source, dir, '_posts')
@name = name
self.categories = dir.split('/').reject { |x| x.empty? }
self.process(name)
self.read_yaml(@base, name)
#If we've added a date and time to the yaml, use that instead of the filename date
#Means we'll sort correctly.
if self.data.has_key?('date')
# ensure Time via to_s and reparse
self.date = Time.parse(self.data["date"].to_s)
end
if self.data.has_key?('published') && self.data['published'] == false
self.published = false
else
self.published = true
end
self.tags = self.data.pluralized_array("tag", "tags")
if self.categories.empty?
self.categories = self.data.pluralized_array('category', 'categories')
end
end
# Spaceship is based on Post#date, slug
#
# 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+ is 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
raise FatalException.new("Post #{name} does not have a valid date.")
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 <String>
def dir
File.dirname(url)
end
# The full path and filename of the post.
# Defined in the YAML of the post body
# (Optional)
#
# Returns <String>
def permalink
self.data && self.data['permalink']
end
def template
case self.site.permalink_style
when :pretty
"/:categories/:year/:month/:day/:title/"
when :none
"/:categories/:title.html"
when :date
"/:categories/:year/:month/:day/:title.html"
else
self.site.permalink_style.to_s
end
end
# The generated relative url of this post
# e.g. /2008/11/05/my-awesome-post.html
#
# Returns <String>
def url
return @url if @url
url = if permalink
permalink
else
{
"year" => date.strftime("%Y"),
"month" => date.strftime("%m"),
"day" => date.strftime("%d"),
"title" => CGI.escape(slug),
"i_day" => date.strftime("%d").to_i.to_s,
"i_month" => date.strftime("%m").to_i.to_s,
"categories" => categories.join('/'),
"output_ext" => self.output_ext
}.inject(template) { |result, token|
result.gsub(/:#{Regexp.escape token.first}/, token.last)
}.gsub(/\/\//, "/")
end
# sanitize url
@url = url.split('/').reject{ |part| part =~ /^\.+$/ }.join('/')
@url += "/" if url =~ /\/$/
@url
end
# The UID for this post (useful in feeds)
# e.g. /2008/11/05/my-awesome-post
#
# Returns <String>
def id
File.join(self.dir, self.slug)
end
# Calculate related posts.
#
# Returns [<Post>]
def related_posts(posts)
return [] unless posts.size > 1
if self.site.lsi
self.class.lsi ||= begin
puts "Running the classifier... this could take a while."
lsi = Classifier::LSI.new
posts.each { |x| $stdout.print(".");$stdout.flush;lsi.add_item(x) }
puts ""
lsi
end
related = self.class.lsi.find_related(self.content, 11)
related - [self]
else
(posts - [self])[0..9]
end
end
# Add any necessary layouts to this post
# +layouts+ is a Hash of {"name" => "layout"}
# +site_payload+ is the site payload hash
#
# Returns nothing
def render(layouts, site_payload)
# construct payload
payload = {
"site" => { "related_posts" => related_posts(site_payload["site"]["posts"]) },
"page" => self.to_liquid
}.deep_merge(site_payload)
do_layout(payload, layouts)
end
# Obtain destination path.
# +dest+ is the String path to the destination dir
#
# Returns destination file path.
def destination(dest)
# The url needs to be unescaped in order to preserve the correct filename
path = File.join(dest, CGI.unescape(self.url))
path = File.join(path, "index.html") if template[/\.html$/].nil?
path
end
# Write the generated post file to the destination directory.
# +dest+ is the String path to the destination dir
#
# Returns nothing
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'w') do |f|
f.write(self.output)
end
end
# Convert this post into a Hash for use in Liquid templates.
#
# Returns <Hash>
def to_liquid
self.data.deep_merge({
"title" => self.data["title"] || self.slug.split('-').select {|w| w.capitalize! || w }.join(' '),
"url" => self.url,
"date" => self.date,
"id" => self.id,
"categories" => self.categories,
"next" => self.next,
"previous" => self.previous,
"tags" => self.tags,
"content" => self.content })
end
def inspect
"<Post: #{self.id}>"
end
def next
pos = self.site.posts.index(self)
if pos && pos < self.site.posts.length-1
self.site.posts[pos+1]
else
nil
end
end
def previous
pos = self.site.posts.index(self)
if pos && pos > 0
self.site.posts[pos-1]
else
nil
end
end
end
end

21
lib/jekyll/publisher.rb Normal file
View File

@@ -0,0 +1,21 @@
module Jekyll
class Publisher
def initialize(site)
@site = site
end
def publish?(thing)
can_be_published?(thing) && !hidden_in_the_future?(thing)
end
private
def can_be_published?(thing)
thing.data.fetch('published', true) || @site.unpublished
end
def hidden_in_the_future?(thing)
thing.respond_to?(:date) && !@site.future && thing.date.to_i > @site.time.to_i
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

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