Compare commits

...

3318 Commits

Author SHA1 Message Date
Pat Hawks
b0c591a3f2 Add Inline Markdown converter 2016-10-27 20:30:32 -05:00
David Stosik
167af4552b Avoid modifying existing test's behavior in my PR 2016-10-24 01:03:53 +09:00
David Stosik
3cc4bef2e6 Fix Rubocop errors 2016-10-24 00:39:09 +09:00
David Stosik
4785f6f71f Provide an "inline" mode to markdownify filter 2016-10-24 00:01:09 +09:00
jekyllbot
12a86c1298 Update history to reflect merge of #5504 [ci skip] 2016-10-21 13:58:47 -07:00
jekyllbot
0ce9d726f5 Merge pull request #5504 from baiyangcao/patch-2
Merge pull request 5504
2016-10-21 13:58:47 -07:00
baiyangcao
d6844d284c Update deployment-methods.md 2016-10-21 13:30:26 +08:00
jekyllbot
4d597643ec Update history to reflect merge of #5502 [ci skip] 2016-10-20 13:12:08 -07:00
jekyllbot
343d5f7be5 Merge pull request #5502 from DirtyF/docs-jekyll-hook-outdated
Merge pull request 5502
2016-10-20 13:12:07 -07:00
Frank Taillandier
11a0b6578e Remove jekyll-hook from deployment methods 2016-10-20 21:12:16 +02:00
jekyllbot
3431c9f7b8 Update history to reflect merge of #5495 [ci skip] 2016-10-19 21:24:11 -07:00
jekyllbot
eca7f46749 Merge pull request #5495 from jekyll/pr/layouts-error
Merge pull request 5495
2016-10-19 21:24:11 -07:00
jekyllbot
821a845166 Update history to reflect merge of #5496 [ci skip] 2016-10-19 12:10:11 -07:00
jekyllbot
d979b4bf9b Merge pull request #5496 from jekyll/pr/rubocop
Merge pull request 5496
2016-10-19 12:10:11 -07:00
jekyllbot
124c63fd59 Update history to reflect merge of #5492 [ci skip] 2016-10-19 10:58:48 -07:00
jekyllbot
89bbb249af Merge pull request #5492 from tnhu/patch-2
Merge pull request 5492
2016-10-19 10:58:48 -07:00
jekyllbot
344d07cb55 Update history to reflect merge of #5497 [ci skip] 2016-10-19 10:40:43 -07:00
jekyllbot
0484986c16 Merge pull request #5497 from kingscott/master
Merge pull request 5497
2016-10-19 10:40:42 -07:00
Scott King
c7d0dda5a7 Add comment about gem outdated 2016-10-19 09:40:43 -04:00
Tan Nhu
ea72f98609 Fix typo 2016-10-19 00:53:44 -07:00
jekyllbot
0f5c34d16d Update history to reflect merge of #5494 [ci skip] 2016-10-18 18:38:14 -07:00
jekyllbot
0d8e21f779 Merge pull request #5494 from jekyll/pr/gsub
Merge pull request 5494
2016-10-18 18:38:13 -07:00
Scott King
2be5d56059 Fix some typos 2016-10-18 21:32:40 -04:00
Scott King
e6829b5949 Fix some typos 2016-10-18 21:15:50 -04:00
Scott King
8a4edc550b Add info about checking version + updating 2016-10-18 21:07:58 -04:00
Pat Hawks
cc1972848d Restrict Rubocop version 2016-10-18 19:51:54 -05:00
Pat Hawks
51d9be83a1 Do not swallow all exceptions on render 2016-10-18 19:45:03 -05:00
Pat Hawks
c4a23b4ced Collapse gsub 2016-10-18 18:53:54 -05:00
Tan Nhu
b9275920dd Update jekyll-include-absolute-plugin description 2016-10-18 09:52:57 -07:00
jekyllbot
53d20bc77e Update history to reflect merge of #5479 [ci skip] 2016-10-18 09:51:45 -07:00
jekyllbot
7aa9c3f12c Merge pull request #5479 from ashmaroli/test-script
Merge pull request 5479
2016-10-18 09:51:45 -07:00
Tan Nhu
00e3c979c9 Add jekyll-include-absolute-plugin 2016-10-18 09:51:16 -07:00
jekyllbot
0a1c837755 Update history to reflect merge of #5489 [ci skip] 2016-10-18 09:50:50 -07:00
jekyllbot
7c901baac1 Merge pull request #5489 from ashmaroli/rubocop-fix
Merge pull request 5489
2016-10-18 09:50:49 -07:00
jekyllbot
1f9c2b1380 Update history to reflect merge of #5491 [ci skip] 2016-10-18 09:49:12 -07:00
jekyllbot
146d5930a4 Merge pull request #5491 from ashmaroli/patch-1
Merge pull request 5491
2016-10-18 09:49:12 -07:00
ashmaroli
6ec86f4207 Add jekyll-data to the list of plugins 2016-10-18 16:20:41 +05:30
Ashwin Maroli
d1f67bf85a fix rubocop errors on testing with Rubocop 0.44
- have the new `Metrics/BlockLength` cop ignore test files and
    `jekyll/configuration.rb`
  - have `AllCops` ignore Jekyll Executable which is not going to be
    altered in the near future.
2016-10-17 13:24:54 +05:30
jekyllbot
c9d24b7d18 Update history to reflect merge of #5472 [ci skip] 2016-10-12 17:53:51 -07:00
jekyllbot
62ec32c883 Merge pull request #5472 from codethebeard/patch-1
Merge pull request 5472
2016-10-12 17:53:51 -07:00
jekyllbot
aa97be3ab5 Update history to reflect merge of #5471 [ci skip] 2016-10-12 15:34:51 -07:00
jekyllbot
389bbe1621 Merge pull request #5471 from chrisfinazzo/normalize-css-v5
Merge pull request 5471
2016-10-12 15:34:50 -07:00
Ashwin Maroli
0d12a02893 script/test: add missing whitespace 2016-10-12 14:35:39 +05:30
jekyllbot
d4b7b44328 Update history to reflect merge of #5475 [ci skip] 2016-10-11 08:46:53 -07:00
Michael Large
6cec4aebc6 Additional typo related to pull request #5472 2016-10-11 09:05:39 -04:00
Michael Large
f2fcd17627 Fix typo in theme_template README 2016-10-10 11:10:41 -04:00
chrisfinazzo
c569edcf0a Update normalize.css to v5.0.0 2016-10-09 11:36:04 -04:00
jekyllbot
53d472b7e2 Update history to reflect merge of #5449 [ci skip] 2016-10-06 11:45:20 -07:00
jekyllbot
f93e40209c Merge pull request #5449 from DirtyF/docs-link-tag
Merge pull request 5449
2016-10-06 11:45:19 -07:00
Parker Moore
5e93ca6353 Release 💎 3.3.0 2016-10-06 11:12:15 -07:00
jekyllbot
8bac0559d1 Update history to reflect merge of #5442 [ci skip] 2016-10-06 10:41:24 -07:00
jekyllbot
b4393e2d36 Merge pull request #5442 from jekyll/3-3-release-post
Merge pull request 5442
2016-10-06 10:41:24 -07:00
jekyllbot
dc554c2cd5 Update history to reflect merge of #5456 [ci skip] 2016-10-06 10:36:50 -07:00
jekyllbot
21cd382409 Merge pull request #5456 from jekyll/revert-server-address-sig-change
Merge pull request 5456
2016-10-06 10:36:49 -07:00
jekyllbot
b37d18234a Update history to reflect merge of #5433 [ci skip] 2016-10-06 10:22:23 -07:00
jekyllbot
6f05ebb520 Merge pull request #5433 from ayastreb/5429-data-dir-with-period-in-name
Merge pull request 5433
2016-10-06 10:22:23 -07:00
Parker Moore
ed042de6c4 Oh fine, rubocop. 2016-10-06 10:15:45 -07:00
Parker Moore
7c8c825f27 Fix. 2016-10-06 10:01:55 -07:00
Parker Moore
63e4e750ec New site: lock minima to v2.x 2016-10-06 09:58:16 -07:00
Parker Moore
6d1bc6c6ea Revert Commands::Serve#server_address signature change. 2016-10-06 09:48:37 -07:00
Parker Moore
c90d44d2be Updates to 3.3.0 release post per comments. 2016-10-06 09:36:56 -07:00
jekyllbot
7133bddfb2 Update history to reflect merge of #5452 [ci skip] 2016-10-06 09:11:32 -07:00
jekyllbot
41d0ba66ea Merge pull request #5452 from danayel/change-yaml-list-link
Merge pull request 5452
2016-10-06 09:11:31 -07:00
Daniel Chapman
8ec7421c03 Update Wikipedia YAML list link
List no longer exists on that page as an id.  Basic_components holds the lists now, and at the top conveniently ✌️

I also added a second link under the tags heading.
2016-10-06 17:49:27 +09:00
Frank Taillandier
c61752a336 Fix line length 2016-10-06 01:17:26 +02:00
Parker Moore
fcef78c4b6 Revert "templates.md: {% link %} tag only accepts collection documents"
This reverts commit ab4abb1933.
2016-10-06 01:13:18 +02:00
Parker Moore
6f2d1591fc Release 💎 3.3.0.pre.rc1 2016-10-05 11:47:43 -07:00
jekyllbot
f67dfb71fe Update history to reflect merge of #4873 [ci skip] 2016-10-05 11:40:06 -07:00
jekyllbot
3de78877c0 Merge pull request #4873 from mlocher/bug-post-url
Merge pull request 4873
2016-10-05 11:40:04 -07:00
jekyllbot
38f9e93a10 Update history to reflect merge of #5212 [ci skip] 2016-10-05 11:34:53 -07:00
jekyllbot
22a7714bba Merge pull request #5212 from eloyesp/fix-excerpt-link-finder
Merge pull request 5212
2016-10-05 11:34:52 -07:00
jekyllbot
55257d2a14 Update history to reflect merge of #5256 [ci skip] 2016-10-05 11:34:07 -07:00
jekyllbot
275f5a6209 Merge pull request #5256 from kwokfu/patch-1
Merge pull request 5256
2016-10-05 11:34:06 -07:00
jekyllbot
7ea610f8c0 Update history to reflect merge of #5431 [ci skip] 2016-10-05 09:59:02 -07:00
jekyllbot
d879840cc5 Merge pull request #5431 from Crunch09/update_url_in_dev_environment
Merge pull request 5431
2016-10-05 09:59:01 -07:00
Florian Thomas
a945a65818 refactor to use server_address 2016-10-04 20:47:36 +02:00
Anatoliy Yastreb
e27a65d9e3 Sanitize directory name as a key 2016-10-04 19:39:41 +01:00
Florian Thomas
01c33907a3 default site.url in dev environment to http://localhost:4000
take `host`, `port` and `ssl` options into account
2016-10-04 20:38:46 +02:00
Parker Moore
a138b02b10 Update links in 3.3 release post 2016-10-04 11:35:42 -07:00
Parker Moore
761ddcae24 Add Jekyll 3.3 release post 2016-10-03 17:44:47 -07:00
jekyllbot
274d350d61 Update history to reflect merge of #5441 [ci skip] 2016-10-03 15:13:02 -07:00
jekyllbot
80ae013541 Merge pull request #5441 from mhw/patch-1
Merge pull request 5441
2016-10-03 15:13:01 -07:00
Mark H. Wilkinson
a0a351aa7a Remove autoload of Draft which no longer exists. 2016-10-03 22:21:35 +01:00
Anatoliy Yastreb
cff8f2994c Fix loading data from subdir with a period in name #5429 2016-10-01 13:09:50 +01:00
jekyllbot
aa901cdaba Update history to reflect merge of #5264 [ci skip] 2016-09-29 14:13:32 -07:00
jekyllbot
ef3f9d0e7a Merge pull request #5264 from DirtyF/static-file-name
Merge pull request 5264
2016-09-29 14:13:31 -07:00
jekyllbot
d716d9b7be Update history to reflect merge of #5411 [ci skip] 2016-09-29 14:02:09 -07:00
jekyllbot
5a31aacfbe Merge pull request #5411 from zdroid/patch-1
Merge pull request 5411
2016-09-29 14:02:08 -07:00
jekyllbot
7118999958 Update history to reflect merge of #5410 [ci skip] 2016-09-29 13:27:12 -07:00
jekyllbot
553fae8f17 Merge pull request #5410 from jekyll/pr/i18n-url-filters
Merge pull request 5410
2016-09-29 13:27:11 -07:00
jekyllbot
459bc17019 Update history to reflect merge of #5427 [ci skip] 2016-09-29 13:26:24 -07:00
jekyllbot
f0574e047e Merge pull request #5427 from jekyll/don-t-utime-if-symlink
Merge pull request 5427
2016-09-29 13:26:24 -07:00
jekyllbot
b38ac5d938 Update history to reflect merge of #5430 [ci skip] 2016-09-29 13:26:03 -07:00
jekyllbot
feddd7daec Merge pull request #5430 from Strangehill/patch-1
Merge pull request 5430
2016-09-29 13:26:02 -07:00
jekyllbot
1c7aa4729e Update history to reflect merge of #5412 [ci skip] 2016-09-29 13:25:30 -07:00
jekyllbot
54927d6522 Merge pull request #5412 from zdroid/editorconfig
Merge pull request 5412
2016-09-29 13:25:29 -07:00
Antonio
91ef3a7cc9 prepend 'jekyll serve' with 'bundle exec'
Best not to send mixed messages and jekyllrb's quickstart message is "bundle exec jekyll serve"
2016-09-30 02:17:08 +08:00
jekyllbot
69172bcc4a Update history to reflect merge of #5428 [ci skip] 2016-09-29 10:04:47 -07:00
jekyllbot
3d3f310a5e Merge pull request #5428 from ashmaroli/bundle2new
Merge pull request 5428
2016-09-29 10:04:47 -07:00
Jordon Bedwell
51695b2165 Travis is entirely broken.
I'm tired of getting emails from forks I don't even control or have commit to, it's not cool... at all.
2016-09-29 11:17:17 -05:00
Ashwin Maroli
5b4269eca5 document automatic bundle install 2016-09-29 08:47:26 +05:30
Parker Moore
8e91263031 StaticFile#copy_entry: don't mark modified time if path is a symlink 2016-09-28 16:55:57 -07:00
Parker Moore
fd5f2eb399 Add failing test for File.utime of a symlink in staticfile. 2016-09-28 16:54:58 -07:00
jekyllbot
682c0fc98f Update history to reflect merge of #5157 [ci skip] 2016-09-28 16:39:45 -07:00
jekyllbot
6847b604c8 Merge pull request #5157 from stevecheckoway/fix-hooks-priority-order
Merge pull request 5157
2016-09-28 16:39:44 -07:00
jekyllbot
b6d4ba56b7 Update history to reflect merge of #5210 [ci skip] 2016-09-28 16:38:00 -07:00
jekyllbot
9c197d9555 Merge pull request #5210 from jekyll/node-must-die
Merge pull request 5210
2016-09-28 16:38:00 -07:00
jekyllbot
79b0f27bf6 Update history to reflect merge of #5408 [ci skip] 2016-09-28 16:31:09 -07:00
jekyllbot
0f70bb1320 Merge pull request #5408 from ashmaroli/bundle2new
Merge pull request 5408
2016-09-28 16:31:08 -07:00
Parker Moore
d57b04782d Fix reference to #5413 2016-09-28 16:28:12 -07:00
jekyllbot
2f5b7dc1dc Update history to reflect merge of #5413 [ci skip] 2016-09-28 16:25:27 -07:00
jekyllbot
8138e67ffb Merge pull request #5413 from tf2manu994/patch-1
Merge pull request 5413
2016-09-28 16:25:26 -07:00
jekyllbot
719c0938a5 Update history to reflect merge of #5416 [ci skip] 2016-09-28 16:09:07 -07:00
jekyllbot
93c7cdf0d0 Merge pull request #5416 from ashmaroli/win-tz
Merge pull request 5416
2016-09-28 16:09:07 -07:00
Parker Moore
06651c960a Merge pull request #5325 from ashmaroli/gemspec-template-patch
update gemspec template to include only required theme files
2016-09-27 11:30:58 -07:00
jekyllbot
a920cf040b Update history to reflect merge of #5421 [ci skip] 2016-09-27 11:06:44 -07:00
jekyllbot
6c5a371b92 Merge pull request #5421 from crispgm/fix-logo
Merge pull request 5421
2016-09-27 11:06:43 -07:00
jekyllbot
157c8e888e Update history to reflect merge of #5420 [ci skip] 2016-09-27 11:06:17 -07:00
jekyllbot
a69919ecbe Merge pull request #5420 from DirtyF/site_template
Merge pull request 5420
2016-09-27 11:06:17 -07:00
Frank Taillandier
6dbb5e2df1 add contextual help for overriding theme's default 2016-09-27 11:27:29 +02:00
Frank Taillandier
c4ccfae3af rename index.html to index.md
fix https://github.com/jekyll/minima/issues/13
2016-09-27 11:12:29 +02:00
David Zhang
481901b413 Bugfix on logo in JSON-LD 2016-09-27 15:38:25 +08:00
Frank Taillandier
8321b14b29 Move contents of the index.html page to the 'home' layout 2016-09-27 08:24:58 +02:00
Manmeet Gill
81b16b24fc Change to 2.2.5 instead of 2.2.2
We don't need 2.2.2 exactly, switching to 2.2.5 shaves a solid 30 seconds off build time, as it is preinstalled on travis
2016-09-26 16:38:00 +10:00
Ashwin Maroli
6b6ce3cf18 use UTC format in timezone 2016-09-25 23:11:51 +05:30
Manmeet Gill
6366f56c21 Fix Travis.ci documentation 2016-09-25 16:26:43 +10:00
Zlatan Vasović
5df8ef5717 Add .editorconfig 2016-09-24 23:21:33 +02:00
jekyllbot
d79ca534e4 Update history to reflect merge of #5405 [ci skip] 2016-09-24 13:38:44 -07:00
jekyllbot
5c55d95446 Merge pull request #5405 from jekyll/relative_url_and_absolute_url
Merge pull request 5405
2016-09-24 13:38:43 -07:00
Pat Hawks
2b30c06140 Use Addressable to better deal with i18n URLs 2016-09-24 15:34:00 -05:00
Zlatan Vasović
fc6f7802a2 Replace classic box-sizing reset with inheritance reset
Reference: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
2016-09-24 22:14:49 +02:00
Pat Hawks
aebf711c61 Failing tests: URL filters choke on i18n 2016-09-24 15:11:04 -05:00
Heng Kwokfu
bacb300876 Skip Windows tests in non-Windows environment. 2016-09-24 21:55:02 +08:00
Ashwin Maroli
3966a37d71 swallow bundle output in CI 2016-09-24 13:48:22 +05:30
jekyllbot
93c5f71faf Update history to reflect merge of #5403 [ci skip] 2016-09-23 17:46:41 -07:00
jekyllbot
59fa8549f9 Merge pull request #5403 from chrisfinazzo/macOS
Merge pull request 5403
2016-09-23 17:46:41 -07:00
Heng Kwokfu
db53213d16 Merge remote-tracking branch 'jekyll/master' into patch-1 2016-09-24 08:46:24 +08:00
jekyllbot
9564782054 Update history to reflect merge of #5402 [ci skip] 2016-09-23 14:30:39 -07:00
jekyllbot
aaa062b047 Merge pull request #5402 from ashmaroli/jekyll-new-assets
Merge pull request 5402
2016-09-23 14:30:39 -07:00
Parker Moore
8e027fced9 Add documentation for relative_url and absolute_url 2016-09-23 14:27:40 -07:00
jekyllbot
f277baa975 Update history to reflect merge of #5399 [ci skip] 2016-09-23 14:18:02 -07:00
jekyllbot
8197e17495 Merge pull request #5399 from jekyll/relative_url_and_absolute_url
Merge pull request 5399
2016-09-23 14:18:01 -07:00
Chris Finazzo
69937373bd macOS and one grammar fix 2016-09-23 14:47:23 -04:00
Ashwin Maroli
0dc15dba88 remove css/ from new site scaffolding
css directory and its contents to be handled by theme's `assets/`
directory.
The directory removed here wil be added to minima gem.
2016-09-23 18:00:13 +05:30
Parker Moore
fa96843555 URLFilters: Simplify ensure_leading_slash calls. 2016-09-22 20:58:26 -07:00
jekyllbot
6571ea0c1a Update history to reflect merge of #5338 [ci skip] 2016-09-22 20:50:48 -07:00
jekyllbot
992be253a6 Merge pull request #5338 from ashmaroli/config-patch
Merge pull request 5338
2016-09-22 20:50:47 -07:00
jekyllbot
081d7c016a Update history to reflect merge of #5397 [ci skip] 2016-09-22 16:56:05 -07:00
jekyllbot
2a02c798ac Merge pull request #5397 from jekyll/add-jekyll-menus
Merge pull request 5397
2016-09-22 16:56:04 -07:00
Parker Moore
eab6752f52 Consolidate ensure_leading_slash to 2 lines. 2016-09-22 14:40:20 -07:00
Parker Moore
aa86651650 Add absolute_url and relative_url filters. 2016-09-22 14:16:00 -07:00
Jordon Bedwell
ae27db62eb Add jekyll-menus to the list of plugins. 2016-09-22 09:51:37 -05:00
jekyllbot
87c745573f Update history to reflect merge of #5389 [ci skip] 2016-09-21 13:29:38 -07:00
jekyllbot
25d4291d62 Merge pull request #5389 from ashmaroli/cucumber-with-access
Merge pull request 5389
2016-09-21 13:29:38 -07:00
Ashwin Maroli
588b3a6649 remove features dirs on windows with proper access 2016-09-21 22:42:01 +05:30
Ashwin Maroli
99fc60e28c update template to include theme files 2016-09-21 06:29:34 +05:30
jekyllbot
846ab94f43 Update history to reflect merge of #5375 [ci skip] 2016-09-20 17:05:49 -07:00
jekyllbot
3a7cbadd82 Merge pull request #5375 from Nicop06/underscore_highlight
Merge pull request 5375
2016-09-20 17:05:49 -07:00
jekyllbot
f3859384c0 Update history to reflect merge of #5376 [ci skip] 2016-09-20 17:04:58 -07:00
jekyllbot
ee84a95a38 Merge pull request #5376 from jonblatho/master
Merge pull request 5376
2016-09-20 17:04:57 -07:00
Parker Moore
9ae0a7023b Move reference to #5380. 2016-09-20 17:04:26 -07:00
jekyllbot
1ac87eaae2 Update history to reflect merge of #5380 [ci skip] 2016-09-20 16:39:33 -07:00
jekyllbot
cfe61771e0 Merge pull request #5380 from ethomson/coderay_deprecation
Merge pull request 5380
2016-09-20 16:39:33 -07:00
jekyllbot
262be85c49 Update history to reflect merge of #5237 [ci skip] 2016-09-20 15:32:26 -07:00
jekyllbot
504411e476 Merge pull request #5237 from ashmaroli/bundle2new
Merge pull request 5237
2016-09-20 15:32:25 -07:00
Parker Moore
650a3c7932 Update history to reflect merge of #5369 2016-09-20 13:48:40 -07:00
jekyllbot
ad0f329d1c Merge pull request #5369 from MertcanGokgoz/patch-1
Merge pull request 5369
2016-09-20 13:44:51 -07:00
jekyllbot
152fa877f6 Update history to reflect merge of #5364 [ci skip] 2016-09-20 13:40:11 -07:00
jekyllbot
3a45bf7d26 Merge pull request #5364 from jekyll/themes-asset-folder
Merge pull request 5364
2016-09-20 13:40:11 -07:00
Parker Moore
279f1516d2 Merge branch 'master' into themes-asset-folder
* master:
  Update history to reflect merge of #5381 [ci skip]
  Update history to reflect merge of #5383 [ci skip]
  run features on windows
  Appease Rubocop
  Update history to reflect merge of #5372 [ci skip]
  Add missing period to sentence in first paragraph.
2016-09-20 13:13:01 -07:00
Parker Moore
29d8fee4ce Add test to ensure that the /assets theme reader doesn't clobber preexisting site files. 2016-09-20 13:12:34 -07:00
jekyllbot
950a37395f Update history to reflect merge of #5381 [ci skip] 2016-09-20 13:10:49 -07:00
jekyllbot
d8d42f6abc Merge pull request #5381 from pathawks/pr/rubocop
Merge pull request 5381
2016-09-20 13:10:48 -07:00
jekyllbot
92dbe313e9 Update history to reflect merge of #5383 [ci skip] 2016-09-20 09:26:40 -07:00
jekyllbot
2eedf7d79c Merge pull request #5383 from ashmaroli/ruby-cucumber
Merge pull request 5383
2016-09-20 09:26:39 -07:00
Ashwin Maroli
75d59911ae run features on windows 2016-09-20 10:28:54 +05:30
Parker Moore
b78827cecb Add documentation for assets. 2016-09-19 13:57:36 -07:00
Parker Moore
7309ecf8e1 Theme: for various path helpers, use strings. Symbols confuse people. 2016-09-19 13:47:51 -07:00
Pat Hawks
3bfdc00d14 Appease Rubocop 2016-09-19 13:15:02 -05:00
Jonathan Thornton
f2bfc832a0 Marking filename with backticks as suggested 2016-09-19 12:08:20 -05:00
Edward Thomson
054b23f69a Only complain about coderay if it is actually in the config
Don't complain about the deprecated `kramdown.coderay` key when
`highlighter == "coderay"`, since that could have been set with the
legitimate `syntax_highlighter: coderay` setting.  Instead, complain
only if the `kramdown.coderay` configuration setting is actually
present.
2016-09-19 11:38:05 -05:00
Nicolas Porcel
0b94cf3fa1 Allow underscore in highlighter language 2016-09-19 13:10:29 +02:00
Jonathan Thornton
1a11536a2c Clarify documentation in README
This change is subtle, but may prove greatly useful to Jekyll newbies
2016-09-18 17:38:28 -05:00
Parker Moore
74baeb889a ThemeAssetsReader: fix tests so everything passes. 2016-09-18 15:04:15 -04:00
jekyllbot
7a9427ccec Update history to reflect merge of #5372 [ci skip] 2016-09-18 10:54:26 -07:00
jekyllbot
5a1c5311f3 Merge pull request #5372 from kyleobrien/patch-1
Merge pull request 5372
2016-09-18 10:54:26 -07:00
Kyle O'Brien
9aea71137e Add missing period to sentence in first paragraph.
Added a period to the end of the last sentence in the first paragraph, which was missing.
2016-09-18 09:51:33 -04:00
Mertcan GÖKGÖZ
5a932c90b5 added jekyll-spotify plugin 2016-09-18 10:50:21 +03:00
Parker Moore
6d7f305e7c Add tests for assets directory support. 2016-09-16 16:04:35 -07:00
Parker Moore
cf26bf5db0 TestTheme: update tests for 'path_for' now that it's no longer prepending the underscore 2016-09-16 15:36:33 -07:00
Parker Moore
87b9cfe2b5 ThemeBuilder: add 'assets' to list of scaffold directories 2016-09-16 14:57:58 -07:00
Parker Moore
13aec48137 Add ThemeAssetsReader which reads assets from a theme
If the theme includes the 'assets' directory, it will be walked and items will be added to the site based
on the normal rules of Jekyll: if there is YAML front matter, it will be added as a (convertible) Page,
otherwise it will be added as a StaticFile.
2016-09-16 14:41:36 -07:00
Parker Moore
b8f17b9034 Exclude node_modules by default
If no 'exclude' directive is specified, exclude node_modules by default.

https://twitter.com/mxstbr/status/761856359579185153
2016-09-16 13:09:10 -07:00
jekyllbot
562ffe7a3f Update history to reflect merge of #5361 [ci skip] 2016-09-16 12:58:42 -07:00
jekyllbot
c877d6f75c Merge pull request #5361 from DirtyF/patch-1
Merge pull request 5361
2016-09-16 12:58:42 -07:00
Frank Taillandier
0233d93352 vendor is now excluded by default [ci-skip] 2016-09-16 18:25:06 +02:00
Frank Taillandier
59b61c3f9f Exclude vendor by default 2016-09-16 07:56:37 +02:00
jekyllbot
57fd5f887d Update history to reflect merge of #5199 [ci skip] 2016-09-13 07:11:51 -07:00
jekyllbot
4888b84b44 Merge pull request #5199 from jeffkole/adds-linking-to-all-files
Merge pull request 5199
2016-09-13 07:11:50 -07:00
Ashwin Maroli
345f043cc4 test bundle install and skipping it. 2016-09-13 08:52:54 +05:30
Ashwin Maroli
566b42b8b3 add bundle install to jekyll new
- automatically run `bundle install` from within the newly generated blog
   directory by default.
 - add a new switch to skip this default behaviour.
2016-09-13 08:43:13 +05:30
jekyllbot
55de780520 Update history to reflect merge of #5347 [ci skip] 2016-09-12 00:26:00 -07:00
jekyllbot
42725b1325 Merge pull request #5347 from vohedge/patch-1
Merge pull request 5347
2016-09-12 00:26:00 -07:00
vohedge
d86a293d78 Fix typo 2016-09-11 00:18:02 +09:00
jekyllbot
a2e911c1b5 Update history to reflect merge of #5326 [ci skip] 2016-09-09 13:53:28 -07:00
jekyllbot
3e0363be4a Merge pull request #5326 from ashmaroli/gitignore-gem
Merge pull request 5326
2016-09-09 13:53:28 -07:00
jekyllbot
aa2cfc81b7 Update history to reflect merge of #5337 [ci skip] 2016-09-08 11:27:36 -07:00
jekyllbot
a70abbeab5 Merge pull request #5337 from jekyll/fix-convertible-5308
Merge pull request 5337
2016-09-08 11:27:35 -07:00
Ashwin Maroli
8813173ba7 set empty url in config file by default 2016-09-08 15:47:28 +05:30
jekyllbot
6ebdcdb198 Update history to reflect merge of #5316 [ci skip] 2016-09-08 02:55:30 -07:00
jekyllbot
9fd7e2c063 Merge pull request #5316 from DirtyF/markdown--default-extension
Merge pull request 5316
2016-09-08 02:55:30 -07:00
jekyllbot
eefcbf5dde Update history to reflect merge of #5335 [ci skip] 2016-09-08 02:54:03 -07:00
jekyllbot
19f7a0b8fc Merge pull request #5335 from DirtyF/copy-theme-files
Merge pull request 5335
2016-09-08 02:54:02 -07:00
Parker Moore
c1e6f1fb94 Fix rubocop errors & add one more test for slugify 'ascii' mode (#4680) 2016-09-07 17:50:14 -07:00
Parker Moore
9164973a6c Merge branch 'jussikinnula-master'
* jussikinnula-master:
  Fix slugify test
  One final "urlsafe" replaced with "ascii"
  Change urlsafe to ascii also when actually slugifying
  Add tests for ascii slugify mode
  Rename urlsafe to ascii, and document it (on utils.rb)
  Add urlsafe to accepted slugify modes
  Add urlsafe method for slugify
2016-09-07 16:50:32 -07:00
jekyllbot
f53a3b6272 Update history to reflect merge of #5235 [ci skip] 2016-09-07 16:34:37 -07:00
jekyllbot
dddafccb36 Merge pull request #5235 from jekyll/update-windows-detection-to-check-proc-version
Merge pull request 5235
2016-09-07 16:34:37 -07:00
jekyllbot
8c979ec565 Update history to reflect merge of #5318 [ci skip] 2016-09-07 16:28:01 -07:00
jekyllbot
3d38e8510c Merge pull request #5318 from ashmaroli/docs-themes-update
Merge pull request 5318
2016-09-07 16:28:01 -07:00
Parker Moore
3840a38081 Convertible: set self.output in #render_all_layouts and #do_layout 2016-09-07 15:59:43 -07:00
jekyllbot
d632cdda68 Update history to reflect merge of #5334 [ci skip] 2016-09-07 15:04:17 -07:00
jekyllbot
57ab7c5f98 Merge pull request #5334 from Crunch09/issue-5144
Merge pull request 5334
2016-09-07 15:04:17 -07:00
Florian Thomas
f0293def80 [docs] add help for missing static_file e.g. on heroku
fixes #5144
2016-09-07 09:07:35 +02:00
Frank Taillandier
42b85bb82f explain how to copy theme's file 2016-09-07 02:00:51 +02:00
Ashwin Maroli
b47db14f86 add future gems to gitignore 2016-09-05 15:14:59 +05:30
Ashwin Maroli
a666e6faee update line about semver to be less authoritative 2016-09-04 13:04:24 +05:30
jekyllbot
f69671c46c Update history to reflect merge of #5320 [ci skip] 2016-09-03 13:36:22 -07:00
jekyllbot
08436d75b8 Merge pull request #5320 from jrmessias/master
Merge pull request 5320
2016-09-03 13:36:21 -07:00
Júnior Messias
da0776d70e Update url for OpenShift
Update url for Github repository with cartridge
2016-09-03 11:28:18 -03:00
Ashwin Maroli
57b86ee77e add a line about updating theme-gems in the docs 2016-09-03 18:09:06 +05:30
Eloy Espinaco
9b09d8a8e8 Add support for indented link references on excerpt
Excerpt link reference extraction is missing all the indented references
at the bottom of the page. Markdown specify that those can be indented up
to three spaces.
2016-09-02 17:21:10 -03:00
Frank Taillandier
63595f388d promote .md extensions 2016-09-02 11:17:23 +02:00
jekyllbot
45aac995d8 Update history to reflect merge of #5308 [ci skip] 2016-09-01 17:18:51 -07:00
jekyllbot
2f167aeea7 Merge pull request #5308 from jekyll/rubocop-convertible
Merge pull request 5308
2016-09-01 17:18:50 -07:00
Parker Moore
4af0f0262e Remove layouts named param from Renderer#initialize 2016-09-01 13:26:14 -07:00
jekyllbot
4f80dde8c4 Update history to reflect merge of #5224 [ci skip] 2016-08-31 06:31:01 -07:00
jekyllbot
5093849b58 Merge pull request #5224 from eduardoboucas/patch-1
Merge pull request 5224
2016-08-31 06:31:01 -07:00
jekyllbot
d905a0475a Update history to reflect merge of #5189 [ci skip] 2016-08-30 14:54:48 -07:00
jekyllbot
6a34966f20 Merge pull request #5189 from jekyll/skip-theme-if-not-string
Merge pull request 5189
2016-08-30 14:54:47 -07:00
Parker Moore
a78426f20d Convertible#read_yaml: disable Metrics/AbcSize check 2016-08-30 14:39:49 -07:00
Parker Moore
9ddc12bad8 Convertible: ensure layouts the argument and payload the argument are set properly in the renderer 2016-08-30 14:39:20 -07:00
Parker Moore
ac6bbc1906 Renderer#invalid_layout? should check if document is an excerpt 2016-08-30 14:14:52 -07:00
Parker Moore
8014c54ee0 Convertible#converters: sort the converters 2016-08-30 14:14:33 -07:00
Parker Moore
73e79f0049 Proxy Convertible#converters to Renderer#run 2016-08-30 14:14:22 -07:00
Parker Moore
8496e2e8b6 Proxy Convertible#render_liquid to Renderer 2016-08-30 14:14:12 -07:00
Parker Moore
d0f57b61d4 Proxy Convertible#transform to Renderer 2016-08-30 14:14:03 -07:00
Parker Moore
741102bd40 Proxy Convertible#converters to Renderer 2016-08-30 14:13:26 -07:00
Parker Moore
b781b9967d Proxy Convertible#render_all_layouts to Renderer.place_in_layouts 2016-08-30 14:04:57 -07:00
jekyllbot
17883b77c6 Update history to reflect merge of #5045 [ci skip] 2016-08-30 13:34:56 -07:00
jekyllbot
6b121d2d85 Merge pull request #5045 from ayastreb/document-rubocop-fix
Merge pull request 5045
2016-08-30 13:34:55 -07:00
Parker Moore
5b21f8fda9 Fix fmt errors. 2016-08-30 13:28:46 -07:00
Parker Moore
2b15b0b325 Site#configure_theme: don't do anything if theme config is unset; TEST 2016-08-30 12:17:24 -07:00
Parker Moore
4420c3b2af Make Site#configure_theme more understandable 2016-08-30 11:58:21 -07:00
Parker Moore
40cc44c2ea Reorganize history.markdown for HEAD. 2016-08-30 11:46:58 -07:00
jekyllbot
b5ee87b4ca Update history to reflect merge of #5295 [ci skip] 2016-08-30 11:17:43 -07:00
jekyllbot
7c8dd4a55e Merge pull request #5295 from ashmaroli/script-default-site
Merge pull request 5295
2016-08-30 11:17:42 -07:00
jekyllbot
f3d0a97604 Update history to reflect merge of #5304 [ci skip] 2016-08-30 11:02:59 -07:00
jekyllbot
095d5344cd Merge pull request #5304 from crispgm/site-exclude
Merge pull request 5304
2016-08-30 11:02:58 -07:00
Ashwin Maroli
b2ece36d27 remove variable workdir 2016-08-30 22:15:00 +05:30
David Zhang
160782ec50 Site: exclude README.md and .gitignore [ci skip] 2016-08-30 19:54:33 +08:00
Ashwin Maroli
f3093e2f6f change workdir assignment 2016-08-30 09:35:07 +05:30
Ashwin Maroli
34404af031 execute jekyll from cloned source 2016-08-30 09:29:12 +05:30
jekyllbot
20f9c26088 Update history to reflect merge of #5280 [ci skip] 2016-08-29 18:55:58 -07:00
jekyllbot
0ad9fa3ba3 Merge pull request #5280 from Anthony-Gaudino/documentation-hook-payload
Merge pull request 5280
2016-08-29 18:55:57 -07:00
jekyllbot
809ceea107 Update history to reflect merge of #5240 [ci skip] 2016-08-29 11:57:23 -07:00
jekyllbot
bd4e7465ef Merge pull request #5240 from XhmikosR/appveyor
Merge pull request 5240
2016-08-29 11:57:22 -07:00
Anthony Gaudino
fd65e6ce32 Improve sentence to reduce confusion 2016-08-28 12:48:25 -03:00
Frank Taillandier
a9da814f17 add basename and name variables for static files 2016-08-27 11:22:24 +02:00
Frank Taillandier
349569592e [docs] add examples for static files liquid metadata 2016-08-27 10:06:29 +02:00
XhmikosR
d0d41792f9 script/default-site: add ruby in exec command.
Windows doesn't recognize `exe/jekyll` as Ruby executable so this should work everywhere.
2016-08-27 08:34:20 +03:00
XhmikosR
d49bf808b6 Update AppVeyor config.
Install gems in ./vendor/bundle and cache those only.
2016-08-27 08:34:20 +03:00
jekyllbot
02602bebd7 Update history to reflect merge of #5293 [ci skip] 2016-08-26 18:56:42 -07:00
jekyllbot
4f8d8557e4 Merge pull request #5293 from crispgm/exclude-gemfile-in-config
Merge pull request 5293
2016-08-26 18:56:41 -07:00
jekyllbot
488496a3a6 Update history to reflect merge of #5281 [ci skip] 2016-08-26 17:04:51 -07:00
jekyllbot
1979426812 Merge pull request #5281 from Anthony-Gaudino/site-documentation-links
Merge pull request 5281
2016-08-26 17:04:50 -07:00
jekyllbot
35846b8406 Update history to reflect merge of #5294 [ci skip] 2016-08-26 16:54:10 -07:00
jekyllbot
0e2aa46bcb Merge pull request #5294 from svachmic/patch-1
Merge pull request 5294
2016-08-26 16:54:09 -07:00
jekyllbot
b0425d8308 Update history to reflect merge of #5262 [ci skip] 2016-08-26 16:11:38 -07:00
jekyllbot
1930e13cad Merge pull request #5262 from ashmaroli/highlighter
Merge pull request 5262
2016-08-26 16:11:37 -07:00
Michal Švácha
891a66bddb Word update
Just a little update - I guess Travis has changed its icon a bit. It's not a wrench icon, but a gear one.
2016-08-26 13:56:41 +02:00
Heng, K. (Stephen)
23d7929948 Test case for issue #5192, where Jekyll.sanitized_path strips drive name on Windows incorrectly 2016-08-26 11:43:32 +08:00
Heng, K. (Stephen)
0d8796fbe6 Test case for issue #5276, where Jekyll.sanitized_path strips base path incorrectly if file path has matching prefix 2016-08-26 11:20:03 +08:00
Ashwin Maroli
7f578b5dd8 sassy update to match 2016-08-26 06:55:18 +05:30
Ashwin Maroli
1cd880f9d0 replace liquid highlight tag with backticks 2016-08-26 06:55:18 +05:30
jekyllbot
f56f252b28 Update history to reflect merge of #5291 [ci skip] 2016-08-25 11:13:55 -07:00
jekyllbot
59b8f2da55 Merge pull request #5291 from mertkahyaoglu/jekyll-admin-post
Merge pull request 5291
2016-08-25 11:13:54 -07:00
Heng, K. (Stephen)
7892c5e1f3 Fix issue #5276, where path strips root destination dir if filename matches 2016-08-25 18:35:09 +08:00
Anatoliy Yastreb
2183d9d6b4 Implement respond_to_missing? in Document 2016-08-25 12:13:34 +02:00
Anatoliy Yastreb
158e02623a rubocop: reduce code complexity 2016-08-25 11:22:40 +02:00
David Zhang
9c33754f4f Exclude Gemfile in _config.yml template 2016-08-25 14:54:59 +08:00
mertkahyaoglu
299e89df01 up timezone 2016-08-25 09:50:03 +03:00
mertkahyaoglu
8903038571 up date 2016-08-25 02:57:24 +03:00
mertkahyaoglu
250ca228c9 add post about jekyll admin initial release 2016-08-25 01:53:00 +03:00
jekyllbot
e0580c8909 Update history to reflect merge of #5286 [ci skip] 2016-08-24 13:16:42 -07:00
jekyllbot
ff55309dd7 Merge pull request #5286 from DirtyF/issue-template
Merge pull request 5286
2016-08-24 13:16:41 -07:00
jekyllbot
13330caa19 Update history to reflect merge of #5287 [ci skip] 2016-08-24 13:15:39 -07:00
jekyllbot
e4233b055e Merge pull request #5287 from ashmaroli/docs-fix
Merge pull request 5287
2016-08-24 13:15:38 -07:00
Ashwin Maroli
a74a6be4c4 update homepage to reflect merge of #5258 2016-08-24 19:37:10 +05:30
Frank Taillandier
a5470a32f1 replace duplicate with local test [ci-skip] 2016-08-24 12:50:09 +02:00
Anthony Gaudino
df1cafd507 On the site documentation section, links to documentation items point to the "jekyllrb.com" website, this means that users testing changes might get confused because they will see the official external website instead of their local website upon clicking those links. 2016-08-23 21:48:35 -03:00
jekyllbot
7c6fde1ac2 Update history to reflect merge of #5273 [ci skip] 2016-08-23 17:19:14 -07:00
jekyllbot
bcedf2079f Merge pull request #5273 from jekyll/affinity-teams-and-their-captains
Merge pull request 5273
2016-08-23 17:19:13 -07:00
Anthony Gaudino
cf33a9c427 The hook ":site, :post_render" also provides a "payload", but the plugins documentation section of the official Jekyll site doesnt inform this. 2016-08-23 21:06:11 -03:00
jekyllbot
8aa54ad801 Update history to reflect merge of #5279 [ci skip] 2016-08-23 13:01:31 -07:00
jekyllbot
0a75156f85 Merge pull request #5279 from DirtyF/document-profile-option
Merge pull request 5279
2016-08-23 13:01:30 -07:00
Frank Taillandier
13ce18d6a6 document --profile option 2016-08-23 21:36:06 +02:00
jekyllbot
276404c3f8 Update history to reflect merge of #5272 [ci skip] 2016-08-23 09:15:36 -07:00
jekyllbot
d759cfbeb9 Merge pull request #5272 from Anthony-Gaudino/site_install_command
Merge pull request 5272
2016-08-23 09:15:36 -07:00
jekyllbot
b908c3de1d Update history to reflect merge of #5274 [ci skip] 2016-08-23 07:40:10 -07:00
jekyllbot
6b289314e1 Merge pull request #5274 from DirtyF/document-lsi
Merge pull request 5274
2016-08-23 07:40:09 -07:00
Frank Taillandier
27139f40e2 Link to latent semantic indexing on Wikipedia 2016-08-23 02:24:30 +02:00
Parker Moore
478ea05c2e docs: add affinity team captain docs 2016-08-22 15:58:32 -07:00
Parker Moore
ade752b1c3 capital_H_dangit 2016-08-22 13:38:24 -07:00
jekyllbot
4319a752b1 Update history to reflect merge of #5271 [ci skip] 2016-08-22 13:28:31 -07:00
jekyllbot
3180b1490d Merge pull request #5271 from cchorn/patch-2
Merge pull request 5271
2016-08-22 13:28:30 -07:00
Anthony Gaudino
c5e1c66b73 Many of the gems installed bu just running bundle install are not necessary to test the Jekyll site. Changed the install command to avoid installing unecessary gems. 2016-08-22 16:13:00 -03:00
Charles Horn
a24636d1dc Update troubleshooting.md
update to include an error for a jekyll build related to issues ...
https://github.com/jekyll/jekyll/issues/5267
https://github.com/jekyll/jekyll/issues/2938
2016-08-22 12:22:37 -04:00
Frank Taillandier
326332a5d5 Rename filename to name 2016-08-21 21:32:26 +02:00
Frank Taillandier
87c00b2756 Get static filename 2016-08-20 17:42:05 +02:00
jekyllbot
594a6bf193 Update history to reflect merge of #5258 [ci skip] 2016-08-19 07:16:05 -07:00
jekyllbot
db61028b58 Merge pull request #5258 from ebabel-eu/patch-1
Merge pull request 5258
2016-08-19 07:16:04 -07:00
Nadjib Amar
3dcad7284b combined jekyll and bundler install in one line 2016-08-19 05:46:02 +02:00
Nadjib Amar
830f157f51 Bundler isn't installed by default
The bundle command requires the bundler gem to have been installed before it's run.
2016-08-19 05:38:05 +02:00
Heng, K. (Stephen)
596f5d1af3 Proposed fix for #5192
Strip drive name only when necessary.
2016-08-18 12:02:00 +08:00
jekyllbot
9061f0b1f3 Update history to reflect merge of #5249 [ci skip] 2016-08-17 17:31:54 -07:00
jekyllbot
9716b57e10 Merge pull request #5249 from crispgm/fix-theme-highlight
Merge pull request 5249
2016-08-17 17:31:53 -07:00
jekyllbot
1e97ae014f Update history to reflect merge of #5244 [ci skip] 2016-08-17 17:25:17 -07:00
jekyllbot
d0ae757714 Merge pull request #5244 from mkasberg/master
Merge pull request 5244
2016-08-17 17:25:17 -07:00
jekyllbot
06b3d72aa3 Update history to reflect merge of #5254 [ci skip] 2016-08-17 13:44:24 -07:00
jekyllbot
1b36e9fe85 Merge pull request #5254 from pmarsceill/fix-logo-stretch
Merge pull request 5254
2016-08-17 13:44:23 -07:00
Patrick Marsceill
748b2f1279 Maintain aspect ratio with height: auto; 2016-08-17 13:49:32 -04:00
jekyllbot
dadf43798e Update history to reflect merge of #5239 [ci skip] 2016-08-16 11:15:42 -07:00
jekyllbot
b82b93c7c0 Merge pull request #5239 from ashmaroli/colorize-embed
Merge pull request 5239
2016-08-16 11:15:41 -07:00
Ashwin Maroli
a9f92278d3 colorize interpolated text in Jekyll.logger.info 2016-08-16 22:50:54 +05:30
Jordon Bedwell
f1f8319566 Fix #5233: Increase our ability to detect Windows.
This increases our ability to detect Windows, and to detect Windows+Bash.  It also adds a message to Windows for users who try to "--watch", also noting to to them to check out the Windows ticket so eventually somebody pings us if this issue is fixed. /cc @TAGraves
2016-08-16 03:46:03 -05:00
David Zhang
912079a796 Fix theme highlight 2016-08-16 13:57:19 +08:00
Mike Kasberg
e080c7f1ce Fix a link in deployment-methods.md
The link to the scp deploy script was broken - it appears someone
changed the link text and did not update the matching link text in the
markdown footer.

Because the script is really simple, and the script originally linked
includes some unnecessary scss commands, let's just inline the script.
2016-08-15 15:01:59 -06:00
jekyllbot
9f8876a332 Update history to reflect merge of #5221 [ci skip] 2016-08-11 18:53:33 -07:00
jekyllbot
72629091d1 Merge pull request #5221 from ashmaroli/mod-travis
Merge pull request 5221
2016-08-11 18:53:32 -07:00
jekyllbot
30399528e4 Update history to reflect merge of #5222 [ci skip] 2016-08-11 14:22:51 -07:00
jekyllbot
a49a5dcf4e Merge pull request #5222 from stkent/patch-1
Merge pull request 5222
2016-08-11 14:22:51 -07:00
jekyllbot
dca8047f77 Update history to reflect merge of #5226 [ci skip] 2016-08-10 22:21:49 -07:00
jekyllbot
5a243fb64c Merge pull request #5226 from gerardorn/patch-1
Merge pull request 5226
2016-08-10 22:21:48 -07:00
Gerardo
3e65dd36a9 fixed typo 2016-08-11 00:03:59 -05:00
Eduardo Bouças
e6f3fd347c Add link to Staticman
This PR adds a link to [Staticman](https://staticman.net), a free and open source platform to insert user-generated into a Jekyll site by converting entries to data files and pushing them to the repository where the site lives.
2016-08-10 10:08:00 +01:00
Stuart Kent
b3ce1392db Add missing comma 2016-08-10 08:02:41 +01:00
Ashwin Maroli
1c68c23f85 update rubies in travis 2016-08-10 12:02:01 +05:30
Jordon Bedwell
8e361dfe7d That should be jruby-9.1.2.0. 2016-08-09 23:55:20 -05:00
Jordon Bedwell
4d44940b9c Fix bad colon in .travis.yml 2016-08-09 23:54:21 -05:00
Jordon Bedwell
fbebdb7ce7 Cleanup .travis.yml so it can be updated more cleanly.
Use shared values in YAML so that only certain pieces of .travis.yml need to be updated in order to update Ruby versions.  Things should cascade so that if people send a pull request they can update just RVM field.
2016-08-09 23:53:59 -05:00
jekyllbot
088e931901 Update history to reflect merge of #5214 [ci skip] 2016-08-08 19:05:28 -07:00
jekyllbot
c526c9dd62 Merge pull request #5214 from DirtyF/fix-5213
Merge pull request 5214
2016-08-08 19:05:27 -07:00
Frank Taillandier
519ccdf4d9 Remove mention of page for link tag
fix #5213
2016-08-08 21:39:31 +02:00
jekyllbot
4bff65be90 Update history to reflect merge of #5167 [ci skip] 2016-08-07 12:42:19 -07:00
jekyllbot
554749ae0a Merge pull request #5167 from Crunch09/plugin_manager_tests
Merge pull request 5167
2016-08-07 12:42:18 -07:00
Parker Moore
b937757dce Site#configure_theme: warn in case the 'theme' config is not a string 2016-08-07 12:03:50 -07:00
Florian Thomas
70ba8c578a update require_gems test 2016-08-07 21:01:09 +02:00
Parker Moore
de6476812f Update history to reflect merge of #5182
[ci skip]
2016-08-07 11:55:24 -07:00
Parker Moore
7841db8acf Merge branch 'DirtyF-doc-link-tag'
* DirtyF-doc-link-tag:
  templates.md: {% link %} tag only accepts collection documents
  add more link tag usage examples
  [docs] link tag example for a post
  [docs] Document link Liquid tag
2016-08-07 11:54:40 -07:00
Parker Moore
ab4abb1933 templates.md: {% link %} tag only accepts collection documents
Remove examples of pages/static file links until it's released.
#5182 #5199
2016-08-07 11:54:32 -07:00
Florian Thomas
539154a158 replace assert false, ... with refute 2016-08-07 20:54:22 +02:00
jekyllbot
06126af5cc Update history to reflect merge of #5205 [ci skip] 2016-08-07 11:26:58 -07:00
jekyllbot
d9a4f6a59a Merge pull request #5205 from DirtyF/document-new-theme
Merge pull request 5205
2016-08-07 11:26:58 -07:00
Stephen Checkoway
6167c09569 Run hooks in priority order.
Low priority hooks are being run before higher priority hooks. This is easy to
demonstrate with the following plugin:

    1.upto(10).each do |n|
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:low] do
        puts "Low #{n}"
      end
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:normal] do
        puts "Normal #{n}"
      end
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:high] do
        puts "High #{n}"
      end
    end

Sorting by the negative of the priority and then by the order the hook was
added does the right thing.
2016-08-06 20:56:34 -05:00
jekyllbot
bc7aaf5274 Update history to reflect merge of #5183 [ci skip] 2016-08-06 12:30:35 -07:00
jekyllbot
d0f55d7207 Merge pull request #5183 from nhoizey/patch-1
Merge pull request 5183
2016-08-06 12:30:34 -07:00
jekyllbot
c9bf8d0726 Update history to reflect merge of #5196 [ci skip] 2016-08-06 12:27:49 -07:00
jekyllbot
61eda2ee40 Merge pull request #5196 from jekyll/site-template-jekyll-feed
Merge pull request 5196
2016-08-06 12:27:48 -07:00
Frank Taillandier
aa8d7772d5 fix hightlight tag 2016-08-05 21:25:19 +02:00
Frank Taillandier
6ab8b5ffe1 Documentation : new-theme command 2016-08-05 21:15:57 +02:00
Jeff Kolesky
e0ce4a00f8 Fixes link tag to work with static files 2016-08-04 20:03:01 -07:00
Jeff Kolesky
05445b81c7 Fixes tests to account for new info.md file 2016-08-04 19:40:14 -07:00
Frank Taillandier
50854d2f76 add more link tag usage examples 2016-08-04 10:56:39 +02:00
Jeff Kolesky
82d6657ae8 Adds ability to link to all files
Fixes request made in #4624 and bug found in #5182
2016-08-03 15:08:26 -07:00
jekyllbot
bc7eb70385 Update history to reflect merge of #5190 [ci skip] 2016-08-03 11:57:52 -07:00
jekyllbot
a63a6d8487 Merge pull request #5190 from shingo-nakanishi/master
Merge pull request 5190
2016-08-03 11:57:51 -07:00
jekyllbot
9e4f469469 Update history to reflect merge of #5194 [ci skip] 2016-08-03 11:57:21 -07:00
jekyllbot
ca77dae267 Merge pull request #5194 from nhoizey/patch-2
Merge pull request 5194
2016-08-03 11:57:20 -07:00
Ben Balter
58cd8f3f4e use jekyll-feed for default site RSS feed 2016-08-03 12:10:44 -04:00
Nicolas Hoizey
ddff013696 Fix path in the prompt 2016-08-03 14:00:53 +02:00
shingo-nakanishi
f084de7bc9 need subcommand build
simply run the `jekyll` shows

```
A subcommand is required. 
jekyll 3.2.1 -- Jekyll is a blog-aware, static site generator in Ruby
``` 

need subcommand build
2016-08-03 10:56:43 +09:00
jekyllbot
01c59004e9 Update history to reflect merge of #5180 [ci skip] 2016-08-02 17:42:13 -07:00
jekyllbot
cb99cf603a Merge pull request #5180 from XhmikosR/patch-1
Merge pull request 5180
2016-08-02 17:42:12 -07:00
jekyllbot
d3ae8403ea Update history to reflect merge of #5185 [ci skip] 2016-08-02 17:30:21 -07:00
jekyllbot
997c61470b Merge pull request #5185 from crispgm/doc-for-filters
Merge pull request 5185
2016-08-02 17:30:20 -07:00
Parker Moore
2bd592077d Site#configure_theme: do not set theme unless it's a string
Some previous ad-hoc 'themes' used this configuration option to store a hash of values.
In that case, we should simply pretend we have no theme.
2016-08-02 17:11:40 -07:00
Parker Moore
da0b456288 Release 💎 3.2.1 2016-08-02 17:06:23 -07:00
Parker Moore
eef3687486 Merge pull request #5187 from jekyll/release-3-2-1
Site updates for v3.2.1
2016-08-02 17:04:36 -07:00
Parker Moore
b5dcd4b295 New site/latest_version.txt 2016-08-02 16:17:28 -07:00
Parker Moore
57c6408b7f Do not generate the site in verbose mode. 2016-08-02 16:17:28 -07:00
Parker Moore
d504eb5ce9 Gemfile: Be looser about jekyll plugin versions. 2016-08-02 16:17:28 -07:00
Parker Moore
15dc18343c Add release post for 3.2.1 & update History & version 2016-08-02 16:17:28 -07:00
jekyllbot
d4a68eb642 Update history to reflect merge of #5188 [ci skip] 2016-08-02 16:13:07 -07:00
jekyllbot
a7bc7ff9c7 Merge pull request #5188 from jekyll/default-site-read-from-local
Merge pull request 5188
2016-08-02 16:13:06 -07:00
Parker Moore
3943de066c script/default-site: read Jekyll source from local clone
If you bump the version in the repo, then it all goes haywire.
2016-08-02 15:55:33 -07:00
DirtyF
d5e96757a5 [docs] link tag example for a post
* put link tag before post_url
* example of link to a post with link tag
2016-08-02 20:24:30 +02:00
XhmikosR
801d12b916 Gemfile: specify x64_mingw for the optional deps. 2016-08-02 20:39:27 +03:00
XhmikosR
050aacfc85 Update appveyor.yml.
* rename variables
* add `default-site` target
* remove `fast_finish` in order to match Travis CI behavior
* run cucumber tests only on the latest Ruby
2016-08-02 20:39:27 +03:00
David Zhang
3f1b12972b Fix inspect 2016-08-03 01:21:27 +08:00
David Zhang
20e1da8d0b Document for to_integer and inspect filters 2016-08-03 01:10:58 +08:00
Nicolas Hoizey
9ccd0d767a Add the Jekyll Cloudinary plugin 2016-08-02 14:41:14 +02:00
DirtyF
bf8c15f949 [docs] Document link Liquid tag 2016-08-02 09:28:36 +02:00
jekyllbot
6d2b344c0e Update history to reflect merge of #5178 [ci skip] 2016-08-01 22:06:56 -07:00
jekyllbot
88b57ce649 Merge pull request #5178 from jekyll/default-site-specify-gemfile
Merge pull request 5178
2016-08-01 22:06:55 -07:00
Parker Moore
663117403d script/default-site: specify BUNDLE_GEMFILE for new site 2016-08-01 21:56:28 -07:00
jekyllbot
c4483a3a29 Update history to reflect merge of #5168 [ci skip] 2016-08-01 17:36:40 -07:00
jekyllbot
896a502129 Merge pull request #5168 from jekyll/change-quickstart
Merge pull request 5168
2016-08-01 17:36:40 -07:00
jekyllbot
8408449551 Update history to reflect merge of #5164 [ci skip] 2016-08-01 17:34:52 -07:00
jekyllbot
6e0119d5e1 Merge pull request #5164 from jekyll/fix-windows-error
Merge pull request 5164
2016-08-01 17:34:52 -07:00
jekyllbot
b113c01198 Merge pull request #5169 from DirtyF/change-quickstart
Merge pull request 5169
2016-08-01 17:34:17 -07:00
jekyllbot
c6417e8c82 Update history to reflect merge of #5169 [ci skip] 2016-08-01 17:34:17 -07:00
jekyllbot
c6f2459b4e Update history to reflect merge of #5154 [ci skip] 2016-08-01 17:33:55 -07:00
jekyllbot
73b7bd8172 Merge pull request #5154 from jekyll/build-the-site
Merge pull request 5154
2016-08-01 17:33:54 -07:00
Parker Moore
28365aef96 Run the CI, please. 2016-08-01 17:28:52 -07:00
Parker Moore
52f5dc154c Merge branch 'master' into build-the-site
* master:
  Update history to reflect merge of #5156 [ci skip]
  Update history to reflect merge of #5177 [ci skip]
  Update history to reflect merge of #5173 [ci skip]
  Minor updates and corrections
  Future True on GitHub Pages note
  resolve theme root before sanitizing
  dont double sanitize theme folder paths
2016-08-01 17:28:19 -07:00
Parker Moore
dc8c6e0e43 Merge branch 'master' into build-the-site
* master:
  Update history to reflect merge of #5152 [ci skip]
  Missing trailing |
  Update history to reflect merge of #5158 [ci skip]
  Also include LICENSE and README
  note that themes have been released
  Update history to reflect merge of #5143 [ci skip]
  Update history to reflect merge of #5150 [ci skip]
  Revert "Readability: lib/jekyll/static_file.rb."
  include theme directories in default gemspec
  [site] enable excerpts
  Centre align text and use nav styles on helpful links.
  Puns FTW
  Add helpful links and minor alignment tweak.
  Create error template that has no main nav or footer.
  Use more generic wording.
  sitemap: false so that the error page is not indexed
  Initial 404 page
2016-08-01 17:28:05 -07:00
jekyllbot
8540487997 Update history to reflect merge of #5156 [ci skip] 2016-08-01 17:27:02 -07:00
jekyllbot
95e9774100 Merge pull request #5156 from jekyll/theme-source-fix
Merge pull request 5156
2016-08-01 17:27:02 -07:00
jekyllbot
e735e45156 Update history to reflect merge of #5177 [ci skip] 2016-08-01 17:25:44 -07:00
jekyllbot
ae72c64441 Merge pull request #5177 from gep13/patch-1
Merge pull request 5177
2016-08-01 17:25:43 -07:00
Parker Moore
4d0d528fd5 script/default-site: give debug output 2016-08-01 14:49:52 -07:00
jekyllbot
26b827a536 Update history to reflect merge of #5173 [ci skip] 2016-08-01 13:14:07 -07:00
jekyllbot
1374a6c84c Merge pull request #5173 from danayel/patch-1
Merge pull request 5173
2016-08-01 13:14:06 -07:00
Gary Ewan Park
c5bd075bc7 Minor updates and corrections
- Corrected highlighting on multi-line sections
- Replace `cinst` with `choco install` for consistency
2016-08-01 19:20:59 +01:00
Ben Balter
4dab0c7da6 Only build default site once 2016-08-01 13:10:23 -04:00
Daniel Chapman
65d1dc48f3 Future True on GitHub Pages note 2016-08-01 11:05:12 +09:00
DirtyF
207b6f19f0 update instructions to require bundler 2016-07-30 18:22:51 +02:00
Parker Moore
9d45644e6c docs/quickstart: update instructions to require bundler
With gem-based themes being bundled in the new site via the `Gemfile`, we
should ask folks to use Bundler wherever possible. This should lead to more
successful installations and getting the base site setup properly.

The only trouble this introduces is it puts a dependency on Bundler. That
said, I'm totally fine with requiring everyone use Bundler for this site.
How could we best install bundler in these instructions?

/cc @jekyll/documentation
2016-07-30 11:35:06 -04:00
Florian Thomas
d158d73ce1 add missing tests 2016-07-30 15:49:16 +02:00
Florian Thomas
2236ee4284 migrate existing tests to should syntax 2016-07-30 15:48:21 +02:00
Parker Moore
d4e18fc979 Layout: set relative_path without using Pathname
Presently, on a Windows machine, you get an ArgumentError on Windows:

     Generating...
C:/Ruby23-x64/lib/ruby/2.3.0/pathname.rb:520:in `relative_path_from':
    different prefix: "/" and "C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1" (ArgumentError)
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/layout.rb:61:in `relative_path'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/renderer.rb:161:in `place_in_layouts'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/renderer.rb:71:in `run'

This doesn't affect filesystems which do not use drive names.
2016-07-29 12:16:06 -07:00
jekyllbot
3b2bbcb70f Update history to reflect merge of #5152 [ci skip] 2016-07-28 14:02:11 -07:00
jekyllbot
8e25b8bffb Merge pull request #5152 from jekyll/theme-dir-regex-fix
Merge pull request 5152
2016-07-28 14:02:10 -07:00
Ben Balter
909800839c Missing trailing | 2016-07-28 16:31:20 -04:00
jekyllbot
27cfa00a43 Update history to reflect merge of #5158 [ci skip] 2016-07-28 13:22:20 -07:00
jekyllbot
ff80d2f2b5 Merge pull request #5158 from jekyll/release-the-themes
Merge pull request 5158
2016-07-28 13:22:19 -07:00
Ben Balter
9220c5a634 Also include LICENSE and README 2016-07-28 15:43:45 -04:00
Ben Balter
b22fa7ce4e note that themes have been released 2016-07-28 15:39:41 -04:00
Ben Balter
8b69c6f0b5 resolve theme root before sanitizing 2016-07-28 15:12:31 -04:00
jekyllbot
94af8ca75a Update history to reflect merge of #5143 [ci skip] 2016-07-28 11:58:26 -07:00
jekyllbot
f29ebc4911 Merge pull request #5143 from adampetrie/jekyllrb-404
Merge pull request 5143
2016-07-28 11:58:26 -07:00
jekyllbot
16ff4c12bb Update history to reflect merge of #5150 [ci skip] 2016-07-28 11:57:21 -07:00
jekyllbot
e01f1ece48 Merge pull request #5150 from jekyll/add-excerpts
Merge pull request 5150
2016-07-28 11:57:20 -07:00
Ben Balter
2351ef6bbe dont double sanitize theme folder paths 2016-07-28 14:46:05 -04:00
Ben Balter
bd96ca4ab6 bundle install before running bundle exec 2016-07-28 14:15:48 -04:00
Jordon Bedwell
54281530fb Revert "Readability: lib/jekyll/static_file.rb."
This reverts commit 26f1ea2487.
2016-07-28 13:15:29 -05:00
Ben Balter
4278f856ef add default site test to travis 2016-07-28 10:50:45 -04:00
Ben Balter
ca03a41564 add test to build the default site 2016-07-28 10:43:46 -04:00
Ben Balter
1bf47ec394 include theme directories in default gemspec 2016-07-28 10:21:30 -04:00
Ben Balter
6292476482 [site] enable excerpts 2016-07-28 09:52:30 -04:00
Jordon Bedwell
26f1ea2487 Readability: lib/jekyll/static_file.rb. 2016-07-27 23:59:50 -05:00
Parker Moore
dd82c72e14 New latest version for Jekyll. 2016-07-27 18:40:28 -07:00
Parker Moore
b9017f8b81 Release 💎 3.2.0 2016-07-27 17:18:20 -07:00
Parker Moore
09570623f2 Release 💎 3.2.0 2016-07-27 17:18:11 -07:00
Parker Moore
07518d9540 Release 💎 3.2.0 2016-07-27 17:17:14 -07:00
Parker Moore
d9b8360d96 Merge pull request #5140 from jekyll/3.2.0-release-post
3.2.0 release post
2016-07-27 16:59:06 -07:00
Parker Moore
f4c3c5afd6 Merge pull request #5141 from jekyll/remove-example-from-theme
ThemeBuilder: Remove example site from theme
2016-07-27 16:55:07 -07:00
Parker Moore
59c8f02129 3.2.0 release post: remove duplicate contributor 2016-07-27 16:54:22 -07:00
Adam Petrie
989fc9c3db Centre align text and use nav styles on helpful links. 2016-07-27 19:54:07 -04:00
Adam Petrie
1155371f4e Puns FTW 2016-07-27 19:53:36 -04:00
Adam Petrie
83456e7cd2 Add helpful links and minor alignment tweak. 2016-07-27 19:09:20 -04:00
Adam Petrie
142957ff49 Create error template that has no main nav or footer. 2016-07-27 19:08:37 -04:00
Adam Petrie
954c0bfe07 Use more generic wording. 2016-07-27 18:33:16 -04:00
Adam Petrie
ea185f11af sitemap: false so that the error page is not indexed 2016-07-27 18:32:49 -04:00
Adam Petrie
b65aa4748b Initial 404 page 2016-07-27 17:00:19 -04:00
Parker Moore
7e34be945a Remove mention of rake preview for theme README. 2016-07-26 17:34:52 -07:00
Parker Moore
a31766d329 ThemeBuilder: do not create example site & Rakefile
They're unnecessary -- the theme _is_ a Jekyll site. Just use jekyll build.
2016-07-26 17:32:18 -07:00
Parker Moore
058f9e8533 Remove DirtyF from 3.2.0 contributors list due to duplication 2016-07-26 17:24:35 -07:00
Parker Moore
deab138f23 site template: update link to jglovier/jekyll-new to jekyll/minima 2016-07-26 15:37:26 -07:00
Parker Moore
edec81ef96 Update History to reflect release of v3.2.0 2016-07-26 15:29:15 -07:00
Parker Moore
823a8630b6 Added post: v3.2.0 Released 2016-07-26 15:29:06 -07:00
Parker Moore
55317817d1 Backport #5138 to .github/CONTRIBUTING.markdown 2016-07-26 09:54:33 -07:00
jekyllbot
dbf312eec0 Update history to reflect merge of #5138 [ci skip] 2016-07-26 09:53:01 -07:00
jekyllbot
c83246bfe2 Merge pull request #5138 from chrisfinazzo/note-about-fmt
Merge pull request 5138
2016-07-26 09:53:00 -07:00
jekyllbot
2c224b0990 Update history to reflect merge of #5139 [ci skip] 2016-07-26 09:52:44 -07:00
jekyllbot
a3ecce7cc1 Merge pull request #5139 from cdubz/patch-1
Merge pull request 5139
2016-07-26 09:52:43 -07:00
Chris Wells
087b763478 Removed confusing word repetition.
Deleted both instances of "yourself" in the first sentence under "Self-managed web server".
2016-07-26 09:09:57 -04:00
Parker Moore
4b476f70e6 script/fmt: prefix rubocop version with "Rubocop"
This makes it obvious what those mysterious numbers are.
2016-07-25 21:08:56 -07:00
Parker Moore
30e34a72c0 script/cibuild: if no TEST_SUITE is defined, run fmt, test, cucumber
/cc #5136
2016-07-25 21:08:05 -07:00
jekyllbot
9b0532a3c4 Update history to reflect merge of #5137 [ci skip] 2016-07-25 17:45:52 -07:00
jekyllbot
41a99b300d Merge pull request #5137 from jekyll/pull/fixes-for-rubocop-0-42
Merge pull request 5137
2016-07-25 17:45:51 -07:00
chrisfinazzo
7dd9e954d9 Add a note about script/fmt 2016-07-25 18:35:03 -04:00
Parker Moore
4b698747dc Style fixes for Rubocop 0.42.0
- var == 0 becomes var.zero?
- when defining method_missing, also define respond_to_missing?
2016-07-25 12:46:43 -07:00
jekyllbot
5805ea78ec Update history to reflect merge of #5135 [ci skip] 2016-07-25 12:26:03 -07:00
jekyllbot
6b0b6418dc Merge pull request #5135 from chrisfinazzo/baseurl-subcommand
Merge pull request 5135
2016-07-25 12:26:02 -07:00
jekyllbot
3580e4fe82 Update history to reflect merge of #4860 [ci skip] 2016-07-25 12:16:56 -07:00
jekyllbot
0f3ce73516 Merge pull request #4860 from pathawks/pr/where_exp
Merge pull request 4860
2016-07-25 12:16:55 -07:00
jekyllbot
28548f985e Update history to reflect merge of #5127 [ci skip] 2016-07-25 10:42:29 -07:00
jekyllbot
57944c3da4 Merge pull request #5127 from ayastreb/date-filter-fix
Merge pull request 5127
2016-07-25 10:42:28 -07:00
jekyllbot
da72c0974c Update history to reflect merge of #5129 [ci skip] 2016-07-25 10:41:55 -07:00
jekyllbot
810e411bdf Merge pull request #5129 from stevecheckoway/display-liquid-warnings
Merge pull request 5129
2016-07-25 10:41:54 -07:00
jekyllbot
d0fbae2294 Update history to reflect merge of #5131 [ci skip] 2016-07-25 10:40:19 -07:00
jekyllbot
5e3f9cdd4f Merge pull request #5131 from stevecheckoway/default-docs
Merge pull request 5131
2016-07-25 10:40:18 -07:00
chrisfinazzo
ed3f745b77 Add baseurl subcommand, fixes #4919 2016-07-25 10:15:15 -04:00
Stephen Checkoway
71a971ff46 Make the documentation match the code. 2016-07-25 09:00:34 -05:00
Parker Moore
0e0e9f2081 Fix script/fmt error in site.rb. 2016-07-24 19:27:21 -07:00
Parker Moore
90cf9f210e Release 💎 3.2.0.pre.beta2 2016-07-24 16:43:33 -07:00
Parker Moore
9f02ec6cf8 Release v3.2.0.pre.beta2 2016-07-24 16:43:28 -07:00
Stephen Checkoway
8d4ab9366e Show liquid warnings. 2016-07-24 13:04:28 -05:00
Anatoliy Yastreb
9176924eab filters: raise error if no input given to date filters 2016-07-24 01:37:35 +03:00
jekyllbot
1be51f963b Update history to reflect merge of #5109 [ci skip] 2016-07-21 11:43:39 -07:00
jekyllbot
f8aea7b35c Merge pull request #5109 from mojavelinux/issue-4858
Merge pull request 5109
2016-07-21 11:43:38 -07:00
jekyllbot
e5028d505b Merge pull request #5118 from XhmikosR/site-valid-html
Merge pull request 5118
2016-07-21 11:42:42 -07:00
jekyllbot
9da15b62b1 Update history to reflect merge of #5122 [ci skip] 2016-07-21 11:42:19 -07:00
jekyllbot
c1e1d2a099 Merge pull request #5122 from ayastreb/docs-fix
Merge pull request 5122
2016-07-21 11:42:18 -07:00
Anatoliy Yastreb
f4a9a2622c docs: fix link to plugins page source 2016-07-21 21:28:16 +03:00
jekyllbot
04cfd9f725 Update history to reflect merge of #5123 [ci skip] 2016-07-21 10:50:13 -07:00
jekyllbot
ff224cdfb2 Merge pull request #5123 from ayastreb/patch-1
Merge pull request 5123
2016-07-21 10:50:12 -07:00
jekyllbot
acbdc3a4a5 Update history to reflect merge of #5124 [ci skip] 2016-07-21 10:49:48 -07:00
jekyllbot
eb28b5c296 Merge pull request #5124 from crispgm/fix-ruby-style
Merge pull request 5124
2016-07-21 10:49:47 -07:00
Anatoliy Yastreb
3c2765d104 docs: add jekyll-maps plugin reference 2016-07-21 20:09:36 +03:00
crisp
84c4d1998a Fix indentation 2016-07-22 01:09:21 +08:00
jekyllbot
a3b179373c Update history to reflect merge of #5119 [ci skip] 2016-07-20 10:27:43 -07:00
jekyllbot
9ee211a076 Merge pull request #5119 from XhmikosR/appveyor
Merge pull request 5119
2016-07-20 10:27:42 -07:00
XhmikosR
96194c3ce2 appveyor.yml: drop Ruby 2.0.0. 2016-07-20 16:05:39 +03:00
Dan Allen
d590d7a738 resolves #4858 pass site instance to watch plugin
- prevents the watch plugin from creating a new site instance
2016-07-19 23:21:28 -06:00
jekyllbot
990d385736 Update history to reflect merge of #5115 [ci skip] 2016-07-19 15:27:49 -07:00
jekyllbot
51f5c2809f Merge pull request #5115 from XhmikosR/appveyor
Merge pull request 5115
2016-07-19 15:27:48 -07:00
jekyllbot
c22d9e69df Update history to reflect merge of #5113 [ci skip] 2016-07-19 15:05:02 -07:00
jekyllbot
b474ea8550 Merge pull request #5113 from XhmikosR/whitespace
Merge pull request 5113
2016-07-19 15:05:01 -07:00
jekyllbot
5fb48430ca Update history to reflect merge of #5116 [ci skip] 2016-07-19 12:31:02 -07:00
jekyllbot
2f9ebaf7f4 Merge pull request #5116 from XhmikosR/yml
Merge pull request 5116
2016-07-19 12:31:01 -07:00
XhmikosR
cca211af98 Add AppVeyor support for Windows CI testing. 2016-07-19 09:35:12 +03:00
XhmikosR
b6044aebd6 site: fix validation errors. 2016-07-19 09:11:15 +03:00
Parker Moore
dbea0c5389 site: remove 'umentation' for Documentation in desktop site 2016-07-18 23:06:24 -06:00
jekyllbot
0bd29bd632 Update history to reflect merge of #5112 [ci skip] 2016-07-18 21:58:30 -07:00
jekyllbot
2b4680bb94 Merge pull request #5112 from XhmikosR/img-compression
Merge pull request 5112
2016-07-18 21:58:29 -07:00
jekyllbot
ff25e4e2cf Update history to reflect merge of #5114 [ci skip] 2016-07-18 21:46:31 -07:00
jekyllbot
0963f85871 Merge pull request #5114 from XhmikosR/typo-fixes
Merge pull request 5114
2016-07-18 21:46:30 -07:00
jekyllbot
f8a4f58fff Update history to reflect merge of #5117 [ci skip] 2016-07-18 21:14:08 -07:00
jekyllbot
dcdbc29497 Merge pull request #5117 from spencerbyw/patch-1
Merge pull request 5117
2016-07-18 21:14:08 -07:00
Spencer A. Bywater
7975d2e994 Typo in documentation file templates.md 2016-07-18 13:06:08 -07:00
XhmikosR
1cfcf38289 Normalize yml files. 2016-07-18 21:43:31 +03:00
XhmikosR
5ca080ac6f Whitespace cleanup. 2016-07-18 21:31:17 +03:00
XhmikosR
dbc0349909 tests: Typo fixes. 2016-07-18 21:20:47 +03:00
XhmikosR
311e3d2fef Slightly, improve PNG compression.
Before: 101 KB (103.742 bytes)
After:  100 KB (102.817 bytes)
2016-07-18 19:45:53 +03:00
jekyllbot
5e74610755 Update history to reflect merge of #5022 [ci skip] 2016-07-15 19:39:42 -07:00
jekyllbot
cfeb54d4be Merge pull request #5022 from ayastreb/collection
Merge pull request 5022
2016-07-15 19:39:42 -07:00
jekyllbot
10cfaa2a75 Update history to reflect merge of #5106 [ci skip] 2016-07-15 19:24:03 -07:00
jekyllbot
ed98597d49 Merge pull request #5106 from ayastreb/after_init_hook
Merge pull request 5106
2016-07-15 19:24:02 -07:00
jekyllbot
196275f5b4 Update history to reflect merge of #5060 [ci skip] 2016-07-15 17:26:14 -07:00
jekyllbot
eb88aa330c Merge pull request #5060 from stomar/stringify-overrides
Merge pull request 5060
2016-07-15 17:26:14 -07:00
jekyllbot
0db1ec339d Update history to reflect merge of #5101 [ci skip] 2016-07-15 09:58:09 -07:00
jekyllbot
3ae7d0c319 Merge pull request #5101 from crispgm/dev_to_integer_filter
Merge pull request 5101
2016-07-15 09:58:08 -07:00
Anatoliy Yastreb
b9f232e5bf rubocop: fix methods naming and indentation 2016-07-15 10:59:44 +03:00
Anatoliy Yastreb
b88f0a21d6 hooks: move after_init hook call at the end of Site.initialize 2016-07-15 10:31:02 +03:00
jekyllbot
3b6561a57c Update history to reflect merge of #5053 [ci skip] 2016-07-14 19:55:09 -07:00
jekyllbot
4dee1f6aa7 Merge pull request #5053 from stevecheckoway/strict-liquid
Merge pull request 5053
2016-07-14 19:55:08 -07:00
crisp
16ba22f7c3 Add to_integer filter 2016-07-15 08:39:57 +08:00
David Zhang
20b3758edb Add to_integer filter
Add to_integer filter

Fix test_filter: parenthesize the method

Fix offense: seperate every 3 digits with _

rubocop:disable Metrics/ModuleLength

More descriptive exception

Fix fmt error

Remove if stmt for integer input

Remove rescue for to_i

Remove error message assert
2016-07-15 08:38:36 +08:00
Parker Moore
f417cf8a0f Merge pull request #5042 from jekyll/fix-more-theme-things
Fix more theme things
2016-07-14 17:14:41 -07:00
Parker Moore
83a72606b3 Add a test to ensure the Apache bug doesn't come up again. 2016-07-14 16:23:02 -07:00
Florian Thomas
99663a9199 object needs to respond to select instead of being an enumerable 2016-07-14 13:11:09 -05:00
Pat Hawks
2b57795c7f Failing test: where_exp filter should filter posts 2016-07-14 13:08:25 -05:00
Marko Locher
73223f3a5a Fix Rubocop warnings 2016-07-14 12:15:00 +02:00
Marko Locher
49e97ef9b0 Add test case for deprecated post comparison
Checks that `post_url` works for nested posts even if the path isn't specified. Also checks that a deprecation message is shown in the build log.
2016-07-14 11:53:58 +02:00
Marko Locher
0e8f204011 Fix #3926 post_url helper with sub-directories
Instead of matching the the value provided to `post_url` against
the basename, test against the relative path.

Updated the regexp to match both
  * _posts/category
  * category/_posts
2016-07-14 11:53:58 +02:00
Anatoliy Yastreb
695b5396fd rubocop: fix code style 2016-07-14 09:23:05 +03:00
David Zhang
9ef9c2fb64 Remove error message assert 2016-07-14 14:15:23 +08:00
David Zhang
3435b5ddac Remove rescue for to_i 2016-07-14 14:06:25 +08:00
David Zhang
b44457a80b Remove if stmt for integer input 2016-07-14 13:38:14 +08:00
David Zhang
e503c17dfa Fix fmt error 2016-07-14 12:00:19 +08:00
David Zhang
b1f9a0809c More descriptive exception 2016-07-14 11:27:47 +08:00
David Zhang
5e760a206a rubocop:disable Metrics/ModuleLength 2016-07-14 11:05:30 +08:00
jekyllbot
8a3ea59141 Update history to reflect merge of #5011 [ci skip] 2016-07-13 14:52:11 -07:00
jekyllbot
f55cf34739 Merge pull request #5011 from jekyll/maintainer-docs
Merge pull request 5011
2016-07-13 14:52:09 -07:00
Parker Moore
75989fdb3e Add definitions for feature & bug to maintainer docs. 2016-07-13 14:51:12 -07:00
David Zhang
5c6c01793c Fix offense: seperate every 3 digits with _ 2016-07-13 15:32:34 +08:00
David Zhang
218c7039a9 Fix test_filter: parenthesize the method 2016-07-13 15:13:20 +08:00
David Zhang
9336ad0fcf Add to_integer filter 2016-07-13 14:47:14 +08:00
Parker Moore
a3cd584311 Update activesupport handling and add comment to Gemfile.
/cc #5100
2016-07-12 20:17:44 -07:00
jekyllbot
cc994105ed Update history to reflect merge of #5100 [ci skip] 2016-07-12 20:16:11 -07:00
jekyllbot
070267af8a Merge pull request #5100 from Crunch09/fix_activesupport_dependency
Merge pull request 5100
2016-07-12 20:16:10 -07:00
jekyllbot
f42fac60b0 Update history to reflect merge of #5097 [ci skip] 2016-07-12 20:11:04 -07:00
jekyllbot
b1674ed5b1 Merge pull request #5097 from chrisfinazzo/jekyll-community
Merge pull request 5097
2016-07-12 20:11:03 -07:00
David Zhang
5194d1a42c Add to_integer filter 2016-07-13 10:52:18 +08:00
jekyllbot
a29498eaae Update history to reflect merge of #5069 [ci skip] 2016-07-12 19:50:33 -07:00
jekyllbot
1f366730f8 Merge pull request #5069 from Crunch09/issue-2834
Merge pull request 5069
2016-07-12 19:50:32 -07:00
jekyllbot
506ba8af1e Update history to reflect merge of #5098 [ci skip] 2016-07-12 19:22:40 -07:00
jekyllbot
49573b6fcf Merge pull request #5098 from esasse/patch-1
Merge pull request 5098
2016-07-12 19:22:39 -07:00
Florian Thomas
0ebf7129cf use activesupport ~> 4.2 if we are on a Ruby < 2.2.2
activesupport 5.0.x requires a ruby version >= 2.2.2
see 48512d7906/activesupport/activesupport.gemspec (L10)
2016-07-12 22:18:11 +02:00
chrisfinazzo
3674a7760f Remove JekyllConf from the sidebar 2016-07-11 22:18:12 -04:00
Erick Sasse
d683baa257 Updates html-proofer code
As in html-proofer docs: https://github.com/gjtorikian/html-proofer
2016-07-11 23:17:30 -03:00
chrisfinazzo
26b2a6251c Add a Community section and cleanup, closes #5057 2016-07-11 17:50:24 -04:00
Mike Neumegen
8d2227a03a added JekyllConf page 2016-07-11 17:03:43 -04:00
jekyllbot
4b5126dda7 Update history to reflect merge of #5067 [ci skip] 2016-07-11 11:20:23 -07:00
jekyllbot
146d0f301d Merge pull request #5067 from jekyll/excerpt-drop-previous-doc
Merge pull request 5067
2016-07-11 11:20:22 -07:00
jekyllbot
5b51b8bdf3 Update history to reflect merge of #5096 [ci skip] 2016-07-11 11:19:31 -07:00
jekyllbot
841727eed7 Merge pull request #5096 from chrisfinazzo/update-normalize-css
Merge pull request 5096
2016-07-11 11:19:30 -07:00
chrisfinazzo
232054a059 Update normalize.css to v4.2.0. 2016-07-11 12:41:42 -04:00
jekyllbot
d4a7fbee28 Update history to reflect merge of #5068 [ci skip] 2016-07-08 23:23:18 -07:00
jekyllbot
ac6ba15bae Merge pull request #5068 from stomar/example-com
Merge pull request 5068
2016-07-08 23:23:18 -07:00
Florian Thomas
cc82d44222 check if relative URL contains a colon
fixes #2834
2016-07-08 20:33:47 +02:00
Marcus Stollsteimer
ba8573c420 Change baseurl to example.com for some test cases 2016-07-08 15:48:14 +02:00
Marcus Stollsteimer
1c0f21230d Stringify configuration overrides before first use
This makes sure that overrides for Jekyll.configuration
all have string keys before their first use, particularly
also the "config" and "skip_config_files" options.
2016-07-08 15:47:26 +02:00
jekyllbot
f6dc749332 Update history to reflect merge of #5063 [ci skip] 2016-07-07 15:42:31 -07:00
jekyllbot
09f3e46945 Merge pull request #5063 from ayastreb/extract-tag-name
Merge pull request 5063
2016-07-07 15:42:30 -07:00
Parker Moore
1a934125d9 Check for Ruby first, then JRuby 2016-07-07 13:37:25 -07:00
Parker Moore
e3214c23a3 Add missing elements to Excerpt which delegate to its Document 2016-07-07 13:37:09 -07:00
Parker Moore
c46f219d3c Commit failing test for lack of certain excerpt drop properties. 2016-07-07 13:34:10 -07:00
jekyllbot
5a339cc735 Update history to reflect merge of #5065 [ci skip] 2016-07-07 08:12:05 -07:00
jekyllbot
8bc104969f Merge pull request #5065 from stomar/fix-test
Merge pull request 5065
2016-07-07 08:12:03 -07:00
Marcus Stollsteimer
d4c87e3655 Remove useless statement from test 2016-07-07 15:30:59 +02:00
Anatoliy Yastreb
ba08e17204 Extract tag name to class method 2016-07-07 14:41:57 +03:00
jekyllbot
25bff0075c Update history to reflect merge of #5056 [ci skip] 2016-07-06 19:34:58 -07:00
jekyllbot
08b279cbdd Merge pull request #5056 from ayastreb/drop-fetch
Merge pull request 5056
2016-07-06 19:34:56 -07:00
jekyllbot
a25e97b5fb Update history to reflect merge of #5058 [ci skip] 2016-07-06 17:46:35 -07:00
jekyllbot
3a8e28cba1 Merge pull request #5058 from synthecypher/patch-2
Merge pull request 5058
2016-07-06 17:46:35 -07:00
Joshua Barnett
c698e83eb1 Highlight help nav item when navigated to. 2016-07-06 12:00:19 +01:00
Anatoliy Yastreb
3aead1d4a9 Imitate fetch method instead of creating real Hash object 2016-07-06 11:20:37 +03:00
Anatoliy Yastreb
72d49490d2 Add fetch method to Drops 2016-07-05 21:22:24 +03:00
jekyllbot
51a80b8225 Update history to reflect merge of #5054 [ci skip] 2016-07-05 10:19:29 -07:00
jekyllbot
bfaa80e41c Merge pull request #5054 from andrewmunsell/patch-1
Merge pull request 5054
2016-07-05 10:19:28 -07:00
Andrew Munsell
ac552cd4e4 Add Formingo to the list of Jekyll form SaaS
Formingo (https://www.formingo.co) is a new service I'm working on that handles form processing for static websites, such as those generated through Jekyll. Adding it to the list of form services because I believe it'd be a helpful resource and alternative to some of the other listed services.
2016-07-04 16:15:48 -07:00
Stephen Checkoway
dcc8960806 Enable strict (or lax) liquid parsing.
Insert

liquid:
  error_mode: strict # or lax or warn

in _config.yml to change the error mode.
2016-07-04 10:16:11 -05:00
jekyllbot
2f8c0ffc5d Update history to reflect merge of #5043 [ci skip] 2016-06-30 10:37:16 -07:00
jekyllbot
5688266d54 Merge pull request #5043 from alexivkin/master
Merge pull request 5043
2016-06-30 10:37:15 -07:00
Alex Ivkin
c261730799 Art gallery generator plugin added 2016-06-29 21:30:42 -07:00
Parker Moore
897f0c52fa Add test for CoC flag. 2016-06-29 15:17:04 -07:00
Parker Moore
0599f114d6 Only add a CODE_OF_CONDUCT.md file if specified. 2016-06-29 15:14:26 -07:00
Parker Moore
4b7109d273 Themes won't have executables. 2016-06-29 14:15:02 -07:00
Parker Moore
5a1a7e1056 Remove the plugin_theme metadata field. Not useful. 2016-06-29 14:13:09 -07:00
jekyllbot
70aa8a4e37 Update history to reflect merge of #5015 [ci skip] 2016-06-29 12:18:41 -07:00
jekyllbot
325b4c88d5 Merge pull request #5015 from jekyll/remove-jruby-and-ruby-head
Merge pull request 5015
2016-06-29 12:18:40 -07:00
Parker Moore
a072e9d25f Ping our Travis overlords. 2016-06-29 00:55:11 -07:00
Parker Moore
b772329c60 Merge branch 'master' into remove-jruby-and-ruby-head
* master: (41 commits)
  Fix rubocop offenses on master.
  script/fmt: print Rubocop version
  Update history to reflect merge of #5030 [ci skip]
  rubocop: separate deprecator error messages
  Update history to reflect merge of #5031 [ci skip]
  Update history to reflect merge of #5032 [ci skip]
  rubocop: fix code style
  rubocop: fix code style
  rubocop: fix code style
  Update history to reflect merge of #5024 [ci skip]
  Update history to reflect merge of #5025 [ci skip]
  utils: check that the object is a hash when merging default_proc
  Update history to reflect merge of #5026 [ci skip]
  rubocop: refactor modified? method
  Add a benchmark for capture vs. assign in Liquid. [ci skip]
  Update history to reflect merge of #5027 [ci skip]
  Add generator-jekyllized to third party plugins
  rubocop: fix code style
  rubocop: fix code style
  rubocop: fix code style
  ...
2016-06-29 00:52:58 -07:00
Parker Moore
a7d25ed963 Fix rubocop offenses on master. 2016-06-28 22:08:06 -07:00
Parker Moore
6f3c01ca87 Fix for jruby 2016-06-28 18:30:02 -07:00
Parker Moore
2ef70fd348 Some weird stuff with Colorator on my machine & jruby. 2016-06-28 14:39:06 -07:00
Parker Moore
89c6b0ec0d travis: do not run 'bundle update' any longer. 2016-06-28 12:43:34 -07:00
Parker Moore
12c1ada0e5 test: skip openssl test for jruby 2016-06-28 12:43:15 -07:00
Parker Moore
3a76ddf7a2 script/fmt: print Rubocop version 2016-06-28 12:38:46 -07:00
jekyllbot
18a8b4dcc7 Update history to reflect merge of #5030 [ci skip] 2016-06-27 09:48:48 -07:00
jekyllbot
549371fd4e Merge pull request #5030 from ayastreb/document-stylefix
Merge pull request 5030
2016-06-27 09:48:46 -07:00
Anatoliy Yastreb
8154eb40aa rubocop: separate deprecator error messages 2016-06-26 16:43:56 +02:00
jekyllbot
390c98045c Update history to reflect merge of #5031 [ci skip] 2016-06-25 14:47:30 -07:00
jekyllbot
cdee574782 Merge pull request #5031 from ayastreb/convertible-stylefix
Merge pull request 5031
2016-06-25 14:47:29 -07:00
jekyllbot
6ddd64d4c4 Update history to reflect merge of #5032 [ci skip] 2016-06-25 14:46:32 -07:00
jekyllbot
1c71b5939f Merge pull request #5032 from ayastreb/renderer-stylefix
Merge pull request 5032
2016-06-25 14:46:32 -07:00
Anatoliy Yastreb
3ccc91430f rubocop: fix code style 2016-06-25 15:22:36 +03:00
Anatoliy Yastreb
2bbad7cb43 rubocop: fix code style 2016-06-25 15:11:50 +03:00
Anatoliy Yastreb
b156aa912a rubocop: fix code style 2016-06-25 14:56:12 +03:00
Parker Moore
6f5ad2530e Only run tests with --profile when using MRI. 2016-06-23 19:08:53 -07:00
Parker Moore
aeca7a195e Run the unit tests in jruby. 2016-06-23 19:00:29 -07:00
jekyllbot
6dd3cc21c4 Update history to reflect merge of #5024 [ci skip] 2016-06-23 18:48:25 -07:00
jekyllbot
205acb0916 Merge pull request #5024 from ayastreb/configuration
Merge pull request 5024
2016-06-23 18:48:25 -07:00
jekyllbot
5312e85478 Update history to reflect merge of #5025 [ci skip] 2016-06-23 09:32:14 -07:00
jekyllbot
d093c76d35 Merge pull request #5025 from ayastreb/regenerator
Merge pull request 5025
2016-06-23 09:32:13 -07:00
Parker Moore
9278eb8fce utils: check that the object is a hash when merging default_proc
Follow-up to #5026.
2016-06-22 12:15:07 -07:00
Parker Moore
856dbcb2de Add list of supported platforms 4 real. 2016-06-22 10:18:51 -07:00
Parker Moore
77751cbf15 Add 'special labels' to internal docs. 2016-06-22 10:11:59 -07:00
jekyllbot
357e3621e2 Update history to reflect merge of #5026 [ci skip] 2016-06-22 10:05:59 -07:00
jekyllbot
6358a8f92c Merge pull request #5026 from ayastreb/utils
Merge pull request 5026
2016-06-22 10:05:59 -07:00
Anatoliy Yastreb
0b169f7739 rubocop: refactor modified? method 2016-06-22 14:15:13 +03:00
Parker Moore
13d60c21e1 Specify how the pending-feedback label works and flesh out Windows & automatic closure handling. 2016-06-21 14:42:47 -07:00
Parker Moore
8a71f0f48e Not homebrew, jekyll. 2016-06-21 14:21:15 -07:00
Parker Moore
b539c32364 Add a benchmark for capture vs. assign in Liquid. [ci skip] 2016-06-21 14:20:18 -07:00
jekyllbot
1779aa681a Update history to reflect merge of #5027 [ci skip] 2016-06-21 10:57:15 -07:00
jekyllbot
fdd282cb75 Merge pull request #5027 from sondr3/add-plugin-generator-jekyllized
Merge pull request 5027
2016-06-21 10:57:14 -07:00
Sondre Nilsen
f6f0f483bf Add generator-jekyllized to third party plugins 2016-06-21 19:40:22 +02:00
Anatoliy Yastreb
08b883b268 rubocop: fix code style 2016-06-20 16:03:42 +03:00
Anatoliy Yastreb
d13112dbdc rubocop: fix code style 2016-06-19 18:22:59 +03:00
Anatoliy Yastreb
14e857029a rubocop: fix code style 2016-06-19 15:48:23 +03:00
jekyllbot
902f344a50 Update history to reflect merge of #5019 [ci skip] 2016-06-17 19:42:28 -07:00
jekyllbot
5c03e1da3f Merge pull request #5019 from ayastreb/static_file
Merge pull request 5019
2016-06-17 19:42:28 -07:00
Anatoliy Yastreb
97fecafff5 rubocop: revert changes in test 2016-06-17 13:06:11 +03:00
jekyllbot
b06cfb9c50 Update history to reflect merge of #4922 [ci skip] 2016-06-16 17:31:54 -07:00
jekyllbot
7ee99bcd38 Merge pull request #4922 from jekyll/jekyll-new-use-theme
Merge pull request 4922
2016-06-16 17:31:53 -07:00
Parker Moore
d220c7a9a9 Try fleshing out Triaging an Issue more. 2016-06-16 17:12:00 -07:00
Parker Moore
0c7693f7b9 Updates to Reviewing a Pull Request 2016-06-16 17:07:16 -07:00
Parker Moore
4afb407304 Address comments from PR review. 2016-06-16 15:14:42 -07:00
Anatoliy Yastreb
0f74db4131 rubocop: move mtimes cache hash to class variable 2016-06-16 23:12:01 +03:00
Anatoliy Yastreb
7a933893db rubocop: fix code style 2016-06-16 13:14:50 +03:00
Parker Moore
fa6934300b Add 'Becoming a Maintainer' docs. 2016-06-15 17:19:47 -07:00
Parker Moore
a71e677207 Add 'Reviewing a Pull Request' documentation
@mikemcquaid Would love your feedback on this one. Writing from scratch
here and I have the tendency to sound pretty formal. Thoughts?
2016-06-15 16:32:28 -07:00
Parker Moore
c70ca8ac97 Whoops, forgot the _layouts templates. 2016-06-15 16:04:57 -07:00
Parker Moore
765a23468e Give the user a layout scaffolding. 2016-06-15 15:59:31 -07:00
jekyllbot
e9fed13392 Update history to reflect merge of #5018 [ci skip] 2016-06-15 14:58:53 -07:00
jekyllbot
a07917a7b2 Merge pull request #5018 from DirtyF/rubocop-command
Merge pull request 5018
2016-06-15 14:58:53 -07:00
DirtyF
f27fa75935 remove lib/jekyll/command.rb from exclude 2016-06-15 23:54:05 +02:00
jekyllbot
7c381c931b Update history to reflect merge of #5017 [ci skip] 2016-06-15 14:36:22 -07:00
jekyllbot
8fd287edba Merge pull request #5017 from DirtyF/rubocop-exe
Merge pull request 5017
2016-06-15 14:36:21 -07:00
DirtyF
20910976c4 remove unecessary slashes 2016-06-15 23:00:16 +02:00
DirtyF
b972daa54d apply @envygeeks recommandation 2016-06-15 22:31:08 +02:00
DirtyF
c3313d868e fix rubocop offenses in exe/jekyll 2016-06-15 22:22:57 +02:00
Parker Moore
0c6162fc0a Borrow 97% of Homebrew's excellent 'Avoiding Burnout' document.
Many, many thanks to Mike McQuaid for writing it: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Maintainers-Avoiding-Burnout.md#3-prioritise-maintainers-over-users
2016-06-15 13:11:16 -07:00
Jordon Bedwell
a9666bf1c7 It's official. It's macOS not "MacOS" or "Mac OS" anymore. 2016-06-15 14:54:09 -05:00
Parker Moore
1dbcf97bef Fix rubocop offense. 2016-06-15 12:50:54 -07:00
Parker Moore
52d32a643e Now remove JRuby and ruby-head from matrix. 2016-06-15 12:46:03 -07:00
Parker Moore
2c3e044688 Demonstrate failures on Travis of JRuby and ruby-head. 2016-06-15 12:44:03 -07:00
jekyllbot
499b83236c Update history to reflect merge of #5014 [ci skip] 2016-06-15 12:42:08 -07:00
jekyllbot
6239bca6e6 Merge pull request #5014 from jekyll/exe
Merge pull request 5014
2016-06-15 12:42:08 -07:00
Parker Moore
3a1ac37ed1 Exclude exe/jekyll from rubocop for now. 2016-06-15 12:26:01 -07:00
Parker Moore
6cf6da04af features: change jekyll bin path to use exe/jekyll 2016-06-15 12:12:44 -07:00
Parker Moore
5e343f620a Move bin/jekyll to exe/jekyll to prevent collision with binstubs 2016-06-15 11:11:22 -07:00
Parker Moore
ddf833505c Fix offense. 2016-06-15 10:33:30 -07:00
jekyllbot
4a2b96293b Update history to reflect merge of #5009 [ci skip] 2016-06-15 10:04:37 -07:00
jekyllbot
713fbb6652 Merge pull request #5009 from nasht00/master
Merge pull request 5009
2016-06-15 10:04:37 -07:00
Nathan Hazout
d1f4d874be Added a scenario for #4414 2016-06-15 11:21:02 +03:00
jekyllbot
8d748ce45f Update history to reflect merge of #4917 [ci skip] 2016-06-14 14:03:06 -07:00
jekyllbot
fb1a459ddd Merge pull request #4917 from pathawks/pr/normalize_whitespace
Merge pull request 4917
2016-06-14 14:03:05 -07:00
jekyllbot
492cfcd962 Update history to reflect merge of #5012 [ci skip] 2016-06-14 14:02:05 -07:00
jekyllbot
cb0545dd46 Merge pull request #5012 from admhlt/update-liquid-links
Merge pull request 5012
2016-06-14 14:02:04 -07:00
Adam Hollett
8d65ce675a Update links to point to core Liquid site 2016-06-14 15:21:24 -04:00
Parker Moore
e85e89bbff Ensure the minima theme is shipped with a new site. 2016-06-14 11:54:01 -07:00
Parker Moore
73f70e9071 Add .bundle to gitignore for the theme 2016-06-14 11:51:26 -07:00
Parker Moore
e72bfdab21 theme template: link to the example post instead of just quoting it. 2016-06-14 11:51:01 -07:00
Parker Moore
ce1c148898 Rename the jekyll_pessimistic_version theme template method to be more descriptive 2016-06-14 11:46:10 -07:00
Parker Moore
ad94182b49 Add .gitignore to theme template. 2016-06-14 11:43:12 -07:00
jekyllbot
902ff4c132 Update history to reflect merge of #4993 [ci skip] 2016-06-14 11:23:58 -07:00
jekyllbot
9f1f70267f Merge pull request #4993 from ayastreb/filters
Merge pull request 4993
2016-06-14 11:23:58 -07:00
Parker Moore
c96fc1166c Spike out some internal documentation for Jekyll processes. 2016-06-14 10:25:50 -07:00
jekyllbot
15477d2417 Update history to reflect merge of #5010 [ci skip] 2016-06-14 09:55:36 -07:00
jekyllbot
d3c9b8d077 Merge pull request #5010 from rvernica/patch-1
Merge pull request 5010
2016-06-14 09:55:35 -07:00
Rares Vernica
6c279b173f Update text to be consitent with example 2016-06-14 09:45:51 -07:00
Nathan Hazout
3fe9e92c4f Prevent reset of page to fix #4414 2016-06-14 13:07:26 +03:00
jekyllbot
b5466196ea Update history to reflect merge of #5006 [ci skip] 2016-06-13 14:38:45 -07:00
jekyllbot
d8acc434ae Merge pull request #5006 from jbilinski/patch-1
Merge pull request 5006
2016-06-13 14:38:45 -07:00
Jamie Bilinski
959f19c086 Command needs to be called from blog path 2016-06-13 14:24:50 -07:00
jekyllbot
c2441ffbb4 Update history to reflect merge of #4908 [ci skip] 2016-06-13 14:23:41 -07:00
jekyllbot
eba9a2716b Merge pull request #4908 from jekyll/add-timing-cucumber
Merge pull request 4908
2016-06-13 14:23:41 -07:00
jekyllbot
176b347737 Update history to reflect merge of #5000 [ci skip] 2016-06-13 14:14:30 -07:00
jekyllbot
9e8f205009 Merge pull request #5000 from crispgm/master
Merge pull request 5000
2016-06-13 14:14:30 -07:00
jekyllbot
8b1c3bbf33 Update history to reflect merge of #5005 [ci skip] 2016-06-13 13:17:54 -07:00
jekyllbot
4c4327a14b Merge pull request #5005 from jekyll/doctor-run-generate
Merge pull request 5005
2016-06-13 13:17:53 -07:00
Parker Moore
e6dc78b22f Run Site#generate for 'jekyll doctor' to catch plugin issues. 2016-06-13 13:08:48 -07:00
David Zhang
6fd734f6ea Add jekyll-tags-list-plugin 2016-06-12 15:14:37 +08:00
Jordon Bedwell
dfc7d61765 Mac OS -> MacOS 2016-06-08 23:18:16 -05:00
Anatoliy Yastreb
5f2bb5d0aa rubocop: fix code style 2016-06-07 20:13:43 +03:00
jekyllbot
2f95517bfd Update history to reflect merge of #4989 [ci skip] 2016-06-06 09:59:05 -07:00
jekyllbot
59a04ab4cb Merge pull request #4989 from chrisfinazzo/normalize-css-v4
Merge pull request 4989
2016-06-06 09:59:05 -07:00
chrisfinazzo
732ca468fa Update normalize.css to v4.0.0. 2016-06-06 11:16:32 -04:00
jekyllbot
43fe09a07b Update history to reflect merge of #4973 [ci skip] 2016-06-06 08:03:37 -07:00
jekyllbot
7197028cd5 Merge pull request #4973 from ayastreb/site
Merge pull request 4973
2016-06-06 08:03:36 -07:00
jekyllbot
915b80b6b3 Update history to reflect merge of #4940 [ci skip] 2016-06-06 07:53:34 -07:00
jekyllbot
c8606c5765 Merge pull request #4940 from DirtyF/feature-rubocop
Merge pull request 4940
2016-06-06 07:53:33 -07:00
DirtyF
f41bd1bab7 Rubocop cleanup 2016-06-06 16:30:09 +02:00
Parker Moore
1f01c88fa0 templates docs: .category, .categories, and .tags only apply to posts. [ci skip]
Fixes #4987.
2016-06-05 16:02:05 -07:00
jekyllbot
688c7b1925 Update history to reflect merge of #4985 [ci skip] 2016-06-04 09:30:26 -07:00
jekyllbot
184da0ca2f Merge pull request #4985 from chrisfinazzo/fix-broken-link
Merge pull request 4985
2016-06-04 09:30:26 -07:00
chrisfinazzo
e0f2848da6 Link to the HTML page instead of Markdown 2016-06-04 12:26:21 -04:00
jekyllbot
652f1bad0b Update history to reflect merge of #4979 [ci skip] 2016-06-03 22:18:39 -07:00
jekyllbot
a5db408d5c Merge pull request #4979 from jekyll/percent_r
Merge pull request 4979
2016-06-03 22:18:38 -07:00
Parker Moore
f5a8000baa Fix regexp literal issues on master. 2016-06-03 22:10:15 -07:00
Parker Moore
8917fa8282 Merge branch 'master' into percent_r
* master: (22 commits)
  Update history to reflect merge of #4980 [ci skip]
  werdz
  Use jekyll-mentions and restructure
  Add post about GSoC project.
  Update history to reflect merge of #4976 [ci skip]
  Amend WEBrick default headers documentation
  Update history to reflect merge of #4966 [ci skip]
  .rubocop.yml - remove lib/jekyll.rb
  lib/jekyll.rb - fix offenses reported by rubocop method set_timezone is ignored using rubocop:disable Style/AccessorMethodName
  Update history to reflect merge of #4977 [ci skip]
  Update history to reflect merge of #4962 [ci skip]
  Update history to reflect merge of #4959 [ci skip]
  Fixed typo
  Changed github-gem to github-pages
  Included installation instructions
  Installation instructions for github-pages gem
  Added link to windows doc page
  Fix inaccurate HTTP response header field name
  Minor tweak to fix missing apostrophne
  Feedback for flubbed regex and prefer File's directory check
  ...
2016-06-03 22:09:15 -07:00
jekyllbot
ea0b43f56d Update history to reflect merge of #4980 [ci skip] 2016-06-03 16:42:37 -07:00
jekyllbot
8308a06b02 Merge pull request #4980 from jekyll/gsoc-update
Merge pull request 4980
2016-06-03 16:42:36 -07:00
Parker Moore
b3583a4236 werdz 2016-06-03 16:41:35 -07:00
Parker Moore
03c2811ae0 Use jekyll-mentions and restructure 2016-06-03 14:58:51 -07:00
Parker Moore
912e6b469a Add post about GSoC project. 2016-06-03 13:47:35 -07:00
jekyllbot
b15423b6a9 Update history to reflect merge of #4976 [ci skip] 2016-06-03 08:12:06 -07:00
jekyllbot
bf524d62aa Merge pull request #4976 from galopin/patch-1
Merge pull request 4976
2016-06-03 08:12:04 -07:00
Michaël Guitton
59bd2587df Amend WEBrick default headers documentation 2016-06-03 10:48:32 +02:00
jekyllbot
1c6916f237 Update history to reflect merge of #4966 [ci skip] 2016-06-02 22:03:03 -07:00
jekyllbot
e2ae0bab8a Merge pull request #4966 from floydpraveen/rubocop-compliant
Merge pull request 4966
2016-06-02 22:03:02 -07:00
Praveen Kumar
93f176f8c5 .rubocop.yml - remove lib/jekyll.rb 2016-06-03 09:45:25 +05:30
Praveen Kumar
712e77abd2 lib/jekyll.rb - fix offenses reported by rubocop
method set_timezone is ignored using rubocop:disable Style/AccessorMethodName
2016-06-03 09:45:15 +05:30
jekyllbot
6e504a0d2e Update history to reflect merge of #4977 [ci skip] 2016-06-02 18:01:55 -07:00
jekyllbot
3531df7428 Merge pull request #4977 from jwillmer/patch-2
Merge pull request 4977
2016-06-02 18:01:54 -07:00
jekyllbot
d725991237 Update history to reflect merge of #4962 [ci skip] 2016-06-02 17:12:35 -07:00
jekyllbot
fe143c4e8f Merge pull request #4962 from samdutton/patch-1
Merge pull request 4962
2016-06-02 17:12:35 -07:00
Parker Moore
f5a0db9dcc Rubocop: use %r for all regular expressions. 2016-06-02 17:08:21 -07:00
jekyllbot
74d363f080 Update history to reflect merge of #4959 [ci skip] 2016-06-02 17:08:05 -07:00
jekyllbot
986eda335c Merge pull request #4959 from derekgottlieb/rubocop-theme-and-url
Merge pull request 4959
2016-06-02 17:08:04 -07:00
jekyllbot
52fcd6981f Update history to reflect merge of #4956 [ci skip] 2016-06-02 17:06:05 -07:00
jekyllbot
5e30823544 Merge pull request #4956 from ayastreb/step_definitions
Merge pull request 4956
2016-06-02 17:06:04 -07:00
jekyllbot
7cd20261ab Update history to reflect merge of #4953 [ci skip] 2016-06-02 16:59:52 -07:00
jekyllbot
6a07254cbf Merge pull request #4953 from Crunch09/issue-4850
Merge pull request 4953
2016-06-02 16:59:51 -07:00
Parker Moore
956495f450 Fix typo. 2016-06-02 16:47:14 -07:00
Parker Moore
4b1012537f Use #take instead of #take_while 2016-06-02 16:44:12 -07:00
Parker Moore
6355a07d4b Only do top 10 worst offenders in cucumberland 2016-06-02 16:43:47 -07:00
Parker Moore
14b36aae38 Add timings for each scenario in cucumber 2016-06-02 16:43:32 -07:00
Parker Moore
b5cff52f02 Note that where_exp is only a v3.2 feature. Closes #4978. 2016-06-02 14:20:29 -07:00
Jens Willmer
d6e58623c6 Fixed typo 2016-06-03 00:05:20 +03:00
Jens Willmer
3a8025cb08 Changed github-gem to github-pages
The gem is technically called github-pages as noted by @parkr in the [pull request](https://github.com/jekyll/jekyll/pull/4977#discussion_r65610202)
2016-06-02 23:33:20 +03:00
jekyllbot
0212c83814 Update history to reflect merge of #4975 [ci skip] 2016-06-02 12:55:15 -07:00
jekyllbot
1e22c3659a Merge pull request #4975 from jwillmer/patch-1
Merge pull request 4975
2016-06-02 12:55:14 -07:00
Jens Willmer
d68ddf9dac Included installation instructions 2016-06-02 22:46:05 +03:00
Jens Willmer
bbbbb2e704 Installation instructions for github-pages gem 2016-06-02 22:36:07 +03:00
Jens Willmer
c2ee828ad6 Added link to windows doc page 2016-06-02 22:19:40 +03:00
jekyllbot
675c105e85 Update history to reflect merge of #4974 [ci skip] 2016-06-02 12:06:56 -07:00
jekyllbot
dc4b91b0c8 Merge pull request #4974 from ayastreb/frontmatter_defaults
Merge pull request 4974
2016-06-02 12:06:55 -07:00
Anatoliy Yastreb
e7677bdf51 rubocop: revert has_precedence method rename 2016-06-02 21:25:50 +03:00
Jordon Bedwell
97e196cb19 Correct placement of history entry for #4958. 2016-06-02 12:55:47 -05:00
jekyllbot
c642b84e80 Update history to reflect merge of #4958 [ci skip] 2016-06-02 10:54:04 -07:00
jekyllbot
e367f13f72 Merge pull request #4958 from pathawks/markdownify-to_s
Merge pull request 4958
2016-06-02 10:54:03 -07:00
Michaël Guitton
899316f401 Fix inaccurate HTTP response header field name
§ Custom WEBrick headers default settings
Cf. ./lib/jekyll/commands/serve/servlet.rb
2016-06-02 18:43:57 +02:00
Jens Willmer
261bc8f467 Added topic link in the URL 2016-06-02 16:44:21 +03:00
Jens Willmer
2bc8dc53ff Added link to windows instructions 2016-06-02 16:32:49 +03:00
Anatoliy Yastreb
597e8ee5d5 rubocop: fix code style 2016-06-02 16:12:16 +03:00
Anatoliy Yastreb
06cff8f781 rubocop: fix code style 2016-06-01 18:20:35 +03:00
jekyllbot
e97fd34479 Update history to reflect merge of #4971 [ci skip] 2016-05-31 08:50:28 -07:00
jekyllbot
7efb0d4856 Merge pull request #4971 from alexcameron89/patch-1
Merge pull request 4971
2016-05-31 08:50:27 -07:00
Alex Kitchens
372f350a75 Remove a Broken Link for Refheap Plugin
The refheap_tag repository no longer exists, and I am not able to find a duplicate repository to replace the link.
2016-05-31 10:44:53 -05:00
Sam Dutton
5acac4a925 Minor tweak to fix missing apostrophne 2016-05-30 09:20:42 +01:00
Derek Gottlieb
db6050768d Feedback for flubbed regex and prefer File's directory check 2016-05-28 19:23:23 -05:00
Derek Gottlieb
03f7bc1a8c lib/jekyll/url.rb passing rubocop 2016-05-28 17:15:33 -05:00
Pat Hawks
714c99b418 Convert input to string before markdownify or smartify 2016-05-28 15:19:15 -05:00
Pat Hawks
5dfaa66d48 Failing test: markdownify a number 2016-05-28 15:18:37 -05:00
Derek Gottlieb
b5cec7d335 lib/jekyll/theme.rb passing rubocop 2016-05-28 13:51:13 -05:00
Anatoliy Yastreb
22982ef79e rubocop: fix over tabbed variable assignment 2016-05-27 13:59:18 +03:00
Anatoliy Yastreb
d5d2fd8674 rubocop: fix code style 2016-05-27 13:34:45 +03:00
Florian Thomas
f8c038566c Serve.process should receive same config as Build.process
fixes #4850
2016-05-27 11:46:04 +02:00
Parker Moore
14c1ac388f Remove extraneously-checked files. 2016-05-26 16:18:34 -07:00
Parker Moore
ca2abea086 Update history to reflect merge of #4932
[ci skip]
2016-05-26 16:10:53 -07:00
Parker Moore
35b3c91b64 Merge branch 'pathawks-readers'
* pathawks-readers:
  I will chain blocks if I want to chain blocks.
  Rubocop: Readers
  Rubocop: lib/jekyll/readers/static_file_reader.rb
  Rubocop: lib/jekyll/readers/post_reader.rb
  Rubocop: lib/jekyll/readers/page_reader.rb
  Rubocop: lib/jekyll/readers/layout_reader.rb
  Rubocop: lib/jekyll/reader.rb
2016-05-26 16:10:21 -07:00
Parker Moore
3a3405fe51 I will chain blocks if I want to chain blocks. 2016-05-26 16:09:56 -07:00
Parker Moore
7a02f29e70 Update history to reflect merge of #4938
[ci skip]
2016-05-26 16:06:04 -07:00
Parker Moore
5e46a02d71 Merge branch 'ayastreb-tags'
* ayastreb-tags:
  rubocop: fix code style
  rubocop: fix spacing in code style
  rubocop: fix code style
  rubocop: fix include tag code style
  rubocop: fix post URL tag code style
  rubocop: fix link tag code style
  rubocop: fix highlight tag code style
2016-05-26 16:05:35 -07:00
jekyllbot
8c231ed50a Update history to reflect merge of #4948 [ci skip] 2016-05-26 16:03:53 -07:00
jekyllbot
8a5148f589 Merge pull request #4948 from pathawks/drops
Merge pull request 4948
2016-05-26 16:03:52 -07:00
jekyllbot
632f3fd8de Update history to reflect merge of #4931 [ci skip] 2016-05-26 10:28:22 -07:00
jekyllbot
8d0a4be5e0 Merge pull request #4931 from pathawks/converters
Merge pull request 4931
2016-05-26 10:28:21 -07:00
jekyllbot
0ac9c7fe70 Update history to reflect merge of #4933 [ci skip] 2016-05-26 10:21:39 -07:00
jekyllbot
40c6702a0d Merge pull request #4933 from pathawks/liquid
Merge pull request 4933
2016-05-26 10:21:38 -07:00
jekyllbot
753ff9216c Update history to reflect merge of #4934 [ci skip] 2016-05-26 10:20:43 -07:00
jekyllbot
f73b2d0a01 Merge pull request #4934 from pathawks/features
Merge pull request 4934
2016-05-26 10:20:42 -07:00
Pat Hawks
30eebaf5e0 Rubocop: lib/jekyll/drops/site_drop.rb 2016-05-26 12:04:28 -05:00
Pat Hawks
45a5a976f0 Rubocop: features/support/helpers.rb 2016-05-26 12:00:21 -05:00
Pat Hawks
ab3cda6e58 Rubocop: features/support/formatter.rb 2016-05-26 12:00:01 -05:00
jekyllbot
ff591dd5dc Update history to reflect merge of #4947 [ci skip] 2016-05-26 08:26:43 -07:00
jekyllbot
cd63272080 Merge pull request #4947 from pathawks/rubocop/tests
Merge pull request 4947
2016-05-26 08:26:42 -07:00
jekyllbot
427e30c0f8 Update history to reflect merge of #4950 [ci skip] 2016-05-26 08:25:56 -07:00
jekyllbot
87acab9a86 Merge pull request #4950 from pathawks/rubocop/entry_filter
Merge pull request 4950
2016-05-26 08:25:55 -07:00
jekyllbot
b5aafc3137 Update history to reflect merge of #4951 [ci skip] 2016-05-26 08:24:21 -07:00
jekyllbot
f271b8b4b5 Merge pull request #4951 from pathawks/rubocop/stevenson
Merge pull request 4951
2016-05-26 08:24:20 -07:00
Anatoliy Yastreb
001cbf2c07 rubocop: fix code style 2016-05-26 12:17:31 +03:00
Pat Hawks
ae71db4693 Rubocop: lib/jekyll/stevenson.rb 2016-05-26 01:04:12 -05:00
Pat Hawks
acc9f511c5 Rubocop: Converters 2016-05-26 00:53:49 -05:00
Pat Hawks
d855ec03ba Rubocop: lib/jekyll/converters/markdown/redcarpet_parser.rb 2016-05-26 00:53:38 -05:00
Pat Hawks
0880dc097f Rubocop: lib/jekyll/converters/markdown/kramdown_parser.rb 2016-05-26 00:53:26 -05:00
Pat Hawks
38eb326b7f Rubocop: lib/jekyll/converters/markdown.rb 2016-05-26 00:53:15 -05:00
Pat Hawks
d58c986b2b Rubocop: lib/jekyll/entry_filter.rb 2016-05-26 00:45:54 -05:00
Pat Hawks
0d0ed561fd Rubocop: Readers 2016-05-26 00:11:37 -05:00
Pat Hawks
382be191ae Rubocop: lib/jekyll/readers/static_file_reader.rb 2016-05-26 00:10:43 -05:00
Pat Hawks
0696e6c169 Rubocop: lib/jekyll/readers/post_reader.rb 2016-05-26 00:10:31 -05:00
Pat Hawks
615a9ee9ac Rubocop: lib/jekyll/readers/page_reader.rb 2016-05-26 00:10:20 -05:00
Pat Hawks
e85690a61f Rubocop: lib/jekyll/readers/layout_reader.rb 2016-05-26 00:10:09 -05:00
Pat Hawks
795bcdef68 Rubocop: lib/jekyll/reader.rb 2016-05-26 00:09:46 -05:00
Pat Hawks
40ec84cf61 Rubocop: Liquid Renderer 2016-05-26 00:08:00 -05:00
Pat Hawks
4c35d15a3b Rubocop: lib/jekyll/liquid_renderer/table.rb 2016-05-26 00:07:52 -05:00
Pat Hawks
3e42e6d461 Rubocop: lib/jekyll/liquid_renderer.rb 2016-05-26 00:07:43 -05:00
Pat Hawks
1cec820628 Rubocop: Tests 2016-05-26 00:00:22 -05:00
Pat Hawks
fbff506faa Rubocop: test/test_site.rb 2016-05-26 00:00:08 -05:00
Pat Hawks
5a23b130ce Rubocop: test/test_utils.rb 2016-05-25 22:01:10 -05:00
Pat Hawks
8fbeb52314 Rubocop: test/test_tags.rb 2016-05-25 22:00:58 -05:00
Pat Hawks
98262b73d5 Rubocop: test/test_regenerator.rb 2016-05-25 22:00:29 -05:00
Pat Hawks
474fc0a9a8 Rubocop: test/test_page.rb 2016-05-25 22:00:15 -05:00
Pat Hawks
7537b01e74 Rubocop: test/test_liquid_renderer.rb 2016-05-25 22:00:05 -05:00
Pat Hawks
23646549c4 Rubocop: test/test_kramdown.rb 2016-05-25 21:59:54 -05:00
Pat Hawks
c00c761e1d Rubocop: test/test_entry_filter.rb 2016-05-25 21:59:43 -05:00
Pat Hawks
5291bd0498 Rubocop: test/test_document.rb 2016-05-25 21:59:33 -05:00
Pat Hawks
fd75f0f7b1 Rubocop: test/test_configuration.rb 2016-05-25 21:59:23 -05:00
Pat Hawks
6ef2bcb29a Rubocop: test/test_filters.rb 2016-05-25 21:59:11 -05:00
Parker Moore
746e360c63 Delimeters, delimeters, delimeters. 2016-05-25 18:03:25 -07:00
Parker Moore
b950e7dd90 Update history to reflect merge of #4946
[ci skip]
2016-05-25 17:58:32 -07:00
Parker Moore
34d172007b Merge branch 'pathawks-rubocop/misc'
* pathawks-rubocop/misc:
  Fix Page#relative_path so that it consistently does NOT have the prepending slash (previously inconsistent)
  Rubocop cleanup for lib/jekyll/layout.rb
  Rubocop cleanup for lib/jekyll/plugin_manager.rb
  Rubocop cleanup for lib/jekyll/page.rb
2016-05-25 17:57:52 -07:00
Parker Moore
4fbbeddae2 Fix Page#relative_path so that it consistently does NOT have the prepending slash (previously inconsistent)
Fixes for #4946
2016-05-25 17:57:09 -07:00
jekyllbot
cceb8c5876 Update history to reflect merge of #4949 [ci skip] 2016-05-25 16:24:30 -07:00
jekyllbot
a15958d5a7 Merge pull request #4949 from jekyll/fix-drop-rubocop-errors
Merge pull request 4949
2016-05-25 16:24:29 -07:00
Parker Moore
6f1e1d80cd Rubocop: drop changes from v3.1 forward-ports 2016-05-25 16:10:11 -07:00
Parker Moore
b353e181c1 Update history to reflect merge of #4945
[ci skip]
2016-05-25 16:05:31 -07:00
Parker Moore
aff1430608 Fix tests for document drop JSONification based on master updates. /cc #4914 2016-05-25 16:04:16 -07:00
Parker Moore
e56e58e498 Merge branch 'master' into pathawks-fp/jsonify-drops
* master: (38 commits)
  Mention where it came from. [ci skip]
  Update history to reflect merge of #4944 [ci skip]
  Update history to reflect merge of #4943 [ci skip]
  Mention where it came from. [ci skip]
  Update history to reflect merge of #4942 [ci skip]
  Update history to reflect merge of #4941
  External: remove &block arg, use block_given?
  Update history to reflect merge of #4936 [ci skip]
  lib/jekyll.rb: require document_drop to ease our pain
  Sort the results of the require_all glob.
  Rubocop fixes
  Reset {{ layout }} between each render & merge layout data properly
  Add failing test for layout data inheritance bug (#4433)
  Add failing test for layout bug (#4897)
  Fix tests for plugins in configuration.
  Define Drop#each so we can use the new frozen/duping behavior
  Don't default 'include' and 'exclude' to an empty array
  Fix some minor things in the tests
  Freeze configuration defaults & duplicate in deep_merge_hashes if need be.
  Remove merge conflicts I forgot to fix.
  ...
2016-05-25 15:55:47 -07:00
Parker Moore
02bf4f1032 Mention where it came from. [ci skip] 2016-05-25 15:49:30 -07:00
jekyllbot
d9c9e0238a Update history to reflect merge of #4944 [ci skip] 2016-05-25 15:46:50 -07:00
jekyllbot
dc5fd15f71 Merge pull request #4944 from pathawks/fp/sort-includes
Merge pull request 4944
2016-05-25 15:46:50 -07:00
jekyllbot
1502d00063 Update history to reflect merge of #4943 [ci skip] 2016-05-25 15:44:24 -07:00
jekyllbot
0ca45a48e5 Merge pull request #4943 from pathawks/fp/fix-layout-var-overflow
Merge pull request 4943
2016-05-25 15:44:23 -07:00
Parker Moore
3c0d1a18bf Mention where it came from. [ci skip] 2016-05-25 15:43:13 -07:00
jekyllbot
a7cbb89dfc Update history to reflect merge of #4942 [ci skip] 2016-05-25 15:42:05 -07:00
jekyllbot
cf810a88fa Merge pull request #4942 from pathawks/fp/configuration-from-permalink-fix
Merge pull request 4942
2016-05-25 15:42:05 -07:00
Anatoliy Yastreb
2caf8e0621 rubocop: fix spacing in code style 2016-05-25 21:48:21 +03:00
Anatoliy Yastreb
5c036cf3c4 rubocop: fix code style 2016-05-25 20:24:19 +03:00
Parker Moore
757233754e Update history to reflect merge of #4941
[ci skip]
2016-05-25 09:32:51 -07:00
Parker Moore
10543e7c46 Merge branch 'pathawks-fp/ExcerptDrop'
* pathawks-fp/ExcerptDrop:
  Rubocop fixes
  excerpt drop should give access to document's layout
  look up the content methods for drops in a smarter way
  Use require_relative
  Add ExcerptDrop and remove excerpt's ability to refer to itself in Liquid
2016-05-25 09:31:27 -07:00
Brint O'Hearn
de39107c76 Rubocop cleanup for lib/jekyll/layout.rb 2016-05-25 11:28:46 -05:00
Brint O'Hearn
65e78b3280 Rubocop cleanup for lib/jekyll/plugin_manager.rb 2016-05-25 11:27:43 -05:00
Brint O'Hearn
3a04093e51 Rubocop cleanup for lib/jekyll/page.rb 2016-05-25 11:27:29 -05:00
Parker Moore
733c56a65e External: remove &block arg, use block_given?
Addresses my comment in https://github.com/jekyll/jekyll/pull/4936#discussion_r64598949
2016-05-25 08:55:12 -07:00
jekyllbot
1c937013fd Update history to reflect merge of #4936 [ci skip] 2016-05-25 08:53:40 -07:00
jekyllbot
3292850b98 Merge pull request #4936 from pathawks/passing
Merge pull request 4936
2016-05-25 08:53:39 -07:00
Anatoliy Yastreb
2ca80920dc rubocop: fix include tag code style 2016-05-25 13:15:04 +03:00
Parker Moore
f8c708ffec Fix test to simply ensure next is an object in jsonify 2016-05-24 19:08:50 -05:00
Parker Moore
17d8c96a63 Add ability to render drops as JSON
Previously you could do, e.g. {{ site | jsonify }}, but with the introduction of Liquid Drops, this didn't work anymore.
This PR adds the ability to render drops as JSON. You can safely run drop.to_json and it should Do the Right Thing.
2016-05-24 19:08:46 -05:00
Parker Moore
ad7bd84098 lib/jekyll.rb: require document_drop to ease our pain 2016-05-24 19:03:32 -05:00
Parker Moore
1a05483a63 Sort the results of the require_all glob.
Filesystems behave differently when performing glob listings.

In my environment, they are listed alphabetically. On my Mac, when asking for a list of files in a directory, those files are returned as a nicely sorted list. Alphabetized, like you'd want them to be. Like you'd expect them to be.

In some environments, quite different from my own, the return of a similar operation is quite random. Perhaps q comes before a, or e before d; the filesystem will choose its order of the day and you, the fare user, tired and weary from work, must bare the brunt of this.

And so, with this commit, I do hereby request that the noble makers of Dir[] provide for us, the downtrodden and ravaged users, some consistency. As a user of Ruby, I shouldn't have to know or consider the behaviour of an individual filesystem here; it should function the same for all filesystems.

Truly yours,
Parker
2016-05-24 19:03:32 -05:00
Pat Hawks
cc0c5ea19e Rubocop fixes 2016-05-24 19:01:35 -05:00
Parker Moore
db7cd6f612 Reset {{ layout }} between each render & merge layout data properly 2016-05-24 18:57:54 -05:00
Parker Moore
8e939cd86e Add failing test for layout data inheritance bug (#4433) 2016-05-24 18:57:54 -05:00
Parker Moore
a99adcafaa Add failing test for layout bug (#4897) 2016-05-24 18:57:53 -05:00
Parker Moore
7641971d7e Fix tests for plugins in configuration. 2016-05-24 18:49:06 -05:00
Parker Moore
48274244e3 Define Drop#each so we can use the new frozen/duping behavior 2016-05-24 18:49:06 -05:00
Parker Moore
d5c3785d29 Don't default 'include' and 'exclude' to an empty array 2016-05-24 18:49:06 -05:00
Parker Moore
de5970ae55 Fix some minor things in the tests 2016-05-24 18:49:05 -05:00
Parker Moore
d84844c223 Freeze configuration defaults & duplicate in deep_merge_hashes if need be. 2016-05-24 18:49:05 -05:00
Parker Moore
ad59b6e62a Remove merge conflicts I forgot to fix. 2016-05-24 18:49:02 -05:00
Parker Moore
37b93f10dd Add missing 'end' to test/helper.rb 2016-05-24 18:47:15 -05:00
Parker Moore
59346eb228 Remove call to #backwards_compatibilize in Configuration.from 2016-05-24 18:47:15 -05:00
Parker Moore
8af77643c5 Site#site_payload: sort collections by label 2016-05-24 18:47:15 -05:00
Parker Moore
f52a0e7200 Configuration#add_default_collections: fix bug where DEFAULTS['collections'] is modified 2016-05-24 18:47:15 -05:00
Parker Moore
d01f7943de 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-05-24 18:47:15 -05:00
Parker Moore
fab092fcec Remove use of Marshal in runtime code. 2016-05-24 18:47:15 -05:00
Parker Moore
4e06f07ad4 Add tests for Configuration#add_default_collections 2016-05-24 18:47:14 -05:00
Parker Moore
6eaa8e90f8 Don't read a config file if the filename is empty. 2016-05-24 18:47:14 -05:00
Parker Moore
04d4473119 Use Marshal to duplicate configuration defaults to prevent manipulation 2016-05-24 18:47:14 -05:00
Parker Moore
dbcbf809ff Refactor some tests to prevent manipulation of Jekyll::Config::DEFAULTS 2016-05-24 18:47:04 -05:00
Parker Moore
f2263a11b7 Only write collections.posts.permalink if permalink is set. 2016-05-24 18:40:19 -05:00
Parker Moore
c69ca4c11e Test#build_configs shouldn't overwrite default collections 2016-05-24 18:40:19 -05:00
Pat Hawks
48f16974ce Rubocop fixes 2016-05-24 18:27:37 -05:00
Parker Moore
7d3f8ac75d excerpt drop should give access to document's layout 2016-05-24 17:35:03 -05:00
Parker Moore
c0910f2bc5 look up the content methods for drops in a smarter way 2016-05-24 17:34:49 -05:00
Parker Moore
3896f6d5d8 Use require_relative 2016-05-24 17:32:33 -05:00
Parker Moore
b019234007 Add ExcerptDrop and remove excerpt's ability to refer to itself in Liquid 2016-05-24 17:30:03 -05:00
Pat Hawks
2c567a6dc3 Document normalize_whitepace filter 2016-05-24 16:36:50 -05:00
Anatoliy Yastreb
80a65d161f rubocop: fix post URL tag code style 2016-05-24 17:23:25 +03:00
Anatoliy Yastreb
0d11511914 rubocop: fix link tag code style 2016-05-24 17:13:54 +03:00
Anatoliy Yastreb
41a8b10780 rubocop: fix highlight tag code style 2016-05-24 17:03:06 +03:00
Pat Hawks
a8d27e5788 Rubocop: Low hanging fruit 2016-05-23 22:10:49 -05:00
Parker Moore
e02049727b Update history to reflect merge of #4916
[ci skip]
2016-05-23 13:44:00 -07:00
jekyllbot
6eaf2634f2 Merge pull request #4916 from brint/rubocop_cleaning
Merge pull request 4916
2016-05-23 13:36:48 -07:00
Brint O'Hearn
dbda462c2f Adding double quotes & freeze back to version after rebase 2016-05-20 21:51:16 -05:00
Brint O'Hearn
6db5272528 Splitting args onto own lines in test/test_static_file.rb
For functions where the character limit was exceeded
and line wrapping was needed, this commit just splits
each arg into it's own line.
2016-05-20 21:24:34 -05:00
Brint O'Hearn
281a873c71 lib/jekyll/utils/platforms.rb didn't have any rubocop errors 2016-05-20 21:24:34 -05:00
Brint O'Hearn
d743c80357 Rubocop fixes for lib/jekyll/utils/ansi.rb 2016-05-20 21:24:34 -05:00
Brint O'Hearn
e85f2a0ee9 Rubocop fixes for lib/jekyll/version.rb 2016-05-20 21:24:34 -05:00
Brint O'Hearn
8f07affe2a Rubocop fixes for test/test_related_posts.rb 2016-05-20 21:23:29 -05:00
Brint O'Hearn
a9f110b861 Rubocop fixes for test/test_sass.rb 2016-05-20 21:23:29 -05:00
Brint O'Hearn
16c1146b4f Rubocop fixes for test/test_static_file.rb 2016-05-20 21:23:29 -05:00
Brint O'Hearn
1380836a4b Rubocop fixes for test/test_theme.rb 2016-05-20 21:23:29 -05:00
Brint O'Hearn
013e2f159d Rubocop fixes for test/test_url.rb 2016-05-20 21:23:29 -05:00
Parker Moore
498324bbff Release 💎 3.2.0.pre.beta1 2016-05-20 19:19:26 -07:00
Parker Moore
51c4152919 Release a beta. 2016-05-20 19:19:21 -07:00
Parker Moore
8ac5b03006 Cleaning up site template & theme updates. 2016-05-20 19:15:46 -07:00
jekyllbot
cd31761f9a Update history to reflect merge of #4848 [ci skip] 2016-05-19 22:13:05 -07:00
jekyllbot
ee2c41ad6a Merge pull request #4848 from jekyll/new-theme-command
Merge pull request 4848
2016-05-19 22:13:05 -07:00
Parker Moore
f3a29677f9 Fix rubocop issues. 2016-05-19 21:34:30 -07:00
Pat Hawks
f7714add15 Add normalize_whitepace filter 2016-05-19 19:59:22 -07:00
Parker Moore
f2d08cf138 Correct variable reference. 2016-05-19 17:15:33 -07:00
Parker Moore
ca0b1f7ea6 Add note about {{ layout }} to site. 2016-05-19 14:44:00 -07:00
Parker Moore
12deccc513 Only spec.summary is needed... 2016-05-19 14:39:55 -07:00
Parker Moore
20110571ef Add a Rakefile to do releases as well as adding an example website. 2016-05-19 14:36:01 -07:00
Parker Moore
3885057e9e Fix rubocop offense. 2016-05-19 13:16:32 -07:00
Parker Moore
1d81d2087e Add info about 3.1.6 to master. 2016-05-19 12:54:04 -07:00
Parker Moore
5949b4a5bb Add release information for v3.1.5 2016-05-18 21:38:53 -07:00
Parker Moore
eb14b88175 Port forward the release information for v3.1.4 2016-05-18 17:16:52 -07:00
jekyllbot
952947c65e Update history to reflect merge of #4903 [ci skip] 2016-05-17 11:07:42 -07:00
jekyllbot
cb80934277 Merge pull request #4903 from jehartzog/fix-pagination-docs
Merge pull request 4903
2016-05-17 11:07:42 -07:00
EricH
eab2b438c9 Replaced markdown ` with <code> inside HTML block 2016-05-17 13:54:42 -04:00
jekyllbot
66e5453c35 Update history to reflect merge of #4902 [ci skip] 2016-05-17 08:00:00 -07:00
jekyllbot
9e92061eb3 Merge pull request #4902 from brint/rubocop_cleanup_tests
Merge pull request 4902
2016-05-17 07:59:59 -07:00
Brint O'Hearn
ce9a8cb0f2 Moving url to local var for better readability 2016-05-16 20:42:59 -05:00
Brint O'Hearn
df585aa5c6 Moving expected output into variable to make asserts more readable 2016-05-16 20:13:50 -05:00
Brint O'Hearn
b006810f17 Moving .with down one line 4x times 2016-05-16 19:59:13 -05:00
Brint O'Hearn
98eef8af95 Aligning hashes per 2caff75 2016-05-16 19:48:04 -05:00
Brint O'Hearn
211c16003e test/test_exerpt.rb variable assignment cleanup 2016-05-16 19:39:43 -05:00
Brint O'Hearn
bc16d13d79 Shortening messages to keep things down to one line where possible 2016-05-16 19:31:43 -05:00
Brint O'Hearn
6ef54393c2 Rubocop fixes for test/test_redcarpet.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
de5d773a6a Rubocop fixes for test/test_rdiscount.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
df7992c626 Rubocop fixes for test/test_plugin_manager.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
df01b6825e Rubocop fixes for test/test_path_sanitization.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
c76b458dd5 Rubocop fixes for test/test_new_command.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
ad98883843 Rubocop fixes for test/test_log_adapter.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
5a1a8c9c82 Rubocop fixes for test/test_liquid_extensions.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
271a8aebfb Rubocop fixes for test/test_layout_reader.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
0635bbba06 Rubocop fixes for test/test_generated_site.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
555b2fbe72 Rubocop fixes for test/test_front_matter_defaults.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
c8cae38da6 Rubocop fixes for test/test_excerpt.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
cfe6cf7ca1 Rubocop fixes for test/test_doctor_command.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
454a1e415c Rubocop fixes for test/test_convertible.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
5034cc377a Rubocop fixes for test/simplecov_custom_profile.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
aad587ca2f Rubocop fixes for test/helper.rb 2016-05-16 19:26:53 -05:00
Brint O'Hearn
146d49dc8f Rubocop test cleanups for #4885
This commit cleans up rubocop violations for the following files:

test/test_ansi.rb
test/test_cleaner.rb
test/test_coffeescript.rb
test/test_collections.rb
test/test_command.rb
test/test_commands_serve.rb
2016-05-16 19:26:53 -05:00
Parker Moore
2caff755c4 Set Style/AlignHash EnforcedHashRocketStyle to 'table' 2016-05-16 16:24:01 -07:00
jekyllbot
eb56ca8c41 Update history to reflect merge of #4888 [ci skip] 2016-05-16 16:04:41 -07:00
jekyllbot
fb860fc1b7 Merge pull request #4888 from TheLucasMoore/Commands
Merge pull request 4888
2016-05-16 16:04:40 -07:00
Parker Moore
473d85b580 Add CoC and README for theme; make standard with Rubocop 2016-05-16 11:06:47 -07:00
EricH
583fe84edc Corrected pagination docs for hidden: true feature 2016-05-16 14:06:27 -04:00
Parker Moore
e3df910533 Add more template files and add a ThemeBuilder which can create the site 2016-05-16 10:53:55 -07:00
Parker Moore
3611ae99d9 WIP: Add 'jekyll new-theme' command 2016-05-16 10:53:55 -07:00
jekyllbot
2a81fef996 Update history to reflect merge of #4881 [ci skip] 2016-05-15 12:14:51 -05:00
jekyllbot
b484738239 Merge pull request #4881 from ajhit406/master
Merge pull request 4881
2016-05-15 12:14:50 -05:00
TheLucasMoore
b64b6aa526 Refactor if/else for new.rb process method 2016-05-13 15:10:59 -05:00
TheLucasMoore
465e7dd8b0 Added Exceptions and Passing ABC Metric 2016-05-13 13:46:42 -05:00
jekyllbot
96ac1185a1 Update history to reflect merge of #4892 [ci skip] 2016-05-13 12:50:41 -05:00
jekyllbot
6dc9665573 Merge pull request #4892 from derekgottlieb/rubocop-cleaner
Merge pull request 4892
2016-05-13 12:50:41 -05:00
Derek Gottlieb
83f8df49ab Fixing rubocop offenses in lib/jekyll/cleaner.rb 2016-05-13 12:34:11 -05:00
Parker Moore
6a2ffbac62 Add note about being unreleased to the Themes documentation.
Fixes #4510.
2016-05-13 11:49:59 -05:00
jekyllbot
64219cc11a Update history to reflect merge of #4890 [ci skip] 2016-05-13 10:12:36 -05:00
jekyllbot
b40524fbc3 Merge pull request #4890 from dinamicoplus/patch-1
Merge pull request 4890
2016-05-13 10:12:36 -05:00
Marcos Brito
1e89aa7a13 Removed extra </p> from site/_docs/permalinks.md
It seems there's an extra </p> in the html code, in the line number 103.
2016-05-13 14:39:56 +02:00
ajhit406
a4369ea7e5 added pubstorm deployment instructions 2016-05-13 01:28:23 +00:00
TheLucasMoore
451881efcf ABC Condition Size too high 2016-05-12 20:21:19 -05:00
TheLucasMoore
894d1fe21e Tests Passing. Three RuboCop revisions remain 2016-05-12 19:42:04 -05:00
TheLucasMoore
26d0a8db77 Passing RuboCop for commands 2016-05-12 19:11:58 -05:00
TheLucasMoore
6f89fd5f3f clean.rb passing rubocop 2016-05-12 16:58:17 -05:00
jekyllbot
f2bad8524f Update history to reflect merge of #4849 [ci skip] 2016-05-12 15:25:10 -05:00
jekyllbot
8c9492d5fa Merge pull request #4849 from envygeeks/master
Merge pull request 4849
2016-05-12 15:25:10 -05:00
jekyllbot
207e4df3de Update history to reflect merge of #4887 [ci skip] 2016-05-12 14:56:49 -05:00
jekyllbot
f615475378 Merge pull request #4887 from jekyll/pull/add-jekyll-tips
Merge pull request 4887
2016-05-12 14:56:48 -05:00
Parker Moore
5258f78a51 Add Jekyll Tips and the Cheatsheet to the list of resources 2016-05-12 14:54:40 -05:00
jekyllbot
73ae01b4e5 Update history to reflect merge of #4886 [ci skip] 2016-05-12 14:45:02 -05:00
jekyllbot
13eaa4fd77 Merge pull request #4886 from jekyll/enable-rubocop
Merge pull request 4886
2016-05-12 14:45:00 -05:00
Parker Moore
3b021c6046 Move Rubocop gem to :test group in Gemfile 2016-05-12 14:33:48 -05:00
Parker Moore
419c670947 travis: run one script/fmt job 2016-05-12 14:17:45 -05:00
Parker Moore
cddc40fef4 rubocop: exclude test and features files that fail 2016-05-12 14:14:44 -05:00
Parker Moore
85e3ce37af rubocop: %r should use exclamation marks as delimeters 2016-05-12 14:11:59 -05:00
Parker Moore
fa3323ec92 rubocop: default for Lint/AmbiguousRegexpLiteral 2016-05-12 14:05:16 -05:00
Parker Moore
ffe6e0d996 rubocop: enforce Style/StringLiterals 2016-05-12 14:00:49 -05:00
Parker Moore
b28e14bcd6 create script/fmt to format the code 2016-05-12 13:42:05 -05:00
Parker Moore
917b470459 merge rubocop rules with the ones from pages-gem 2016-05-12 13:41:53 -05:00
Parker Moore
1ae4f513d8 Add 'ruby' to pre-filled Gemfile for 'jekyll new'
Fixes #4839
2016-05-12 12:19:46 -05:00
jekyllbot
209cd6b729 Update history to reflect merge of #4859 [ci skip] 2016-05-12 12:16:35 -05:00
jekyllbot
1504864d9e Merge pull request #4859 from jekyll/feature/allow-excludes-to-leave-the-insane-asylum
Merge pull request 4859
2016-05-12 12:16:35 -05:00
Jordon Bedwell
3751b47c50 Cleanup EntryFilter and make it far more robust.
* Allow users to filter directories by ending their path with "/"
* Allow users to filter with a Regexp, some scenariors can really require it.
* Use Pathutil#in_path? for Symlink verification, it real/expand.

This also requires some downstream work in "jekyll-watch" which at this time is
not very robust, it doesn't recognize the difference either, and should probably
start doing so (what I mean is detecting "/" and using the full path.)
2016-05-10 20:01:02 -05:00
jekyllbot
92720363e1 Update history to reflect merge of #4863 [ci skip] 2016-05-10 12:35:42 -07:00
jekyllbot
4986cb78a3 Merge pull request #4863 from xHN35RQ/patch-1
Merge pull request 4863
2016-05-10 12:35:42 -07:00
jekyllbot
7f3a9e1f40 Update history to reflect merge of #4872 [ci skip] 2016-05-10 12:34:02 -07:00
jekyllbot
cd861d7fc5 Merge pull request #4872 from mdxprograms/patch-1
Merge pull request 4872
2016-05-10 12:34:01 -07:00
jekyllbot
4dab3dd423 Update history to reflect merge of #4874 [ci skip] 2016-05-10 12:33:15 -07:00
jekyllbot
8f79551da3 Merge pull request #4874 from git-no/master
Merge pull request 4874
2016-05-10 12:33:14 -07:00
No
d9ab71cb59 Breadcrumbs integration for Jekyll 3.x 2016-05-07 20:15:16 +02:00
Josh Waller
770b6ab073 Adding pug plugin
Jade has been moved to Pug https://github.com/pugjs/pug
This was forked from the previous Jade plugin and merged the pug update to maintain the newer version and avoid deprecation usage.
2016-05-07 08:37:34 -04:00
Jordon Bedwell
b7bf19ff31 Merge pull request #4867 from dudepare/master
Fixed a typo
2016-05-05 03:32:51 -05:00
Andrew Artajos
2d8a228b59 Fixed a typo
Fixed a typo from indend to indent. Just making the code more readable.
2016-05-05 09:14:03 +10:00
Nick
55734ee482 Add jekyll-ideal-image-slider 2016-05-03 12:27:37 -07:00
jekyllbot
53d6b91fc8 Update history to reflect merge of #4857 [ci skip] 2016-04-29 12:22:47 -07:00
jekyllbot
6c081427c4 Merge pull request #4857 from jekyll/fix/dont-rescue-load-error-for-bundler
Merge pull request 4857
2016-04-29 12:22:46 -07:00
Jordon Bedwell
44cf61d241 Fix #4856: Don't rescue LoadError or bundler load errors for Bundler.
When it comes to bundler it's smart enough to know what to require, and in casees it's not, it's smart enough to accept :require.  In most cases when bundler has a LoadError (or otherwise) it's because there is a problem inside of the Gem itself and when this happens, Jekyll will happily let that error slip when it shouldn't, resulting in a badly placed error that is actually wrong. This corrects that so errors can surface properly.
2016-04-29 06:37:57 -05:00
jekyllbot
b8e7669228 Update history to reflect merge of #4855 [ci skip] 2016-04-28 19:07:17 -07:00
jekyllbot
51c0c934d3 Merge pull request #4855 from jekyll/upgrade/update-colorator-to-1.0
Merge pull request 4855
2016-04-28 19:07:16 -07:00
Jordon Bedwell
46f54e6b94 Update Colorator to 1.0 2016-04-28 20:58:05 -05:00
jekyllbot
0ee1a75d16 Update history to reflect merge of #4854 [ci skip] 2016-04-28 18:27:57 -07:00
jekyllbot
c9d5c7d30a Merge pull request #4854 from jekyll/site-improvements
Merge pull request 4854
2016-04-28 18:27:56 -07:00
Parker Moore
342d5a4250 site: optimize liquid for whitespace removal 2016-04-28 18:26:44 -07:00
Parker Moore
19b566e6ea site: use rouge instead of pygments 2016-04-28 18:26:29 -07:00
Parker Moore
d74f8d6dd9 Fix spacing on the msg in Configuration#renamed_key 2016-04-28 17:55:15 -07:00
Jordon Bedwell
035352feff Update the ISSUE_TEMPLATE.md file.
* Link to jekyllrb.com as @parkr suggested.
* Add a few more directions and hints for Github Pages users who have errors.
* Add words that were missing and made stuff make no sense.
2016-04-28 04:28:15 -05:00
Jordon Bedwell
a04c45a2b6 Make the issue template more robust.
This makes the issue template more robust, making check boxes so users can submit and check or check as they go.  It also starts using HTML comments so that directions for the users aren't always displayed to us (gotta love Markdown.) And provides the users with more hints on what we would like from them when filing a ticket.
2016-04-27 13:36:37 -05:00
Parker Moore
6ed193277d Merge pull request #4847 from jekyll/3-0-5-release-post
Add release notes for v3.0.5
2016-04-26 18:01:01 -07:00
Parker Moore
960342eb38 Add link to history doc. 2016-04-26 18:00:33 -07:00
Parker Moore
008e694732 Compile history. 2016-04-26 17:59:05 -07:00
Parker Moore
4d264b5b9c Add release notes for v3.0.5 2016-04-26 17:57:07 -07:00
Jordon Bedwell
b45f575ffe Move to the Rubocop Gem, they've 2.3+ support and TargetVersion deployed now.
Previously we relied on the Git version of Rubocop so that we could get 2.3+ and TargetVersion support in our .rubocop.yml, they have since updated stable and made this available to the general public.
2016-04-26 19:19:53 -05:00
jekyllbot
f535497d90 Update history to reflect merge of #4844 [ci skip] 2016-04-26 17:13:18 -07:00
jekyllbot
70fb98f777 Merge pull request #4844 from ahanselka/formkeep
Merge pull request 4844
2016-04-26 17:13:18 -07:00
Alex Hanselka
514fdc7610 update formkeep url 2016-04-26 16:23:52 -05:00
Parker Moore
605cd265c0 Disable IRC build notifications. 2016-04-25 15:08:06 -07:00
jekyllbot
6d0bab5d59 Update history to reflect merge of #4710 [ci skip] 2016-04-21 17:38:01 -07:00
jekyllbot
1d788203df Merge pull request #4710 from fenollp/safe-symlinks
Merge pull request 4710
2016-04-21 17:38:00 -07:00
jekyllbot
1ac9c21956 Update history to reflect merge of #4808 [ci skip] 2016-04-21 17:20:03 -07:00
jekyllbot
298d56aab2 Merge pull request #4808 from jekyll/fix-collection-defaults-
Merge pull request 4808
2016-04-21 17:20:02 -07:00
jekyllbot
d8dc0b6333 Update history to reflect merge of #4595 [ci skip] 2016-04-21 17:19:00 -07:00
jekyllbot
30f2bdff5b Merge pull request #4595 from jekyll/themes
Merge pull request 4595
2016-04-21 17:18:59 -07:00
Parker Moore
685abf109b Merge pull request #4819 from jekyll/release-posts
Release posts for v3.0.4 and v3.1.3
2016-04-21 17:17:31 -07:00
Parker Moore
e4057e0c81 Write release posts. 2016-04-21 17:17:13 -07:00
Parker Moore
57ccbe08ea Ensure symlinks work as expected (and secured). 2016-04-21 16:32:52 -07:00
Parker Moore
bac65ea8c5 C'mon travis 2016-04-21 16:16:46 -07:00
Parker Moore
49a3f543f3 Theme: configure sass at initialize time so we don't forget 2016-04-21 16:11:09 -07:00
Parker Moore
3b2d68d333 LayoutReader: read proper item from theme class 2016-04-21 16:10:43 -07:00
Parker Moore
2b73696d03 Set @path and @base_dir on the Layout per whether it's in the theme 2016-04-21 16:10:19 -07:00
Parker Moore
d5dd423bfd Add cucumber specs. 2016-04-21 16:09:23 -07:00
Parker Moore
42cc2445a5 Merge branch 'master' into themes
* master: (58 commits)
  Update history to reflect merge of #4792 [ci skip]
  Update history to reflect merge of #4793 [ci skip]
  Update history to reflect merge of #4804 [ci skip]
  Update history to reflect merge of #4754 [ci skip]
  Update history to reflect merge of #4813 [ci skip]
  Added missing single quote on rsync client side command
  Add v3.0.4 and v3.1.3 to the history.
  Fixed typo
  Add jekyll-autoprefixer plugin
  Explicitly require Filters rather than implicitly.
  Update history to reflect merge of #4786 [ci skip]
  Update history to reflect merge of #4789 [ci skip]
  updates example domain in config template
  Globalize Jekyll's Filters.
  Update JRuby to 9.0.5.0; Drop the double digit test.
  Update Rack-Jekyll Heroku deployment blog post url
  convertible: use Document::YAML_FRONT_MATTER_REGEXP to parse transformable files
  Update history to reflect merge of #4734 [ci skip]
  Update history to reflect merge of #4478 [ci skip]
  Fix rubocop warning.
  ...
2016-04-21 11:43:35 -07:00
Parker Moore
f67f771a45 Empty release posts 2016-04-21 11:41:54 -07:00
Parker Moore
655ffd45be Use source_dir instead of my own computer's path 2016-04-21 11:26:33 -07:00
jekyllbot
0d89b77dae Update history to reflect merge of #4792 [ci skip] 2016-04-20 14:06:11 -07:00
jekyllbot
341407ef2a Merge pull request #4792 from jekyll/feature/globalize-filters
Merge pull request 4792
2016-04-20 14:06:10 -07:00
jekyllbot
1d55558956 Update history to reflect merge of #4793 [ci skip] 2016-04-20 14:03:36 -07:00
jekyllbot
46b2ab8e88 Merge pull request #4793 from sl4m/change-example-domain-url
Merge pull request 4793
2016-04-20 14:03:36 -07:00
jekyllbot
823a84fec9 Merge pull request #4799 from vwochnik/patch-1
Merge pull request 4799
2016-04-20 14:01:22 -07:00
jekyllbot
1ec64f568d Update history to reflect merge of #4804 [ci skip] 2016-04-20 13:57:26 -07:00
jekyllbot
f6f0d39b81 Merge pull request #4804 from henrywright/patch-1
Merge pull request 4804
2016-04-20 13:57:25 -07:00
jekyllbot
94647af1f4 Update history to reflect merge of #4754 [ci skip] 2016-04-20 12:31:10 -07:00
jekyllbot
894b356619 Merge pull request #4754 from lexoyo/patch-1
Merge pull request 4754
2016-04-20 12:31:08 -07:00
jekyllbot
f61ba8abf7 Update history to reflect merge of #4813 [ci skip] 2016-04-19 11:02:18 -07:00
jekyllbot
ccd5c9e106 Merge pull request #4813 from joshaidan/patch-1
Merge pull request 4813
2016-04-19 11:02:17 -07:00
Brian Jones
4e09375531 Added missing single quote on rsync client side command
The rsync command was missing a single quote around the --rsh='ssh -p2222' parameter.
2016-04-19 13:59:23 -04:00
Parker Moore
9315cdb473 Add v3.0.4 and v3.1.3 to the history. 2016-04-18 14:34:29 -07:00
Parker Moore
40e3a04704 test_document: scopes are based on relative_path 2016-04-18 13:56:02 -07:00
Parker Moore
87825e1e14 Document#read: frontmatter.all should get relative_path not URL 2016-04-18 13:55:57 -07:00
Florian Thomas
46dd5cf5a2 add failing test for scope values in subdirs
ref #4458
2016-04-18 13:55:51 -07:00
Henry Wright
adc6a491b9 Fixed typo
Add an apostrophe.
2016-04-17 20:39:20 +01:00
Vincent Wochnik
6f794ae320 Add jekyll-autoprefixer plugin 2016-04-16 14:48:35 +02:00
Jordon Bedwell
27366f2e30 Explicitly require Filters rather than implicitly. 2016-04-15 12:02:25 -05:00
jekyllbot
8257f0abd9 Update history to reflect merge of #4786 [ci skip] 2016-04-15 09:15:14 -07:00
jekyllbot
f922e8994a Merge pull request #4786 from jekyll/convertible-use-doc-frontmatter-regexp
Merge pull request 4786
2016-04-15 09:15:13 -07:00
jekyllbot
b97d9b688e Update history to reflect merge of #4789 [ci skip] 2016-04-15 09:14:33 -07:00
jekyllbot
5e302d7ec6 Merge pull request #4789 from duksis/master
Merge pull request 4789
2016-04-15 09:14:32 -07:00
skim
b122148acf updates example domain in config template 2016-04-15 09:29:39 +01:00
Jordon Bedwell
1e74c7a547 Globalize Jekyll's Filters.
As it stands Jekyll does not globalize it's filters.  So anybody wishing to go
into Jekyll's context to process their own Liquid (say in a plugin) may be taken
aback when they find out that Jekyll's filters are not available.
See: jekyll/jekyll-assets#252.
2016-04-14 20:36:22 -05:00
Jordon Bedwell
8144e7620f Update JRuby to 9.0.5.0; Drop the double digit test.
We've tested enough of the double digit stuff, it's only slowing down our specs and we've got an idea about what's going on with it.
2016-04-14 14:32:16 -05:00
Hugo Duksis
bb307bf6c1 Update Rack-Jekyll Heroku deployment blog post url
Failed to deploy to heroku by following old blog post  
but after stumbling up on https://github.com/adaoraul/rack-jekyll/issues/20
managed to do it and would like to avoid the trouble for others.
2016-04-14 18:24:46 +02:00
Parker Moore
f210cafdf2 convertible: use Document::YAML_FRONT_MATTER_REGEXP to parse transformable files 2016-04-13 23:22:05 -04:00
jekyllbot
519c3eb51f Update history to reflect merge of #4734 [ci skip] 2016-04-13 20:18:12 -07:00
jekyllbot
1cf5c8abd7 Merge pull request #4734 from nsgonultas/master
Merge pull request 4734
2016-04-13 20:18:12 -07:00
jekyllbot
7635d08ecf Update history to reflect merge of #4478 [ci skip] 2016-04-13 13:37:29 -07:00
jekyllbot
fc0d440201 Merge pull request #4478 from edgemaster/where-exp
Merge pull request 4478
2016-04-13 13:37:29 -07:00
Thomas Wood
e470cae6da Fix rubocop warning. 2016-04-12 19:11:59 +01:00
Thomas Wood
1ef7653fed Fix minor code style recommendations and typos. 2016-04-12 18:59:56 +01:00
Thomas Wood
66c4ff8800 Add a where_exp filter for filtering by expression
This commit introduces a where_exp filter, which can be used as follows:
  `{{ array | where_exp: "item", "item == 10" }}`
  `{{ array | where_exp: "item", "item.field > 10" }}`
  `{{ site.posts | where_exp: "post", "post contains 'field'" }}`
  `{{ site.posts | where_exp: "post", "post.array contains 'giraffes'" }}`

This permits a variety of use cases, such as reported in: jekyll#4467,
jekyll#4385, jekyll#2787.
2016-04-12 18:52:58 +01:00
Parker Moore
64d1a81968 Fix history for #4693 & its cherry-pick into master which doesn't need a history line 2016-04-12 13:40:24 -04:00
Jordon Bedwell
61b17d3dc8 Update History.markdown to reflect the cherry-pick of 2b9e849. 2016-04-12 03:02:34 -05:00
Jordon Bedwell
1efb1d7a58 Fix #4689: Use SSLEnable instead of EnableSSL and make URL HTTPS. 2016-04-12 02:59:48 -05:00
jekyllbot
4907b4c9f2 Update history to reflect merge of #4769 [ci skip] 2016-04-11 19:21:20 -07:00
jekyllbot
1bc8a83774 Merge pull request #4769 from lorentrogers/lr/update_collection_docs
Merge pull request 4769
2016-04-11 19:21:20 -07:00
jekyllbot
b0c3e3fa47 Update history to reflect merge of #4771 [ci skip] 2016-04-11 19:17:20 -07:00
jekyllbot
1430b6901d Merge pull request #4771 from menatankush/patch-1
Merge pull request 4771
2016-04-11 19:17:20 -07:00
jekyllbot
9880cea627 Update history to reflect merge of #4775 [ci skip] 2016-04-11 19:16:32 -07:00
jekyllbot
42b68261da Merge pull request #4775 from KrzysiekJ/jekyll-i18n_tags
Merge pull request 4775
2016-04-11 19:16:31 -07:00
jekyllbot
b1a6b21dad Update history to reflect merge of #4781 [ci skip] 2016-04-11 12:09:55 -07:00
jekyllbot
b35a2dd66d Merge pull request #4781 from kevee/docs-data-file-format
Merge pull request 4781
2016-04-11 12:09:54 -07:00
Kevin Miller
6f000c3807 Made statement about data file format more explicit
The doc read “These files must be YAML files…” then lists a few
extensions that are not YAML.
2016-04-10 09:53:50 -07:00
Krzysztof Jurewicz
499339548d Add jekyll-i18n_tags plugin 2016-04-09 13:56:55 +02:00
Ankush Menat
cd1d7afd59 Removed Leonard Lamprecht's website
Removed Leonard Lamprecht's website, he isn't using Jekyll for blogging anymore. Ref - https://medium.com/@leo/jekyll-medium-41a058ac2c91#.36e95k7de
2016-04-08 14:19:51 +05:30
Loren Rogers
f17d0076e0 Updates documentation for collections
Closes #4687
2016-04-07 20:28:16 -04:00
Jordon Bedwell
0daf1f5514 Revert moving to 2.1.9
It seems that Travis has made available 2.1.10 which is for double digit testing but skipped 2.1.10 (for some reason.) This reverts us back to 2.1.8 so that we can maintain a working build since we are triggering no known bugs in 2.1 at this time.
2016-04-07 16:09:23 -05:00
Jordon Bedwell
5e212648f6 2.1.8 => 2.1.9 2016-04-07 15:57:24 -05:00
Jordon Bedwell
129a0b6b7d Do as Ruby maintainers requested.
Lets see if anything breaks by using a 2 digit Ruby version number, they are looking for people to see if stuff breaks because this.
2016-04-07 15:53:32 -05:00
jekyllbot
a42d0ad9e9 Update history to reflect merge of #4756 [ci skip] 2016-04-06 18:25:00 -07:00
jekyllbot
ec105b3e54 Merge pull request #4756 from keegoid/master
Merge pull request 4756
2016-04-06 18:24:59 -07:00
jekyllbot
4528772e20 Update history to reflect merge of #4760 [ci skip] 2016-04-06 17:15:01 -07:00
jekyllbot
5457fa16f6 Merge pull request #4760 from clarkwinkelmann/patch-2
Merge pull request 4760
2016-04-06 17:15:00 -07:00
jekyllbot
a473b45e35 Update history to reflect merge of #4741 [ci skip] 2016-04-06 17:14:29 -07:00
jekyllbot
41c3dd4cde Merge pull request #4741 from jekyll/sortable-doc-drop
Merge pull request 4741
2016-04-06 17:14:28 -07:00
jekyllbot
071e775a55 Update history to reflect merge of #4763 [ci skip] 2016-04-06 09:58:29 -07:00
jekyllbot
cb6e2574ce Merge pull request #4763 from shengbinmeng/patch-1
Merge pull request 4763
2016-04-06 09:58:29 -07:00
Shengbin Meng
413783c4e8 Fix a typo in pagination doc 2016-04-07 00:35:24 +08:00
Jordon Bedwell
daf638b600 Merge pull request #4758 from nscyclone/typo-in-contributing.md
Fixed a typo in 'contributing'.
2016-04-05 14:38:24 -05:00
Jordon Bedwell
a449512912 Merge pull request #4759 from clarkwinkelmann/patch-1
Fixed the example fork url in CONTRIBUTING
2016-04-05 14:38:02 -05:00
Clark Winkelmann
41e2994868 Switch second GitHub Pages link to HTTPS
This was pretty disturbing
2016-04-05 20:58:39 +02:00
Clark Winkelmann
51f79a4387 Fixed the example fork url in CONTRIBUTING 2016-04-05 20:51:33 +02:00
nscyclone
6422477c5e Fixed a typo in 'contributing'. 2016-04-05 20:55:51 +03:00
Keegan Mullaney
19a8473023 fix typo
lcoally => locally

 Changes to be committed:
	modified:   .github/CONTRIBUTING.markdown
	modified:   site/_docs/contributing.md
2016-04-05 16:49:38 +08:00
jekyllbot
e801d55ddf Update history to reflect merge of #4755 [ci skip] 2016-04-04 14:54:33 -07:00
jekyllbot
ade2847301 Merge pull request #4755 from awood/master
Merge pull request 4755
2016-04-04 14:54:33 -07:00
Alex Wood
7040448b75 Add entry linking to the Hawkins plugin. 2016-04-04 16:23:30 -04:00
Alex Hoyau
eb4e9dd347 more form baas 2016-04-04 19:07:57 +02:00
Parker Moore
d5b26c94d2 Merge pull request #4750 from SuriyaaKudoIsc/patch-23
Small edits in .github/CONTRIBUTING.markdown
2016-04-03 20:32:03 -07:00
Parker Moore
eadba642ce Merge pull request #4751 from SuriyaaKudoIsc/patch-24
Set protocol of jekyllrb.com to HTTPS
2016-04-03 20:31:32 -07:00
Suriyaa Kudo
387c40f667 Set protocol of jekyllrb.com to HTTPS 2016-04-03 10:28:09 +02:00
Suriyaa Kudo
2bd3815b42 Small edits 2016-04-03 10:25:18 +02:00
jekyllbot
df2a92cb39 Update history to reflect merge of #4717 [ci skip] 2016-03-31 18:40:15 -07:00
jekyllbot
a224491d20 Merge pull request #4717 from jekyll/cleanup-launch-browser
Merge pull request 4717
2016-03-31 18:40:15 -07:00
jekyllbot
7861f12727 Update history to reflect merge of #4537 [ci skip] 2016-03-31 18:37:33 -07:00
jekyllbot
6ee728efcb Merge pull request #4537 from Crunch09/fix-warnings
Merge pull request 4537
2016-03-31 18:37:32 -07:00
jekyllbot
ba9a28474f Update history to reflect merge of #4720 [ci skip] 2016-03-31 18:31:18 -07:00
jekyllbot
6c9200252a Merge pull request #4720 from jekyll/feature/upgrade-rake
Merge pull request 4720
2016-03-31 18:31:17 -07:00
Parker Moore
4b471fe9fb DocumentDrop: add #<=> which sorts by date (falling back to path) 2016-03-31 13:41:59 -07:00
Enes Gönültaş
d576d7bfae Added an explicit rerun note 2016-03-30 17:16:25 +03:00
Jussi Kinnula
4effe25cc1 Fix slugify test 2016-03-29 10:11:47 +03:00
Jussi Kinnula
4c65772c44 One final "urlsafe" replaced with "ascii" 2016-03-29 10:01:08 +03:00
Jussi Kinnula
764a2c1b39 Change urlsafe to ascii also when actually slugifying 2016-03-29 09:46:42 +03:00
Jussi Kinnula
487631e935 Add tests for ascii slugify mode 2016-03-29 09:07:30 +03:00
Jussi Kinnula
e823ac5180 Rename urlsafe to ascii, and document it (on utils.rb) 2016-03-29 09:07:12 +03:00
Jordon Bedwell
f80321ecac Update Rake.
Update Rake and disable verbosity when running the specs because we have some
deprecated usage (for now -- however, see: jekyll/jekyll#4719) and because
Rouge, and Liquid throw out thousands (probably hyperbolic) of warnigns when the
specs are being ran.  We need upstream to fix their problems while we fix ours
or we'll all have a bad day, not that we aren't already.
2016-03-27 22:22:35 -05:00
Jordon Bedwell
06ab708edf Don't blindly assume the last-system.
As it was we assumed that any system that wasn't Windows or OS X must be Linux
but the reality of that can be very unlikely. BSD is popular in some places and
it's not Linux and this would cause an error there.  If we do not know the
launcher for a platform we should ship an error and have the user file
a bug if they feel it necessary and skip the launch otherwise.
2016-03-27 21:41:23 -05:00
Pierre Fenoll
9347e90a67 Use EntryFilter throughout & update tests 2016-03-26 16:40:19 +01:00
Pierre Fenoll
4aadfe9fd7 Add test that filters out symlink pointing outside site source 2016-03-26 14:16:43 +01:00
Pierre Fenoll
bbd2a2b7f1 Rename EntryFilter#bad_symlink? to EntryFilter#symlink_outside_site_source? 2016-03-26 13:12:08 +01:00
Parker Moore
33255e3ac3 IncludeTag: implement multiple load paths 2016-03-25 17:44:29 -07:00
Parker Moore
0920d2b48a LayoutReader#read: read in Theme layouts if they aren't already registered 2016-03-25 17:06:26 -07:00
Parker Moore
a30068bf3f Merge remote-tracking branch 'origin/master' into themes
* origin/master: (65 commits)
  Update history to reflect merge of #4703 [ci skip]
  Update history to reflect merge of #4712 [ci skip]
  Highlight the test code
  Update history to reflect merge of #4640 [ci skip]
  readded "env=prod"-condition
  Update history to reflect merge of #3849 [ci skip]
  Update history to reflect merge of #4624 [ci skip]
  Update history to reflect merge of #4704 [ci skip]
  Update history to reflect merge of #4706 [ci skip]
  Checks for link file extension in tests
  Updating assets documentation
  Fix test teardown for cleaner.
  Update history to reflect merge of #4542 [ci skip]
  Add explanation of site variables in the example _config.yml
  Use double quotes in the gemfile
  Add test for creation of Gemfile by 'jekyll new'
  Add comment about github-pages
  Update history to reflect merge of #4533 [ci skip]
  Ensure Rouge closes its div/figure properly after highlighting ends.
  Add Site#config= which can be used to set the config
  ...
2016-03-25 16:30:25 -07:00
Parker Moore
a1a4b3937a Add Layout#relative_path so the layout can tell us what its path is for error messages 2016-03-25 16:29:37 -07:00
jekyllbot
f2aa15555b Update history to reflect merge of #4703 [ci skip] 2016-03-25 16:27:39 -07:00
jekyllbot
afa89d68f8 Merge pull request #4703 from jekyll/after_init_hook
Merge pull request 4703
2016-03-25 16:27:38 -07:00
Parker Moore
6aae64c985 Update test_theme.rb 2016-03-25 15:22:29 -07:00
jekyllbot
9474c370dc Update history to reflect merge of #4712 [ci skip] 2016-03-25 15:11:42 -07:00
jekyllbot
a04df2f440 Merge pull request #4712 from chrisfinazzo/highlight-code-samples
Merge pull request 4712
2016-03-25 15:11:41 -07:00
Florian Thomas
d213981a24 Fix warnings
This removes the following warnings:

- /lib/jekyll/configuration.rb:151: warning: instance variable @default_config_file not initialized
- /lib/jekyll/converter.rb:12: warning: instance variable @highlighter_prefix not initialized
- /lib/jekyll/converter.rb:24: warning: instance variable @highlighter_suffix not initialized
- /lib/jekyll/converters/markdown.rb:9: warning: instance variable @setup not initialized
- /lib/jekyll/converters/markdown/kramdown_parser.rb:60: warning: instance variable @highlighter not initialized
- /lib/jekyll/frontmatter_defaults.rb:97: warning: shadowing outer local variable - path
- /lib/jekyll/plugin.rb:66: warning: instance variable @safe not initialized
- /lib/jekyll/regenerator.rb:147: warning: instance variable @disabled not initialized
- /test/test_convertible.rb:40: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_filters.rb:154: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_new_command.rb:84: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_site.rb:234: warning: assigned but unused variable - site
- /test/test_site.rb:240: warning: assigned but unused variable - site
- /test/test_site.rb:522: warning: assigned but unused variable - source
- /test/test_tags.rb:153: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:425: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:449: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:496: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:496: warning: instance variable @result not initialized
- /test/test_tags.rb:511: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:773: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_tags.rb:773: warning: instance variable @result not initialized
- /test/test_tags.rb:788: warning: ambiguous first argument; put parentheses or a space even after `/' operator
- /test/test_url.rb:66: warning: shadowing outer local variable - doc
- /lib/jekyll/url.rb:119:in `escape_path': warning: URI.escape is obsolete
2016-03-25 22:03:17 +01:00
chrisfinazzo
7cdc8394aa Highlight the test code 2016-03-25 15:30:53 -04:00
jekyllbot
f16c5d0e65 Update history to reflect merge of #4640 [ci skip] 2016-03-25 12:19:17 -07:00
jekyllbot
1ab0ed3664 Merge pull request #4640 from surrim/symlink_static_files
Merge pull request 4640
2016-03-25 12:19:17 -07:00
Ben Balter
0f90fe67d2 but who will test the testers? 2016-03-25 15:00:42 -04:00
Ben Balter
4a70382d5b test that themes register with sass 2016-03-25 14:48:44 -04:00
Ben Balter
bdaa0c3b5b register sass path 2016-03-25 14:46:00 -04:00
surrim
9be387ef6f readded "env=prod"-condition 2016-03-25 19:42:53 +01:00
Pierre Fenoll
f60d3a8dbc Allow symlinks iff they point to stuff inside site.source 2016-03-25 15:14:04 +01:00
jekyllbot
9234fa7510 Update history to reflect merge of #3849 [ci skip] 2016-03-24 13:54:04 -07:00
jekyllbot
7a4817e55a Merge pull request #3849 from shinkondo/master
Merge pull request 3849
2016-03-24 13:54:03 -07:00
jekyllbot
f0e9b378f6 Update history to reflect merge of #4624 [ci skip] 2016-03-24 12:50:06 -07:00
jekyllbot
da4a664290 Merge pull request #4624 from jeffkole/feature/add-collection-url-tag
Merge pull request 4624
2016-03-24 12:50:05 -07:00
jekyllbot
9fc4a85806 Update history to reflect merge of #4704 [ci skip] 2016-03-24 12:40:50 -07:00
jekyllbot
59d1a122c6 Merge pull request #4704 from jekyll/parkr-patch-1
Merge pull request 4704
2016-03-24 12:40:49 -07:00
jekyllbot
0f2df6c7b3 Update history to reflect merge of #4706 [ci skip] 2016-03-24 12:40:16 -07:00
jekyllbot
c7d4386b63 Merge pull request #4706 from yordis/patch-1
Merge pull request 4706
2016-03-24 12:40:15 -07:00
Jeff Kolesky
54fcc97725 Checks for link file extension in tests 2016-03-24 08:54:31 -07:00
Yordis Prieto
5f97f928de Updating assets documentation
Just because developer are lazy and tools like this is for move forward faster, normally we don't read (it's a fact) and because of that I missed this super important sentence. At least this should help.
2016-03-24 09:52:16 -04:00
Shinn Kondo
c27c669796 Fix test teardown for cleaner. 2016-03-23 20:37:13 -05:00
jekyllbot
c6564d352b Update history to reflect merge of #4542 [ci skip] 2016-03-23 17:49:47 -07:00
jekyllbot
87d0f03f5c Merge pull request #4542 from jekyll/jekyll-new-with-gemfile
Merge pull request 4542
2016-03-23 17:49:46 -07:00
Parker Moore
7695ba6eb4 Add explanation of site variables in the example _config.yml 2016-03-23 17:44:11 -07:00
Shinn Kondo
01d48320fd Merge remote-tracking branch 'upstream/master' 2016-03-23 19:33:22 -05:00
Parker Moore
22d9312eaf Use double quotes in the gemfile 2016-03-23 17:25:19 -07:00
Parker Moore
da35e134f1 Add test for creation of Gemfile by 'jekyll new' 2016-03-23 17:24:38 -07:00
Parker Moore
09f9f193d8 Add comment about github-pages 2016-03-23 17:15:35 -07:00
jekyllbot
0c172f6463 Update history to reflect merge of #4533 [ci skip] 2016-03-23 17:01:16 -07:00
jekyllbot
4ce50e3936 Merge pull request #4533 from hgoodman/feature/show-dir-listing
Merge pull request 4533
2016-03-23 17:01:16 -07:00
Tom Fejfar
007b7d45dc Ensure Rouge closes its div/figure properly after highlighting ends.
Fixes #4474
2016-03-23 14:04:11 -07:00
Parker Moore
9b60df8883 Add Site#config= which can be used to set the config 2016-03-23 13:14:30 -07:00
Parker Moore
84b7d9b3ac Add Hook for :site :after_init 2016-03-23 13:14:08 -07:00
jekyllbot
b5e459430b Update history to reflect merge of #4700 [ci skip] 2016-03-23 08:46:02 -07:00
jekyllbot
d2c754c0fe Merge pull request #4700 from KrzysiekJ/jekyll-paspagon-plugin
Merge pull request 4700
2016-03-23 08:46:01 -07:00
Krzysztof Jurewicz
8786163f35 Add jekyll-paspagon plugin 2016-03-23 10:00:13 +01:00
jekyllbot
e1fe161071 Update history to reflect merge of #4694 [ci skip] 2016-03-22 15:09:57 -07:00
jekyllbot
e873934d60 Merge pull request #4694 from pathawks/pr/xml_escape
Merge pull request 4694
2016-03-22 15:09:57 -07:00
jekyllbot
f542d817b0 Update history to reflect merge of #4699 [ci skip] 2016-03-22 14:55:55 -07:00
jekyllbot
4cb6b249f1 Merge pull request #4699 from chrisfinazzo/fix-resources-url
Merge pull request 4699
2016-03-22 14:55:54 -07:00
chrisfinazzo
27d617a319 Use the correct URL, Fixes #4698 2016-03-22 17:48:57 -04:00
Pat Hawks
aeecbd741f Add test to inspect strings 2016-03-21 15:45:29 -07:00
Pat Hawks
b06af5a44f Use encode for xml_escape filter 2016-03-21 11:07:46 -07:00
jekyllbot
62669d9229 Update history to reflect merge of #4686 [ci skip] 2016-03-21 09:03:53 -07:00
jekyllbot
0a2c8bb26a Merge pull request #4686 from yanisvieilly/patch-1
Merge pull request 4686
2016-03-21 09:03:52 -07:00
Yanis Vieilly
bbb76a39a2 Update windows.md
Fix typo on Chocolatey name
2016-03-20 23:38:45 +01:00
jekyllbot
2736be44c5 Update history to reflect merge of #4491 [ci skip] 2016-03-20 15:34:36 -07:00
jekyllbot
848b1358a1 Merge pull request #4491 from jekyll/ignore-tilde
Merge pull request 4491
2016-03-20 15:34:35 -07:00
jekyllbot
526ded00e9 Update history to reflect merge of #4685 [ci skip] 2016-03-20 15:32:46 -07:00
jekyllbot
983cd60a8d Merge pull request #4685 from smacz42/master
Merge pull request 4685
2016-03-20 15:32:46 -07:00
AndrewCz
a54cedbb72 Additional repo needed for Fedora 23 Workspace
After running:

    sudo dnf install ruby ruby-devel rubygems nodejs
    sudo dnf group install "C Development and Tools"

I was unable to install Jekyll via `gem` due to an error:

    The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.

Taken from the [fedoraproject.org](https://developer.fedoraproject.org/tech/languages/ruby/gems-installation.html) Gem page:

>If you installed all the above, but the extensions would still not compile, you are probably running a Fedora image that misses `redhat-rpm-config` >package. In that case gcc compiler would complain about one of the following:

    gcc: error: conftest.c: No such file or directory
    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

>To solve this, simply run sudo dnf install `redhat-rpm-config`.

After doing so it downloaded, compiled and installed without a problem.
2016-03-20 05:53:13 -04:00
AndrewCz
bd0cdcd4cb Add installing devel libraries to fedora
I followed the troubleshooting and came up with `sudo gem install jekyll` unable to generate the binary file because the development libraries were not installed on my system. Per [fedoraproject.org -- Gems](https://developer.fedoraproject.org/tech/languages/ruby/gems-installation.html) this is necessary to install this. The instructions mirror what is listed on that page, but using `yum` instead of `dnf` - which is understandable because RH and CentOS still use `yum`.
2016-03-20 05:08:05 -04:00
jekyllbot
c795acd09f Update history to reflect merge of #4682 [ci skip] 2016-03-19 10:26:06 -07:00
jekyllbot
46c08e5dc1 Merge pull request #4682 from DirtyF/patch-1
Merge pull request 4682
2016-03-19 10:26:05 -07:00
DirtyF
4618a2a8b5 replace with @parkr suggestion 2016-03-19 18:22:35 +01:00
Parker Moore
c28a17d71f benchmark: add benchmarks for String#=~ vs String#include? 2016-03-19 10:08:17 -07:00
DirtyF
a81bc9773f typo 2016-03-19 12:56:44 +01:00
Frank Taillandier
68892ab693 future option also works for collections
Following the discussion on #4676
2016-03-19 12:45:25 +01:00
Jussi Kinnula
c0dec091a2 Add urlsafe to accepted slugify modes 2016-03-18 17:14:54 +02:00
Jussi Kinnula
36dc8c2169 Add urlsafe method for slugify 2016-03-18 11:13:06 +02:00
Parker Moore
af47b3c1a7 Fix documentation for push/pop/shift/unshift
/cc https://github.com/jekyll/jekyll/pull/4384
2016-03-17 15:50:50 -07:00
Aaron Sky
0c73a6ded9 Update Templates Docs to include Array Filters
PR #2895 merged this in, but there isn't any documentation anywhere for this as far as I can find. All the Stack Overflow answers I could find said it was impossible to push and pop elements from a Liquid array, although that's probably because they were using Shopify's Liquid.

Fixes https://github.com/jekyll/jekyll/pull/4384
2016-03-17 15:50:18 -07:00
Jeff Kolesky
4b32bd2b13 Updates code styling per PR 2016-03-17 14:26:13 -07:00
Jeff Kolesky
f79f9d60a9 Changes collection_url tag to link tag 2016-03-17 14:01:04 -07:00
Parker Moore
ac9a72482d Lock jemoji to v0.5.1 while we figure out the issue with HTML::Pipeline.
Reference issue: https://github.com/jekyll/jemoji/pull/37
2016-03-16 15:28:06 -07:00
jekyllbot
b9859489b0 Update history to reflect merge of #4670 [ci skip] 2016-03-16 13:15:27 -07:00
jekyllbot
5930bbfac1 Merge pull request #4670 from jekyll/clean-up-post-url
Merge pull request 4670
2016-03-16 13:15:26 -07:00
Parker Moore
4883a24363 PostComparer#post_date use the provided date instead of re-parsing the whole name. 2016-03-15 16:08:32 -07:00
Parker Moore
97efa0f0ce Clean up Tags::PostUrl a bit 2016-03-15 16:06:25 -07:00
Parker Moore
329878c45f Update site version of contributing [ci skip] 2016-03-15 16:05:38 -07:00
Parker Moore
bb1bd671b7 Merge pull request #4658 from SuriyaaKudoIsc/patch-20
Improved content in "License" section in README.markdown
2016-03-14 12:59:45 -07:00
Parker Moore
c006979160 Merge pull request #4659 from SuriyaaKudoIsc/patch-21
Set protocol of Stack Overflow to HTTPS
2016-03-14 12:59:25 -07:00
Parker Moore
a882c88081 Merge pull request #4660 from SuriyaaKudoIsc/patch-22
Set protocol of jekyllrb.com to HTTPS
2016-03-14 12:59:12 -07:00
Suriyaa Kudo
3014444b0e Set protocol of jekyllrb.com to HTTPS 2016-03-12 12:51:58 +01:00
Suriyaa Kudo
ebe46f1ddc Set protocol of Stack Overflow to HTTPS 2016-03-12 12:46:59 +01:00
Suriyaa Kudo
417b5a3b2e Improved content in "License" section in README.markdown 2016-03-12 12:42:04 +01:00
jekyllbot
e33574b391 Update history to reflect merge of #4647 [ci skip] 2016-03-11 17:43:23 -06:00
jekyllbot
204e3074c9 Merge pull request #4647 from gesa/fix-templates-doc
Merge pull request 4647
2016-03-11 17:43:22 -06:00
Ben Balter
285aa54445 remove even more asset support 2016-03-11 16:18:11 -05:00
Parker Moore
ceace852b0 Merge pull request #4655 from spudowiar/themes
Fix invalid theme test, really
2016-03-11 13:05:07 -08:00
Aki
15e7c30cc7 Fixes typo on collections
There was a line referring to the `render` key in `_config.yml` but the actual name of the key is `output`.

Thank you, @parkr!
2016-03-11 13:03:32 -08:00
Saleem Rashid
64e4984ff5 theme: fix invalid theme test, really 2016-03-11 20:59:54 +00:00
Ben Balter
5f8ae36380 Merge pull request #4654 from spudowiar/themes
Fix invalid theme test
2016-03-11 15:52:57 -05:00
Saleem Rashid
7b63c8d201 theme: fix invalid theme test 2016-03-11 20:45:22 +00:00
Ben Balter
0a04932020 remove assets dir from theme fixture 2016-03-11 14:46:05 -05:00
Ben Balter
f89fbbe9e6 rebuild site 2016-03-11 14:45:14 -05:00
Ben Balter
e3c71ea407 Merge branch 'master' into themes 2016-03-11 14:44:44 -05:00
Ben Balter
1a203a0598 use variables in the docs 2016-03-11 14:43:44 -05:00
Ben Balter
92168954d2 remove asset support 2016-03-11 14:41:26 -05:00
jekyllbot
e92a46e156 Update history to reflect merge of #4653 [ci skip] 2016-03-11 13:35:23 -06:00
jekyllbot
2ea3bc53d3 Merge pull request #4653 from mlinksva/patch-2
Merge pull request 4653
2016-03-11 13:35:22 -06:00
jekyllbot
c206df3401 Update history to reflect merge of #4652 [ci skip] 2016-03-11 13:14:53 -06:00
jekyllbot
d4c1d97cb3 Merge pull request #4652 from jekyll/clean-sass-cache
Merge pull request 4652
2016-03-11 13:14:52 -06:00
Mike Linksvayer
4948b5a3b3 change smartify doc from copy/paste of mardownify doc 2016-03-11 11:09:03 -08:00
surrim
64d5e3dfd3 removed "env=prod"-condition 2016-03-11 19:26:16 +01:00
Parker Moore
79f8210fff 'jekyll clean': also remove .sass-cache 2016-03-11 10:04:36 -08:00
surrim
52eb60e171 use copy_entry only in safe mode 2016-03-11 18:45:40 +01:00
jekyllbot
8c9ebd2674 Update history to reflect merge of #4645 [ci skip] 2016-03-11 11:37:35 -06:00
jekyllbot
1768bcc489 Merge pull request #4645 from jekyll/affinity-teams-post
Merge pull request 4645
2016-03-11 11:37:35 -06:00
Parker Moore
86e4fa9a35 team ~> teams 2016-03-11 09:37:11 -08:00
Ben Balter
b086a3b423 Merge pull request #4646 from jekyll/avatar-fix
Ensure avatars properly render on /news
2016-03-10 11:59:37 -05:00
Ben Balter
1c59be1494 ensure avatars properly render on /news 2016-03-10 11:52:39 -05:00
Ben Balter
c759771dc7 super-duper informal 2016-03-10 11:47:53 -05:00
Ben Balter
238341ac8a steel my awesome one contribution at a time line from the contributing file 2016-03-10 11:47:02 -05:00
Ben Balter
21847980e3 more informal link language 2016-03-10 11:46:06 -05:00
Ben Balter
b4ca9a56fe dont list the teams 2016-03-10 11:45:43 -05:00
Ben Balter
3403a76ec8 todays the 10th, not the 11th 2016-03-10 11:44:57 -05:00
Ben Balter
61e549d317 link to affinity teams on firt reference 2016-03-10 11:44:40 -05:00
Ben Balter
2240d52338 add post on contributing file and affinity teams 2016-03-10 11:42:48 -05:00
Parker Moore
3acf4beb81 Rakefile: siteify_file should allow overrides from task [ci skip] 2016-03-10 10:21:15 -06:00
Parker Moore
0f8a3b2971 Proper contributing file in site/.
Hello, friends. I have an update for you because i derp'd. [ci skip]
2016-03-10 10:16:10 -06:00
jekyllbot
d2fd910828 Update history to reflect merge of #4596 [ci skip] 2016-03-10 10:10:37 -06:00
jekyllbot
a068bfb8ee Merge pull request #4596 from jekyll/contributing-refresh
Merge pull request 4596
2016-03-10 10:10:37 -06:00
Ben Balter
a3577d953d refresh contributing doc 2016-03-10 10:09:53 -06:00
jekyllbot
40a5e5c60c Update history to reflect merge of #4628 [ci skip] 2016-03-09 11:19:59 -08:00
jekyllbot
9e57eb1858 Merge pull request #4628 from mejackreed/travis-sudo
Merge pull request 4628
2016-03-09 11:19:58 -08:00
Jack Reed
0f50dd1bb7 Update continuous-integration docs with sudo: false information
Updates the continuous-integration docs to provide information about the `sudo: false` behavior which can route builds to the faster container-based infrastructure. https://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
2016-03-09 09:36:02 -05:00
jekyllbot
a93c3eadd1 Update history to reflect merge of #4555 [ci skip] 2016-03-08 16:25:16 -08:00
jekyllbot
9e0ed00a59 Merge pull request #4555 from timwis/patch-1
Merge pull request 4555
2016-03-08 16:25:15 -08:00
Parker Moore
a1835c0a31 Fix rakefile when you don't have a title in markdown 2016-03-08 16:46:17 -06:00
Parker Moore
c49d1fc1bd Collections is settled as of Jekyll v3 2016-03-08 16:42:01 -06:00
Matt Rogers
3129372d12 Update history to reflect merge of #4639 [ci skip] 2016-03-08 16:13:43 -06:00
Matt Rogers
faf06d1969 Merge pull request #4639 from anthonyjsmith/patch-1 2016-03-08 16:13:40 -06:00
Matt Rogers
d912f3a456 Update history to reflect merge of #4636 [ci skip] 2016-03-08 16:04:29 -06:00
Matt Rogers
9520d9bbf9 Merge pull request #4636 from HugoGiraudel/patch-4 2016-03-08 16:04:02 -06:00
Ben Balter
b29ce257c3 fix for history file title 2016-03-08 12:08:22 -05:00
Ben Balter
78acdc72e2 fix for history not having a title 2016-03-08 12:03:22 -05:00
Ben Balter
678d494d90 no GFM for you 2016-03-08 12:03:14 -05:00
Ben Balter
eb341514a7 use def_delegator 2016-03-08 11:55:16 -05:00
Ben Balter
e8617cf7cd better theme-not-found handling 2016-03-08 11:53:29 -05:00
Ben Balter
ea84ac9b04 use rocket hashes 2016-03-08 11:52:33 -05:00
Ben Balter
06ee9bcff4 remove title of history file 2016-03-08 11:52:17 -05:00
jekyllbot
ce3ea138ce Update history to reflect merge of #4558 [ci skip] 2016-03-08 06:22:13 -08:00
jekyllbot
85685a8981 Merge pull request #4558 from zandaleph/log-future
Merge pull request 4558
2016-03-08 06:22:13 -08:00
Zack Spencer
13912482ad Adding a debug log statment for skipped future posts.
For https://github.com/jekyll/jekyll/issues/4507
2016-03-07 22:10:10 +00:00
jekyllbot
3213ea70e5 Update history to reflect merge of #4641 [ci skip] 2016-03-07 13:56:51 -08:00
jekyllbot
24da7f8883 Merge pull request #4641 from alexpls/patch-1
Merge pull request 4641
2016-03-07 13:56:51 -08:00
Ben Balter
c86fba6fb3 use /assets for theme assets, not _assets 2016-03-06 15:42:08 -05:00
Ben Balter
ff3df203c4 document how to use themes 2016-03-06 15:32:26 -05:00
Alex Plescan
71d510a79c Update HTMLProofer CLI command
Version 3.0 of HTMLProofer has renamed the CLI command `htmlproof` to `htmlproofer` (https://github.com/gjtorikian/html-proofer/issues/246).

This commit updates documentation to reflect this change.
2016-03-06 13:30:37 +10:00
surrim
46bdaa49dc using FileUtils.copy_entry instead of FileUtils.cp to allow symlinks 2016-03-05 23:31:16 +01:00
Ben Balter
8b880cb993 add theme tests 2016-03-05 13:35:52 -05:00
Ben Balter
ada7c4f441 revert layout reader 2016-03-05 13:05:57 -05:00
Ben Balter
47416169c3 add sass path 2016-03-05 13:05:11 -05:00
Ben Balter
8bfb9e51f3 Merge branch 'master' into themes 2016-03-05 13:04:15 -05:00
Anthony Smith
b3c6714b12 Subdirectories of _posts are no longer categories
See  #4084
2016-03-05 10:59:54 +00:00
Jordon Bedwell
37cc45239d Merge pull request #4635 from HugoGiraudel/patch-3
Added role="banner" to <header>
2016-03-05 02:22:10 -06:00
jekyllbot
456007aab7 Update history to reflect merge of #4630 [ci skip] 2016-03-04 14:34:21 -08:00
jekyllbot
b8b5cb47ec Merge pull request #4630 from dvonlehman/patch-1
Merge pull request 4630
2016-03-04 14:34:21 -08:00
jekyllbot
d8bb9ae77b Update history to reflect merge of #4637 [ci skip] 2016-03-04 14:32:05 -08:00
jekyllbot
26782e246b Merge pull request #4637 from HugoGiraudel/patch-5
Merge pull request 4637
2016-03-04 14:32:05 -08:00
Hugo Giraudel
664206608d Removed unnecessary nesting from _base.scss 2016-03-04 17:40:19 +01:00
Hugo Giraudel
90e83e0636 Changed main <div> to <main> and added aria-label="Content" 2016-03-04 17:33:44 +01:00
Hugo Giraudel
09b9db259c Added role="banner" to <header> 2016-03-04 17:32:21 +01:00
Jordon Bedwell
a416802a89 Update history.markdown to reflect the merger of #4633 2016-03-04 10:27:04 -06:00
Jordon Bedwell
03f57a898b Merge pull request #4633 from HugoGiraudel/patch-1
Added a default lang attribute
2016-03-04 10:26:07 -06:00
Hugo Giraudel
ff91463c43 Added a default lang attribute 2016-03-04 17:03:26 +01:00
timwis
e130a0841f add test to ensure where doesn't match substrings 2016-03-03 15:56:54 -05:00
jekyllbot
55edf76590 Update history to reflect merge of #4601 [ci skip] 2016-03-02 20:06:25 -08:00
jekyllbot
7b80cb78bd Merge pull request #4601 from jekyll/copy-better
Merge pull request 4601
2016-03-02 20:06:24 -08:00
Parker Moore
6262a59be8 Remove header from History.markdown 2016-03-02 20:05:10 -08:00
David Von Lehman
1bc9e0ed63 Adding Aerobatic to list of deployment options 2016-03-02 15:04:15 -08:00
Jeff Kolesky
b80a0cb5ce Adds collection_tag
This tag mirrors the post_tag functionality but for collections instead of just
posts.
2016-03-02 14:56:30 -08:00
Ben Balter
301fe59dc6 update siteify_file to work with .github folder 2016-03-02 13:46:54 -05:00
Ben Balter
1853f6a210 Merge branch 'copy-better' of https://github.com/jekyll/jekyll into copy-better 2016-03-02 13:40:17 -05:00
Ben Balter
0654e2f65e Merge branch 'master' into copy-better 2016-03-02 13:39:27 -05:00
Ben Balter
059d7d2997 Properly case History.markdown 2016-03-02 13:38:54 -05:00
jekyllbot
81c88d6833 Update history to reflect merge of #4620 [ci skip] 2016-03-01 20:00:49 -08:00
jekyllbot
11d2d78cd9 Merge pull request #4620 from jeffkole/fix/clear-related-posts-for-non-post-pages
Merge pull request 4620
2016-03-01 20:00:49 -08:00
jekyllbot
3954cb4dd4 Update history to reflect merge of #4621 [ci skip] 2016-03-01 19:59:49 -08:00
jekyllbot
25cf188caa Merge pull request #4621 from eug/patch-1
Merge pull request 4621
2016-03-01 19:59:48 -08:00
Parker Moore
de8f67c4a2 Fix link issues in the site found by HTML Proofer. 2016-03-01 19:43:22 -08:00
Ben Balter
7e21d2a98f add content_for method 2016-03-01 15:51:17 -05:00
Eugênio Cabral
928faed7c7 Add jekyll-video-embed 2016-03-01 17:18:08 -03:00
Jeff Kolesky
67904e849d Ensures related_posts are only set for a post
Prior to this change, the related posts for the most recently rendered post
stayed set on the `site` object. This could result in pages that showed related
posts even when the page represented an entire collection of posts, such as on
an index page.  This change restores the functionality from Jekyll V2.
2016-03-01 12:05:49 -08:00
jekyllbot
377d212ecc Update history to reflect merge of #4618 [ci skip] 2016-03-01 11:59:08 -08:00
jekyllbot
f274179d9b Merge pull request #4618 from spudowiar/fix-test-state-leakage
Merge pull request 4618
2016-03-01 11:59:07 -08:00
Saleem Rashid
b0c730d278 kramdown: fix state leakage (#4617) in test
fixes #4250
2016-03-01 18:41:04 +00:00
Parker Moore
f66f791668 Update history to reflect resolution of #4598 [ci skip] 2016-02-29 16:20:49 -08:00
Parker Moore
14e9ec2bbb Doctor: correctly set key name so --config works
Fixes #4598
2016-02-29 16:17:49 -08:00
jekyllbot
39a4dc6fb7 Update history to reflect merge of #4590 [ci skip] 2016-02-29 16:12:06 -08:00
jekyllbot
c16a2f4d6a Merge pull request #4590 from tonyg/pr4582
Merge pull request 4590
2016-02-29 16:12:06 -08:00
jekyllbot
390fc11239 Update history to reflect merge of #4557 [ci skip] 2016-02-29 16:08:11 -08:00
jekyllbot
cddea273a9 Merge pull request #4557 from timwis/patch-2
Merge pull request 4557
2016-02-29 16:08:11 -08:00
jekyllbot
38d2445430 Update history to reflect merge of #4602 [ci skip] 2016-02-29 16:07:13 -08:00
jekyllbot
c0f0efc1cd Merge pull request #4602 from mlinksva/patch-1
Merge pull request 4602
2016-02-29 16:07:13 -08:00
jekyllbot
f2c428bedc Update history to reflect merge of #4611 [ci skip] 2016-02-29 16:00:53 -08:00
jekyllbot
9b889217fa Merge pull request #4611 from jekyll/draft-time-source-mtime
Merge pull request 4611
2016-02-29 16:00:52 -08:00
Parker Moore
c6a85ff359 Merge pull request #4599 from SuriyaaKudoIsc/patch-18
Move CONTRIBUTING.markdown file into .github/ folder
2016-02-29 15:54:08 -08:00
Parker Moore
b638c94625 Update history to reflect closure of #4381. [ci skip] 2016-02-29 15:53:22 -08:00
Parker Moore
8e81dd69ec Remove Ruby 2.0.0 from TravisCI matrix.
Fixes #4381.
2016-02-29 15:52:42 -08:00
jekyllbot
0114c51c6e Update history to reflect merge of #4545 [ci skip] 2016-02-29 15:50:30 -08:00
jekyllbot
ac704b9763 Merge pull request #4545 from jekyll/allow-no-extensions-coll-docs
Merge pull request 4545
2016-02-29 15:50:29 -08:00
Parker Moore
ae228705b2 Document#date: drafts which have no date should use source file mtime 2016-02-29 15:46:11 -08:00
jekyllbot
aa1b565228 Update history to reflect merge of #4606 [ci skip] 2016-02-29 15:29:30 -08:00
jekyllbot
0618ae8a2e Merge pull request #4606 from yous/escape-template
Merge pull request 4606
2016-02-29 15:29:29 -08:00
Chayoung You
dafb25cbfe Escape title and description
Follows after #4307.
2016-02-28 22:07:10 +09:00
Mike Linksvayer
43873bb881 Add 'view source' entry
Sometimes the best help is seeing how others' have done.

Just an idea...

I notice there's also https://talk.jekyllrb.com/t/showcase-sites-made-using-jekyll/18 and https://github.com/showcases/github-pages-examples but this Help page seems to use links exclusively in headings and second link probably includes non-Jekyll sites.
2016-02-27 11:45:34 -08:00
Ben Balter
c6790bd8c9 pass default front matter directly to the merge 2016-02-27 14:19:06 -05:00
Ben Balter
61567f430e update contributing title 2016-02-27 14:10:15 -05:00
Ben Balter
2a2326aea3 better file copying 2016-02-27 14:07:35 -05:00
Jordon Bedwell
e3cfe13ef5 Spacing. 2016-02-27 09:56:06 -06:00
Jordon Bedwell
0e155adef6 Hash Rocket. 2016-02-27 09:55:14 -06:00
Suriyaa Kudo
1367123d5b Move CONTRIBUTING.markdown file into .github/ folder 2016-02-27 14:40:17 +01:00
jekyllbot
d51c1c471a Update history to reflect merge of #4597 [ci skip] 2016-02-26 14:58:24 -08:00
jekyllbot
268f8f41ed Merge pull request #4597 from mlinksva/patch-1
Merge pull request 4597
2016-02-26 14:58:24 -08:00
Mike Linksvayer
b7d4f92764 Upgrading, documentation
"Upgrading Documentation" reads to me like "upgrading the documentation" rather than "documentation for upgrading".

There's a link in the site navigation to documentation, but seems worth a mention here, even though the Google option will often bring one to it. 😄
2016-02-26 13:13:07 -08:00
Parker Moore
d4cf0dbb0c Merge pull request #4583 from SuriyaaKudoIsc/patch-8
Add fork link in CONTRIBUTING.markdown
2016-02-26 11:56:50 -08:00
Ben Balter
91b348966e add theme class 2016-02-26 14:25:29 -05:00
jekyllbot
502be39e9b Update history to reflect merge of #4589 [ci skip] 2016-02-26 11:16:49 -08:00
jekyllbot
43f4be7752 Merge pull request #4589 from SuriyaaKudoIsc/patch-14
Merge pull request 4589
2016-02-26 11:16:49 -08:00
jekyllbot
7665488e39 Update history to reflect merge of #4591 [ci skip] 2016-02-26 11:10:35 -08:00
jekyllbot
455e12a1a4 Merge pull request #4591 from SuriyaaKudoIsc/patch-15
Merge pull request 4591
2016-02-26 11:10:35 -08:00
Parker Moore
87a1a1426f Merge pull request #4592 from SuriyaaKudoIsc/patch-16
Set all jekyllrb.com links and GitHub Pages link to https://
2016-02-26 11:10:09 -08:00
Parker Moore
9d3a5be579 Merge pull request #4594 from SuriyaaKudoIsc/patch-17
Move ISSUE_TEMPLATE.md file into .github/ folder
2016-02-26 11:09:47 -08:00
Suriyaa Kudo
b2eb00b902 Move ISSUE_TEMPLATE.md file into .github/ folder 2016-02-26 18:06:55 +01:00
Suriyaa Kudo
cd633ea188 Set all jekyllrb.com links and GitHub Pages link to https:// 2016-02-26 17:50:53 +01:00
Suriyaa Kudo
579733dbb5 Add project maintainer profile links 2016-02-26 17:08:14 +01:00
Tony Garnock-Jones
fa1eb68941 Fix for issue #4582, plus simple test 2016-02-26 11:06:03 -05:00
Suriyaa Kudo
e4a3712f30 Correct the Top-Level-Domain (TLD) of Google site link
.de => .com
2016-02-26 16:49:24 +01:00
Suriyaa Kudo
7728d7bb86 Add Google search query 2016-02-26 16:47:00 +01:00
Suriyaa Kudo
d67cd63723 Add fork link in CONTRIBUTING.markdown 2016-02-26 15:57:06 +01:00
timwis
3fbca47b1a add test for group_by size property 2016-02-25 10:41:23 -05:00
timwis
f5f8548eb8 add tests for where arrays 2016-02-25 10:24:47 -05:00
timwis
6245ddb14d where filter uses array for everything 2016-02-25 10:18:03 -05:00
Parker Moore
d14600152f Merge pull request #4566 from chrisfinazzo/add-https-urls
HTTPS (almost) all the docs
2016-02-23 14:27:16 -08:00
chrisfinazzo
9c1a897d60 Use an inline link here 2016-02-23 16:26:09 -05:00
chrisfinazzo
58a74a166d Feedback from @parkr 2016-02-23 11:20:32 -05:00
chrisfinazzo
cfb4a848b4 Use HTTPS 2016-02-22 22:17:02 -05:00
Parker Moore
b2e6211f2f Merge pull request #4559 from SuriyaaKudoIsc/patch-4
Add fork link in README.markdown
2016-02-22 16:11:43 -08:00
Parker Moore
9f93b2595d Merge pull request #4561 from SuriyaaKudoIsc/patch-6
Set protocol of markdown website link to https://
2016-02-22 16:11:18 -08:00
Parker Moore
14cccbfdc2 Merge pull request #4562 from SuriyaaKudoIsc/patch-7
Set url in _config.yml to https://
2016-02-22 16:10:38 -08:00
Suriyaa Kudo
98b5ca3850 Set url in _config.yml to https:// 2016-02-22 15:27:22 +01:00
Suriyaa Kudo
70ed98fadd Set protocol of markdown website link to https:// 2016-02-22 14:19:17 +01:00
Suriyaa Kudo
279d24a8f5 Add fork link in README.markdown 2016-02-22 14:08:28 +01:00
Tim Wisniewski
7542ab51b7 Add size property to group_by result 2016-02-20 20:30:38 -05:00
Tim Wisniewski
64ad293b89 add array support to where filter 2016-02-20 19:46:48 -05:00
Ben Balter
03a7e22b7e Merge pull request #4554 from jekyll/google-site-verification
Add Google site verification meta
2016-02-20 14:10:52 -05:00
Ben Balter
b6a0b9e548 consolidate google ids 2016-02-20 14:09:57 -05:00
Ben Balter
9e67c0a9b7 require jekyll-seo-tag > 1.1 2016-02-20 14:06:52 -05:00
Ben Balter
107c95cf5f add google site verification code 2016-02-20 14:01:46 -05:00
jekyllbot
04ff228660 Update history to reflect merge of #4553 [ci skip] 2016-02-20 10:43:01 -08:00
jekyllbot
8537e36936 Merge pull request #4553 from jekyll/site-improvements
Merge pull request 4553
2016-02-20 10:43:00 -08:00
Ben Balter
7bffb39244 add jekyll-seo-tag, jekyll-avatar, jekyll-sitemap 2016-02-20 12:54:28 -05:00
Parker Moore
0fd3c2d64c Release 💎 3.1.2 2016-02-19 17:44:52 -08:00
Parker Moore
3c7c645505 Merge pull request #4547 from jekyll/3.1.2
Release 💎 v3.1.2
2016-02-19 17:43:30 -08:00
Parker Moore
d1c08d85d2 Look for local docs if the dir exists. 2016-02-19 17:18:08 -08:00
Parker Moore
f05e3f340e Remove jekyll-docs and move to a separate repo.
22ee87af88
2016-02-19 17:16:49 -08:00
Parker Moore
e9ecb93dec fix up jekyll-docs 2016-02-19 17:07:22 -08:00
Parker Moore
fa4d327ddb jekyll-docs: use env var 2016-02-19 16:58:40 -08:00
Parker Moore
18126d0ebd Fix jekyll-docs command. 2016-02-19 16:57:21 -08:00
Parker Moore
8d7e329a6e Get jekyll-docs working. 2016-02-19 16:54:24 -08:00
Parker Moore
391960b55f Add the ability to release jekyll-docs with the right site. 2016-02-19 16:54:00 -08:00
Parker Moore
5d66a12ed4 Ship jekyll-docs properly 2016-02-19 16:47:24 -08:00
Parker Moore
05d753f4e0 Release 💎 v3.1.2 2016-02-19 15:40:57 -08:00
jekyllbot
32c5ac35dd Update history to reflect merge of #4546 [ci skip] 2016-02-19 15:13:15 -08:00
jekyllbot
a47b913273 Merge pull request #4546 from jekyll/slash-equals-html
Merge pull request 4546
2016-02-19 15:13:14 -08:00
Parker Moore
d929242e2b Permalinks which end in a slash should always output HTML
Duplicates #4493 for 3.1.1.

/cc @jekyll/core
2016-02-19 15:02:13 -08:00
Parker Moore
3aa80b7d04 Allow collections to have documents that have no file extension 2016-02-19 13:40:17 -08:00
jekyllbot
3b93625a8f Merge pull request #4543 from frenchie4111/master
Updated "custom domain name" link on homepage
2016-02-19 12:17:59 -08:00
Michael Lyons
7897a1842c Updated "custom domain name" link on homepage 2016-02-19 11:27:46 -08:00
Parker Moore
551f8b751f jekyll new should create a Gemfile which is educational 2016-02-18 16:56:39 -08:00
Henry Goodman
d387fd0baa Add show_dir_listing option for serve command 2016-02-17 20:54:57 -08:00
Parker Moore
f0b8db0d72 Merge pull request #4535 from jekyll/issue-template
Add an issue template for new issues
2016-02-17 11:43:24 -08:00
Parker Moore
b440d478ea Add hint to "What did you do?" 2016-02-17 10:33:17 -08:00
Parker Moore
65e7605342 Update ISSUE_TEMPLATE.md 2016-02-17 10:27:48 -08:00
Parker Moore
2bd0d062e1 Add an issue template for new issues 2016-02-17 10:27:18 -08:00
Parker Moore
d38d90f278 Add some redirects. 2016-02-16 12:54:41 -08:00
Parker Moore
5e6aef6138 Update some links on the index page 2016-02-15 21:59:44 -08:00
Parker Moore
84f9bcdd42 Update the site history 2016-02-15 21:58:22 -08:00
Parker Moore
40928364d4 Updaet history message for #4522 [ci skip] 2016-02-15 20:58:55 -08:00
jekyllbot
22f5b19884 Update history to reflect merge of #4522 [ci skip] 2016-02-15 20:58:11 -08:00
jekyllbot
bc1ea4b602 Merge pull request #4522 from bojanland/patch-1
Merge pull request 4522
2016-02-15 20:58:11 -08:00
Parker Moore
c9e027fd9a Merge pull request #4526 from toshimaru/jekyll-tagging-related_posts
Add jekyll-tagging-related_posts plugin
2016-02-15 20:51:04 -08:00
jekyllbot
4d648c8558 Update history to reflect merge of #4525 [ci skip] 2016-02-15 20:50:43 -08:00
jekyllbot
db9865ebb6 Merge pull request #4525 from atomicules/capitalize-in-titleize
Merge pull request 4525
2016-02-15 20:50:42 -08:00
atomicules
e4aa45b03f Fix titleize_slug so already capitalized words are not dropped
Previously `titleize` used `capitalize!` which has the side effect of
returning `nil` for anything already starting with a capital letter. This
commit changes it to just `capitalize`.

Example, before:

A file "2016-01-01-This-is-a-title-with-Capitals.markdown" would return "Is A
Title With" for `post.title`

Example, after:

A file "2016-01-01-This-is-a-title-with-Capitals.markdown" will return "This Is A
Title With Capitals" for `post.title`

Tests added for `titleize_slug` in test_utils.rb

Fix problem introduced in 67f842546e

References #4525
2016-02-15 21:22:50 +00:00
toshi
4cb7079601 Add jekyll-tagging-related_posts plugin 2016-02-16 00:33:28 +09:00
bojanland
abd8fef19b Update structure.md
Two grammatical corrections. :)
2016-02-15 00:39:53 -05:00
jekyllbot
4c8c59dfcb Update history to reflect merge of #4512 [ci skip] 2016-02-13 14:42:46 -08:00
jekyllbot
3ba1128ac5 Merge pull request #4512 from chrisfinazzo/grammar
Merge pull request 4512
2016-02-13 14:42:46 -08:00
jekyllbot
13bea15bbe Update history to reflect merge of #4514 [ci skip] 2016-02-13 14:41:20 -08:00
jekyllbot
2f790b993d Merge pull request #4514 from Crunch09/bump_cucumber
Merge pull request 4514
2016-02-13 14:41:20 -08:00
jekyllbot
5fa5c54c1e Update history to reflect merge of #4517 [ci skip] 2016-02-13 14:04:36 -08:00
jekyllbot
44b20ab8a1 Merge pull request #4517 from juusaw/patch-1
Merge pull request 4517
2016-02-13 14:04:35 -08:00
Juuso Mikkonen
bbdbcefbbb Added amp-jekyll plugin to plugins docs 2016-02-13 20:16:09 +02:00
Florian Thomas
8d8021e0ac require at least cucumber version 2.1.0 2016-02-13 00:06:03 +01:00
chrisfinazzo
769331d8c2 A few grammar fixes 2016-02-11 22:12:02 -05:00
jekyllbot
99b9c8486c Update history to reflect merge of #4505 [ci skip] 2016-02-10 15:26:54 -08:00
jekyllbot
150862ee96 Merge pull request #4505 from lonnen/fixup-deprecated-help-string
Merge pull request 4505
2016-02-10 15:26:53 -08:00
lonnen
e191109549 add consistency to the deprecation message 2016-02-09 23:46:45 -08:00
Parker Moore
c85a3aafbe Merge pull request #4502 from cash/cash-patch-1
fixes parenthesis typo in configuration docs
2016-02-09 10:21:18 -08:00
Cash Costello
fd0e99ceac fixes parenthesis typo in configuration docs 2016-02-08 21:08:48 -05:00
Parker Moore
29a5a3c303 site: A bit better wording on the 3.0.3 release post
🎩 tip to @benbalter for his generous and kind thoughts on my writing.
2016-02-08 11:09:42 -08:00
Parker Moore
b8f5b9f63e By me! 2016-02-08 11:05:13 -08:00
Parker Moore
05d99a9c96 Release v3.0.3 2016-02-08 11:05:10 -08:00
Parker Moore
2e5e6ace3d Fix emoji support on the site.
Seems to work for us, despite https://github.com/jekyll/jemoji/issues/32 ?
2016-02-08 10:59:24 -08:00
jekyllbot
f57899fdb8 Update history to reflect merge of #4492 [ci skip] 2016-02-08 10:52:54 -08:00
jekyllbot
d35d6a8cd4 Merge pull request #4492 from jekyll/handle-tilde-in-sanitization
Merge pull request 4492
2016-02-08 10:52:53 -08:00
Parker Moore
adadc2eeab Update history to reflect merge of #4374 [ci skip] 2016-02-08 10:52:15 -08:00
jekyllbot
3b5f91adc3 Merge pull request #4374 from fusion809/patch-1
Merge pull request 4374
2016-02-08 10:51:02 -08:00
jekyllbot
b237b1f93c Update history to reflect merge of #4496 [ci skip] 2016-02-08 10:28:00 -08:00
jekyllbot
5aed7c5467 Merge pull request #4496 from demidovakatya/patch-1
Merge pull request 4496
2016-02-08 10:28:00 -08:00
Katya Demidova
db241c4f91 Update Rake link
The https://github.com/jimweirich/rake/ repository is retired, so I've changed the link to https://github.com/ruby/rake
2016-02-08 14:05:50 +03:00
Parker Moore
a040af37c0 Jekyll.sanitized_path: sanitizing a questionable path should handle tildes 2016-02-07 17:53:26 -08:00
Parker Moore
0e89a37eaf Revert "Jekyll.sanitized_path: sanitizing a questionable path should handle tildes"
This reverts commit 246e65914f.
2016-02-07 17:53:09 -08:00
Parker Moore
246e65914f Jekyll.sanitized_path: sanitizing a questionable path should handle tildes 2016-02-07 17:52:15 -08:00
Parker Moore
d603b38ef0 Merge pull request #4487 from pra85/patch-1
Fix a typo
2016-02-07 17:29:19 -08:00
Parker Moore
3373eb6525 EntryFilter#special?: ignore filenames which begin with '~' 2016-02-07 17:28:03 -08:00
Prayag Verma
3950408e39 Fix a typo
Found a spelling mistake -
`internaly` → `internally`
2016-02-07 13:18:19 +05:30
Parker Moore
2d0c572d29 use the highlight tag for upgrading docs code block 2016-02-06 19:21:11 -08:00
Parker Moore
48c44e158d Merge pull request #4485 from jekyll/parkr-future-dates
Add note about dates without timezones
2016-02-06 19:18:38 -08:00
Parker Moore
b0797c3035 Fix typo in upgrading docs 2016-02-06 19:18:30 -08:00
Parker Moore
38bc4f55e4 Add note about dates without timezones 2016-02-06 19:17:35 -08:00
jekyllbot
9366a90d38 Update history to reflect merge of #4484 [ci skip] 2016-02-06 19:05:13 -08:00
jekyllbot
8cf68c5216 Merge pull request #4484 from jekyll/help-upgrading-plz
Merge pull request 4484
2016-02-06 19:05:12 -08:00
Parker Moore
fd121e2a5e Add note about upgrading documentation on jekyllrb.com/help/ 2016-02-06 19:04:47 -08:00
Alfred Xing
ac463bb397 Update history to reflect merge of #4473
[ci skip]
2016-02-05 09:22:42 -08:00
Alfred Xing
011152e5e0 Merge pull request #4473 from manabusakai/fix-typo
Merge pull request 4473
2016-02-05 09:21:44 -08:00
Manabu Sakai
71e04760c9 Fix typo 2016-02-05 16:11:16 +09:00
Parker Moore
bffd34bfbf Merge pull request #4460 from CGarces/patch-1
Added details about permalinks problem
2016-02-03 19:58:29 -08:00
jekyllbot
d47ae6ce95 Update history to reflect merge of #4461 [ci skip] 2016-02-03 19:57:37 -08:00
jekyllbot
130cc229e2 Merge pull request #4461 from MiteshNinja/patch-1
Merge pull request 4461
2016-02-03 19:57:36 -08:00
Parker Moore
99c71d3cc6 Merge pull request #4459 from rbrtmrtn/patch-1
Update structure.md
2016-02-03 19:37:05 -08:00
Parker Moore
6d27a1c660 Merge pull request #4465 from chrisfinazzo/remove-broken-plugin-link
Remove broken link
2016-02-03 10:11:13 -08:00
chrisfinazzo
1671c98975 Remove broken link 2016-02-03 12:45:18 -05:00
jekyllbot
53c1107eaa Update history to reflect merge of #4463 [ci skip] 2016-02-03 09:37:12 -08:00
jekyllbot
ac3348b9a6 Merge pull request #4463 from nhoizey/patch-2
Merge pull request 4463
2016-02-03 09:37:12 -08:00
Parker Moore
6ea6f79b69 Merge pull request #4464 from chrisfinazzo/remove-old-rebuild-flag-from-htmlproof
Remove old flag which breaks htmlproof
2016-02-03 09:36:39 -08:00
chrisfinazzo
d18769aff0 Remove old flag which breaks htmlproof 2016-02-03 11:31:07 -05:00
Nicolas Hoizey
aa284d90cc Add hooks to the plugin categories toc 2016-02-03 16:39:20 +01:00
Mitesh Shah
b4deb79392 [add note] Jekyll 3 requires newer ver. of Ruby.
Adding a note that Jekyll 3 requires Ruby version >= 2.0.0.
2016-02-03 17:01:01 +05:30
Carlos Garcés
53bb262fed Added details about permalinks problem
Small description about how Jekyll generated the files based on a permalink
2016-02-03 11:42:18 +01:00
Robert Martin
49e3180607 Update structure.md 2016-02-02 23:31:21 -05:00
jekyllbot
7df8f50248 Update history to reflect merge of #4455 [ci skip] 2016-02-02 16:59:25 -08:00
jekyllbot
b0d6988c1d Merge pull request #4455 from daattali/patch-2
Merge pull request 4455
2016-02-02 16:59:24 -08:00
Dean Attali
75b55ff4f2 upgrade notes: mention trailing slash in permalink; fixes #4440 2016-02-02 16:16:12 -08:00
jekyllbot
7886fdb166 Update history to reflect merge of #4452 [ci skip] 2016-02-02 15:19:08 -08:00
jekyllbot
6e37d16907 Merge pull request #4452 from jekyll/set-linenumbers
Merge pull request 4452
2016-02-02 15:19:07 -08:00
Parker Moore
5058382d5a LiquidRenderer#parse: parse with line numbers. 2016-02-02 14:43:45 -08:00
jekyllbot
bbefef20cd Update history to reflect merge of #4428 [ci skip] 2016-02-02 14:02:00 -08:00
jekyllbot
27535e2b3c Merge pull request #4428 from jekyll/bug/make-config-symbol-accessible
Merge pull request 4428
2016-02-02 14:01:59 -08:00
Jordon Bedwell
65a1fc4120 Mispell Rouge intentionally. 2016-02-02 12:27:17 -06:00
jekyllbot
7ae4973788 Update history to reflect merge of #4437 [ci skip] 2016-02-02 07:42:38 -08:00
jekyllbot
a452d0cb29 Merge pull request #4437 from pathawks/rubocop.yml
Merge pull request 4437
2016-02-02 07:42:37 -08:00
jekyllbot
b1b409433c Update history to reflect merge of #4436 [ci skip] 2016-02-02 07:41:16 -08:00
jekyllbot
7f6d29af5d Merge pull request #4436 from d2s/d2s-site-linkfix
Merge pull request 4436
2016-02-02 07:41:16 -08:00
Pat Hawks
198103ce7a Include .rubocop.yml in Gem 2016-02-01 17:46:31 -08:00
Daniel Schildt
8234c01d58 fix(docs) update link to the Code of Conduct
- Update links to use `[Code of Conduct](/docs/conduct/)`
- Fix old URL that was pointing to a missing file in GitHub.
2016-02-02 02:19:50 +02:00
Daniel Schildt
e32daaedb4 fix(rake) fix broken site generation
- Fix broken site generation caused by renamed CONDUCT.markdown file.
2016-02-02 02:17:48 +02:00
Parker Moore
a820f8d9c8 Merge pull request #4434 from chris72205/master
fix broken link to CONDUCT.markdown in README.markdown
2016-02-01 14:21:48 -08:00
Chris
6e76f85b52 fix broken link to CONDUCT.markdown in README.markdown 2016-02-01 15:44:20 -06:00
jekyllbot
2814838406 Update history to reflect merge of #4410 [ci skip] 2016-02-01 11:42:21 -08:00
jekyllbot
def633060d Merge pull request #4410 from michaellee/patch-1
Merge pull request 4410
2016-02-01 11:42:20 -08:00
jekyllbot
1d58938f4b Update history to reflect merge of #4429 [ci skip] 2016-02-01 10:49:44 -08:00
jekyllbot
f89c180188 Merge pull request #4429 from toshimaru/jekyll-toc
Merge pull request 4429
2016-02-01 10:49:44 -08:00
Parker Moore
36591f5d28 Merge pull request #4424 from SuriyaaKudoIsc/patch-1
Rename CONDUCT.md to CONDUCT.markdown
2016-02-01 10:39:04 -08:00
Michael Lee
99aabaaf16 Docs: Quickstart - removed alternatively 2016-02-01 10:22:31 -05:00
Jordon Bedwell
4d805e29bc Fix #4427: Make our @config hash symbol accessible. 2016-01-30 09:48:37 -06:00
toshi
183ea08de6 Add jekyll-toc plugin 2016-01-31 00:47:06 +09:00
Suriyaa Kudo
6e93dbbbd1 Rename CONDUCT.md to CONDUCT.markdown 2016-01-30 13:08:12 +01:00
Parker Moore
932d6641bc Add link to diff between CoC's in release post. 2016-01-29 16:00:04 -08:00
Parker Moore
9dc273ca50 Release 💎 3.1.1 2016-01-29 15:12:29 -08:00
Parker Moore
39ac364b2c CoC must be redirected from an HTML link due to bug in jekyll-redirect-from
https://github.com/jekyll/jekyll-redirect-from/pull/96
2016-01-29 15:12:17 -08:00
Parker Moore
c6dde4af51 Merge pull request #4423 from jekyll/release-3-1-1
Release 💎 v3.1.1
2016-01-29 15:10:54 -08:00
Parker Moore
6fbd965509 Update site/latest_version.txt 2016-01-28 21:08:26 -08:00
Parker Moore
bfee5c5b59 Release 💎 v3.1.1 2016-01-28 20:36:51 -08:00
jekyllbot
1d1ffdff9b Update history to reflect merge of #4404 [ci skip] 2016-01-28 17:20:34 -08:00
jekyllbot
00d753612c Merge pull request #4404 from jekyll/bom-it
Merge pull request 4404
2016-01-28 17:20:33 -08:00
Parker Moore
eb5be62cba Upgrade 2-3 docs, include note about getting one single collection
Yay, @pathawks! https://github.com/jekyll/jekyll/issues/4392#issuecomment-174369983
2016-01-28 17:19:24 -08:00
Parker Moore
98a64c8783 Merge pull request #4419 from chrisfinazzo/punctuation
Small style fix
2016-01-28 14:37:36 -08:00
Parker Moore
cc390d1a80 Merge pull request #4422 from kpym/patch-1
Correct indent in yaml preamble
2016-01-28 14:31:57 -08:00
jekyllbot
0deae96a75 Update history to reflect merge of #4409 [ci skip] 2016-01-28 14:21:41 -08:00
jekyllbot
0b32252506 Merge pull request #4409 from alfredxing/fix-test-stdout
Merge pull request 4409
2016-01-28 14:21:40 -08:00
Kroum Tzanev
5d126350d6 Correct indent in yaml preamble 2016-01-28 22:20:40 +01:00
chrisfinazzo
8592aed284 Small style fix 2016-01-28 10:45:16 -05:00
Michael Lee
6c4a1bf00e Docs: Quickstart - added documentation about the --force option if directory is not empty 2016-01-27 22:22:12 -05:00
Alfred Xing
5fc48ffcb9 Suppress stdout in liquid profiling test
The test was spewing out some whitespace
2016-01-27 14:06:48 -08:00
jekyllbot
e898b6e8bd Update history to reflect merge of #4403 [ci skip] 2016-01-27 11:01:26 -08:00
jekyllbot
6cd393c8ef Merge pull request #4403 from jekyll/page.dir-must-have-slash
Merge pull request 4403
2016-01-27 11:01:25 -08:00
Parker Moore
b1868983c7 Add test for Page#dir in :date/nil modes 2016-01-27 08:44:59 -08:00
Parker Moore
9daebe8dd2 Use improved Page#dir 2016-01-27 08:32:36 -08:00
Parker Moore
b70ee10198 Add benchmarks for Page#dir 2016-01-27 08:28:41 -08:00
Parker Moore
aad54c9a87 Add Utils.merged_file_read_opts to unify reading & strip the BOM 2016-01-26 17:08:54 -08:00
Parker Moore
38b64faeb2 Page#dir: ensure it ends in a slash 2016-01-26 16:44:30 -08:00
Jordon Bedwell
ce77fe6488 Update history.markdown to reflect the merger of #4402 2016-01-26 06:55:55 -06:00
Jordon Bedwell
a13102f039 Merge pull request #4402 from davidcelis/update-code-of-conduct
Update the Code of Conduct to the latest version
2016-01-26 06:54:59 -06:00
David Celis
ea5e3d56f5 Update the Code of Conduct to the latest version
The Contributor Code of Conduct is now at version 1.3.0 and has several
changes. Many of these are simply wording changes, but an important note
is added that project maintainers must maintain confidentiality when
dealing with any code of conduct violations. Additionally, a note is
added that states violations will be investigated and dealt with in a
way that is deemed necessary and appropriate based on the circumstances.

Signed-off-by: David Celis <me@davidcel.is>
2016-01-25 18:40:16 -08:00
jekyllbot
74fb4aca16 Update history to reflect merge of #4401 [ci skip] 2016-01-25 15:49:23 -08:00
jekyllbot
a4ba8246d7 Merge pull request #4401 from jekyll/fix-documents-with-permalink-with-slash
Merge pull request 4401
2016-01-25 15:49:22 -08:00
Parker Moore
d7ff4234f0 Renderer#output_ext: honor folders when looking for ext
Previously, even if the document permalink was a folder, it would look for
an extension on that.  For example, if I have:

    permalink: "/new-version-jekyll-v3.0.0/"

the output_ext would be ".0".  Now, the output_ext honors the trailing
slash and will report based on the converters instead.
2016-01-25 15:32:44 -08:00
Parker Moore
e940dd1be4 Site: make github-pages project page url structure refer to site.github.url 2016-01-25 14:09:22 -08:00
Parker Moore
29da9024ca Today, not yesterday. 2016-01-24 13:17:38 -08:00
Parker Moore
778fa4cc0e Release 💎 3.1.0 2016-01-24 13:13:53 -08:00
Parker Moore
55910f19c3 Merge branch 'master' of github.com:jekyll/jekyll
* 'master' of github.com:jekyll/jekyll:
  Make our .travis.yml a little easier to maintain.
  Update History.markdown to reflect the merger of #4394
  Minor spelling error
2016-01-24 13:13:21 -08:00
Parker Moore
368f5b67a9 Release 💎 3.1.0 2016-01-24 13:13:15 -08:00
Jordon Bedwell
c5818d1837 Make our .travis.yml a little easier to maintain. 2016-01-24 09:50:02 -06:00
Jordon Bedwell
ab8f2d6bb1 Update History.markdown to reflect the merger of #4394 2016-01-24 08:40:31 -06:00
Jordon Bedwell
7b5febdcd5 Merge pull request #4394 from j26design/patch-1
Minor spelling error
2016-01-24 08:39:35 -06:00
John Perry
96b80b1a72 Minor spelling error 2016-01-23 23:27:17 -07:00
Parker Moore
4b827e1797 Release 💎 3.1.0.pre.rc3 2016-01-22 13:15:41 -08:00
jekyllbot
4d138c9ab5 Update history to reflect merge of #4195 [ci skip] 2016-01-22 13:13:19 -08:00
jekyllbot
ccb382679a Merge pull request #4195 from jekyll/pull/cleanup-document__post_read
Merge pull request 4195
2016-01-22 13:13:18 -08:00
jekyllbot
6d67e9bdd4 Update history to reflect merge of #4388 [ci skip] 2016-01-22 13:01:05 -08:00
jekyllbot
512c7fdb05 Merge pull request #4388 from jekyll/fix-page.class-access
Merge pull request 4388
2016-01-22 13:01:04 -08:00
Parker Moore
2b8de59717 remove merge conflict 2016-01-22 09:38:34 -08:00
Parker Moore
afff4f0bec Merge remote-tracking branch 'origin/pull/cleanup-document__post_read' into pull/cleanup-document__post_read
* origin/pull/cleanup-document__post_read:
  add Utils.strip_heredoc
  Fix #4191: Reduce Document#post_read complexity slightly.
  Fix #4188: Extract title from filename successfully when dateless.
2016-01-22 09:37:58 -08:00
Parker Moore
5878acaaf1 Document#post_read: only overwrite slug & ext if they aren't set by YAML 2016-01-22 09:36:55 -08:00
Parker Moore
6c40c7f553 collections.feature: check for 0 exit status always 2016-01-22 09:36:37 -08:00
Parker Moore
ba1cfab73c step_definitions: fixture collections should copy _thanksgiving 2016-01-22 09:36:25 -08:00
Parker Moore
8204e479c3 add Utils.strip_heredoc 2016-01-22 09:11:56 -08:00
Jordon Bedwell
67f842546e Fix #4191: Reduce Document#post_read complexity slightly. 2016-01-22 09:11:56 -08:00
rebornix
1298ba6908 Fix #4188: Extract title from filename successfully when dateless. 2016-01-22 09:09:30 -08:00
jekyllbot
c0e0159783 Update history to reflect merge of #4389 [ci skip] 2016-01-22 09:03:44 -08:00
jekyllbot
c42d27e428 Merge pull request #4389 from zsyed91/refactor_page_permalink
Merge pull request 4389
2016-01-22 09:03:43 -08:00
jekyllbot
95df351341 Update history to reflect merge of #4390 [ci skip] 2016-01-22 09:01:21 -08:00
jekyllbot
cbe66193c2 Merge pull request #4390 from contentful/contentful/add-contentful-to-docs
Merge pull request 4390
2016-01-22 09:01:20 -08:00
Parker Moore
cf51e32d0e Drop#[]: use self.class.invokable? instead of content_methods.include? for speed 2016-01-22 08:59:48 -08:00
David Litvak Bruno
442074fdb1 Add Contentful Extension to Plugins 2016-01-22 13:29:31 -03:00
Zshawn Syed
4ecdf6ce10 Remove extra OR condition since a missing hash key will return a nil anyway. Added a test to catch this nil condition since it was missing to begin with. Reduced line length in test_page.rb 2016-01-21 23:44:30 -06:00
Parker Moore
31ae61b419 Drop#[]: only use public_send for keys in the content_methods array 2016-01-21 18:20:35 -08:00
Parker Moore
b3ddd985a4 Merge pull request #4380 from jekyll/cherry-pick-4378
Document: throw a useful error when an invalid date is given
2016-01-20 14:58:44 -08:00
Parker Moore
4017e30cca Merge pull request #4382 from jekyll/3.0.2-release
Release 💎 v3.0.2
2016-01-20 14:34:00 -08:00
Parker Moore
e9be8933de Release 💎 v3.0.2 2016-01-20 14:33:02 -08:00
Parker Moore
a72629908a Document: throw a useful error when an invalid date is given 2016-01-20 14:19:06 -08:00
Parker Moore
1ba23c32c6 add Utils.strip_heredoc 2016-01-20 11:46:18 -08:00
Jordon Bedwell
ec0eff3315 Switch to pry-byebug so everybody gets the benefit. 2016-01-20 13:30:56 -06:00
jekyllbot
f1ac1f2125 Update history to reflect merge of #4376 [ci skip] 2016-01-20 11:07:34 -08:00
jekyllbot
7b8c39722b Merge pull request #4376 from pathawks/detach
Merge pull request 4376
2016-01-20 11:07:33 -08:00
jekyllbot
af20abf1bc Update history to reflect merge of #4377 [ci skip] 2016-01-20 11:06:31 -08:00
jekyllbot
94b0c500c6 Merge pull request #4377 from liambowers/master
Merge pull request 4377
2016-01-20 11:06:31 -08:00
Jordon Bedwell
e50d4d6b6e Fix bad UNLESS. 2016-01-20 07:30:07 -06:00
Jordon Bedwell
61acafe97a Move ByeBug to development and disallow for JRuby. 2016-01-20 07:24:24 -06:00
Jordon Bedwell
37e1101690 Re-add Gem version after accidental removal. 2016-01-20 07:04:22 -06:00
Liam Bowers
f44a9cf401 Added the Wordpress2Jekyll Wordpress plugin 2016-01-20 12:25:29 +00:00
Pat Hawks
090cf5a50b Disable auto-regeneration when running server detached 2016-01-19 23:12:59 -08:00
Brenton Horne
8507cda6dd Rm date indicators and >1 year inactive sites 2016-01-20 07:22:54 +10:00
Brenton Horne
805ab6b7f8 Adding commit/date indicators 2016-01-20 06:59:00 +10:00
Jordon Bedwell
f8e8672148 Fix #4191: Reduce Document#post_read complexity slightly. 2016-01-19 11:18:19 -08:00
rebornix
d50656021f Fix #4188: Extract title from filename successfully when dateless. 2016-01-19 11:18:19 -08:00
Jordon Bedwell
ecc5121918 Update our badge URL's for more reliability. 2016-01-19 10:15:58 -06:00
Jordon Bedwell
56a711f1ee Move to static Ruby versions so we can test on latest versions. 2016-01-19 10:11:54 -06:00
Parker Moore
00285f7b9a Release 💎 3.1.0.pre.rc2 2016-01-18 15:39:56 -08:00
Parker Moore
32fba4f01a Release 💎 v3.1.0.pre.rc2 2016-01-18 15:39:53 -08:00
Parker Moore
be0e951bb0 features: Reorganize step definitions to reduce duplication 2016-01-18 15:35:11 -08:00
Parker Moore
d27f1d95d5 features: #run_command should prefix command with $ 2016-01-18 15:34:50 -08:00
Parker Moore
e75d703806 Page#write? shouldn't freeze 'true' 2016-01-18 15:33:58 -08:00
jekyllbot
2d5feab2ae Update history to reflect merge of #4373 [ci skip] 2016-01-18 15:00:47 -08:00
jekyllbot
c5830ce6e0 Merge pull request #4373 from jekyll/page-as-renderable
Merge pull request 4373
2016-01-18 15:00:46 -08:00
Parker Moore
4de1873b56 Renderer: #output_ext should check to make sure the output extension of the permalink isn't empty 2016-01-18 14:09:14 -08:00
Parker Moore
a351a70b03 test: Slight refactor to doublecheck destination. 2016-01-18 14:08:53 -08:00
Parker Moore
275d56a0fe test: use {assert,refute}_exist everywhere 2016-01-18 13:45:36 -08:00
Parker Moore
2de5bacb41 pages' permalink' extnames must be respected
This reverts a bit of the work @willnorris had made to support
extensionless permalinks. Using the ‘permalink’ front matter will no
longer work as it must allow non-html extensions to be written.
2016-01-18 13:45:17 -08:00
Parker Moore
5cf5ce979f test: add assert_exist and refute_exist 2016-01-18 13:42:03 -08:00
Parker Moore
2554281188 document#merge_data!: reformat 2016-01-18 13:41:49 -08:00
Parker Moore
cc6e49a389 features/embed_filters: reformat a little 2016-01-18 13:41:41 -08:00
Parker Moore
1d369aada3 features: some under-the-hood enhancements 2016-01-18 12:48:12 -08:00
Parker Moore
e5d8bdee8f Page: freeze true in write? 2016-01-18 12:47:48 -08:00
Parker Moore
66dc083ad0 Renderer: set paginator 2016-01-18 12:47:36 -08:00
Parker Moore
0a6f289ba5 page: write? should always be true 2016-01-18 11:53:16 -08:00
Parker Moore
ae3a71ed0d features: config writing should decode value from string to ruby 2016-01-18 11:53:07 -08:00
Parker Moore
736a800f0e features: validate the exit status of 0 for successful calls 2016-01-18 11:52:31 -08:00
Parker Moore
9a6f4e08b7 features/permalinks: add a permalink feature for non-html extension name for pages
Fixes
https://github.com/mpc-hc/mpc-hc.org/pull/58#issuecomment-172594526
2016-01-18 11:44:00 -08:00
Parker Moore
e9c5c45651 features: look for lack of "EXIT STATUS: 0" for non-zero exit status 2016-01-18 11:43:21 -08:00
Parker Moore
2adb70a247 features: writing a configuration file should append if it's already there 2016-01-18 11:42:59 -08:00
Parker Moore
dd15e3c368 features: write EXIT STATUS to output so it all prints when we get an exit status we aren't expecting 2016-01-18 11:42:34 -08:00
Parker Moore
7d81c00b29 Renderer: use Convertible's way of picking the last Converter's output extension 2016-01-18 11:41:47 -08:00
Parker Moore
d343da61eb Page: pipe through Renderer instead of using Convertible 2016-01-18 11:41:05 -08:00
Parker Moore
9676b775de Want the readme and CNAME. 2016-01-18 08:47:35 -08:00
jekyllbot
4482f80d34 Update history to reflect merge of #4364 [ci skip] 2016-01-18 07:48:11 -08:00
jekyllbot
10ae624d65 Merge pull request #4364 from jekyll/jmcglone-github-pages-guide
Merge pull request 4364
2016-01-18 07:48:11 -08:00
Parker Moore
9c6f33024f Restructure the resources page a bit 2016-01-16 12:21:07 -08:00
Parker Moore
b3b4abe80a Add @jmcglone's guide to github-pages doc page
Nearly every day, when I get the report of visitors to jekyllrb.com, I see jmcglone's excellent guide. Reading through it today makes me think it is one of the finest if not _the_ finest guide to getting started with Git, GitHub, and Jekyll in order to publish successfully and happily on GitHub Pages.

@jmcglone, mind if I add this to our GitHub Pages doc page?
2016-01-16 12:09:13 -08:00
Parker Moore
281f75182e Release 💎 3.1.0.pre.rc1 2016-01-15 16:26:08 -08:00
Parker Moore
c678640553 Release 💎 v3.1.0.pre.rc1 2016-01-15 16:25:58 -08:00
jekyllbot
d9aef14063 Update history to reflect merge of #4361 [ci skip] 2016-01-15 16:19:23 -08:00
jekyllbot
0daafd7bda Merge pull request #4361 from jekyll/pheuko-empty-permalink
Merge pull request 4361
2016-01-15 16:19:22 -08:00
Parker Moore
06fa14c11a Restructure data validation so that permalink check raises an error. 2016-01-15 16:11:08 -08:00
Parker Moore
89db3c6384 Convertible: separate data validation out of #read 2016-01-15 15:52:54 -08:00
Parker Moore
948dcf2714 Convertible: consolidate empty check into Convertible#read 2016-01-15 15:51:32 -08:00
Parker Moore
15a2dacd37 Merge pull request #4359 from jekyll/optimize-drop
Fix deep_merge_hashes! handling of drops and hashes
2016-01-15 15:19:18 -08:00
jekyllbot
04e1768807 Update history to reflect merge of #4359 [ci skip] 2016-01-15 15:06:56 -08:00
Jordon Bedwell
ea9cac5214 Add a nasty hack to reduce persistence until RSpec. 2016-01-15 14:15:28 -06:00
Parker Moore
0587a3bb57 Fix some debug logging.
- excluded? should now only print when it is excluded
- requiring is now properly aligned
2016-01-15 11:30:02 -08:00
Parker Moore
207fcbdef7 Add byebug for debugging purposes. 2016-01-15 11:23:09 -08:00
Parker Moore
5d79c55b2c Fix deep_merge_hashes! handling of drops and hashes 2016-01-15 11:22:39 -08:00
Parker Moore
22931f42b8 Drop: require 'json' for #inspect call 2016-01-15 10:00:56 -08:00
Parker Moore
3e81331af1 Utils: don't require mime/types 2016-01-15 10:00:45 -08:00
Pedro Euko
156e093b5c Ensure no errors when there is no permalink 2016-01-15 14:40:59 -02:00
Pedro Euko
5681742223 Check if permalink key was given 2016-01-15 14:40:59 -02:00
Pedro Euko
f8a63157d7 Empty permalink now shows an error 2016-01-15 14:40:47 -02:00
jekyllbot
9368e261cc Update history to reflect merge of #4355 [ci skip] 2016-01-14 16:36:11 -08:00
musoke
54b6395806 Correct typo in ### Precdence
The Precedence section referred to the "last example" where it should have referred to the "second to last."
2016-01-14 16:35:58 -08:00
jekyllbot
4048b8e2a7 Update history to reflect merge of #4350 [ci skip] 2016-01-12 08:28:10 -08:00
jekyllbot
9c4695c47f Merge pull request #4350 from jekyll/pr/cleanup-gemfile
Merge pull request 4350
2016-01-12 08:28:10 -08:00
Jordon Bedwell
5555db8c72 Start using Rubocop from Github, it supports our config. 2016-01-12 06:59:09 -06:00
Jordon Bedwell
712c16a7f1 Try to cleanup the Gemfile... again.
The problem last time was that we removed Pry and Pry brings in CodeRay, we were
testing legacy stuff and didn't have CodeRay in our dependencies, which resulted
in those tests failing.

This also quietly announces the intention to move to RSpec by moving the old
test dependencies to ":test_legacy" and is slightly less agressive in it's
organization than before.
2016-01-12 06:54:45 -06:00
Jordon Bedwell
4595aab855 Update history.makrdown to reflect the merger of #4349. 2016-01-12 01:00:42 -06:00
Jordon Bedwell
9efeade8b4 Merge pull request #4349 from pathawks/fixme
Remove old FIXME
2016-01-12 00:59:42 -06:00
Pat Hawks
ba017ebb97 Remove old Fixme note 2016-01-11 22:32:04 -08:00
Jordon Bedwell
1583b26627 Update jekyll-feed. 2016-01-11 16:45:50 -06:00
Parker Moore
03582c32ed site: update generated history per automatic fixes to History.markdown 2016-01-11 13:37:27 -08:00
Parker Moore
da6618c6fc site: fix :hour, :minute, :second permalink keys to refer to date front matter value
Fixes #4336
2016-01-11 13:37:27 -08:00
jekyllbot
a32c77fb87 Update history to reflect merge of #4347 [ci skip] 2016-01-11 13:10:43 -08:00
jekyllbot
4dccb00832 Merge pull request #4347 from jekyll/rearrange-cucumber-add-flair
Merge pull request 4347
2016-01-11 13:10:42 -08:00
Jordon Bedwell
c5b8b3315f Rearrange Cucumber and add some flair.
* Move step_definitions/jekyll.rb to just step_definitions.rb
* Rename the formatter to Jekyll::Cucumber::Formatter, it's Jekyll's.
* Add some flair; switch to checks!
* Rename env.rb to helpers.rb
2016-01-11 14:55:34 -06:00
jekyllbot
597021a813 Update history to reflect merge of #4343 [ci skip] 2016-01-11 08:56:49 -08:00
jekyllbot
3e30c72994 Merge pull request #4343 from jekyll/pr/cucumber-rspec-expec-jruby-support
Merge pull request 4343
2016-01-11 08:56:48 -08:00
Parker Moore
00b9f9dd62 Revert "Update history to reflect merge of #4344 [ci skip]"
This reverts commit 2f36e09db5.
2016-01-10 19:57:02 -08:00
jekyllbot
2f36e09db5 Update history to reflect merge of #4344 [ci skip] 2016-01-10 19:55:59 -08:00
jekyllbot
d58e38c1a7 Update history to reflect merge of #4344 [ci skip] 2016-01-10 19:55:45 -08:00
jekyllbot
3fd887f648 Merge pull request #4344 from alexjbest/patch-1
Merge pull request 4344
2016-01-10 19:55:44 -08:00
Alex J Best
6048dcdba2 Fixed broken link to blog on using mathjax with jekyll 2016-01-10 22:01:46 +00:00
Jordon Bedwell
e192588013 Cleanup .jrubyrc
* Remove invoked dynamic, it slows down Ruby.
* Remove ObjectSpace which slows down JRuby, we use inheritance now.
* Remove the compat version 9K is Ruby2 by default.
2016-01-10 14:55:35 -06:00
jekyllbot
e888375081 Update history to reflect merge of #4338 [ci skip] 2016-01-10 12:49:31 -08:00
jekyllbot
1de7449767 Merge pull request #4338 from jekyll/pr/add-script-travis
Merge pull request 4338
2016-01-10 12:49:30 -08:00
Jordon Bedwell
9fee9d3d3b Add script/travis so all people can play with Travis-CI images. 2016-01-10 14:46:56 -06:00
jekyllbot
1d38500480 Update history to reflect merge of #4342 [ci skip] 2016-01-10 12:42:01 -08:00
jekyllbot
3c0a1386ea Merge pull request #4342 from jekyll/pr/remove-objectspace-and-use-inherited
Merge pull request 4342
2016-01-10 12:42:01 -08:00
Jordon Bedwell
3c9f159fb8 Move Cucumber to using RSpec-Expections and furthering JRuby support.
* Removes posix-spawn in favor of Open3#popen3
* Encapsulates all the paths into a single easy class.
* Moves to %r{} to avoid ambiguious warnings per-Cucumber suggestion.
* Starts passing around Pathname to make some actions faster.
* Clean's up some methods to make them easier to read.
* AUTOMATIC: Add "#" between each method.
2016-01-10 14:41:48 -06:00
Jordon Bedwell
70f741b86f Remove ObectSpace dumping and start using inherited, it's faster. 2016-01-10 14:08:53 -06:00
jekyllbot
b96b0a80ea Update history to reflect merge of #4340 [ci skip] 2016-01-10 11:11:19 -08:00
jekyllbot
716f912ae7 Merge pull request #4340 from jekyll/pr/implement-codeclimate-platform
Merge pull request 4340
2016-01-10 11:11:18 -08:00
jekyllbot
1aae802ea2 Update history to reflect merge of #4341 [ci skip] 2016-01-10 11:10:10 -08:00
jekyllbot
5dd611d601 Merge pull request #4341 from jekyll/pr/remove-script-rebund
Merge pull request 4341
2016-01-10 11:10:09 -08:00
Jordon Bedwell
55423e344e Add CodeClimate to the testing stuff. 2016-01-10 11:18:46 -06:00
Jordon Bedwell
8337da8978 Remove script/rebund. 2016-01-10 11:13:14 -06:00
Jordon Bedwell
8669077daf Add coverage badge. 2016-01-10 11:07:00 -06:00
Jordon Bedwell
86ed09ffdd Enable CodeClimate coverage. 2016-01-10 11:04:53 -06:00
Jordon Bedwell
dc6858504a Make .travis.yml a bit more readable. 2016-01-10 11:02:47 -06:00
Jordon Bedwell
88b970f5dc Expand the file extensions we ignore. 2016-01-10 10:45:52 -06:00
Jordon Bedwell
c3e6c04af5 Ignore site/**/* on CodeClimate. 2016-01-10 10:32:29 -06:00
Jordon Bedwell
7c7d550442 Merge pull request #4335 from jekyll/revert-4318-pull/cleanup-gemfile
Revert "Reorganize and cleanup the Gemfile, shorten required depends."
2016-01-10 00:33:58 -06:00
Jordon Bedwell
9d98aca86a Revert "Reorganize and cleanup the Gemfile, shorten required depends." 2016-01-10 00:27:58 -06:00
Jordon Bedwell
36a42e5c71 Revert the experimental changes. They didn't work. 2016-01-09 22:08:00 -06:00
Jordon Bedwell
070f07d971 Test a theory and switch to Trusty beta. 2016-01-09 22:01:07 -06:00
Jordon Bedwell
a8fa52a816 Use newer Rubies. 2016-01-09 21:56:28 -06:00
jekyllbot
92ba22f8fe Update history to reflect merge of #4314 [ci skip] 2016-01-09 18:11:48 -08:00
jekyllbot
735554007c Merge pull request #4314 from jekyll/allow-custom-php-extensions
Merge pull request 4314
2016-01-09 18:11:47 -08:00
Parker Moore
bb4f5910c9 document: don't cache @output_ext
Fixes race issue.
Will introduce perf issues, though...
2016-01-09 18:04:13 -08:00
jekyllbot
e558d0b983 Update history to reflect merge of #4333 [ci skip] 2016-01-09 16:58:09 -08:00
jekyllbot
53e4c162a2 Merge pull request #4333 from pathawks/smartypants
Merge pull request 4333
2016-01-09 16:58:09 -08:00
Pat Hawks
428e4fe3b5 Add documentation for smartify Liquid filter 2016-01-09 16:46:27 -08:00
jekyllbot
390503b2c7 Update history to reflect merge of #4323 [ci skip] 2016-01-09 16:19:43 -08:00
jekyllbot
15eaefa337 Merge pull request #4323 from pathawks/smartypants
Merge pull request 4323
2016-01-09 16:19:43 -08:00
Pat Hawks
ddf640e6bd Test all the things 2016-01-08 17:10:36 -08:00
Parker Moore
bd325acc85 Remove duplicate reference for #4330 from History. [ci skip] 2016-01-07 23:26:03 -08:00
jekyllbot
6996fed26c Update history to reflect merge of #4330 [ci skip] 2016-01-07 23:24:29 -08:00
jekyllbot
bfc07a39c6 Update history to reflect merge of #4330 [ci skip] 2016-01-07 23:22:07 -08:00
Parker Moore
97a6a312ac Revert "Update history to reflect merge of #4330 [ci skip]"
This reverts commit a12ee55139.
2016-01-07 22:27:47 -08:00
jekyllbot
a12ee55139 Update history to reflect merge of #4330 [ci skip] 2016-01-07 22:26:41 -08:00
jekyllbot
ade8a0107f Merge pull request #4330 from motlin/patch-2
Merge pull request 4330
2016-01-07 22:15:37 -08:00
Craig P. Motlin
754bf14e23 Fix grammar in the documentation for posts. 2016-01-08 00:14:33 -05:00
Jordon Bedwell
0c4969f017 Merge pull request #4329 from motlin/patch-1
Fix a typo in the documentation for configuration defaults.
2016-01-07 22:28:25 -06:00
Craig P. Motlin
3ca451a855 Fix a typo in the documentation for configuration defaults. 2016-01-07 23:23:43 -05:00
Parker Moore
ab2cdac979 Update history to reflect merge of #4318
[ci skip]
2016-01-07 18:29:11 -08:00
jekyllbot
a5fbc25d8c Merge pull request #4318 from jekyll/pull/cleanup-gemfile
Merge pull request 4318
2016-01-07 18:13:54 -08:00
Jordon Bedwell
50086b686a Merge pull request #4319 from jekyll/pull/remove-rake-analysis
Remove rake analysis, use bundle exec rubocop now.
2016-01-07 07:38:19 -06:00
Pat Hawks
acb2263f51 Add smartify filter 2016-01-07 02:36:24 -08:00
Parker Moore
7eefa0ffd7 docs: remove profanity from installation page
Fixes #4321
2016-01-06 11:12:55 -08:00
Parker Moore
a1b39840bb Revert change to Collection#url_template which caused test breakage.
Reverts dab53a697b
2016-01-06 10:13:13 -08:00
Parker Moore
3061f2d204 Update history to reflect merge of #4322
[ci skip]
2016-01-06 09:51:10 -08:00
Parker Moore
c9d667594f Merge pull request #4322 from splattael/fix-spelling
Merge pull request 4322
2016-01-06 09:48:58 -08:00
Peter Suschlik
b1a2115948 Fix spelling of GitHub in docs and history
* Github -> GitHub
* GitHub pages -> GitHub Pages
2016-01-06 17:21:09 +01:00
Jordon Bedwell
a48c02a889 Reorganize and cleanup the Gemfile, shorten depends on Travis. 2016-01-05 12:36:40 -06:00
Jordon Bedwell
4cde2ad41c Remove rake analysis, use bundle exec rubocop now. 2016-01-05 12:30:23 -06:00
Parker Moore
8e68de2740 site: redirect /docs/ to /docs/home/ 2016-01-04 18:22:55 -08:00
Parker Moore
dc31264160 url: tiny optimization to #generate_url_from_drop 2016-01-04 18:18:28 -08:00
Parker Moore
9579924f8a drop: tiny optimization to .mutable to create fewer objects 2016-01-04 18:18:12 -08:00
Parker Moore
dab53a697b collection: tiny optimization to #url_template 2016-01-04 18:17:51 -08:00
Parker Moore
b6c283a4ae wip: allow custom extensions 2016-01-04 17:42:06 -08:00
Parker Moore
935e5563e1 Update history to reflect merge of #4254
[ci skip]
2016-01-04 16:31:06 -08:00
Parker Moore
f995d86673 Merge pull request #4254 from jekyll/shim-docs-import-with-nudge
Merge pull request 4254
2016-01-04 16:30:30 -08:00
Parker Moore
657b6b328c Update history to reflect merge of #4307
[ci skip]
2016-01-04 16:26:02 -08:00
Parker Moore
f47612ee98 Merge pull request #4307 from fulldecent/patch-1
Merge pull request 4307
2016-01-04 16:25:41 -08:00
Parker Moore
a9b80b2f06 features/layout_data: add scenario for inheriting layout data from child to parent
Ref: https://github.com/jekyll/jekyll/pull/4312#discussion_r48781985
2016-01-04 16:21:53 -08:00
Parker Moore
d37de5c8df If the subcommand cannot be found, suggest the installation of a gem. 2016-01-04 16:17:48 -08:00
Parker Moore
4fe9eecf05 For blessed gems, shim their commands so users know how to use them. 2016-01-04 16:10:21 -08:00
Parker Moore
10a1b9451a Update history to reflect merge of #4290
[ci skip]
2016-01-04 14:57:59 -08:00
Parker Moore
a78230ccdb Merge pull request #4290 from jekyll/deal-with-extraneous-spaces
Merge pull request 4290
2016-01-04 14:57:22 -08:00
Parker Moore
cb5bc1093e utils: has_yaml_header? should accept files with extraneous spaces
Occasionally, extra spaces at the end of the YAML front matter prologue are
saved to a file and it goes missing without telling the user why. This
should simply accept those changes without any detriment to the user,
allowing anyone to add as many spaces as they like to the end of their
front matter prologues.
2016-01-04 14:09:30 -08:00
Parker Moore
1ea667474b Clean up the permalink front matter protip
Ref #4296.
2016-01-04 13:24:14 -08:00
Parker Moore
ed815b0d2c Update history to reflect merge of #4296
[ci skip]
2016-01-04 13:07:33 -08:00
Parker Moore
c603be6a38 Merge pull request #4296 from kakoma/master
Merge pull request 4296
2016-01-04 13:07:12 -08:00
Parker Moore
ee2db21202 Update history to reflect merge of #4312
[ci skip]
2016-01-04 13:05:19 -08:00
Parker Moore
e097a15657 Merge pull request #4312 from jekyll/fix-layout-metadata
Merge pull request 4312
2016-01-04 13:05:00 -08:00
Parker Moore
a62e085ea0 Update history to reflect merge of #4311
[ci skip]
2016-01-04 13:04:38 -08:00
Parker Moore
378ec5a4b8 Merge pull request #4311 from jekyll/use-drop-hash-accessor
Merge pull request 4311
2016-01-04 13:04:14 -08:00
Jordon Bedwell
e10c483ec3 Adjust Rubocop to fit in a bit better. 2016-01-04 14:44:13 -06:00
Parker Moore
95a3c54ddb drop: only check mutable if the key is a method 2016-01-04 12:41:40 -08:00
Parker Moore
62d7f5ecad Add feature test for layout data
Fixes issue defined here:
https://github.com/jekyll/jekyll/issues/4246#issuecomment-168367510
2016-01-04 12:38:41 -08:00
Parker Moore
06c45df8c3 Drop: hash syntax should use setter method for a property if it's defined 2016-01-04 12:38:41 -08:00
Parker Moore
2756503e7b features/hooks: use hash syntax to access page 2016-01-04 12:37:19 -08:00
Parker Moore
735194ccaf Convertible/Page/Renderer: use payload hash accessor & setter syntax 2016-01-04 12:37:19 -08:00
Parker Moore
87978e79f4 features/step_definitions: use $stderr instead of STDERR
Fixes c273d91df1 (commitcomment-15251676)
2016-01-04 12:36:05 -08:00
Parker Moore
eaade1e49a Update history to reflect merge of #4301
[ci skip]
2016-01-04 12:32:15 -08:00
Parker Moore
5580972282 Merge pull request #4301 from pathawks/rubocop
Merge pull request 4301
2016-01-04 12:31:55 -08:00
Pat Hawks
060904d809 Rubocop: Style/TrailingWhitespace
- Trailing whitespace detected
Rubocop: Style/EmptyLines
 - Extra blank line detected
Rubocop: Style/EmptyLinesAroundBlockBody
 - Extra empty line detected at block body beginning
2016-01-04 12:16:36 -08:00
Pat Hawks
ab3d906e04 Rubocop: Style/ParenthesesAroundCondition
- Don't use parentheses around the condition of an if
2016-01-04 12:14:00 -08:00
Pat Hawks
cce848d3d8 Rubocop: Avoid single-line method definitions 2016-01-04 12:12:17 -08:00
Parker Moore
c273d91df1 cucumber: fix issue where an undefined step would cause an exception 2016-01-04 12:08:02 -08:00
Pat Hawks
c1c8b6dbf7 Rubocop: Style/SpaceInsideHashLiteralBraces 2016-01-04 12:07:34 -08:00
Pat Hawks
04e635b10c Rubocop: Style/SpaceInsideRangeLiteral
- Space inside range literal
2016-01-04 12:06:40 -08:00
Pat Hawks
6711234d5f Rubocop: Style/BlockDelimiters
- Avoid using {...} for multi-line blocks
2016-01-04 12:05:54 -08:00
Pat Hawks
086e85ca9e Rubocop: Style/PerlBackrefs
- Avoid the use of Perl-style backrefs
2016-01-04 12:01:23 -08:00
Pat Hawks
be3666fcf0 Rubocop: Do not use unless with else
- Rewrite these with the positive case first
2016-01-04 11:51:14 -08:00
Pat Hawks
ec83ef60b5 Rubocop: Lint/UselessAssignment 2016-01-04 11:49:54 -08:00
Pat Hawks
085a778b0a Rubocop: Style/NestedTernaryOperator
- Ternary operators must not be nested. Prefer if/else constructs instead.
2016-01-04 11:46:25 -08:00
Pat Hawks
78e9f3389e Rubocop: Style/IndentationWidth 2016-01-04 11:42:17 -08:00
Pat Hawks
f9926edbc4 Rubocop: Style/TrivialAccessors
- Use `attr_writer` to define trivial writer methods
2016-01-04 11:39:14 -08:00
Pat Hawks
af9ec6831d Rubocop: Style/ElseAlignment
- Align else with if
Rubocop: Lint/EndAlignment
 - Align end with if
2016-01-04 11:23:06 -08:00
Parker Moore
c4047c37b2 Update history to reflect merge of #4303
[ci skip]
2016-01-04 11:16:05 -08:00
Pat Hawks
f6fd9014ba Rubocop: Style/CaseIndentation
- Indent when as deep as case
2016-01-04 11:15:37 -08:00
Parker Moore
046928e395 upgrading docs: add note about removing relative permalinks support (2 to 3)
Ref: #4303.
2016-01-04 11:15:16 -08:00
Parker Moore
c38e1fcbb8 Merge pull request #4303 from alistaircom/patch-1
Added content on relative permalinks
2016-01-04 11:14:56 -08:00
Pat Hawks
2c9a349f9a Rubocop: Style/Next
- Use next to skip iteration
2016-01-04 11:10:52 -08:00
Pat Hawks
f221b925b4 Rubocop: Lint/StringConversionInInterpolation
- Redundant use of Object#to_s in interpolation
2016-01-04 11:08:31 -08:00
Pat Hawks
13c980c896 Rubocop: Style/TrailingComma 2016-01-04 11:08:31 -08:00
Pat Hawks
4c5d77a4b5 Rubocop: Style/EmptyLines 2016-01-04 11:08:18 -08:00
Parker Moore
224a1ab9ef Merge pull request #4305 from Atul9/master
Update copyright notices to 2016 [ci skip]
2016-01-03 21:50:18 -08:00
Pat Hawks
fd8fdd87d3 Rubocop: Style/RegexpLiteral 2016-01-03 17:10:39 -08:00
Pat Hawks
e3189e3828 Rubocop: Lint/UnusedMethodArgument 2016-01-03 17:07:39 -08:00
Pat Hawks
11f0aab4b1 Rubocop: Lint/UnusedBlockArgument
- Unused block argument
2016-01-03 16:24:13 -08:00
Pat Hawks
7ca4f7cd62 Rubocop: Style/Proc
- Use proc instead of Proc.new
...and use lambda instead of proc
2016-01-03 16:18:26 -08:00
Pat Hawks
af5d51289f Rubocop: Style/SymbolProc
- Pass &:to_sym as an argument to map instead of a block
 - Pass &:capitalize as an argument to select instead of a block
 - Pass &:to_s as an argument to map instead of a block
2016-01-03 16:02:32 -08:00
Pat Hawks
704ca6b8cc Rubocop: Style/NegatedIf
- Favor unless over if for negative conditions
2016-01-03 15:59:12 -08:00
Pat Hawks
663a2d3279 Rubocop: Style/SpaceBeforeBlockBraces
Rubocop: Style/SpaceInsideBlockBraces
2016-01-03 15:58:02 -08:00
Pat Hawks
a70d89a862 Rubocop: Style/SpaceAfterComma
- Space missing after comma
2016-01-03 15:56:44 -08:00
Pat Hawks
cda226de45 Rubocop: Style/EmptyLinesAroundClassBody
- Extra empty line detected at class body end
2016-01-03 15:55:33 -08:00
Pat Hawks
2530a8cdfc Rubocop: Style/HashSyntax
- Use hash rockets syntax
2016-01-03 15:49:22 -08:00
Pat Hawks
d157a04c6d Rubocop: Performance/StringReplacement
- Use delete! instead of gsub!
 - Use tr instead of gsub
2016-01-03 15:47:31 -08:00
Pat Hawks
ff5f7b7120 Rubocop: Style/DeprecatedHashMethods
- Hash#has_key? is deprecated in favor of Hash#key?
Add method `key?` to Drop
2016-01-03 15:41:04 -08:00
Pat Hawks
98a19cdf2b Rubocop: Style/PercentLiteralDelimiters
- %w-literals should be delimited by ( and )
Rubocop: Style/WordArray
 - Use %w or %W for array of words
2016-01-03 15:32:11 -08:00
Pat Hawks
fb0457bf3d Rubocop: Style/AndOr
- Use && instead of and
 - Use || instead of or
2016-01-03 15:30:26 -08:00
Pat Hawks
6550867051 Rubocop: Style/SpecialGlobalVars
- Prefer $LOAD_PATH over $:
2016-01-03 15:29:49 -08:00
Pat Hawks
8223ebd861 Use select and find instead of conditional loop 2016-01-03 15:24:18 -08:00
Pat Hawks
0eae36aec2 Rubocop: Style/LineEndConcatenation
- Use \ instead of + or << to concatenate those strings
2016-01-03 14:41:49 -08:00
Pat Hawks
44d2995277 Rubocop: Style/Semicolon
- Do not use semicolons to terminate expressions
2016-01-03 14:40:45 -08:00
Pat Hawks
31dd0ebed5 Rubocop: Style/EmptyLiteral
- Use array literal [] instead of Array.new
 - Use hash literal {} instead of Hash.new
2016-01-03 14:39:01 -08:00
Jordon Bedwell
ffdbeb89dd Further refine our Rubocop to the current styles. 2016-01-03 15:57:47 -06:00
William Entriken
22a0be3f7b Escape html from site.title and page.title 2016-01-03 16:10:38 -05:00
Atul Bhosale
8e00301fca Update copyright notices to 2016 [ci skip] 2016-01-03 17:04:41 +05:30
Jordon Bedwell
b7d5a26d53 Move around CodeClimate so people can do bundle exec rubocop.
/cc @pathawks -- This is why you were not getting the custom settings we had
made and some things were showing up as broken when they weren't.  Sorry.
2016-01-03 02:21:21 -06:00
Jordon Bedwell
a2623be3da Be consistent with your hashes and arrays.
```
val = %W(hello world
                 world)
```

```
var = %W(
  hello
  world
)
```

```
var = %W(hello world)
```
2016-01-03 00:15:31 -06:00
Jordon Bedwell
2a280b7f62 Reduce our surface, extend self is useful for some modules.
We should handle extend self and module_function on a case-by-case basis because there
are times when extend self is useful, especially when you wish a module to be included but also
available on itself.  `module_function` does not allow this.
2016-01-02 23:58:59 -06:00
Alistair Calder
13f520f2b4 Added content on relative permalinks
Could not find documentation on issues with relative permalinks. Added what fixed it for me.
2015-12-30 16:07:15 -08:00
Alfred Xing
519c0f1b38 Update history to reflect merge of #4293
[ci skip]
2015-12-30 10:43:01 -08:00
Alfred Xing
f5fe4b89bd Merge pull request #4293 from alfredxing/incremental-docs
Merge pull request 4293
2015-12-30 10:42:34 -08:00
Parker Moore
a1c97c66fb Update history to reflect merge of #4299
[ci skip]
2015-12-30 09:26:18 -08:00
Parker Moore
fdffc8aaaa Merge pull request #4299 from pathawks/jekyll-commonmark
Merge pull request 4299
2015-12-30 09:24:43 -08:00
Pat Hawks
bf4bfcf4f0 Add link to jekyll-commonmark 2015-12-29 18:02:59 -08:00
Kakoma
61bbc0666a Merge pull request #1 from kakoma/kakoma-patch-1
Use permalink Front Matter variable for clean URLs
2015-12-28 18:49:39 +03:00
Kakoma
0309c940df Use permalink Front Matter variable for clean URLs
Add pro Tip to use permalink front matter variable to get clean URLs
2015-12-28 18:48:52 +03:00
Alfred Xing
e98f543513 Add some documentation for incremental regeneration 2015-12-27 19:45:16 -08:00
Jordon Bedwell
e048e428d1 Update History.markdown 2015-12-27 12:56:42 -06:00
Jordon Bedwell
43618c90c7 Merge pull request #4292 from jekyll/pull/fix-liquid-drop-requires
Move require "jekyll/drops/drop" to "jekyll.rb"

Linux does not read files in alphanumeric order, this can lead to
Jekyll drops not working on Linux because the assumption here is that
the collection drop will be required first.
2015-12-27 12:55:51 -06:00
Jordon Bedwell
f2f88dbd9f Move require "jekyll/drops/drop" to "jekyll.rb"
Linux does not read files in alphanumeric order, this can lead to
Jekyll drops not working on Linux because the assumption here is that
the collection drop will be required first.
2015-12-27 12:48:21 -06:00
Parker Moore
5034216637 Release 💎 3.1.0.pre.beta1 2015-12-27 08:32:08 -05:00
Parker Moore
cb342c375d Update history to reflect merge of #4289
[ci skip]
2015-12-27 08:27:37 -05:00
Parker Moore
7c4876d2eb Merge pull request #4289 from jekyll/fix-utils-deep-merge-drops
Merge pull request 4289
2015-12-27 08:27:25 -05:00
Parker Moore
e302873203 Update history to reflect merge of #3771
[ci skip]
2015-12-27 08:25:29 -05:00
Parker Moore
1b73751abf Merge branch 'fixup-custom-markdown'
* fixup-custom-markdown:
  markdown: minor style fixes
  Add support for underscores.
  Refactor: lib/jekyll/convertor/markdown.rb - tests: no additions/breaks.
2015-12-27 08:24:16 -05:00
Parker Moore
8e887dcd8b markdown: minor style fixes
ref: #3771
2015-12-27 08:24:00 -05:00
Parker Moore
5bf596b239 utils/drops: update Drop to support Utils.deep_merge_hashes
Fixes #4287
2015-12-27 08:06:37 -05:00
Pat Hawks
69a6323599 Utils.deep_merge_hashes failing test 2015-12-27 07:48:45 -05:00
Parker Moore
59a5fc64f9 Update history to reflect merge of #4281
[ci skip]
2015-12-26 22:09:34 -05:00
Parker Moore
1bc3f63db7 Merge pull request #4281 from jekyll/drop-to_h
Merge pull request 4281
2015-12-26 22:09:14 -05:00
Parker Moore
fe690a8377 Merge pull request #4288 from pathawks/calling-setter
Wrap Arguments in () when used in a setter
2015-12-26 19:03:54 -05:00
Pat Hawks
a47ce7b655 Wrap Arguments in () when used in a setter 2015-12-26 12:48:20 -08:00
Parker Moore
d138558c1d drops: provide #to_h to allow for hash introspection
Follow-up to #4277
2015-12-26 14:25:29 -05:00
Parker Moore
cc5937815e Update history to reflect merge of #4285
[ci skip]
2015-12-26 13:53:08 -05:00
Parker Moore
f386752184 Merge pull request #4285 from jekyll/drop-refactor
Merge pull request 4285
2015-12-26 13:50:03 -05:00
Parker Moore
ceca1bcf14 site: set the timezone in the config for consistent generation times 2015-12-26 13:49:32 -05:00
Parker Moore
839fd45b9d Update history to reflect merge of #4286
[ci skip]
2015-12-26 13:47:31 -05:00
Parker Moore
72c951fd45 Merge pull request #4286 from wildlyinaccurate/patch-1
Merge pull request 4286
2015-12-26 13:46:31 -05:00
Parker Moore
3fa8af2a18 drops: create one base Drop class which can be set as mutable or not 2015-12-26 13:43:42 -05:00
Joseph Wynn
95b05cd0c5 Add jekyll-responsive_image to plugins list
[jekyll-responsive_image](https://github.com/wildlyinaccurate/jekyll-responsive-image) has been gaining popularity recently. I thought it would be worth adding it to the documentation.
2015-12-26 18:38:32 +00:00
Parker Moore
57613b31dd Slightly restructure rake helper files
Ref #4282
2015-12-26 12:53:30 -05:00
Parker Moore
75be388487 Update history to reflect merge of #4282
[ci skip]
2015-12-26 12:48:18 -05:00
Parker Moore
e3da5a3f9f Merge pull request #4282 from leethomas/refactor-rake-tasks
Merge pull request 4282
2015-12-26 12:47:30 -05:00
Parker Moore
1f298e0d9d url: move setter outside of if statement
Addresses @envygeeks's comment:
d070a77716 (commitcomment-15164169)
2015-12-26 12:32:21 -05:00
Parker Moore
b70ea3ca5c immutable_drop/errors: consolidate errors & fix syntax for raising
Addresses @envygeeks's comments:
bff1726a5a
2015-12-26 12:27:07 -05:00
Parker Moore
1afbe9967d document: return nil if bad arg in #<=>
Addresses @envygeek's comment:

233589e150 (commitcomment-15164178)
2015-12-26 12:23:21 -05:00
leethomas
b05b174b87 moved namespaced rake tasks to separate .rake files under lib/tasks 2015-12-25 22:50:23 -08:00
Parker Moore
c63b51b661 document: revert comparison of Documents to old style & add nil check
@envygeeks, this should address your comment: fcce0d5482 (commitcomment-15162261)
2015-12-25 22:54:12 -05:00
Parker Moore
debdb15171 Move 'forwardable' require to earlier in the program start up. 2015-12-25 22:45:51 -05:00
Parker Moore
b34e8e0bc0 Update history to reflect merge of #4277
[ci skip]
2015-12-25 21:32:46 -05:00
Parker Moore
ec25ddee17 Merge pull request #4277 from jekyll/document-drops
Merge pull request 4277
2015-12-25 21:32:01 -05:00
Parker Moore
3effae59d8 Update history to reflect merge of #4273
[ci skip]
2015-12-24 15:09:26 -05:00
Parker Moore
9ab232fd70 Merge pull request #4273 from midnightSuyama/add_plugin
Merge pull request 4273
2015-12-24 15:08:45 -05:00
Parker Moore
b2b634e767 drops: use def_delegator more liberally where acceptable 2015-12-24 15:07:48 -05:00
Parker Moore
fcce0d5482 document: fix issue with bad comparison 2015-12-24 15:07:31 -05:00
Parker Moore
d070a77716 url: fix issue with bad URL escaping when using Drop 2015-12-24 15:07:20 -05:00
Parker Moore
bff1726a5a immutable_drop: use custom error for bad set 2015-12-24 15:06:32 -05:00
Parker Moore
6a72d4a986 features/post_data: Fix undefined feature step. 2015-12-22 22:44:56 -05:00
Parker Moore
cd2688ab66 test_excerpt & _page: use Drop instead of Hash to mock payload 2015-12-22 22:37:48 -05:00
Parker Moore
9bb59e9999 features/post_data: do NOT allow page.path to be overridden 2015-12-22 21:36:29 -05:00
Parker Moore
30ceda52ef features/hooks: global payload _is_ global -- not new for each page 2015-12-22 21:36:15 -05:00
Parker Moore
659f0869e0 features/collections: drops don't output like a hash -- update accordingly 2015-12-22 21:35:28 -05:00
Parker Moore
233589e150 document: throw ArgumentError if compared to non-doc 2015-12-22 21:34:24 -05:00
Parker Moore
532bb9e9cb Further consolidation in the Drops. 2015-12-22 21:33:42 -05:00
Alfred Xing
bbbe6479e5 Update history to reflect merge of #4275
[ci skip]
2015-12-22 09:14:51 -08:00
Alfred Xing
9288c81854 Merge pull request #4275 from plaindocs/master
Merge pull request 4275
2015-12-22 09:13:56 -08:00
Parker Moore
4935e85f7c CollectionDrop: to_s should work like Array#to_s 2015-12-21 23:41:36 -05:00
Parker Moore
03488b1cde DocumentDrop: use def_delegators instead of duplicating methods 2015-12-21 23:36:31 -05:00
Parker Moore
ebe3c10604 Drops: fix accessing of site collections via site.COL_NAME 2015-12-21 23:33:33 -05:00
Samuel Wright
b9721024be URL fix up 2015-12-22 11:33:25 +07:00
Parker Moore
82c3ee365f Initial work on using Liquid::Drops instead of Hashes.
The properties of Liquid::Drops are only evaluated when they're asked for
and therefore save computation time. This prevents a lot of GC time cleaning
up objects that are not needed, because they're not created unless requested.
Additionally, this saves time for actual computation of those values because
they can be computed only if needed.

It's funny how much it helps when you only do what is needed. Far less overhead.
2015-12-21 22:47:30 -05:00
Parker Moore
f92d6639e6 Rakefile: alias :generate to :build 2015-12-21 22:46:58 -05:00
Parker Moore
fe5984ee15 History: move reference for #4173 to latest HEAD, not 3.0.1 2015-12-21 22:46:58 -05:00
Samuel Wright
cc63354367 Adding markdown examples to Pages
Fix for #3824
2015-12-21 11:56:13 +07:00
midnightSuyama
37517c9a39 Add jekyll-paginate-category to plugins.md 2015-12-20 03:02:24 +09:00
Parker Moore
4c050bba65 docs: posts example code is invalid UTF-8, use three dots instead of ellipsis
Fixes #4271
2015-12-18 10:19:42 -08:00
Decider UI
05285798be site: remove preceding space before coffeescript installation steps list items
Closes #4267
2015-12-16 16:54:30 -08:00
Parker Moore
645a2cc664 test/test_doctor_command.rb: fix test for Doctor.urls_only_differ_by_case 2015-12-14 20:59:52 -08:00
Parker Moore
595ad56a7e Update history to reflect merge of #4263
[ci skip]
2015-12-14 20:26:08 -08:00
Parker Moore
be06296595 Merge pull request #4263 from qrush/doctor-to-jekyll
Merge pull request 4263
2015-12-14 20:24:48 -08:00
Nick Quaranto
115926fd54 Change TestDoctorCommand to JekyllUnitTest since Test constant doesn't necessarily exist 2015-12-14 21:58:36 -05:00
Parker Moore
fb8bf7bab6 Update history to reflect merge of #3171
[ci skip]
2015-12-13 12:26:58 -08:00
Parker Moore
fdcd761313 Merge branch 'akoeplinger-doctor-permalink-same-case-warning'
* akoeplinger-doctor-permalink-same-case-warning:
  Added tests for new jekyll doctor warning
  Incorporate code review feedback
  Incorporate code review feedback
  Add a Jekyll doctor warning for URLs that only differ by case
2015-12-13 12:26:07 -08:00
Parker Moore
2c5a5e76ec script/stackprof: allow CLI to set stackprof mode [ci skip] 2015-12-13 12:21:32 -08:00
Jordon Bedwell
02b8e326ed [CI:SKIP] Update history.markdown to reflect the merger of #4259. 2015-12-13 08:09:44 -06:00
Jordon Bedwell
366a1d8979 Merge pull request #4259 from itsdn/patch-1
Fix checklist in _assets.md
2015-12-13 08:08:42 -06:00
Dan K
05924bae5e Fix checklist in _assets.md 2015-12-13 16:52:35 +03:00
Parker Moore
763702d4ff Merge pull request #4255 from ofalvai/patch-1
Upgrading 2-3: Added missing links to Pygments.rb and Rouge
2015-12-12 10:08:04 -08:00
Olivér Falvai
e61e93b486 Added missing links to Pygments.rb and Rouge 2015-12-12 15:08:12 +01:00
Parker Moore
b9d4419749 Merge pull request #4048 from chrisfinazzo/grammar-fixes
Typos and line wrapping
2015-12-11 14:12:16 -08:00
Parker Moore
9e5b1c9f6a Update history to reflect merge of #4052
[ci skip]
2015-12-11 14:11:40 -08:00
Parker Moore
92adfd0e46 Merge pull request #4052 from Crunch09/process-empty-config-files
Merge pull request 4052
2015-12-11 14:11:11 -08:00
Parker Moore
b94800361b Collection: change missing_method message to be a bit clearer.
Fixes #4234. Fixes #4199.
2015-12-11 14:07:34 -08:00
Parker Moore
dfa3f8b33a Update history to reflect merge of #4184
[ci skip]
2015-12-11 14:03:05 -08:00
Parker Moore
4f21458b34 Merge pull request #4184 from ducktyper/allow-quoted-dates
Merge pull request 4184
2015-12-11 14:02:55 -08:00
Parker Moore
29e721a804 Update history to reflect merge of #4251
[ci skip]
2015-12-10 15:59:05 -08:00
Parker Moore
ce0bd80527 Merge pull request #4251 from mneumegen/mneumegen-draft-post-docs
Merge pull request 4251
2015-12-10 15:58:47 -08:00
Mike Neumegen
ed41ff7774 Updated configuration docs
Added configuration options for draft_posts to configuration docs.
2015-12-10 13:40:53 -08:00
Jordon Bedwell
b79c172921 E-Mail on test failure since I'm not often in IRC. 2015-12-10 15:02:24 -06:00
Parker Moore
fceddca1b2 Update history to reflect merge of #4249
[ci skip]
2015-12-10 11:11:13 -08:00
Parker Moore
6ddcc7f63a Merge pull request #4249 from brioscaibriste/patch-1
Merge pull request 4249
2015-12-10 11:10:35 -08:00
Conor O'Callaghan
961c807c72 Removed example Roger Chapman site
Page not found for this demo site
2015-12-10 17:24:17 +00:00
Parker Moore
2b6b7b6a9f Merge pull request #4244 from r00k/patch-2
Add utm params to link in docs
2015-12-09 13:42:49 -08:00
Ben Orenstein
f97a48d970 Add utm params to link in docs
https://github.com/jekyll/jekyll/pull/4243 updated this link to a jekyll-specific page. This commit adds utm params to the link so we can tell that users came to us from the Jekyll documentation. Among other things, this will help us provide better support to Jekyll users who sign up, since we'll know what site generator they're using.
2015-12-09 16:28:25 -05:00
Parker Moore
e8b1a8aa44 script/cibuild: fail if subprocesses fail 2015-12-09 11:46:47 -08:00
Parker Moore
6a4c8a0b1c Update history to reflect merge of #4243
[ci skip]
2015-12-09 11:14:01 -08:00
Parker Moore
be032c54fb Merge pull request #4243 from r00k/patch-1
Merge pull request 4243
2015-12-09 11:13:22 -08:00
Ben Orenstein
c9ead955a4 Link to less generic FormKeep page
This link used to point to a generic landing page. Now it links to a guide written specifically for Jekyll users.
2015-12-09 13:44:45 -05:00
Parker Moore
eadbf2a711 Update history to reflect merge of #4233
[ci skip]
2015-12-07 22:11:43 -08:00
Parker Moore
11959ab2bc Merge pull request #4233 from RochesterinNYC/patch-1
Merge pull request 4233
2015-12-07 22:10:09 -08:00
James Wen
0e89e80426 Switch PluginManager to use require_with_graceful_fail
* Add debug statement specifying current plugin to External#require_with_graceful_fail
2015-12-07 20:46:07 -05:00
Parker Moore
f4fa2e735e Update history to reflect merge of #4231
[ci skip]
2015-12-07 09:58:46 -08:00
Parker Moore
7f9fd11a35 Merge pull request #4231 from jekyll/pull/add-default-charset-to-webrick-cleanup-servlet
Merge pull request 4231
2015-12-07 09:58:34 -08:00
Jordon Bedwell
915d8adb1b [CI:SKIP] Update Gemnasium URL. 2015-12-07 11:37:37 -06:00
Jordon Bedwell
643ae68912 Add a default charset to content-type on webrick.
Add a default charset to content-type on webrick, using Jekyll's
default encoding (or user set encoding) and cleanup servlet removing
unecessary logic that really served no purpose at the end of the
day, we don't need to strictly match Nginx, only be "like it."

This also cleans up the way we set headers and merges that logic
into a cleaner to understand interface that is slightly speedier.
2015-12-06 20:33:53 -06:00
Jordon Bedwell
fdf12efde4 [CI:SKIP] Update history.markdown to reflect the merger of #4228 2015-12-05 04:54:34 -06:00
Jordon Bedwell
68d58f4183 Merge pull request #4228 from jekyll/pull/fix-file-edge-servlet
Fix an edge where file is sometimes not returned properly.
2015-12-05 04:53:47 -06:00
Jordon Bedwell
b63712e403 Fix an edge where file is sometimes not returned properly. 2015-12-05 04:48:51 -06:00
Ducksan Cho
99042fa870 Improve error message 2015-12-05 16:21:50 +13:00
Parker Moore
79ceb4d394 Update history to reflect merge of #4223
[ci skip]
2015-12-04 14:12:59 -08:00
Parker Moore
c6255d5f28 Merge pull request #4223 from jekyll/pull/sample-filter
Merge pull request 4223
2015-12-04 14:12:18 -08:00
Parker Moore
47d2a2459d filters: refactor #sample to leave off the arg 2015-12-04 13:48:09 -08:00
Parker Moore
dd971a3581 Update history to reflect merge of #4224
[ci skip]
2015-12-04 13:16:40 -08:00
Parker Moore
313582f06d Merge pull request #4224 from jekyll/pull/cleanup-and-modernize-serve-cmd
Merge pull request 4224
2015-12-04 13:16:13 -08:00
Jordon Bedwell
8efbdc01ff Fix #3791/#3478
* Add support for SSL through command line switches.
* Add suppport for file/index.html > file.html > directory.
* Add support for custom-headers through configuration.
* Modernize and split up the serve.
* Add a few basic tests.
2015-12-04 14:07:07 -06:00
Parker Moore
a43d2907c7 travis: fast finish. don't wait for allowed failures to finish. JRUBY... 2015-12-04 10:48:25 -08:00
Parker Moore
2e91d094e5 filters#sample: n == 1, return item; n > 1, return array 2015-12-04 10:25:13 -08:00
Jordon Bedwell
d10dc01290 Update History.markdown 2015-12-04 12:09:06 -06:00
Jordon Bedwell
28c568386d Merge pull request #4220 from jekyll/pull/enable-codeclimate-platform
Fix: #4219: Add CodeClimate Platform.
2015-12-04 12:08:00 -06:00
Parker Moore
0aa3c96d11 travis: do NOT wait for branch builds for PR's. it just wastes time. 2015-12-04 09:59:00 -08:00
Jordon Bedwell
b6de905ee4 Fix: #4219: Add CodeClimate Platform. 2015-12-04 11:42:52 -06:00
Parker Moore
86195655d7 filters: allow sample(n) instead of just sample(1) 2015-12-04 09:40:57 -08:00
Parker Moore
96bc62c666 Add 'sample' Liquid filter
Equivalent to Array#sample functionality
2015-12-04 09:33:33 -08:00
Parker Moore
b78d5085f1 Update history to reflect merge of #4109
[ci skip]
2015-12-04 09:21:43 -08:00
Parker Moore
6cbd06ea85 Merge pull request #4109 from jekyll/cleanup-kramdown-converter
Merge pull request 4109
2015-12-04 09:21:22 -08:00
Parker Moore
fe13c3b366 KramdownConverter: clean up some source with some unified methods 2015-12-04 09:21:11 -08:00
Jordon Bedwell
e331a37260 Fix #4202: Have Kramdown behave like Github. 2015-12-04 11:11:30 -06:00
Jordon Bedwell
3432fd2c2d Modernize Kramdown for Markdown converter. 2015-12-04 08:09:08 -06:00
Parker Moore
a5be27b222 Update history to reflect merge of #4121
[ci skip]
2015-12-02 11:51:37 -08:00
Parker Moore
a4d918d328 Merge pull request #4121 from rebornix/FixDocsCSSBreak
Merge pull request 4121
2015-12-02 11:50:33 -08:00
Parker Moore
15fdc82821 Update history to reflect merge of #4210
[ci skip]
2015-12-02 10:51:04 -08:00
Parker Moore
0f23f69048 Merge pull request #4210 from DavidBurela/patch-1
Merge pull request 4210
2015-12-02 10:50:21 -08:00
David Burela
e5e5369cde Update windows.md
Added a very quick guide on getting Jekyll up and running on Windows in the fastest way possible with just a few command prompt commands.
2015-12-02 15:23:11 +08:00
Parker Moore
c7eacbdfcd Update history to reflect merge of #4150
[ci skip]
2015-11-30 19:58:16 -08:00
Parker Moore
b90f8e048a Merge pull request #4150 from ducktyper/master
Merge pull request 4150
2015-11-30 19:57:01 -08:00
Parker Moore
928f51ad24 Update history to reflect merge of #4205
[ci skip]
2015-11-30 19:56:08 -08:00
Parker Moore
4890cecaf3 Merge pull request #4205 from jekyll/pull/fix-layout-vs-page-data
Merge pull request 4205
2015-11-30 19:55:36 -08:00
Parker Moore
ac9fa413a5 Convertible should make layout data accessible via 'layout'
Not via 'page'. Erroneous!

Fixes #4117.
2015-11-30 14:35:55 -08:00
rebornix
47081736ef Update CSS to avoid it overlaps parent div 2015-11-30 13:16:20 +08:00
Jordon Bedwell
d100a68563 Update History.markdown 2015-11-29 21:42:31 -06:00
Jordon Bedwell
9ff614c2f8 Merge pull request #4200 from jekyll/pull/prevent-shell-injection
Prevent shell injection when opening a URL.
2015-11-29 21:41:39 -06:00
Jordon Bedwell
c8edb15820 Prevent shell injection when opening a URL. 2015-11-29 21:22:27 -06:00
Parker Moore
2a4aa0fdb1 Update history to reflect merge of #4190
[ci skip]
2015-11-28 23:25:34 -08:00
Parker Moore
d2ea28d122 Merge pull request #4190 from nielsenramon/nr-add-kickster
Merge pull request 4190
2015-11-28 23:25:23 -08:00
Parker Moore
3e8f00a069 Update history to reflect merge of #4144
[ci skip]
2015-11-28 23:22:10 -08:00
Parker Moore
64e87bfac9 Merge pull request #4144 from friedenberg/master
Merge pull request 4144
2015-11-28 23:21:30 -08:00
Sasha Friedenberg
face3985dc add "-o" option to serve command which opens server URL 2015-11-28 15:13:44 -05:00
Nielsen Ramon
147a29302f Add Kickster to deployment methods in documentation 2015-11-26 22:54:00 +01:00
Parker Moore
918bfd5fe5 Update history to reflect merge of #4183
[ci skip]
2015-11-25 10:28:07 -08:00
Parker Moore
4359dba84a Merge pull request #4183 from rebornix/MultiVariableInclude
Merge pull request 4183
2015-11-25 10:27:36 -08:00
Ducksan Cho
c159f19c7d Rename destructive method with bang 2015-11-26 00:06:09 +13:00
Ducksan Cho
e60e5f3532 Allow quoted date in front matter defaults 2015-11-25 23:18:33 +13:00
rebornix
657a8d7239 Allow users to input multiple variables in include tag 2015-11-25 16:37:08 +08:00
Jordon Bedwell
effe23a008 Update history.markdown to reflect the merger of #4154 2015-11-24 20:50:09 -06:00
Jordon Bedwell
c227530300 Merge pull request #4154 from napcae/patch-1
Update Plugin Docs
2015-11-24 20:49:11 -06:00
Chi Trung Nguyen
43cfad250e Update Plugin Docs
according to #4126
2015-11-25 02:51:13 +01:00
Parker Moore
7a284b802b Update history to reflect merge of #4181
[ci skip]
2015-11-24 17:33:33 -08:00
Parker Moore
79380e86fa Merge pull request #4181 from jekyll/bump-cucumber
Merge pull request 4181
2015-11-24 17:33:15 -08:00
Parker Moore
1bde4ce84a include_tag.feature: double escape 2015-11-24 17:11:47 -08:00
Parker Moore
8a09418083 Allow use of Cucumber 2.1 or greater 2015-11-24 16:28:02 -08:00
Parker Moore
d7bac8cc40 Update history to reflect merge of #4160
[ci skip]
2015-11-24 16:19:58 -08:00
Parker Moore
ac1b2b88d4 Merge pull request #4160 from jekyll/fix-html-htm-xhtml-pages
Merge pull request 4160
2015-11-24 16:19:46 -08:00
Parker Moore
934273ad92 Update history to reflect merge of #4180
[ci skip]
2015-11-24 15:18:28 -08:00
Parker Moore
20f5434692 Merge pull request #4180 from untra/fix/#4178
Merge pull request 4180
2015-11-24 15:17:29 -08:00
Parker Moore
1c42a8225e Update history to reflect merge of #4179
[ci skip]
2015-11-24 15:04:19 -08:00
Parker Moore
3a4621870a Merge pull request #4179 from vwochnik/patch-1
Merge pull request 4179
2015-11-24 15:03:36 -08:00
Sam Volin
35070d6806 added debug message to collection 2015-11-24 16:02:10 -07:00
Vincent Wochnik
6739072fb2 Update plugins.md
Add `jekyll-deploy` plugin.
2015-11-24 22:39:07 +01:00
Jordon Bedwell
256212649a Update mime-types. 2015-11-24 04:26:05 -06:00
Jordon Bedwell
95203d99ba Update History.markdown 2015-11-24 04:20:44 -06:00
Jordon Bedwell
f7a2b52cd9 Merge pull request #4174 from gfxmonk/master
Fix #4173: Rename @options so that it does not impact Liquid.
2015-11-24 04:19:57 -06:00
Tim Cuthbertson
a7730914df rename @options in HighlightBlock (clash with Liquid::Block). fixes #4173 2015-11-24 20:24:44 +11:00
Parker Moore
3417a33e7a Update templates docs to reflect Rouge default.
Fixes #3323
2015-11-23 08:37:57 -08:00
Parker Moore
bf66d1fc23 Upgrading 2-3: note that default syntax highlighter changed.
Fixes #4176
2015-11-23 08:29:18 -08:00
Parker Moore
2011addabc Update history to reflect merge of #4177
[ci skip]
2015-11-23 08:25:06 -08:00
Parker Moore
6814bc8e63 Merge pull request #4177 from rebornix/FixCleanCommandOptions
Merge pull request 4177
2015-11-23 08:24:44 -08:00
rebornix
16aea22c8d pass build options into clean command 2015-11-23 22:38:45 +08:00
Parker Moore
c4fe2b0513 Update pagination docs to reflect removal of pagination as runtime dep.
Fixes #4171
2015-11-20 10:51:16 -08:00
Jordon Bedwell
10b147f429 Update history.markdown to reflect the merger of #4169. 2015-11-19 19:28:27 -06:00
Jordon Bedwell
547de56c19 Merge pull request #4169 from vwochnik/patch-1
Update plugins.md
2015-11-19 19:27:35 -06:00
Jordon Bedwell
9ea8129d85 Update history.markdown to reflect the merger of #4168 2015-11-19 19:27:21 -06:00
Jordon Bedwell
275aea11d1 Merge pull request #4168 from jekyll/pr/cleanup-url-sanitize
Slightly speed up url sanitization and handle multiples of ///.
2015-11-19 19:26:31 -06:00
Vincent Wochnik
2c04321d5a Update plugins.md
I have written a liquid filter to make email protection for static websites easy. This plugin contains the `protect_email` filter which encodes email addresses similar to the way GitHub does for the user profiles.
2015-11-20 01:55:39 +01:00
Jordon Bedwell
487d9ffc21 Slightly speed up url sanitization and handle multiples of ///. 2015-11-19 18:46:03 -06:00
Parker Moore
20a78dcca0 Update history to reflect merge of #4157
[ci skip]
2015-11-19 09:25:28 -08:00
Parker Moore
58c9a070a7 Merge pull request #4157 from jekyll/upgrading-to-3.0
Merge pull request 4157
2015-11-19 09:25:17 -08:00
Jordon Bedwell
5d8be167d9 Update history.markdown to reflect the merger of #4163 2015-11-19 06:57:52 -06:00
Jordon Bedwell
22a9fbb2a1 Merge pull request #4163 from paulrobertlloyd/master
Add three plugins to directory
2015-11-19 06:56:50 -06:00
ducksan cho
e9f8b4df74 Add Windows support to Utils.safe_glob 2015-11-19 17:15:51 +13:00
Paul Robert Lloyd
0ef5ab352d Add jekyll-figure to plugin directory 2015-11-19 00:48:51 +00:00
Paul Robert Lloyd
a729a1f086 Add jekyll-typogrify to plugin directory 2015-11-19 00:47:03 +00:00
Paul Robert Lloyd
a95e5f16f0 Add jekyll-roman to plugin directory 2015-11-19 00:44:49 +00:00
Jordon Bedwell
90865d5fc1 Fix #4082: Allow users to use .htm and .xhtml (XHTML5.) 2015-11-18 16:02:03 -06:00
Parker Moore
970edaf238 Update history to reflect merge of #4120
[ci skip]
2015-11-18 11:53:33 -08:00
Parker Moore
c1761bc478 Merge pull request #4120 from rebornix/CacheIncludeTemplate
Merge pull request 4120
2015-11-18 11:53:10 -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
0cdf659ebf Add upgrading docs from 2.x to 3.x 2015-11-18 08:50:49 -08:00
Ducksan Cho
20735e12f9 Use safe_glob to unsafe glob 2015-11-19 01:02:48 +13:00
Ducksan Cho
a168edae45 Add Utils.safe_glob method
which works the same way as Dir.glob but seperating the input
into two parts ('dir' + '/' + 'pattern') to make sure
the first part('dir') does not act as a pattern.
2015-11-19 00:46:46 +13: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
Ducksan Cho
bd2c337e5b Avoid using Dir.glob with absolute path
the absolute path including '[', '{', '?', or '*'
could change the outcome
2015-11-18 02:18:25 +13: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
chrisfinazzo
4a91bb669c Fix a typo, use single backticks for inline code examples 2015-11-11 20:33:44 -05: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
chrisfinazzo
056abdf899 Improve readability of rrsync instructions, update deploy scripts 2015-11-10 22:17:20 -05:00
Jordan Thornquest
5f7df357d4 Remove link to now-deleted blog post 2015-11-10 20:01:18 -07:00
rebornix
87a8695196 Cache include file to save liquid parsing time. 2015-11-10 21:08:37 +08: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
Florian Thomas
cf71c563ab Handle empty config files
SafeYAML.load_file returns `false` when processing empty files so we
convert this into an empty hash for further processing.

fixes #4030
2015-10-28 22:31:42 +01:00
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
36a41cd224 Typos and line wrapping 2015-10-19 12:06:46 -04: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
Shinnosuke Kondo
1eb626b1df Fix keep_files not to match a file with repeated path. 2015-07-13 19:08:11 -05:00
Shinnosuke Kondo
3b60237cb1 Fix keep_files to be used as paths relative to the destination.
They were used as keywords to match files containing them in the paths.
2015-07-13 18:34:40 -05:00
Shinnosuke Kondo
e0b8539670 Added a new case for test_clearner
where a directory is not in keep_files, but its path contains a string in keep_files.
2015-07-13 17:47:42 -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
Jordon Bedwell
a58f23aeaf Add support for underscores. 2015-06-10 15:05:17 -05:00
Jordon Bedwell
34438ed325 Refactor: lib/jekyll/convertor/markdown.rb - tests: no additions/breaks.
Reason: #3770
2015-06-10 15:04:25 -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
Alexander Köplinger
34ff0bbb36 Added tests for new jekyll doctor warning 2014-12-15 21:26:47 +01: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
Alexander Köplinger
6055f112fb Incorporate code review feedback 2014-11-30 14:52:16 +01:00
Alexander Köplinger
a0da18e4f8 Incorporate code review feedback 2014-11-30 14:30:22 +01:00
Alexander Köplinger
98405edf61 Add a Jekyll doctor warning for URLs that only differ by case
Those URLs are problematic on case-insensitive file systems because one of the URLs is overwritten by the other.
Fixes #3035
2014-11-29 15:14:44 +01: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
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
Alfred Xing
50d0fc3c85 Match post.name instead of slugs and dates 2014-11-04 16:13:04 -08: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
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
Alfred Xing
c3ec158f2d Keep backwards compatibility
Re-add `relative_path` Liquid variable too keep compatibility
2014-09-11 18:25:21 -07:00
Alfred Xing
6c0e791236 Use relative path for path Liquid variable in Documents 2014-09-10 21:04:40 -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
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
419 changed files with 21953 additions and 8607 deletions

33
.codeclimate.yml Normal file
View File

@@ -0,0 +1,33 @@
engines:
fixme:
enabled: false
rubocop:
enabled: true
exclude_paths:
- .codeclimate.yml
- .gitignore
- .rspec
- .rubocop.yml
- .travis.yml
- Gemfile.lock
- CHANGELOG.{md,markdown,txt,textile}
- CONTRIBUTING.{md,markdown,txt,textile}
- readme.{md,markdown,txt,textile}
- README.{md,markdown,txt,textile}
- Readme.{md,markdown,txt,textile}
- ReadMe.{md,markdown,txt,textile}
- COPYING
- LICENSE
- features/**/*
- script/**/*
- site/**/*
- spec/**/*
- test/**/*
- vendor/**/*
ratings:
paths:
- lib/**/*.rb

14
.editorconfig Normal file
View File

@@ -0,0 +1,14 @@
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

122
.github/CONTRIBUTING.markdown vendored Normal file
View File

@@ -0,0 +1,122 @@
# Contributing to Jekyll
Hi there! Interested in contributing to Jekyll? We'd love your help. Jekyll is an open source project, built one contribution at a time by users like you.
## Where to get help or report a problem
* If you have a question about using Jekyll, start a discussion on [Jekyll Talk](https://talk.jekyllrb.com).
* If you think you've found a bug within a Jekyll plugin, open an issue in that plugin's repository.
* If you think you've found a bug within Jekyll itself, [open an issue](https://github.com/jekyll/jekyll/issues/new).
* More resources are listed on our [Help page](https://jekyllrb.com/help/).
## Ways to contribute
Whether you're a developer, a designer, or just a Jekyll devotee, there are lots of ways to contribute. Here's a few ideas:
* [Install Jekyll on your computer](https://jekyllrb.com/docs/installation/) and kick the tires. Does it work? Does it do what you'd expect? If not, [open an issue](https://github.com/jekyll/jekyll/issues/new) and let us know.
* Comment on some of the project's [open issues](https://github.com/jekyll/jekyll/issues). Have you experienced the same problem? Know a work around? Do you have a suggestion for how the feature could be better?
* Read through [the documentation](https://jekyllrb.com/docs/home/), and click the "improve this page" button, any time you see something confusing, or have a suggestion for something that could be improved.
* Browse through [the Jekyll discussion forum](https://talk.jekyllrb.com/), and lend a hand answering questions. There's a good chance you've already experienced what another user is experiencing.
* Find [an open issue](https://github.com/jekyll/jekyll/issues) (especially [those labeled `help-wanted`](https://github.com/jekyll/jekyll/issues?q=is%3Aopen+is%3Aissue+label%3Ahelp-wanted)), and submit a proposed fix. If it's your first pull request, we promise we won't bite, and are glad to answer any questions.
* Help evaluate [open pull requests](https://github.com/jekyll/jekyll/pulls), by testing the changes locally and reviewing what's proposed.
## Submitting a pull request
### Pull requests generally
* The smaller the proposed change, the better. If you'd like to propose two unrelated changes, submit two pull requests.
* The more information, the better. Make judicious use of the pull request body. Describe what changes were made, why you made them, and what impact they will have for users.
* Pull request are easy and fun. If this is your first pull request, it may help to [understand GitHub Flow](https://guides.github.com/introduction/flow/).
* If you're submitting a code contribution, be sure to read the [code contributions](#code-contributions) section below.
### Submitting a pull request via github.com
Many small changes can be made entirely through the github.com web interface.
1. Navigate to the file within [`jekyll/jekyll`](https://github.com/jekyll/jekyll) that you'd like to edit.
2. Click the pencil icon in the top right corner to edit the file
3. Make your proposed changes
4. Click "Propose file change"
5. Click "Create pull request"
6. Add a descriptive title and detailed description for your proposed change. The more information the better.
7. Click "Create pull request"
That's it! You'll be automatically subscribed to receive updates as others review your proposed change and provide feedback.
### Submitting a pull request via Git command line
1. Fork the project by clicking "Fork" in the top right corner of [`jekyll/jekyll`](https://github.com/jekyll/jekyll).
2. Clone the repository locally `git clone https://github.com/<you-username>/jekyll`.
3. Create a new, descriptively named branch to contain your change ( `git checkout -b my-awesome-feature` ).
4. Hack away, add tests. Not necessarily in that order.
5. Make sure everything still passes by running `script/cibuild` (see [the tests section](#running-tests-locally) below)
6. Push the branch up ( `git push origin my-awesome-feature` ).
7. Create a pull request by visiting `https://github.com/<your-username>/jekyll` and following the instructions at the top of the screen.
## Proposing updates to the 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.
### How to submit changes
You can find the documentation for jekyllrb.com in the [site](https://github.com/jekyll/jekyll/tree/master/site) directory. See the section above, [submitting a pull request](#submitting-a-pull-request) for information on how to propose a change.
One gotcha, all pull requests should be directed at the `master` branch (the default branch).
### Adding plugins
If you want to add your plugin to the [list of plugins](https://jekyllrb.com/docs/plugins/#available-plugins), please submit a pull request modifying the [plugins page source file](https://github.com/jekyll/jekyll/blob/master/site/_docs/plugins.md) by adding a link to your plugin under the proper subheading depending upon its type.
## Code Contributions
Interesting in submitting a pull request? Awesome. Read on. There's a few common gotchas that we'd love to help you avoid.
### Tests and documentation
Any time you propose a code change, you should also include updates to the documentation and tests within the same pull request.
#### Documentation
If your contribution changes any Jekyll behavior, make sure to update the documentation. Documentation lives in the `site/_docs` folder (spoiler alert: it's a Jekyll site!). If the docs are missing information, please feel free to add it in. Great docs make a great project. Include changes to the documentation within your pull request, and once merged, `jekyllrb.com` will be updated.
#### Tests
* If you're creating a small fix or patch to an existing feature, a simple test is more than enough. You can usually copy/paste from an existing example in the `tests` folder, but if you need you can find out about our tests suites [Shoulda](https://github.com/thoughtbot/shoulda/tree/master) and [RSpec-Mocks](https://github.com/rspec/rspec-mocks).
* If it's a brand new feature, create a new [Cucumber](https://github.com/cucumber/cucumber/) feature, reusing existing steps where appropriate.
### Code contributions generally
* Jekyll uses the [Rubocop](https://github.com/bbatsov/rubocop) static analyzer to ensure that contributions follow the [GitHub Ruby Styleguide](https://github.com/styleguide/ruby). Please check your code using `script/fmt` and resolve any errors before pushing your branch.
* Don't bump the Gem version in your pull request (if you don't know what that means, you probably didn't).
## Running tests locally
### Test Dependencies
To run the test suite and build the gem you'll need to install Jekyll's dependencies by running the following command:
<pre class="highlight"><code>$ script/bootstrap</code></pre>
Before you make any changes, run the tests and make sure that they pass (to confirm your environment is configured properly):
<pre class="highlight"><code>$ script/cibuild</code></pre>
If you are only updating a file in `test/`, you can use the command:
<pre class="highlight"><code>$ script/test test/blah_test.rb</code></pre>
If you are only updating a `.feature` file, you can use the command:
<pre class="highlight"><code>$ script/cucumber features/blah.feature</code></pre>
Both `script/test` and `script/cucumber` can be run without arguments to
run its entire respective suite.
## A thank you
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!

82
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,82 @@
<!--
Hi! Thanks for considering to file a bug with Jekyll. Please take the time to
answer the basic questions. You can convert `[ ]` into `[x]` to check boxes (or submit
and check.) If there is no need for certain fields like output and redirection, please delete
those headers before submitting. We know not all tickets require those steps.
Otherwise, please try to be as detailed as possible.
If you are unsure this is a bug in Jekyll, or this is a bug caused
by a plugin that isn't directly related to Jekyll, or if this is just
a generic usage question, please consider asking your question at
https://talk.jekyllrb.com where non-bug questions go.
Please make sure to mention an affinity team whose responsibilities
most closely align with your issue.
Thanks!
-->
- [ ] I believe this to be a bug, not a question about using Jekyll.
- [ ] I updated to the latest Jekyll (or) if on GitHub Pages to the latest `github-pages`
- [ ] I read the CONTRIBUTION file at https://jekyllrb.com/docs/contributing/
- [ ] This is a feature request.
---
- [ ] I am on (or have tested on) ***macOS*** 10+
- [ ] I am on (or have tested on) ***Debian/Ubuntu*** GNU/Linux
- [ ] I am on (or have tested on) ***Fedora*** GNU/Linux
- [ ] I am on (or have tested on) ***Arch*** GNU/Linux
- [ ] I am on (or have tested on) ***Other*** GNU/Linux
- [ ] I am on (or have tested on) ***Windows*** 10+
<!--
Other GNU/Linux includes Scientific GNU/Linux, CentOS GNU/Linux, and others.
If you are on a minor sub-distro (such as ElementaryOS which does not diverge from
Ubuntu much, please check the parent distro. Kubuntu, Edubuntu, Lubuntu should
also be flagged as Ubuntu as their packages come from upstream Ubuntu.
-->
---
- [ ] I was trying to install.
- [ ] There is a broken Plugin API.
- [ ] I had an error on GitHub Pages, and I have reproduced it locally.
- [ ] I had an error on GitHub Pages, and GitHub Support said it was a Jekyll Bug.
- [ ] I had an error on GitHub Pages and I did not test it locally.
- [ ] I was trying to build.
- [ ] It was another bug.
## My Reproduction Steps
<!--
If this error occured on GitHub Pages, please try to provide us with logs,
and look at them yourself, to determine if this is an actual Jekyll bug. In
the event you are unsure, file a ticket, however, when you do please provide
the logs (strip them of personal information.)
If you have trouble finding your logs, please email support@github.com and
they will happily help you. If you cannot find logs, please try your best to
replicate it locally because we cannot fix a problem if we do not know
exactly what caused it, or within a relatively close distance.
-->
<!--
Insert the steps you took to for this problem to exist. Such as the
directories you created and, the full command you ran, and include any
plugins you have installed, this is very important.
If your steps are complicated, you can also submit a GitHub
repository (please no zips, they will be removed and rejected by maintainers,)
and just supply a command for us to reproduce it ourselves.
-->
## The Output I Wanted
<!--
Insert the output from the command. Alter it as little as you can.
The minimum should be personal information. Though we normally don't log
anything like that so there should be no need to alter it.
-->
/cc include any Jekyll affinity teams here (see https://teams.jekyllrb.com/ for more info)

27
.gitignore vendored
View File

@@ -1,16 +1,23 @@
Gemfile.lock
test/dest
*.gem
pkg/
*.swp
*~
_site/
.bundle/
.DS_Store
bbin/
gh-pages/
site/_site/
coverage
.analysis
.bundle/
.byebug_history
.jekyll-metadata
.ruby-gemset
.ruby-version
.sass-cache
tmp/stackprof-*
/test/source/file_name.txt
/vendor
Gemfile.lock
_site/
bin/
bbin/
coverage
gh-pages/
pkg/
site/_site/
test/dest
tmp/*

3
.jrubyrc Normal file
View File

@@ -0,0 +1,3 @@
backtrace.mask=true
backtrace.color=true
backtrace.style=mri

133
.rubocop.yml Normal file
View File

@@ -0,0 +1,133 @@
---
AllCops:
TargetRubyVersion: 2.0
Include:
- lib/**/*.rb
Exclude:
- lib/jekyll/renderer.rb
- bin/**/*
- exe/**/*
- benchmark/**/*
- script/**/*
- vendor/**/*
Lint/EndAlignment:
Severity: error
Lint/UnreachableCode:
Severity: error
Lint/UselessAccessModifier:
Enabled: false
Metrics/AbcSize:
Max: 21
Metrics/BlockLength:
Exclude:
- test/**/*.rb
- lib/jekyll/configuration.rb
Metrics/ClassLength:
Exclude:
- !ruby/regexp /features\/.*.rb$/
- !ruby/regexp /test\/.*.rb$/
Max: 300
Metrics/CyclomaticComplexity:
Max: 9
Metrics/LineLength:
Exclude:
- !ruby/regexp /features\/.*.rb/
Max: 90
Severity: warning
Metrics/MethodLength:
CountComments: false
Max: 20
Severity: error
Metrics/ModuleLength:
Exclude:
- lib/jekyll/filters.rb
Max: 240
Metrics/ParameterLists:
Max: 4
Metrics/PerceivedComplexity:
Max: 8
Style/Alias:
Enabled: false
Style/AlignArray:
Enabled: false
Style/AlignHash:
EnforcedHashRocketStyle: table
Style/AlignParameters:
Enabled: false
EnforcedStyle: with_fixed_indentation
Style/AndOr:
Severity: error
Style/Attr:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Exclude:
- !ruby/regexp /features\/.*.rb$/
Style/DoubleNegation:
Enabled: false
Style/EmptyLinesAroundAccessModifier:
Enabled: false
Style/EmptyLinesAroundModuleBody:
Enabled: false
Style/ExtraSpacing:
AllowForAlignment: true
Style/FileName:
Enabled: false
Style/FirstParameterIndentation:
EnforcedStyle: consistent
Style/GuardClause:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Severity: error
Style/IfUnlessModifier:
Enabled: false
Style/IndentArray:
EnforcedStyle: consistent
Style/IndentHash:
EnforcedStyle: consistent
Style/IndentationWidth:
Severity: error
Style/ModuleFunction:
Enabled: false
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/MultilineTernaryOperator:
Severity: error
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"%q": "{}"
"%Q": "{}"
"%r": "!!"
"%s": "()"
"%w": "()"
"%W": "()"
"%x": "()"
Style/RedundantReturn:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/RegexpLiteral:
EnforcedStyle: percent_r
Style/RescueModifier:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/SingleLineMethods:
Enabled: false
Style/SpaceAroundOperators:
Enabled: false
Style/SpaceInsideBrackets:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/UnneededCapitalW:
Enabled: false

View File

@@ -1,30 +1,47 @@
language: ruby
cache: bundler
install:
- script/rebund download
- travis_retry bundle install --path vendor/bundle -j8
rvm:
- 2.1
- 2.0
- 1.9.3
bundler_args: --without benchmark:site:development
script: script/cibuild
after_script:
- script/rebund upload
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
cache: bundler
language: ruby
sudo: false
rvm:
- &ruby1 2.3.1
- &ruby2 2.2.5
- &ruby3 2.1.9
- &jruby jruby-9.1.2.0
matrix:
include:
- rvm: *ruby1
env: TEST_SUITE=fmt
- rvm: *ruby1
env: TEST_SUITE=default-site
exclude:
- rvm: *jruby
env: TEST_SUITE=cucumber
env:
global:
- secure: bt5nglPTdsc0N5fB1dOJz2WbM81dGpDuVD8PnhEsxgUfoo6xavhU4+pNrUADlSUqQ1aJrdU+MKW4x+JZ2ZnJS8vOpNzRymuMZSbFaljK4pgFGiKFgBdMKxVikvoYcxKCjLAl7NJZ11W6hUw+JtJScClDZwrJJAQB6I7Isp/LsdM=
- secure: Ym8nx7nbfGYGo47my92M+deJykaiMkdZdb615EO51liv/xy/0aQ919Jpfieugc9d3zVnm+zFGPbpv4YzRpsik6OlVBNa4lP+BnQ27ptf5YcLWD8Hksi7845WFLecXMoaTCoYer/TvYZsIWJb2nSDMH9qbfZhnd1YZKuvUpK0rEU=
matrix:
- TEST_SUITE=test
- TEST_SUITE=cucumber
- TEST_SUITE=test
- TEST_SUITE=cucumber
branches:
only:
- master
- themes
notifications:
slack:
secure: "\
dNdKk6nahNURIUbO3ULhA09/vTEQjK0fNbgjVjeYPEvROHgQBP1cIP3AJy8aWs8rl5Yyow4Y\
GEilNRzKPz18AsFptVXofpwyqcBxaCfmHP809NX5PHBaadydveLm+TNVao2XeLXSWu+HUNAY\
O1AanCUbJSEyJTju347xCBGzESU=\
"
addons:
code_climate:
repo_token:
secure: "\
mAuvDu+nrzB8dOaLqsublDGt423mGRyZYM3vsrXh4Tf1sT+L1PxsRzU4gLmcV27HtX2Oq9\
DA4vsRURfABU0fIhwYkQuZqEcA3d8TL36BZcGEshG6MQ2AmnYsmFiTcxqV5bmlElHEqQuT\
5SUFXLafgZPBnL0qDwujQcHukID41sE=\
"

49
CONDUCT.markdown Normal file
View File

@@ -0,0 +1,49 @@
# 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, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
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 a project maintainer. All complaints
will be reviewed and investigated and will result in a response that is deemed
necessary and appropriate to the circumstances. Maintainers are obligated to
maintain confidentiality with regard to the reporter of an incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
[http://contributor-covenant.org/version/1/3/0/][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/3/0/

View File

@@ -1,91 +0,0 @@
Contribute
==========
So you've got an awesome idea to throw into Jekyll. Great! Please keep the
following in mind:
* **Contributions will not be accepted without tests or necessary documentation updates.**
* If you're creating a small fix or patch to an existing feature, just a simple
test will do. Please stay in the confines of the current test suite and use
[Shoulda](https://github.com/thoughtbot/shoulda/tree/master) and
[RR](https://github.com/rr/rr).
* 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. Jekyll uses Bundler, so a quick run of the bundle command and
you're all set!
$ bundle
Before you start, run the tests and make sure that they pass (to confirm your
environment is configured properly):
$ bundle exec rake test
$ bundle exec rake features
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 `rake`.
* 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.
Gotchas
-------
* If you want to bump the gem version, please put that in a separate commit.
This way, the maintainers can control when the gem gets released.
* 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!

99
Gemfile
View File

@@ -1,7 +1,96 @@
source 'https://rubygems.org'
gemspec
source "https://rubygems.org"
gemspec :name => "jekyll"
if ENV['BENCHMARK']
gem 'rbtrace'
gem 'stackprof'
gem "rake", "~> 11.0"
# Dependency of jekyll-mentions. RubyGems in Ruby 2.1 doesn't shield us from this.
gem "activesupport", "~> 4.2", :groups => [:test_legacy, :site] if RUBY_VERSION < '2.2.2'
group :development do
gem "launchy", "~> 2.3"
gem "pry"
unless RUBY_ENGINE == "jruby"
gem "pry-byebug"
end
end
#
group :test do
gem "rubocop", "~> 0.44.1"
gem "cucumber", "~> 2.1"
gem "jekyll_test_plugin"
gem "jekyll_test_plugin_malicious"
gem "codeclimate-test-reporter"
gem "rspec-mocks"
gem "nokogiri"
gem "rspec"
gem "test-theme", path: File.expand_path("./test/fixtures/test-theme", File.dirname(__FILE__))
gem "jruby-openssl" if RUBY_ENGINE == "jruby"
end
#
group :test_legacy do
if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2")
gem 'test-unit'
end
gem "redgreen"
gem "simplecov"
gem "minitest-reporters"
gem "minitest-profile"
gem "minitest"
gem "shoulda"
end
#
group :benchmark do
if ENV["BENCHMARK"]
gem "ruby-prof"
gem "benchmark-ips"
gem "stackprof"
gem "rbtrace"
end
end
#
group :jekyll_optional_dependencies do
gem "toml", "~> 0.1.0"
gem "coderay", "~> 1.1.0"
gem "jekyll-docs", :path => '../docs' if Dir.exist?('../docs') && ENV['JEKYLL_VERSION']
gem "jekyll-gist"
gem "jekyll-feed"
gem "jekyll-coffeescript"
gem "jekyll-redirect-from"
gem "jekyll-paginate"
gem "mime-types", "~> 3.0"
gem "kramdown", "~> 1.9"
gem "rdoc", "~> 4.2"
platform :ruby, :mswin, :mingw, :x64_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
end
#
group :site do
if ENV["PROOF"]
gem "html-proofer", "~> 2.0"
end
gem "jemoji", "0.5.1"
gem "jekyll-sitemap"
gem "jekyll-seo-tag"
gem "jekyll-avatar"
gem "jekyll-mentions"
end

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -1,36 +1,60 @@
# [Jekyll](http://jekyllrb.com/)
# [Jekyll](https://jekyllrb.com/)
[![Gem Version](https://badge.fury.io/rb/jekyll.svg)](https://rubygems.org/gems/jekyll)
[![Build Status](https://secure.travis-ci.org/jekyll/jekyll.svg?branch=master)](https://travis-ci.org/jekyll/jekyll)
[![Code Climate](http://img.shields.io/codeclimate/github/jekyll/jekyll.svg)](https://codeclimate.com/github/jekyll/jekyll)
[![Dependency Status](https://gemnasium.com/jekyll/jekyll.svg)](https://gemnasium.com/jekyll/jekyll)
[![Security](https://hakiri.io/github/jekyll/jekyll/master.svg)](https://hakiri.io/github/jekyll/jekyll/master)
[![Gem Version](https://img.shields.io/gem/v/jekyll.svg)][ruby-gems]
[![Linux Build Status](https://img.shields.io/travis/jekyll/jekyll/master.svg?label=Linux%20build)][travis]
[![Windows Build status](https://img.shields.io/appveyor/ci/jekyll/jekyll/master.svg?label=Windows%20build)][appveyor]
[![Test Coverage](https://img.shields.io/codeclimate/coverage/github/jekyll/jekyll.svg)][coverage]
[![Code Climate](https://img.shields.io/codeclimate/github/jekyll/jekyll.svg)][codeclimate]
[![Dependency Status](https://img.shields.io/gemnasium/jekyll/jekyll.svg)][gemnasium]
[![Security](https://hakiri.io/github/jekyll/jekyll/master.svg)][hakiri]
By Tom Preston-Werner, Nick Quaranto, Parker Moore, and many [awesome contributors](https://github.com/jekyll/jekyll/graphs/contributors)!
[ruby-gems]: https://rubygems.org/gems/jekyll
[gemnasium]: https://gemnasium.com/jekyll/jekyll
[codeclimate]: https://codeclimate.com/github/jekyll/jekyll
[coverage]: https://codeclimate.com/github/jekyll/jekyll/coverage
[hakiri]: https://hakiri.io/github/jekyll/jekyll/master
[travis]: https://travis-ci.org/jekyll/jekyll
[appveyor]: https://ci.appveyor.com/project/jekyll/jekyll/branch/master
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.
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](https://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: https://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/)
* [Install](https://jekyllrb.com/docs/installation/) the gem
* Read up about its [Usage](https://jekyllrb.com/docs/usage/) and [Configuration](https://jekyllrb.com/docs/configuration/)
* Take a gander at some existing [Sites](https://wiki.github.com/jekyll/jekyll/sites)
* Fork and [Contribute](http://jekyllrb.com/docs/contributing/) your own modifications
* Have questions? Check out [`#jekyll` on irc.freenode.net](https://botbot.me/freenode/jekyll/).
* [Fork](https://github.com/jekyll/jekyll/fork) and [Contribute](https://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.markdown) 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](https://github.com/parkr), [@envygeeks](https://github.com/envygeeks), or [@mattr-](https://github.com/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
* Learn how the [YAML Front Matter](https://jekyllrb.com/docs/frontmatter/) works
* Put information on your site with [Variables](https://jekyllrb.com/docs/variables/)
* Customize the [Permalinks](https://jekyllrb.com/docs/permalinks/) your posts are generated with
* Use the built-in [Liquid Extensions](https://jekyllrb.com/docs/templates/) to make your life easier
* Use custom [Plugins](https://jekyllrb.com/docs/plugins/) to generate content specific to your site
## License
See [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE).
See the [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE) file.

202
Rakefile
View File

@@ -7,6 +7,8 @@ require 'yaml'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w[lib]))
require 'jekyll/version'
Dir.glob('rake/**.rake').each { |f| import f }
#############################################################################
#
# Helper functions
@@ -14,19 +16,23 @@ require 'jekyll/version'
#############################################################################
def name
@name ||= File.basename(Dir['*.gemspec'].first, ".*")
"jekyll"
end
def version
Jekyll::VERSION
end
def docs_name
"#{name}-docs"
end
def gemspec_file
"#{name}.gemspec"
end
def gem_file
"#{name}-#{version}.gem"
"#{name}-#{Gem::Version.new(version).to_s}.gem"
end
def normalize_bullets(markdown)
@@ -81,6 +87,34 @@ def converted_history(markdown)
normalize_bullets(markdown)))))
end
def siteify_file(file, overrides_front_matter = {})
abort "You seem to have misplaced your #{file} file. I can haz?" unless File.exists?(file)
title = begin
File.read(file).match(/\A# (.*)$/)[1]
rescue
File.basename(file, ".*").downcase.capitalize
end
slug = File.basename(file, ".markdown").downcase
front_matter = {
"title" => title,
"layout" => "docs",
"permalink" => "/docs/#{slug}/",
"note" => "This file is autogenerated. Edit /#{file} instead."
}.merge(overrides_front_matter)
contents = "#{front_matter.to_yaml}---\n\n#{content_for(file)}"
File.write("site/_docs/#{slug}.md", contents)
end
def content_for(file)
contents = File.read(file)
case file
when "History.markdown"
converted_history(contents)
else
contents.gsub(/\A# .*\n\n?/, "")
end
end
#############################################################################
#
# Standard tasks
@@ -89,6 +123,7 @@ end
multitask :default => [:test, :features]
task :spec => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
@@ -123,166 +158,3 @@ desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/#{name}.rb"
end
#############################################################################
#
# Site tasks - http://jekyllrb.com
#
#############################################################################
namespace :site do
desc "Generate and view the site locally"
task :preview do
require "launchy"
require "jekyll"
# Yep, it's a hack! Wait a few seconds for the Jekyll site to generate and
# then open it in a browser. Someday we can do better than this, I hope.
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
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 "No gh-pages directory found. Run the following commands first:"
puts " `git clone git@github.com:jekyll/jekyll gh-pages"
puts " `cd gh-pages"
puts " `git checkout gh-pages`"
exit(1)
end
# Ensure gh-pages branch is up to date.
Dir.chdir('gh-pages') do
sh "git pull origin gh-pages"
end
# Copy to gh-pages dir.
puts "Copying site to gh-pages branch..."
Dir.glob("site/*") do |path|
next if path.include? "_site"
sh "cp -R #{path} gh-pages/"
end
# Commit and push.
puts "Committing and pushing to GitHub Pages..."
sha = `git log`.match(/[a-z0-9]{40}/)[0]
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/",
"prev_section" => "contributing"
}
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.write(version) }
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
#############################################################################
#
# Packaging tasks
#
#############################################################################
desc "Release #{name} v#{version}"
task :release => :build do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
exit!
end
sh "git commit --allow-empty -m 'Release :gem: #{version}'"
sh "git tag v#{version}"
sh "git push origin master"
sh "git push origin v#{version}"
sh "gem push pkg/#{name}-#{version}.gem"
end
desc "Build #{name} v#{version} into pkg/"
task :build do
mkdir_p "pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end

42
appveyor.yml Normal file
View File

@@ -0,0 +1,42 @@
version: "{build}"
clone_depth: 10
branches:
only:
- master
- themes
build: off
install:
- SET PATH=C:\Ruby%RUBY_FOLDER_VER%\bin;%PATH%
- bundle install --retry 5 --jobs=%NUMBER_OF_PROCESSORS% --clean --path vendor\bundle
environment:
BUNDLE_WITHOUT: "benchmark:site:development"
matrix:
- RUBY_FOLDER_VER: "23"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "23"
TEST_SUITE: "cucumber"
- RUBY_FOLDER_VER: "23"
TEST_SUITE: "fmt"
- RUBY_FOLDER_VER: "23"
TEST_SUITE: "default-site"
- RUBY_FOLDER_VER: "23-x64"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "22"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "21"
TEST_SUITE: "test"
test_script:
- ruby --version
- gem --version
- bundler --version
- bash ./script/cibuild
cache:
# If one of the files after the right arrow changes, cache will be skipped
- 'vendor\bundle -> appveyor.yml,Gemfile,jekyll.gemspec'

View File

@@ -0,0 +1,20 @@
require "liquid"
require "benchmark/ips"
puts "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
puts "Liquid #{Liquid::VERSION}"
template1 = '{% capture foobar %}foo{{ bar }}{% endcapture %}{{ foo }}{{ foobar }}'
template2 = '{% assign foobar = "foo" | append: bar %}{{ foobar }}'
def render(template)
Liquid::Template.parse(template).render("bar" => "42")
end
puts render(template1)
puts render(template2)
Benchmark.ips do |x|
x.report('capture') { render(template1) }
x.report('assign') { render(template2) }
end

View File

@@ -0,0 +1,15 @@
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?("/") }
x.report('no slash [-1, 1]') { path_without_ending_slash[-1, 1] == "/" }
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?("/") }
x.report('slash [-1, 1]') { path_with_ending_slash[-1, 1] == "/" }
end

View File

@@ -0,0 +1,54 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
# For this pull request, which changes Page#dir
# https://github.com/jekyll/jekyll/pull/4403
FORWARD_SLASH = '/'.freeze
def pre_pr(url)
url[-1, 1] == FORWARD_SLASH ? url : File.dirname(url)
end
def pr(url)
if url.end_with?(FORWARD_SLASH)
url
else
url_dir = File.dirname(url)
url_dir.end_with?(FORWARD_SLASH) ? url_dir : "#{url_dir}/"
end
end
def envygeeks(url)
return url if url.end_with?(FORWARD_SLASH) || url == FORWARD_SLASH
url = File.dirname(url)
url == FORWARD_SLASH ? url : "#{url}/"
end
# Just a slash
Benchmark.ips do |x|
path = '/'
x.report("pre_pr:#{path}") { pre_pr(path) }
x.report("pr:#{path}") { pr(path) }
x.report("envygeeks:#{path}") { pr(path) }
x.compare!
end
# No trailing slash
Benchmark.ips do |x|
path = '/some/very/very/long/path/to/a/file/i/like'
x.report("pre_pr:#{path}") { pre_pr(path) }
x.report("pr:#{path}") { pr(path) }
x.report("envygeeks:#{path}") { pr(path) }
x.compare!
end
# No trailing slash
Benchmark.ips do |x|
path = '/some/very/very/long/path/to/a/file/i/like/'
x.report("pre_pr:#{path}") { pre_pr(path) }
x.report("pr:#{path}") { pr(path) }
x.report("envygeeks:#{path}") { pr(path) }
x.compare!
end

View File

@@ -14,4 +14,3 @@ Benchmark.ips do |x|
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

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,51 @@
#!/usr/bin/env ruby
require 'benchmark/ips'
# For this pull request, which changes Page#dir
# https://github.com/jekyll/jekyll/pull/4403
CONTENT_CONTAINING = <<-HTML.freeze
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Jemoji</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/css/screen.css">
</head>
<body class="wrap">
<p><img class="emoji" title=":+1:" alt=":+1:" src="https://assets.github.com/images/icons/emoji/unicode/1f44d.png" height="20" width="20" align="absmiddle"></p>
</body>
</html>
HTML
CONTENT_NOT_CONTAINING = <<-HTML.freeze
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Jemoji</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/css/screen.css">
</head>
<body class="wrap">
<p><img class="emoji" title=":+1:" alt=":+1:" src="https://assets.github.com/images/icons/emoji/unicode/1f44d.png" height="20" width="20" align="absmiddle"></p>
</body>
</html>
HTML
Benchmark.ips do |x|
x.report("no body include?") { CONTENT_NOT_CONTAINING.include?('<body') }
x.report("no body regexp") { CONTENT_NOT_CONTAINING =~ /<\s*body/ }
x.compare!
end
# No trailing slash
Benchmark.ips do |x|
x.report("with body include?") { CONTENT_CONTAINING.include?('<body') }
x.report("with body regexp") { CONTENT_CONTAINING =~ /<\s*body/ }
x.compare!
end

View File

@@ -8,6 +8,6 @@ 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') }
x.report('#sub') { str.sub('some', 'a') }
x.report('#sub!') { str.sub!('some', 'a') }
end

View File

@@ -1,42 +0,0 @@
#!/usr/bin/env ruby
STDOUT.sync = true
$:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
require 'jekyll'
require 'mercenary'
%w[jekyll-import].each do |blessed_gem|
begin
require blessed_gem
rescue LoadError
end
end
Jekyll::PluginManager.require_from_bundler
Jekyll::Deprecator.process(ARGV)
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]'
p.option 'source', '-s', '--source [DIR]', 'Source directory (defaults to ./)'
p.option 'destination', '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)'
p.option 'safe', '--safe', 'Safe mode (defaults to false)'
p.option 'plugins', '-p', '--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]', Array, 'Plugins directory (defaults to ./_plugins)'
p.option 'layouts', '--layouts DIR', String, 'Layouts directory (defaults to ./_layouts)'
Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
p.action do |args, options|
if args.empty?
puts p
else
unless p.has_command?(args.first)
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
end
end
end
end

View File

@@ -0,0 +1,25 @@
# Affinity Team Captains
**This guide is for affinity team captains.** These special people are **team maintainers** of one of our [affinity teams][] and help triage and evaluate the issues and contributions of others. You may find what is written here interesting, but its definitely not for everyone.
## Affinity teams & their captains
The Jekyll project uses [affinity teams][] to help break up the work of incoming issues and pull requests from community members. We receive a sizeable number of issues and pull requests each week; the use of affinity teams helps distribute this load across a number of specialized groups instead of pushing it all onto @jekyll/core.
## Responsibilities of Team Captains
Each affinity team has a few captains who manage the issues and pull requests for that team. When an issue or PR is opened with a `/cc` for a given affinity team, @jekyllbot automatically assigns a random affinity team captain to the issue to triage it. They have access to add labels, reassign the issue, give LGTM's, and so forth. While they do not merge PR's today, they are still asked to review PR's for parts of the codebase under their purview.
## How do I become a team captain?
Just ask! Feel free to open an issue on `jekyll/jekyll` and add `/cc @jekyll/core`. We can add you. :smile:
Alternatively, you can email or otherwise reach out to [@parkr](https://github.com/parkr) directly if you prefer the more private route.
## Ugh, I'm tired and don't have time to be a captain anymore. What now?
No sweat at all! Email [@parkr](https://github.com/parkr) and ask to be removed. Alternatively, you should be able to go to your team's page on GitHub.com (go to https://github.com/jekyll, click "Teams", click the link to your team) and change your status to either "member" or leave the team.
We realize that being a captain is no easy feat so we want to make it a great experience. As always, communicate as much as you can with us about what is working, and what isn't. Thanks for dedicating some time to Jekyll! :sparkles:
[affinity teams]: https://teams.jekyllrb.com/

27
docs/avoiding-burnout.md Normal file
View File

@@ -0,0 +1,27 @@
# Maintainers: Avoiding Burnout
**This guide is for maintainers.** These special people have **write access** to one or more of Jekyll's repositories and help merge the contributions of others. You may find what is written here interesting, but its definitely not for everyone.
# 1. Use Jekyll
Maintainers of Jekyll should be using it regularly. This is partly because you won't be a good maintainer unless you can put yourself in the shoes of our users but also because you may decide to stop using Jekyll and at that point you should also decide not to be a maintainer and find other things to work on.
# 2. No Guilt About Leaving
All maintainers can stop working on Jekyll at any time without any guilt or explanation (like a job). We may still ask for your help with questions after you leave but you are under no obligation to answer them. Like a job, if you create a big mess and then leave you still have no obligations but we may think less of you (or, realistically, probably just revert the problematic work). Like a job, you should probably take a break from Jekyll at least a few times a year.
This also means contributors should be consumers. If a maintainer finds they are not using a project in the real-world, they should reconsider their involvement with the project.
# 3. Prioritise Maintainers Over Users
It's important to be user-focused but ultimately, as long as you follow #1 above, Jekyll's minimum number of users will be the number of maintainers. However, if Jekyll has no maintainers it will quickly become useless to all users and the project will die. As a result, no user complaint, behaviour or need takes priority over the burnout of maintainers. If users do not like the direction of the project, the easiest way to influence it is to make significant, high-quality code contributions and become a maintainer.
# 4. Learn To Say No
Jekyll gets a lot of feature requests, non-reproducible bug reports, usage questions and PRs we won't accept. These should be closed out as soon as we realise that they aren't going to be resolved or merged. This is kinder than deciding this after a long period of review. Our issue tracker should reflect work to be done.
---
Thanks to https://gist.github.com/ryanflorence/124070e7c4b3839d4573 which influenced this document.
Thanks to [Homebrew's "Avoiding Burnout" document](https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Maintainers-Avoiding-Burnout.md) for providing a perfect base for this document.

View File

@@ -0,0 +1,35 @@
# Contributors: Becoming a Maintainer
**This guide is for contributors.** These special people have contributed to one or more of Jekyll's repositories, but do not yet have write access to any. You may find what is written here interesting, but its definitely not for everyone.
So you want to become a maintainer of a Jekyll project? We'd love to have you! Here are some things we like to see from community members before we promote them to maintainers.
## 1. Use Jekyll
You want to maintain Jekyll? Use it often. Do weird things with it. Do normal things with it. Does it work? Does it have any weaknesses? Is there a gap in the product that you think should be filled?
## 2. Help Triage Issues
Watch the repository you're interested in. Join [an Affinity Team](https://teams.jekyllrb.com) and receive mentions regarding a particular interest area of the project. When you receive a notification for an issue that has not been triaged by a maintainer, dive in. Can you reproduce the issue? Can you determine the fix? [More tips on Triaging an Issue in our maintainer guide](triaging-an-issue.md). Every maintainer loves an issue that is resolved before they get to it. :smiley:
## 3. Write Documentation
Good documentation means less confusion for our users and fewer issues to triage. Documentation is always in need of fixes and updates as we change the code. Read through the documentation during your normal usage of the product and submit changes as you feel they are necessary.
## 4. Write Code
As a maintainer, you will be reviewing pull requests which update code. You should feel comfortable with the Jekyll codebase enough to confidently review any pull request put forward. In order to become more comfortable, write some code of your own and send a pull request. A great place to start is with any issue labeled "bug" in the issue tracker. Write a test which replicates the problem and fails, then work on fixing the code such that the test passes.
## 5. Review Pull Requests
Start by reviewing one pull request a week. Leave detailed comments and [follow our guide for reviewing pull requests](reviewing-a-pull-request.md).
## 6. Ask!
Open an issue describing your contributions to the project and why you wish to be a maintainer. Issues are nice because you can easily reference where you have demonstrated that you help triage issues, write code & documentation, and review pull requests. You may also email any maintainer privately if you do not feel comfortable asking in the open.
We would love to expand the team and look forward to many more community members becoming maintainers!
# Helping Out Elsewhere
In addition to maintainers of our core and plugin code, the Jekyll team is comprised of moderators for our forums. These helpful community members take a look at the topics posted to https://help.jekyllrb.com and ensure they are properly categorized and are acceptable under our Code of Conduct. If you would like to be a moderator, email one of the maintainers with links to where you have answered questions and a request to be added as a moderator. More help is always welcome.

View File

@@ -0,0 +1,50 @@
# Maintainers: Merging a Pull Request
**This guide is for maintainers.** These special people have **write access** to one or more of Jekyll's repositories and help merge the contributions of others. You may find what is written here interesting, but its definitely not for everyone.
## Code Review
All pull requests should be subject to code review. Code review is a [foundational value](https://blog.fullstory.com/what-we-learned-from-google-code-reviews-arent-just-for-catching-bugs-b125a13aa292) of good engineering teams. Besides providing validation of correctness, it promotes a sense of community and gives other maintainers understanding of all parts of the code base. In short, code review is crucial to a healthy open source project.
**Read our guide for [Reviewing a pull request](reviewing-a-pull-request.md) before merging.** Notably, the change must have tests if for code, and at least two maintainers must give it an OK.
## Merging
We have [a helpful little bot](https://github.com/jekyllbot) which we use to merge pull requests. We don't use the GitHub.com interface for two reasons:
1. You can't modify anything on mobile (e.g. titles, labels)
2. Provide a consistent paper trail in the `History.markdown` file for each release
To merge a pull request, leave a comment thanking the contributor, then add the special merge request:
```text
Thank you very much for your contribution. Folks like you make this project and community strong. :heart:
@jekyllbot: merge +dev
```
The merge request is made up of three things:
1. `@jekyllbot:` this is the prefix our bot looks for when processing commands
2. `merge` the command
3. `+dev` the category to which the changes belong
The categories match the H3's in the history/changelog file, and they are:
1. Major Enhancements (`+major`) major updates or breaking changes to the code which necessitate a major version bump (v3 ~> v4)
2. Minor Enhancements (`+minor`) minor updates (feature, enhancement) which necessitate a minor version bump (v3.1 ~> v3.2)
3. Bug Fixes (`+bug`) corrections to code which do not change or add functionality, which necessitate a patch version bump (v3.1.0 ~> v3.1.1)
4. Site Enhancements (`+site`) changes to the source of https://jekyllrb.com, found in `site/`
5. Development Fixes (`+dev`) changes which do not affect user-facing functionality or documentation, such as test fixes or bumping internal dependencies
Once @jekyllbot has merged the pull request, you should see three things:
1. A successful merge
2. Addition of labels for the necessary category if they aren't already applied
3. A commit to the `History.markdown` file which adds a note about the change
If you forget the category, that's just fine. You can always go back and move the line to the proper category header later. The category is always necessary for `jekyll/jekyll`, but many plugins have too few changes to necessitate changelog categories.
## Rejoice
You did it! Thanks for being a maintainer for one of our official Jekyll projects. Your work means the world to our thousands of users who rely on Jekyll daily. :heart:

13
docs/readme.md Normal file
View File

@@ -0,0 +1,13 @@
# Maintaining Jekyll
Hello! This is where we document various processes for maintaining Jekyll. Being a maintainer for any Jekyll project is a big responsibility, so we put together some helpful documentation for various tasks you might do as a maintainer.
1. [Triaging and issue](triaging-an-issue.md)
2. [Reviewing a pull request](reviewing-a-pull-request.md)
3. [Merging a pull request](merging-a-pull-request.md)
4. [Avoiding burnout](avoiding-burnout.md)
5. [Special Labels](special-labels.md)
Interested in becoming a maintainer? Here is some documentation for **contributors**:
1. [Becoming a maintainer](becoming-a-maintainer.md)

View File

@@ -0,0 +1,44 @@
# Maintainers: Reviewing a Pull Request
**This guide is for maintainers.** These special people have **write access** to one or more of Jekyll's repositories and help merge the contributions of others. You may find what is written here interesting, but its definitely not for everyone.
## Respond Kindly
Above all else, please review a pull request kindly. Our community can only be strong if we make it a welcoming and inclusive environment. To further promote this, the Jekyll community is governed by a [Code of Conduct](../CONDUCT.markdown) by which all community members must abide.
Use emoji liberally :heart: :tada: :sparkles: :confetti_ball: and feel free to be emotive!! Contributions keep this project moving forward and we're always happy to receive them, even if the pull request isn't ultimately merged.
Mike McQuaid's post on the GitHub blog entitled ["Kindly Closing Pull Requests"](https://github.com/blog/2124-kindly-closing-pull-requests) is a great place to start. It describes various scenarios in which it would be acceptable to close a pull request for reasons other than lack of technical integrity or accuracy. Part of being kind is responding to and resolving pull requests quickly.
## Respond Quickly
We should be able to review all pull requests within one week. The only time initial review should take longer is if all the maintainers mysteriously took vacation during the same week. Promptness encourages frequent, high-quality contributions from community members and other maintainers.
If your response requires a response on the part of the author, please add the `pending-feedback` tag. @jekyllbot will automatically remove the tag once the author of the pull request responds.
## Resolve Quickly
Similarly, we should aim to resolve pull requests quickly. If a pull request introduces a feature which does not fit into the core purpose or goal of the project, close it promptly with a kind explanation of why it is not acceptable.
Leave detailed comments wherever possible. Provide the contributor with context around why the change you are requesting is necessary, or why the question you are asking is important to resolve. The more context we can clearly communicate to the contributor, the better able the contributor is to provide high-quality patches.
You may close a pull request if more than 30 days pass without a response from the author.
In some cases, review will involve many weeks of back-and-forth. As long as communication continues, this is fine. Ideally, any PR would be capable of resolution within 30 days of it being opened.
## Look for Tests
If this is a code change, are there tests for the updated or added behaviour? Shipping a version with bugs is inevitable, but ensuring changes are tested helps keep bugs and regressions to a minimum.
## CI Must Pass
It is fine to ask a contributor to investigate failures on Travis and patch them up before you begin your review. It is helpful to leave a message for the contributor indicating that the tests have failed and that no review will occur before the tests pass. If they ask for help, take a look and assist if you can.
## Rule of Two
A pull request may be merged once two maintainers have reviewed the pull request and indicated that it is acceptable to them. There is no need to wait for a third unless one of the two reviewers wishes for another set of eyes.
## Think Security
We owe it to our users to ensure that using a theme from the community or building someone else's site doesn't come with built-in security vulnerabilities. Things like where files may be read from and written to are important to keep secure. Jekyll is also the basis for hosted services such as [GitHub Pages](https://pages.github.com), which cannot upgrade when security issues are introduced.

17
docs/special-labels.md Normal file
View File

@@ -0,0 +1,17 @@
# Maintainers: Special Labels
**This guide is for maintainers.** These special people have **write access** to one or more of Jekyll's repositories and help merge the contributions of others. You may find what is written here interesting, but its definitely not for everyone.
We use a series of "special labels" on GitHub.com to automate handling of some parts of the pull request and issue process. @jekyllbot may automatically apply or remove certain labels based on actions taken by users or maintainers. Below are the labels and how they work:
## `pending-feedback`
This label is used to indicate that we need more information from the issue/PR author in order to continue. It may be that you need more info before you can properly triage a bug report, or that you have some unanswered questions about a PR that need to be resolved before moving forward. You can safely ignore any issue with this label, as it is waiting for feedback.
## `needs-work` & `pending-rebase`
These labels are used to indicate that the Git state of a pull request must change. Both are removed once a push is registered (a "synchronize" event for the pull request) and the pull request becomes mergable. Add `needs-work` to a PR if, after your review, it requires code changes. Add `pending-rebase` to a PR if the code is fine but the branch is not automatically mergable with the target branch (e.g. `master`).
## `stale`
This label is automatically added and removed by @jekyllbot based on activity on an issue or pull request. The rules for this label are laid out in [Triaging an Issue: Staleness and automatic closure](triaging-an-issue.md#staleness-and-automatic-closure).

51
docs/triaging-an-issue.md Normal file
View File

@@ -0,0 +1,51 @@
# Maintainers: Triaging an Issue
**This guide is for maintainers.** These special people have **write access** to one or more of Jekyll's repositories and help merge the contributions of others. You may find what is written here interesting, but its definitely not for everyone.
Before evaluating an issue, it is important to identify if it is a feature
request or a bug. For the Jekyll project the following definitions are used
to identify a feature or a bug:
**Feature** - A feature is defined as a request that adds functionality to
Jekyll outside of its current capabilities.
**Bug** - A bug is defined as an issue that identifies an error that a user
(or users) encounter when using current Jekyll functionalities.
## Feature?
If the issue describes a feature request, ask:
1. Is this a setting? [Settings are a crutch](http://ben.balter.com/2016/03/08/optimizing-for-power-users-and-edge-cases/#settings-are-a-crutch) for doing "the right thing". Settings usually point to a bad default or an edge case that could be solved easily with a plugin. Keep the :christmas_tree: of settings as small as possible so as not to reduce the usability of the product. We like the philosophy "decisions not options."
2. Would at least 80% of users find it useful? If even a quarter of our users won't use it, it's very likely that the request doesn't fit our product's core goal.
3. Is there another way to accomplish the end goal of the request? Most feature requests are due to bad documentation for or understanding of a pre-existing feature. See if you can clarify the end goal of the request. What is the user trying to do? Could they accomplish that goal through another feature we already support?
4. Even if 80% of our users will use it, does it fit the core goal of our project? We are writing a tool for making static websites, not a swiss army knife for publishing more generally.
Feel free to get others' opinions and ask questions of the issue author, but depending upon the answers to the questions above, it may be out of scope for our project.
If the request is within scope, prioritize it on the product roadmap with the other maintainers. Apply the appropriate tags and ensure the right people have weighed in to define the feature's scope and implementation. If you want to be the _best ever_, submit a PR yourself which adds the feature.
## Bug?
### Reproducibility
If the bug has clear reproduction steps, take a minute to try them. If it helps, write a test in our test suite for the scenario which replicates the problem. Can you reliably replicate the issue?
If you can't replicate the issue, post your replication steps which didn't work and ask for clarification from the issue author.
### Supported Platform
Is the author using a supported platform? We support the latest versions of macOS, Ubuntu, Debian, CentOS, Fedora, and Arch Linux.
You may close the issue immediately if the author cannot reproduce the issue on a supported platform. For Windows-related problems, leave a comment letting the user know that Windows is not officially supported, but that they may absolutely continue using the issue to communicate with folks from `@jekyll/windows` to further investigate. Additionally, you can point them to Jekyll Talk (https://talk.jekyllrb.com) as a means of getting support from the community.
If the user is experiencing issues with GitHub Pages or another hosted platform that we cannot reproduce, please direct them to the platform's support channel and close the issue.
### What they wanted vs. what they got
An issue without a clear explanation of what the user got and what they were expecting to get is not an issue we can accurately respond to. If the user doesn't provide this information, please ask for clarification and apply the `pending-feedback` label. This information helps us build test cases such that we do not break the behaviour again in the future. The `pending-feedback` label will be removed automatically once the issue author posts a reply.
Is what they wanted to get something we want to happen? Sometimes a bug report is actually masquerading as a feature request. See the guidance above for handling feature requests.
### Staleness and automatic closure
@jekyllbot will automatically mark issues as `stale` if no activity occurs for at least one month. @jekyllbot leaves a comment asking for information about reproducibility in current versions. If no one responds after another month, the issue is automatically closed.

55
exe/jekyll Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env ruby
STDOUT.sync = true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "jekyll"
require "mercenary"
Jekyll::PluginManager.require_from_bundler
Jekyll::Deprecator.process(ARGV)
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]"
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"
Jekyll::External.require_if_present(Jekyll::External.blessed_gems) do |g|
cmd = g.split("-").last
p.command(cmd.to_sym) do |c|
c.syntax cmd
c.action do
Jekyll.logger.abort_with "You must install the '#{g}' gem" \
" to use the 'jekyll #{cmd}' command."
end
end
end
Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
p.action do |args, _|
if args.empty?
Jekyll.logger.error "A subcommand is required."
puts p
abort
else
subcommand = args.first
unless p.has_command? subcommand
Jekyll.logger.abort_with "fatal: 'jekyll #{args.first}' could not" \
" be found. You may need to install the jekyll-#{args.first} gem" \
" or a related gem to be able to use this subcommand."
end
end
end
end

View File

@@ -8,13 +8,13 @@ Feature: Collections
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>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p><code>Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html"
Then I should get a zero exit status
And the _site directory should exist
And the "_site/methods/configuration.html" file should not exist
Scenario: Rendered collection
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have an "collection_metadata.html" page that contains "Methods metadata: {{ site.collections.methods.foo }} {{ site.collections.methods }}"
Given I have an "index.html" page that contains "Collections: output => {{ site.collections[0].output }} label => {{ site.collections[0].label }}"
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:
"""
@@ -24,8 +24,10 @@ Feature: Collections
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
Then I should get a zero exit status
And 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"
@@ -40,11 +42,12 @@ Feature: Collections
permalink: /:collection/:path/
"""
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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 }}"
Given I have an "index.html" page that contains "Collections: output => {{ site.collections[0].output }} label => {{ site.collections[0].label }} foo => {{ site.collections[0].foo }}"
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:
@@ -55,8 +58,11 @@ Feature: Collections
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
Then I should get a zero exit status
And 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 "foo => bar" 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"
@@ -69,8 +75,9 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then I should get a zero exit status
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "Collections: _methods/collection/entries _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 %}"
@@ -81,8 +88,9 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then I should get a zero exit status
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "Collections: _methods/collection/entries _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 %}"
@@ -93,11 +101,12 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then I should get a zero exit status
Then the _site directory should exist
And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
And I should see "All documents: _methods/collection/entries _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 }}"
Given I have an "index.html" page that contains "Second document's output: {{ site.documents[1].output }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
@@ -105,8 +114,9 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then I should get a zero exit status
Then the _site directory should exist
And I should see "First document's output: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>" in "_site/index.html"
And I should see "Second 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 }}"
@@ -117,11 +127,12 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Item count: 1" in "_site/index.html"
Then I should get a zero exit status
And 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 }}"
Given I have an "index.html" page that contains "{% assign items = site.methods | sort: 'title' %}2. of {{ items.size }}: {{ items[1].output }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
@@ -129,11 +140,12 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "1. of 5: <p>Page without title.</p>" in "_site/index.html"
Then I should get a zero exit status
And the _site directory should exist
And I should see "2. of 8: <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 %}"
Given I have an "index.html" page that contains "Collections: {% assign methods = site.methods | sort: 'relative_path' %}{{ methods | map:"title" | join: ", " }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
@@ -141,5 +153,22 @@ Feature: Collections
- methods
"""
When I run jekyll build
Then I should get a zero exit status
Then the _site directory should exist
And I should see "Collections: Jekyll.configuration, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html"
And I should see "Collections: Collection#entries, Jekyll.configuration, Jekyll.escape, Jekyll.sanitized_path, Site#generate, Initialize, Site#generate," in "_site/index.html"
Scenario: Rendered collection with date/dateless filename
Given I have an "index.html" page that contains "Collections: {% for method in site.thanksgiving %}{{ method.title }} {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
thanksgiving:
output: true
"""
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "Thanksgiving Black Friday" in "_site/index.html"
And I should see "Happy Thanksgiving" in "_site/thanksgiving/2015-11-26-thanksgiving.html"
And I should see "Black Friday" in "_site/thanksgiving/black-friday.html"

View File

@@ -13,7 +13,8 @@ Feature: Create sites
Scenario: Basic site
Given I have an "index.html" file that contains "Basic Site"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Basic Site" in "_site/index.html"
Scenario: Basic site with a post
@@ -22,7 +23,8 @@ Feature: Create sites
| title | date | content |
| Hackers | 2009-03-27 | My First Exploit |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "My First Exploit" in "_site/2009/03/27/hackers.html"
Scenario: Basic site with layout and a page
@@ -30,7 +32,8 @@ Feature: Create sites
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
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Page Layout: Basic Site with Layout" in "_site/index.html"
Scenario: Basic site with layout and a post
@@ -41,7 +44,8 @@ Feature: Create sites
| 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
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -52,7 +56,8 @@ Feature: Create sites
| 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
Then I should get a zero exit status
And 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 layouts, pages, posts and files
@@ -75,7 +80,8 @@ Feature: Create sites
| 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
Then I should get a zero exit status
And 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"
And I should see "" in "_site/another_file"
@@ -90,7 +96,8 @@ Feature: Create sites
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
Then the _site directory should exist
Then I should get a zero exit status
And 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 subdir include tag
@@ -99,7 +106,8 @@ Feature: Create sites
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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"
Scenario: Basic site with nested include tag
@@ -108,31 +116,35 @@ Feature: Create sites
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 run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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 2020-01-31-entry2 %}"
Given I have an "index.html" page that contains "URL: {% post_url 2008-01-01-entry2 %}"
And I have a configuration file with "permalink" set to "pretty"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
| entry2 | 2008-01-01 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
Then I should get a zero exit status
And 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
Then I should get a zero exit status
And 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
Then I should get a zero exit status
And 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"
@@ -146,13 +158,48 @@ Feature: Create sites
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
Then I should get a zero exit status
And 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
Then I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And the "_site/2020/12/31/entry1.html" file should exist
Scenario: Basic site with layouts, posts and related posts
Given I have a _layouts directory
And I have a page layout that contains "Page {{ page.title }}: {{ content }}"
And I have a post layout that contains "Post {{ page.title }}: {{ content }}Related posts: {{ site.related_posts | size }}"
And I have an "index.html" page with layout "page" that contains "Site contains {{ site.pages.size }} pages and {{ site.posts.size }} posts; Related posts: {{ site.related_posts | size }}"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2009-03-27 | post | content for entry1. |
| entry2 | 2009-04-27 | post | content for entry2. |
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "Page : Site contains 1 pages and 2 posts; Related posts: 0" in "_site/index.html"
And I should see "Post entry1: <p>content for entry1.</p>\nRelated posts: 1" in "_site/2009/03/27/entry1.html"
And I should see "Post entry2: <p>content for entry2.</p>\nRelated posts: 1" in "_site/2009/04/27/entry2.html"

View File

@@ -10,7 +10,8 @@ Feature: Draft Posts
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll build --drafts
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Not baked yet." in "_site/recipe.html"
Scenario: Don't preview a draft
@@ -21,7 +22,8 @@ Feature: Draft Posts
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Don't preview a draft that is not published
@@ -32,7 +34,8 @@ Feature: Draft Posts
| 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
Then I should get a zero exit status
And the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Use page.path variable
@@ -42,5 +45,6 @@ Feature: Draft Posts
| 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.textile" in "_site/recipe.html"
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post path: _drafts/recipe.markdown" in "_site/recipe.html"

View File

@@ -11,7 +11,8 @@ Feature: Embed filters
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see today's date in "_site/2009/03/27/star-wars.html"
Scenario: Escape text for XML
@@ -20,11 +21,10 @@ Feature: Embed filters
And I have the following post:
| title | date | layout | content |
| Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ page.title | xml_escape }}"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Star &amp; Wars" in "_site/2009/03/27/star-wars.html"
Scenario: Calculate number of words
@@ -33,9 +33,10 @@ Feature: Embed filters
And I have the following post:
| title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ content | xml_escape }}"
And I have a default layout that contains "{{ content | number_of_words }}"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "7" in "_site/2009/03/27/star-wars.html"
Scenario: Convert an array into a sentence
@@ -46,20 +47,34 @@ Feature: Embed filters
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "scifi, movies, and force" in "_site/2009/03/27/star-wars.html"
Scenario: Textilize a given string
Scenario: Markdownify a given string
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}"
And I have a default layout that contains "By {{ '_Obi-wan_' | markdownify }}"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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: Markdownify a given inline string
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "By {{ '_Obi-wan_' | markdownify:'inline' }}"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "By <em>Obi-wan</em>" 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:
@@ -70,38 +85,37 @@ Feature: Embed filters
| 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
Then I should get a zero exit status
And 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 pages:
| title | layout | content |
| Dog | default | Run |
| Bird | default | Fly |
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 |
| 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
Then I should get a zero exit status
And 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 pages:
| title | layout | content |
| Dog | default | Run |
| Bird | default | Fly |
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 |
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see exactly "The rule of 3: Fly, Run, Jump," in "_site/bird.html"

View File

@@ -12,7 +12,8 @@ Feature: frontmatter defaults
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
Then I should get a zero exit status
And 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"
@@ -24,8 +25,9 @@ Feature: frontmatter defaults
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><div>Ben</div>" in "_site/2013/09/11/default-data.html"
Then I should get a zero exit status
And 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
@@ -48,12 +50,56 @@ Feature: frontmatter defaults
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
Then I should get a zero exit status
And 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 I should get a zero exit status
And 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:
@@ -78,10 +124,19 @@ Feature: frontmatter defaults
And I should see "nothing" in "_site/override.html"
But the "_site/perma.html" file should not exist
Scenario: Define permalink default for posts
Given I have a _posts directory
And I have the following post:
| title | date | category | content |
| testpost | 2013-10-14 | blog | blabla |
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "posts"}, values: {permalink: "/:categories/:title/"}}]"
When I run jekyll build
Then I should see "blabla" in "_site/blog/testpost/index.html"
Scenario: Use frontmatter defaults in collections
Given I have a _slides directory
And I have a "index.html" file that contains "nothing"
And I have a "_slides/slide1.html" file with content:
And I have a "_slides/slide1.html" file with content:
"""
---
---
@@ -101,13 +156,14 @@ Feature: frontmatter defaults
myval: "Test"
"""
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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:
And I have a "_slides/slide2.html" file with content:
"""
---
myval: Override
@@ -128,7 +184,8 @@ Feature: frontmatter defaults
myval: "Test"
"""
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Value: Override" in "_site/slides/slide2.html"
Scenario: Deep merge frontmatter defaults

View File

@@ -0,0 +1,33 @@
Feature: Syntax Highlighting
As a hacker who likes to blog
I want to share code snippets in my blog
And make them pretty for all the world to see
Scenario: highlighting an apache configuration
Given I have an "index.html" file with content:
"""
---
---
{% highlight apache %}
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
{% endhighlight %}
```apache
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
```
"""
And I have a "_config.yml" file with content:
"""
kramdown:
input: GFM
"""
When I run jekyll build
Then I should get a zero exit-status
And I should see "<span class="nc">RewriteCond</span>" in "_site/index.html"

360
features/hooks.feature Normal file
View File

@@ -0,0 +1,360 @@
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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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['page']['myparam'] = 'special' if page.name == 'page1.html'
end
"""
And I have a "page1.html" page that contains "{{ page.myparam }}"
And I have a "page2.html" page that contains "{{ page.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 I should get a zero exit status
And 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 first
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 last
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 "4 3 1 2 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And I should see "Wrote document 0" in "_site/document-build.log"
Scenario: Set a custom payload['page'] property
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['page']['foo'] = "hello world"
end
"""
And I have a _layouts directory
And I have a "_layouts/custom.html" file with content:
"""
---
---
{{ content }} {% include foo.html %}
"""
And I have a _includes directory
And I have a "_includes/foo.html" file with content:
"""
{{page.foo}}
"""
And I have an "index.html" page with layout "custom" that contains "page content"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "page content\n hello world" in "_site/index.html"

View File

@@ -9,17 +9,18 @@ Feature: Include tags
And I have an "_includes/params.html" file that contains "Parameters:<ul>{% for param in include %}<li>{{param[0]}} = {{param[1]}}</li>{% endfor %}</ul>"
And I have an "_includes/ignore.html" file that contains "<footer>My blog footer</footer>"
And I have a _posts directory
And I have the following post:
| title | date | layout | content |
| Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
| Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
| List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
| Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
| Allow params with spaces and quotes | 2013-04-07 | default | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} |
| Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
| Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
And I have the following posts:
| title | date | type | content |
| Include Files | 2013-03-21 | html | {% include header.html param="myparam" %} |
| Ignore params if unused | 2013-03-21 | html | {% include ignore.html date="today" %} |
| List multiple parameters | 2013-03-21 | html | {% include params.html date="today" start="tomorrow" %} |
| Dont keep parameters | 2013-03-21 | html | {% include ignore.html param="test" %}\n{% include header.html %} |
| Allow params with spaces and quotes | 2013-04-07 | html | {% include params.html cool="param with spaces" super="\\"quoted\\"" single='has "quotes"' escaped='\\'single\\' quotes' %} |
| Parameter syntax | 2013-04-12 | html | {% include params.html param1_or_2="value" %} |
| Pass a variable | 2013-06-22 | html | {% assign var = 'some text' %}{% include params.html local=var title=page.title %} |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
@@ -27,12 +28,12 @@ Feature: Include tags
And I should not see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/dont-keep-parameters.html"
But I should see "<header>My awesome blog header: </header>" in "_site/2013/03/21/dont-keep-parameters.html"
And I should see "<li>cool = param with spaces</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>super = &#8220;quoted&#8221;</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>single = has &#8220;quotes&#8221;</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>escaped = &#8216;single&#8217; quotes</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>super = \"quoted\"</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>single = has \"quotes\"</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>escaped = 'single' quotes</li>" in "_site/2013/04/07/allow-params-with-spaces-and-quotes.html"
And I should see "<li>param1_or_2 = value</li>" in "_site/2013/04/12/parameter-syntax.html"
And I should see "<li>local = some text</li>" in "_site/2013/06/22/pass-a-variable.html"
And I should see "<li>layout = default</li>" in "_site/2013/06/22/pass-a-variable.html"
And I should see "<li>title = Pass a variable</li>" in "_site/2013/06/22/pass-a-variable.html"
Scenario: Include a file from a variable
Given I have an _includes directory
@@ -44,7 +45,8 @@ Feature: Include tags
| 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
Then I should get a zero exit status
And 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
@@ -53,7 +55,8 @@ Feature: Include tags
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
Then I should get a zero exit status
And the _site directory should exist
And I should see "one two" in "_site/index.html"
Scenario: Include a file with variables and filters
@@ -64,7 +67,8 @@ Feature: Include tags
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "one included" in "_site/index.html"
Scenario: Include a file with partial variables
@@ -75,5 +79,28 @@ Feature: Include tags
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "one included" in "_site/index.html"
Scenario: Include a file and rebuild when include content is changed
Given I have an _includes directory
And I have an "_includes/one.html" file that contains "include"
And I have an "index.html" page that contains "{% include one.html %}"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "include" in "_site/index.html"
When I wait 1 second
Then I have an "_includes/one.html" file that contains "include content changed"
When I run jekyll build
Then I should see "include content changed" in "_site/index.html"
Scenario: Include a file with multiple variables
Given I have an _includes directory
And I have an "_includes/header-en.html" file that contains "include"
And I have an "index.html" page that contains "{% assign name = 'header' %}{% assign locale = 'en' %}{% include {{name}}-{{locale}}.html %}"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "include" in "_site/index.html"

View File

@@ -0,0 +1,68 @@
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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And I should see "Basic Site with include tag: Regenerated by Jekyll" in "_site/index.html"

View File

@@ -0,0 +1,70 @@
Feature: Layout data
As a hacker who likes to avoid repetition
I want to be able to embed data into my layouts
In order to make the layouts slightly dynamic
Scenario: Use custom layout data
Given I have a _layouts directory
And I have a "_layouts/custom.html" file with content:
"""
---
foo: my custom data
---
{{ content }} foo: {{ layout.foo }}
"""
And I have an "index.html" page with layout "custom" that contains "page content"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "page content\n foo: my custom data" in "_site/index.html"
Scenario: Inherit custom layout data
Given I have a _layouts directory
And I have a "_layouts/custom.html" file with content:
"""
---
layout: base
foo: my custom data
---
{{ content }}
"""
And I have a "_layouts/base.html" file with content:
"""
{{ content }} foo: {{ layout.foo }}
"""
And I have an "index.html" page with layout "custom" that contains "page content"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "page content\n foo: my custom data" in "_site/index.html"
Scenario: Inherit custom layout data and clear when not present
Given I have a _layouts directory
And I have a "_layouts/default.html" file with content:
"""
---
bar: i'm default
---
{{ content }} foo: '{{ layout.foo }}' bar: '{{ layout.bar }}'
"""
And I have a "_layouts/special.html" file with content:
"""
---
layout: default
foo: my special data
bar: im special
---
{{ content }}
"""
And I have a "_layouts/page.html" file with content:
"""
---
layout: default
bar: im page
---
{{ content }}
"""
And I have an "index.html" page with layout "special" that contains "page content"
And I have an "jekyll.html" page with layout "page" that contains "page content"
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "page content\n foo: 'my special data' bar: 'im special'" in "_site/index.html"
And I should see "page content\n foo: '' bar: 'im page'" in "_site/jekyll.html"

View File

@@ -11,57 +11,24 @@ Feature: Markdown
| title | date | content | type |
| Hackers | 2009-03-27 | # My Title | markdown |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
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 | 2009-03-27 | # My Title | markdown |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Index" in "_site/index.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```
My awesome code
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome code" in "_site/index.html"
And I should see "<pre><code>My awesome code</code></pre>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```ruby
puts "My awesome string"
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html"
And I should see "<pre class="ruby"><code class="ruby">puts &quot;My awesome string&quot;</code></pre>" in "_site/index.html"

View File

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

View File

@@ -10,7 +10,8 @@ Feature: Fancy permalinks
| None Permalink Schema | 2009-03-27 | Totally nothing. |
And I have a configuration file with "permalink" set to "none"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Totally nothing." in "_site/none-permalink-schema.html"
Scenario: Use pretty permalink schema
@@ -20,7 +21,8 @@ Feature: Fancy permalinks
| Pretty Permalink Schema | 2009-03-27 | Totally wordpress. |
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Totally wordpress." in "_site/2009/03/27/pretty-permalink-schema/index.html"
Scenario: Use pretty permalink schema for pages
@@ -29,7 +31,8 @@ Feature: Fancy permalinks
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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
And I should see "Totally uhm, sitemap" in "_site/sitemap.xml"
@@ -39,9 +42,10 @@ Feature: Fancy permalinks
And I have the following post:
| title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title/"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -51,7 +55,8 @@ Feature: Fancy permalinks
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -61,16 +66,32 @@ Feature: Fancy permalinks
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And I should see "Totally custom." in "_site/20090327223107.html"
Scenario: Use per-post permalink
Given I have a _posts directory
And I have the following post:
| title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/1 | bla bla |
| Some post | 2013-04-14 | /custom/posts/1/ | bla bla |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
@@ -80,16 +101,44 @@ Feature: Fancy permalinks
| 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
Then I should get a zero exit status
And 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 per-post ending in .htm
Scenario: Use pretty permalink schema with cased file name
Given I have a _posts directory
And I have the following post:
| title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/some.htm | bla bla |
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 the _site/custom/posts directory should exist
And I should see "bla bla" in "_site/custom/posts/some.htm"
Then I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And I should see "Totally awesome" in "_site/2009/03/27/Custom_Schema/index.html"
Scenario: Use a non-HTML file extension in the permalink
Given I have a _posts directory
And I have an "_posts/2016-01-18-i-am-php.md" page with permalink "/2016/i-am-php.php" that contains "I am PHP"
And I have a "i-am-also-php.md" page with permalink "/i-am-also-php.php" that contains "I am also PHP"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "I am PHP" in "_site/2016/i-am-php.php"
And I should see "I am also PHP" in "_site/i-am-also-php.php"

View File

@@ -6,7 +6,8 @@ Feature: Configuring and using plugins
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
Then I should get a zero exit status
And 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"
@@ -17,7 +18,8 @@ Feature: Configuring and using plugins
| gems | [jekyll_test_plugin] |
| whitelist | [] |
When I run jekyll build --safe
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should not exist
@@ -28,7 +30,8 @@ Feature: Configuring and using plugins
| gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] |
| whitelist | [jekyll_test_plugin] |
When I run jekyll build --safe
Then the _site directory should exist
Then I should get a zero exit status
And 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

@@ -11,7 +11,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
Scenario: Use post.url variable
@@ -22,7 +23,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
Scenario: Use post.date variable
@@ -33,9 +35,24 @@ Feature: Post data
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post date: 27 Mar 2009" in "_site/2009/03/27/star-wars.html"
Scenario: Use post.date variable with invalid
Given I have a _posts directory
And I have a "_posts/2016-01-01-test.md" page with date "tuesday" that contains "I have a bad date."
When I run jekyll build
Then the _site directory should not exist
And I should see "Document '_posts/2016-01-01-test.md' does not have a valid date in the YAML front matter." in the build output
Scenario: Invalid date in filename
Given I have a _posts directory
And I have a "_posts/2016-22-01-test.md" page that contains "I have a bad date."
When I run jekyll build
Then the _site directory should not exist
And I should see "Document '_posts/2016-22-01-test.md' does not have a valid date in the filename." in the build output
Scenario: Use post.id variable
Given I have a _posts directory
And I have a _layouts directory
@@ -44,7 +61,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
Scenario: Use post.content variable
@@ -55,7 +73,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
Scenario: Use post.categories variable when category is in a folder
@@ -67,7 +86,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -79,7 +99,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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
@@ -91,7 +112,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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
@@ -103,7 +125,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.tags variable
@@ -114,7 +137,8 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
Scenario: Use post.categories variable when categories are in folders
@@ -127,7 +151,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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
@@ -140,8 +165,9 @@ Feature: Post data
| 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"
Then I should get a zero exit status
And 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
@@ -151,7 +177,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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
@@ -162,8 +189,9 @@ Feature: Post data
| 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"
Then I should get a zero exit status
And 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
@@ -173,7 +201,8 @@ Feature: Post data
| Star Wars | 2009-03-27 | simple | ['scifi', 'movies'] | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -184,7 +213,28 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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 I should get a zero exit status
And 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 I should get a zero exit status
And 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
@@ -196,9 +246,10 @@ Feature: Post data
| 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"
Then I should get a zero exit status
And 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
@@ -206,7 +257,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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:
@@ -215,14 +267,15 @@ Feature: Post data
| dir | dir/ |
| dir/nested | dir/nested/ |
Scenario: Override page.path variable
Scenario: Cannot 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 }} |
| override | 2013-04-12 | override-path.html | Non-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"
Then I should get a zero exit status
And the _site directory should exist
And I should see "Non-custom path: _posts/2013-04-12-override.markdown" in "_site/2013/04/12/override.html"
Scenario: Disable a post from being published
Given I have a _posts directory
@@ -231,7 +284,8 @@ Feature: Post data
| 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
Then I should get a zero exit status
And 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"
@@ -243,9 +297,22 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
Scenario: Use a variable which is a reserved keyword in Ruby
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | class | content |
| My post | 2016-01-21 | simple | kewl-post | Luke, I am your father. |
And I have a simple layout that contains "{{page.title}} has class {{page.class}}"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "My post has class kewl-post" in "_site/2016/01/21/my-post.html"
Scenario: Previous and next posts title
Given I have a _posts directory
And I have a _layouts directory
@@ -256,6 +323,7 @@ Feature: Post data
| 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 build
Then the _site directory should exist
Then I should get a zero exit status
And 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

@@ -12,7 +12,8 @@ Feature: Post excerpts
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -24,7 +25,8 @@ Feature: Post excerpts
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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
@@ -41,10 +43,11 @@ Feature: Post excerpts
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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/index.html"
And I should see exactly "<html><head></head><body><p>content for entry1.</p></body></html>" in "_site/2007/12/31/entry1.html"
And I should see "<p>content for entry1.</p>" in "_site/index.html"
And I should see "<html><head></head><body><p>content for entry1.</p>\n</body></html>" in "_site/2007/12/31/entry1.html"

View File

@@ -5,19 +5,29 @@ Feature: Rendering
But I want to make it as simply as possible
So render with Liquid and place in Layouts
Scenario: When receiving bad Liquid
Given I have a "index.html" page with layout "simple" that contains "{% include invalid.html %}"
And I have a simple layout that contains "{{ content }}"
When I run jekyll build
Then I should get a non-zero exit-status
And I should see "Liquid Exception" in the build output
Scenario: Render Liquid and place in layout
Given I have a "index.html" page with layout "simple" that contains "Hi there, Jekyll {{ jekyll.environment }}!"
And I have a simple layout that contains "{{ content }}Ahoy, indeed!"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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
Then I should get a zero exit status
And 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"
@@ -25,11 +35,21 @@ Feature: Rendering
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
Then I should get a zero exit status
And the _site directory should exist
And I should see ".foo-bar {\n color: red; }" in "_site/index.css"
Scenario: Render liquid in CoffeeScript
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
Then I should get a zero exit status
And 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 I should get a zero exit status
And the _site directory should exist
And I should see "hey = 'for cicada';" in "_site/index.js"

View File

@@ -8,7 +8,8 @@ Feature: Site configuration
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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Changing source directory" in "_site/index.html"
Scenario: Change destination directory
@@ -66,34 +67,31 @@ Feature: Site configuration
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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
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 "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"
Scenario: Use Maruku for markup
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
And I have a configuration file with "markdown" set to "maruku"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Highlight code with pygments
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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"
@@ -101,7 +99,8 @@ Feature: Site configuration
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
Then I should get a zero exit status
And 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"
@@ -129,7 +128,8 @@ Feature: Site configuration
| 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
Then I should get a zero exit status
And 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"
And the "_site/2020/01/31/entry2.html" file should not exist
@@ -149,7 +149,8 @@ Feature: Site configuration
| 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
Then I should get a zero exit status
And 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"
@@ -160,18 +161,19 @@ Feature: Site configuration
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 |
| key | value |
| timezone | UTC+04:00 |
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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p> built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p> built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
Scenario: Generate proper dates with explicitly set timezone (different than posts' time)
Given I have a _layouts directory
@@ -179,20 +181,21 @@ Feature: Site configuration
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 | Australia/Melbourne |
| key | value |
| timezone | UTC+10:00 |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
| entry1 | 2013-04-09 23:22 +0400 | post | content for entry1. |
| entry2 | 2013-04-10 03:14 +0400 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And the "_site/2013/04/10/entry1.html" file should exist
And the "_site/2013/04/10/entry2.html" file should exist
And I should see escaped "Post Layout: <p>content for entry1.</p> built at 2013-04-10T13:22:00+10:00" in "_site/2013/04/10/entry1.html"
And I should see escaped "Post Layout: <p>content for entry2.</p> built at 2013-04-10T17:14:00+10:00" in "_site/2013/04/10/entry2.html"
And the "_site/2013/04/09/entry1.html" file should exist
And the "_site/2013/04/09/entry2.html" file should exist
And I should see "Post Layout: <p>content for entry1.</p>\n built at 2013-04-09T09:22:00-10:00" in "_site/2013/04/09/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>\n built at 2013-04-09T13:14:00-10:00" in "_site/2013/04/09/entry2.html"
Scenario: Limit the number of posts generated by most recent date
Given I have a _posts directory
@@ -205,7 +208,8 @@ Feature: Site configuration
| 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
Then I should get a zero exit status
And 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
@@ -218,7 +222,8 @@ Feature: Site configuration
| .gitignore |
| .foo |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see ".DS_Store" in "_site/.gitignore"
And the "_site/.htaccess" file should not exist
@@ -231,14 +236,15 @@ Feature: Site configuration
| key | value |
| time | 2010-01-01 |
| future | true |
| layouts | _theme |
| layouts_dir | _theme |
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| 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
Then I should get a zero exit status
And 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"
@@ -247,6 +253,7 @@ Feature: Site configuration
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
Then I should get a zero exit status
And 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

@@ -6,14 +6,16 @@ Feature: Site data
Scenario: Use page variable in a page
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
Then I should get a zero exit status
And the _site directory should exist
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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Source path: <path>" in "_site/<path>"
Examples:
@@ -25,13 +27,15 @@ Feature: Site data
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
Then I should get a zero exit status
And 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 build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see today's time in "_site/index.html"
Scenario: Use site.posts variable for latest post
@@ -43,7 +47,8 @@ Feature: Site data
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Third Post: /2009/03/27/third-post.html" in "_site/index.html"
Scenario: Use site.posts variable in a loop
@@ -55,7 +60,8 @@ Feature: Site data
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Third Post Second Post First Post" in "_site/index.html"
Scenario: Use site.categories.code variable
@@ -66,7 +72,8 @@ Feature: Site data
| 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
Then I should get a zero exit status
And the _site directory should exist
And I should see "Awesome Hack" in "_site/index.html"
Scenario: Use site.tags variable
@@ -76,7 +83,8 @@ Feature: Site data
| title | date | tag | content |
| Delicious Beer | 2009-03-26 | beer | 1) Yuengling |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
And I should see "Yuengling" in "_site/index.html"
Scenario: Order Posts by name when on the same date
@@ -90,18 +98,21 @@ Feature: Site data
| C | 2009-03-26 | C |
| last | 2009-04-26 | last |
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And 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://example.com"
When I run jekyll build
Then the _site directory should exist
Then I should get a zero exit status
And the _site directory should exist
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
Then I should get a zero exit status
And the _site directory should exist
And I should see "\d+\.\d+\.\d+" in "_site/index.html"

View File

@@ -0,0 +1,247 @@
Before do
FileUtils.rm_rf(Paths.test_dir) if Paths.test_dir.exist?
FileUtils.mkdir_p(Paths.test_dir) unless Paths.test_dir.directory?
Dir.chdir(Paths.test_dir)
end
#
After do
FileUtils.rm_rf(Paths.test_dir) if Paths.test_dir.exist?
Paths.output_file.delete if Paths.output_file.exist?
Paths.status_file.delete if Paths.status_file.exist?
Dir.chdir(Paths.test_dir.parent)
end
#
Given(%r!^I have a blank site in "(.*)"$!) do |path|
unless File.exist?(path)
then FileUtils.mkdir_p(path)
end
end
#
Given(%r!^I do not have a "(.*)" directory$!) do |path|
Paths.test_dir.join(path).directory?
end
#
Given(%r!^I have an? "(.*)" page(?: with (.*) "(.*)")? that contains "(.*)"$!) do |file, key, value, text|
File.write(file, Jekyll::Utils.strip_heredoc(<<-DATA))
---
#{key || "layout"}: #{value || "nil"}
---
#{text}
DATA
end
#
Given(%r!^I have an? "(.*)" file that contains "(.*)"$!) do |file, text|
File.write(file, text)
end
#
Given(%r!^I have an? (.*) (layout|theme) that contains "(.*)"$!) do |name, type, text|
folder = type == "layout" ? "_layouts" : "_theme"
destination_file = Pathname.new(File.join(folder, "#{name}.html"))
FileUtils.mkdir_p(destination_file.parent) unless destination_file.parent.directory?
File.write(destination_file, text)
end
#
Given(%r!^I have an? "(.*)" file with content:$!) do |file, text|
File.write(file, text)
end
#
Given(%r!^I have an? (.*) directory$!) do |dir|
unless File.directory?(dir)
then FileUtils.mkdir_p(dir)
end
end
#
Given(%r!^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"
filename = "#{title}.#{ext}" if %w(draft page).include?(status)
before, after = location(folder, direction)
dest_folder = "_drafts" if status == "draft"
dest_folder = "_posts" if status == "post"
dest_folder = "" if status == "page"
if status == "post"
parsed_date = Time.xmlschema(input_hash["date"]) rescue Time.parse(input_hash["date"])
filename = "#{parsed_date.strftime("%Y-%m-%d")}-#{title}.#{ext}"
end
path = File.join(before, dest_folder, after, filename)
File.write(path, file_content_from_hash(input_hash))
end
end
#
Given(%r!^I have a configuration file with "(.*)" set to "(.*)"$!) do |key, value|
config = \
if source_dir.join("_config.yml").exist?
SafeYAML.load_file(source_dir.join("_config.yml"))
else
{}
end
config[key] = YAML.load(value)
File.write("_config.yml", YAML.dump(config))
end
#
Given(%r!^I have a configuration file with:$!) do |table|
table.hashes.each do |row|
step %(I have a configuration file with "#{row["key"]}" set to "#{row["value"]}")
end
end
#
Given(%r!^I have a configuration file with "([^\"]*)" set to:$!) do |key, table|
File.open("_config.yml", "w") do |f|
f.write("#{key}:\n")
table.hashes.each do |row|
f.write("- #{row["value"]}\n")
end
end
end
#
Given(%r!^I have fixture collections$!) do
FileUtils.cp_r Paths.source_dir.join("test", "source", "_methods"), source_dir
FileUtils.cp_r Paths.source_dir.join("test", "source", "_thanksgiving"), source_dir
end
#
Given(%r!^I wait (\d+) second(s?)$!) do |time, _|
sleep(time.to_f)
end
#
When(%r!^I run jekyll(.*)$!) do |args|
run_jekyll(args)
if args.include?("--verbose") || ENV["DEBUG"]
$stderr.puts "\n#{jekyll_run_output}\n"
end
end
#
When(%r!^I run bundle(.*)$!) do |args|
run_bundle(args)
if args.include?("--verbose") || ENV["DEBUG"]
$stderr.puts "\n#{jekyll_run_output}\n"
end
end
#
When(%r!^I change "(.*)" to contain "(.*)"$!) do |file, text|
File.open(file, "a") do |f|
f.write(text)
end
end
#
When(%r!^I delete the file "(.*)"$!) do |file|
File.delete(file)
end
#
Then(%r!^the (.*) directory should +(not )?exist$!) do |dir, negative|
if negative.nil?
expect(Pathname.new(dir)).to exist
else
expect(Pathname.new(dir)).to_not exist
end
end
#
Then(%r!^I should (not )?see "(.*)" in "(.*)"$!) do |negative, text, file|
step %(the "#{file}" file should exist)
regexp = Regexp.new(text, Regexp::MULTILINE)
if negative.nil? || negative.empty?
expect(file_contents(file)).to match regexp
else
expect(file_contents(file)).not_to match regexp
end
end
#
Then(%r!^I should see exactly "(.*)" in "(.*)"$!) do |text, file|
step %(the "#{file}" file should exist)
expect(file_contents(file).strip).to eq text
end
#
Then(%r!^I should see escaped "(.*)" in "(.*)"$!) do |text, file|
step %(I should see "#{Regexp.escape(text)}" in "#{file}")
end
#
Then(%r!^the "(.*)" file should +(not )?exist$!) do |file, negative|
if negative.nil?
expect(Pathname.new(file)).to exist
else
expect(Pathname.new(file)).to_not exist
end
end
#
Then(%r!^I should see today's time in "(.*)"$!) do |file|
step %(I should see "#{seconds_agnostic_time(Time.now)}" in "#{file}")
end
#
Then(%r!^I should see today's date in "(.*)"$!) do |file|
step %(I should see "#{Date.today}" in "#{file}")
end
#
Then(%r!^I should (not )?see "(.*)" in the build output$!) do |negative, text|
if negative.nil? || negative.empty?
expect(jekyll_run_output).to match Regexp.new(text)
else
expect(jekyll_run_output).not_to match Regexp.new(text)
end
end
#
Then(%r!^I should get a zero exit(?:\-| )status$!) do
step %(I should see "EXIT STATUS: 0" in the build output)
end
#
Then(%r!^I should get a non-zero exit(?:\-| )status$!) do
step %(I should not see "EXIT STATUS: 0" in the build output)
end

View File

@@ -1,208 +0,0 @@
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_p(TEST_DIR) unless File.exist?(TEST_DIR)
Dir.chdir(TEST_DIR)
end
After do
FileUtils.rm_rf(TEST_DIR) if File.exist?(TEST_DIR)
FileUtils.rm(JEKYLL_COMMAND_OUTPUT_FILE) if File.exist?(JEKYLL_COMMAND_OUTPUT_FILE)
end
World(Test::Unit::Assertions)
Given /^I have a blank site in "(.*)"$/ do |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
---
#{key || 'layout'}: #{value || 'nil'}
---
#{text}
EOF
end
end
Given /^I have an? "(.*)" file that contains "(.*)"$/ do |file, text|
File.open(file, 'w') do |f|
f.write(text)
end
end
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)
end
end
Given /^I have an? (.*) directory$/ do |dir|
FileUtils.mkdir_p(dir)
end
Given /^I have the following (draft|page|post)s?(?: (in|under) "([^"]+)")?:$/ do |status, direction, folder, table|
table.hashes.each do |input_hash|
title = slug(input_hash['title'])
ext = input_hash['type'] || 'textile'
before, after = location(folder, direction)
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 file_content_from_hash(input_hash)
end
end
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")
end
end
Given /^I have a configuration file with:$/ do |table|
File.open('_config.yml', 'w') do |f|
table.hashes.each do |row|
f.write("#{row["key"]}: #{row["value"]}\n")
end
end
end
Given /^I have a configuration file with "([^\"]*)" set to:$/ do |key, table|
File.open('_config.yml', 'w') do |f|
f.write("#{key}:\n")
table.hashes.each do |row|
f.write("- #{row["value"]}\n")
end
end
end
Given /^I have fixture collections$/ do
FileUtils.cp_r File.join(JEKYLL_SOURCE_DIR, "test", "source", "_methods"), source_dir
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|
File.open(file, 'a') do |f|
f.write(text)
end
end
When /^I delete the file "(.*)"$/ do |file|
File.delete(file)
end
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, Regexp::MULTILINE), file_contents(file)
end
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|
assert_no_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|
assert File.file?(file), "The file \"#{file}\" does not exist"
end
Then /^the "(.*)" file should not exist$/ do |file|
assert !File.exist?(file), "The file \"#{file}\" exists"
end
Then /^I should see today's time in "(.*)"$/ do |file|
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_contents(file)
end
Then /^I should see "(.*)" in the build output$/ do |text|
assert_match Regexp.new(text), jekyll_run_output
end

View File

@@ -1,75 +0,0 @@
require 'fileutils'
require 'posix-spawn'
require 'rr'
require 'test/unit'
require 'time'
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')
def source_dir(*files)
File.join(TEST_DIR, *files)
end
def jekyll_output_file
JEKYLL_COMMAND_OUTPUT_FILE
end
def jekyll_run_output
File.read(jekyll_output_file) if File.file?(jekyll_output_file)
end
def run_bundle(args)
child = 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
def run_in_shell(*args)
POSIX::Spawn::Child.new *args, :out => [JEKYLL_COMMAND_OUTPUT_FILE, "w"]
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,214 @@
require "fileutils"
require "colorator"
require "cucumber/formatter/console"
require "cucumber/formatter/io"
module Jekyll
module Cucumber
class Formatter
attr_accessor :indent, :runtime
include ::Cucumber::Formatter::Console
include ::Cucumber::Formatter::Io
include FileUtils
CHARS = {
:failed => "\u2718".red,
:pending => "\u203D".yellow,
:undefined => "\u2718".red,
:passed => "\u2714".green,
:skipped => "\u203D".blue
}.freeze
#
def initialize(runtime, path_or_io, options)
@runtime = runtime
@snippets_input = []
@io = ensure_io(path_or_io)
@prefixes = options[:prefixes] || {}
@delayed_messages = []
@options = options
@exceptions = []
@indent = 0
@timings = {}
end
#
def before_features(_features)
print_profile_information
end
#
def after_features(features)
@io.puts
print_worst_offenders
print_summary(features)
end
#
def before_feature(_feature)
@exceptions = []
@indent = 0
end
#
def feature_element_timing_key(feature_element)
"\"#{feature_element.name.to_s.sub("Scenario: ", "")}\" (#{feature_element.location})"
end
#
def before_feature_element(feature_element)
@indent = 2
@scenario_indent = 2
@timings[feature_element_timing_key(feature_element)] = Time.now
end
#
def after_feature_element(feature_element)
@timings[feature_element_timing_key(feature_element)] = Time.now - @timings[feature_element_timing_key(feature_element)]
@io.print " (#{@timings[feature_element_timing_key(feature_element)]}s)"
end
#
def tag_name(tag_name); end
def comment_line(comment_line); end
def after_tags(tags); end
#
def before_background(_background)
@scenario_indent = 2
@in_background = true
@indent = 2
end
#
def after_background(_background)
@in_background = nil
end
#
def background_name(keyword, name, source_line, indent)
print_feature_element_name(
keyword, name, source_line, indent
)
end
#
def scenario_name(keyword, name, source_line, indent)
print_feature_element_name(
keyword, name, source_line, indent
)
end
#
def before_step(step)
@current_step = step
end
#
# rubocop:disable Metrics/ParameterLists
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
#
def step_name(_keyword, _step_match, status, _source_indent, _background, _file_colon_line)
@io.print CHARS[status]
@io.print " "
end
# rubocop:enable Metrics/ParameterLists
#
def exception(exception, status)
return if @hide_this_step
@io.puts
print_exception(exception, status, @indent)
@io.flush
end
#
def after_test_step(test_step, result)
collect_snippet_data(
test_step, result
)
end
#
private
def print_feature_element_name(keyword, name, source_line, _indent)
@io.puts
names = name.empty? ? [name] : name.each_line.to_a
line = " #{keyword}: #{names[0]}"
@io.print(source_line) if @options[:source]
@io.print(line)
@io.print " "
@io.flush
end
#
def cell_prefix(status)
@prefixes[status]
end
#
def print_worst_offenders
@io.puts
@io.puts "Worst offenders:"
@timings.sort_by { |_f, t| -t }.take(10).each do |(f, t)|
@io.puts " #{t}s for #{f}"
end
@io.puts
end
#
def print_summary(features)
@io.puts
print_stats(features, @options)
print_snippets(@options)
print_passing_wip(@options)
end
end
end
end

166
features/support/helpers.rb Normal file
View File

@@ -0,0 +1,166 @@
require "fileutils"
require "jekyll/utils"
require "open3"
require "time"
require "safe_yaml/load"
class Paths
SOURCE_DIR = Pathname.new(File.expand_path("../..", __dir__))
def self.test_dir; source_dir.join("tmp", "jekyll"); end
def self.output_file; test_dir.join("jekyll_output.txt"); end
def self.status_file; test_dir.join("jekyll_status.txt"); end
def self.jekyll_bin; source_dir.join("exe", "jekyll"); end
def self.source_dir; SOURCE_DIR; end
end
#
def file_content_from_hash(input_hash)
matter_hash = input_hash.reject { |k, _v| k == "content" }
matter = matter_hash.map do |k, v|
"#{k}: #{v}\n"
end
matter = matter.join.chomp
content = \
if !input_hash["input"] || !input_hash["filter"]
then input_hash["content"]
else "{{ #{input_hash["input"]} | " \
"#{input_hash["filter"]} }}"
end
Jekyll::Utils.strip_heredoc(<<-EOF)
---
#{matter.gsub(
%r!\n!, "\n "
)}
---
#{content}
EOF
end
#
def source_dir(*files)
return Paths.test_dir(*files)
end
#
def all_steps_to_path(path)
source = source_dir
dest = Pathname.new(path).expand_path
paths = []
dest.ascend do |f|
break if f == source
paths.unshift f.to_s
end
paths
end
#
def jekyll_run_output
if Paths.output_file.file?
then return Paths.output_file.read
end
end
#
def jekyll_run_status
if Paths.status_file.file?
then return Paths.status_file.read
end
end
#
def run_bundle(args)
run_in_shell("bundle", *args.strip.split(" "))
end
#
def run_jekyll(args)
args = args.strip.split(" ") # Shellwords?
process = run_in_shell("ruby", Paths.jekyll_bin.to_s, *args, "--trace")
process.exitstatus.zero?
end
#
# rubocop:disable Metrics/AbcSize
def run_in_shell(*args)
i, o, e, p = Open3.popen3(*args)
out = o.read.strip
err = e.read.strip
[i, o, e].each(&:close)
File.write(Paths.status_file, p.value.exitstatus)
File.open(Paths.output_file, "wb") do |f|
f.puts "$ " << args.join(" ")
f.puts out
f.puts err
f.puts "EXIT STATUS: #{p.value.exitstatus}"
end
p.value
end
# rubocop:enable Metrics/AbcSize
#
def slug(title = nil)
if !title
then Time.now.strftime("%s%9N") # nanoseconds since the Epoch
else title.downcase.gsub(%r![^\w]!, " ").strip.gsub(%r!\s+!, "-")
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)
return Pathname.new(path).read
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)
time = time.strftime("%H:%M:%S") if time.is_a?(Time)
hour, minutes, = time.split(":")
"#{hour}:#{minutes}"
end

View File

@@ -1,147 +0,0 @@
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

72
features/theme.feature Normal file
View File

@@ -0,0 +1,72 @@
Feature: Writing themes
As a hacker who likes to share my expertise
I want to be able to make a gemified theme
In order to share my awesome style skillz with other Jekyllites
Scenario: Generating a new theme scaffold
When I run jekyll new-theme my-cool-theme
Then I should get a zero exit status
And the my-cool-theme directory should exist
Scenario: Generating a new theme scaffold with a code of conduct
When I run jekyll new-theme my-cool-theme --code-of-conduct
Then I should get a zero exit status
And the my-cool-theme directory should exist
And the "my-cool-theme/CODE_OF_CONDUCT.md" file should exist
Scenario: A theme with SCSS
Given I have a configuration file with "theme" set to "test-theme"
And I have a css directory
And I have a "css/main.scss" page that contains "@import 'test-theme-black';"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see ".sample {\n color: black; }" in "_site/css/main.css"
Scenario: A theme with an include
Given I have a configuration file with "theme" set to "test-theme"
And I have an _includes directory
And I have an "_includes/in_project.html" file that contains "I'm in the project."
And I have an "index.html" page that contains "{% include in_project.html %} {% include include.html %}"
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "I'm in the project." in "_site/index.html"
And I should see "<span class=\"sample\">include.html from test-theme</span>" in "_site/index.html"
Scenario: A theme with a layout
Given I have a configuration file with "theme" set to "test-theme"
And I have an _layouts directory
And I have an "_layouts/post.html" file that contains "post.html from the project: {{ content }}"
And I have an "index.html" page with layout "default" that contains "I'm content."
And I have a "post.html" page with layout "post" that contains "I'm more content."
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "default.html from test-theme: I'm content." in "_site/index.html"
And I should see "post.html from the project: I'm more content." in "_site/post.html"
Scenario: Complicated site that puts it all together
Given I have a configuration file with "theme" set to "test-theme"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2016-04-21 | post | I am using a local layout. {% include include.html %} |
| entry2 | 2016-04-21 | default | I am using a themed layout. {% include include.html %} {% include in_project.html %} |
And I have a _layouts directory
And I have a "_layouts/post.html" page with layout "default" that contains "I am a post layout! {{ content }}"
And I have an _includes directory
And I have an "_includes/in_project.html" file that contains "I am in the project, not the theme."
When I run jekyll build
Then I should get a zero exit status
And the _site directory should exist
And I should see "I am in the project, not the theme." in "_site/2016/04/21/entry2.html"
And I should see "<span class=\"sample\">include.html from test-theme</span>" in "_site/2016/04/21/entry2.html"
And I should see "default.html from test-theme:" in "_site/2016/04/21/entry2.html"
And I should see "I am using a themed layout." in "_site/2016/04/21/entry2.html"
And I should not see "I am a post layout!" in "_site/2016/04/21/entry2.html"
And I should not see "I am in the project, not the theme." in "_site/2016/04/21/entry1.html"
And I should see "<span class=\"sample\">include.html from test-theme</span>" in "_site/2016/04/21/entry1.html"
And I should see "default.html from test-theme:" in "_site/2016/04/21/entry1.html"
And I should see "I am using a local layout." in "_site/2016/04/21/entry1.html"
And I should see "I am a post layout!" in "_site/2016/04/21/entry1.html"

View File

@@ -5,62 +5,38 @@ require 'jekyll/version'
Gem::Specification.new do |s|
s.specification_version = 2 if s.respond_to? :specification_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
s.rubygems_version = '2.2.2'
s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 2.0.0'
s.name = 'jekyll'
s.version = Jekyll::VERSION
s.license = 'MIT'
s.name = 'jekyll'
s.version = Jekyll::VERSION
s.license = 'MIT'
s.summary = "A simple, blog aware, static site generator."
s.description = "Jekyll is a simple, blog aware, static site generator."
s.summary = 'A simple, blog aware, static site generator.'
s.description = 'Jekyll is a simple, blog aware, static site generator.'
s.authors = ["Tom Preston-Werner"]
s.email = 'tom@mojombo.com'
s.homepage = 'https://github.com/jekyll/jekyll'
s.authors = ['Tom Preston-Werner']
s.email = 'tom@mojombo.com'
s.homepage = 'https://github.com/jekyll/jekyll'
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.files = all_files.grep(%r{^(exe|lib)/|^.rubocop.yml$})
s.executables = all_files.grep(%r{^exe/}) { |f| File.basename(f) }
s.bindir = "exe"
s.require_paths = ['lib']
s.rdoc_options = ["--charset=UTF-8"]
s.rdoc_options = ['--charset=UTF-8']
s.extra_rdoc_files = %w[README.markdown LICENSE]
s.add_runtime_dependency('liquid', "~> 2.6.1")
s.add_runtime_dependency('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")
# Before 3.0 drops, phase the following gems out as dev dependencies
# and gracefully handle their absence.
s.add_runtime_dependency('pygments.rb', "~> 0.6.0")
s.add_runtime_dependency('redcarpet', "~> 3.1")
s.add_runtime_dependency('toml', '~> 0.1.0')
s.add_runtime_dependency('jekyll-paginate', '~> 1.0')
s.add_runtime_dependency('jekyll-gist', '~> 1.0')
s.add_runtime_dependency('jekyll-coffeescript', '~> 1.0')
s.add_runtime_dependency('liquid', '~> 3.0')
s.add_runtime_dependency('kramdown', '~> 1.3')
s.add_runtime_dependency('mercenary', '~> 0.3.3')
s.add_runtime_dependency('safe_yaml', '~> 1.0')
s.add_runtime_dependency('colorator', '~> 1.0')
s.add_runtime_dependency('rouge', '~> 1.7')
s.add_runtime_dependency('jekyll-sass-converter', '~> 1.0')
s.add_runtime_dependency('jekyll-watch', '~> 1.1')
s.add_runtime_dependency('classifier-reborn', "~> 2.0")
s.add_development_dependency('rake', "~> 10.1")
s.add_development_dependency('rdoc', "~> 3.11")
s.add_development_dependency('redgreen', "~> 1.2")
s.add_development_dependency('shoulda', "~> 3.5")
s.add_development_dependency('rr', "~> 1.1")
s.add_development_dependency('cucumber', "1.3.11")
s.add_development_dependency('RedCloth', "~> 4.2")
s.add_development_dependency('maruku', "~> 0.7.0")
s.add_development_dependency('rdiscount', "~> 1.6")
s.add_development_dependency('launchy', "~> 2.3")
s.add_development_dependency('simplecov', "~> 0.9")
s.add_development_dependency('simplecov-gem-adapter', "~> 1.0.1")
s.add_development_dependency('mime-types', "~> 1.5")
s.add_development_dependency('activesupport', '~> 3.2.13')
s.add_development_dependency('jekyll_test_plugin')
s.add_development_dependency('jekyll_test_plugin_malicious')
s.add_development_dependency('rouge', '~> 1.7')
s.add_runtime_dependency("pathutil", "~> 0.9")
s.add_runtime_dependency('addressable', '~> 2.4')
end

View File

@@ -1,4 +1,4 @@
$:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
$LOAD_PATH.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
# Require all of the Ruby files in the given directory.
#
@@ -6,67 +6,80 @@ $:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
#
# Returns nothing.
def require_all(path)
glob = File.join(File.dirname(__FILE__), path, '*.rb')
Dir[glob].each do |f|
glob = File.join(File.dirname(__FILE__), path, "*.rb")
Dir[glob].sort.each do |f|
require f
end
end
# rubygems
require 'rubygems'
require "rubygems"
# stdlib
require 'fileutils'
require 'time'
require 'English'
require 'pathname'
require 'logger'
require "pathutil"
require "forwardable"
require "fileutils"
require "time"
require "English"
require "pathname"
require "logger"
require "set"
# 3rd party
require 'safe_yaml/load'
require 'liquid'
require 'kramdown'
require 'colorator'
require "safe_yaml/load"
require "liquid"
require "kramdown"
require "colorator"
SafeYAML::OPTIONS[:suppress_warnings] = true
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 :Filters, 'jekyll/filters'
autoload :FrontmatterDefaults, 'jekyll/frontmatter_defaults'
autoload :Layout, 'jekyll/layout'
autoload :LayoutReader, 'jekyll/layout_reader'
autoload :LogAdapter, 'jekyll/log_adapter'
autoload :Page, 'jekyll/page'
autoload :PluginManager, 'jekyll/plugin_manager'
autoload :Post, 'jekyll/post'
autoload :Publisher, 'jekyll/publisher'
autoload :RelatedPosts, 'jekyll/related_posts'
autoload :Renderer, 'jekyll/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'
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 :EntryFilter, "jekyll/entry_filter"
autoload :Errors, "jekyll/errors"
autoload :Excerpt, "jekyll/excerpt"
autoload :External, "jekyll/external"
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 :ThemeAssetsReader, "jekyll/readers/theme_assets_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 :Theme, "jekyll/theme"
autoload :ThemeBuilder, "jekyll/theme_builder"
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'
require "jekyll/plugin"
require "jekyll/converter"
require "jekyll/generator"
require "jekyll/command"
require "jekyll/liquid_extensions"
require "jekyll/filters"
class << self
# Public: Tells you which Jekyll environment you are building in so you can skip tasks
@@ -81,22 +94,22 @@ module Jekyll
# 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
# the defaults and the config file.
# See Jekyll::Configuration::DEFAULTS for a
# list of option names and their defaults.
#
# Returns the final configuration Hash.
def configuration(override = Hash.new)
config = Configuration[Configuration::DEFAULTS]
def configuration(override = {})
config = Configuration.new
override = Configuration[override].stringify_keys
unless override.delete('skip_config_files')
unless override.delete("skip_config_files")
config = config.read_config_files(config.config_files(override))
end
# Merge DEFAULTS < _config.yml < override
config = Utils.deep_merge_hashes(config, override).stringify_keys
set_timezone(config['timezone']) if config['timezone']
config
Configuration.from(Utils.deep_merge_hashes(config, override)).tap do |obj|
set_timezone(obj["timezone"]) if obj["timezone"]
end
end
# Public: Set the TZ environment variable to use the timezone specified
@@ -104,9 +117,11 @@ module Jekyll
# timezone - the IANA Time Zone
#
# Returns nothing
# rubocop:disable Style/AccessorMethodName
def set_timezone(timezone)
ENV['TZ'] = timezone
ENV["TZ"] = timezone
end
# rubocop:enable Style/AccessorMethodName
# Public: Fetch the logger instance for this Jekyll process.
#
@@ -123,7 +138,7 @@ module Jekyll
#
# Returns the new logger.
def logger=(writer)
@logger = LogAdapter.new(writer)
@logger = LogAdapter.new(writer, (ENV["JEKYLL_LOG_LEVEL"] || :info).to_sym)
end
# Public: An array of sites
@@ -141,29 +156,33 @@ module Jekyll
#
# 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.gsub!(/\A\w\:\//, '/')
unless clean_path.start_with?(base_directory)
File.join(base_directory, clean_path)
else
return clean_path if clean_path.eql?(base_directory)
if clean_path.start_with?(base_directory.sub(%r!\z!, "/"))
clean_path
else
clean_path.sub!(%r!\A\w:/!, "/")
File.join(base_directory, 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'
require "jekyll/drops/drop"
require "jekyll/drops/document_drop"
require_all "jekyll/commands"
require_all "jekyll/converters"
require_all "jekyll/converters/markdown"
require_all "jekyll/drops"
require_all "jekyll/generators"
require_all "jekyll/tags"
# Eventually remove these for 3.0 as non-core
Jekyll::Deprecator.gracefully_require(%w[
toml
jekyll-paginate
jekyll-gist
jekyll-coffeescript
jekyll-sass-converter
])
require "jekyll-sass-converter"

View File

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

View File

@@ -1,6 +1,7 @@
module Jekyll
class Collection
attr_reader :site, :label, :metadata
attr_writer :docs
# Create a new Collection.
#
@@ -22,6 +23,24 @@ module Jekyll
@docs ||= []
end
# Override of normal respond_to? to match method_missing's logic for
# looking in @data.
def respond_to_missing?(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:", "#{label}.#{method} should be changed to" \
"#{label}.docs.#{method}."
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.
#
@@ -38,12 +57,9 @@ module Jekyll
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
read_document(full_path)
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)
read_static_file(file_path, full_path)
end
end
docs.sort!
@@ -54,10 +70,11 @@ module Jekyll
# 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?
return [] unless exists?
@entries ||=
Dir.glob(collection_dir("**", "*.*")).map do |entry|
entry["#{collection_dir}/"] = ''; entry
Utils.safe_glob(collection_dir, ["**", "*"]).map do |entry|
entry["#{collection_dir}/"] = ""
entry
end
end
@@ -66,12 +83,12 @@ module Jekyll
#
# Returns a list of filtered entry paths.
def filtered_entries
return Array.new unless exists?
return [] 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)
File.directory?(path) || entry_filter.symlink?(f)
end
end
end
@@ -112,7 +129,7 @@ module Jekyll
# 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)
File.directory?(directory) && !entry_filter.symlink?(directory)
end
# The entry filter for this collection.
@@ -138,7 +155,7 @@ module Jekyll
#
# Returns a sanitized version of the label.
def sanitize_label(label)
label.gsub(/[^a-z0-9_\-\.]/i, '')
label.gsub(%r![^a-z0-9_\-\.]!i, "")
end
# Produce a representation of this Collection for use in Liquid.
@@ -148,14 +165,7 @@ module Jekyll
#
# 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
})
Drops::CollectionDrop.new self
end
# Whether the collection's documents ought to be written as individual
@@ -163,26 +173,49 @@ module Jekyll
#
# Returns true if the 'write' metadata is true, false otherwise.
def write?
!!metadata['output']
!!metadata.fetch("output", false)
end
# The URL template to render collection's documents at.
#
# Returns the URL template to render collection's documents at.
def url_template
metadata.fetch('permalink', "/:collection/:path:output_ext")
@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
if site.config["collections"].is_a?(Hash)
site.config["collections"][label] || {}
else
{}
end
end
private
def read_document(full_path)
doc = Jekyll::Document.new(full_path, :site => site, :collection => self)
doc.read
if site.publisher.publish?(doc) || !write?
docs << doc
else
Jekyll.logger.debug "Skipped From Publishing:", doc.relative_path
end
end
private
def read_static_file(file_path, full_path)
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
end

View File

@@ -1,8 +1,6 @@
module Jekyll
class Command
class << self
# A list of subclasses of Jekyll::Command
def subclasses
@subclasses ||= []
@@ -48,19 +46,26 @@ module Jekyll
#
# Returns nothing
def add_build_options(c)
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
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 "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 "baseurl", "-b", "--baseurl URL",
"Serve the website from the given base URL"
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

@@ -1,19 +1,17 @@
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.syntax "build [options]"
c.description "Build your site"
c.alias :b
add_build_options(c)
c.action do |args, options|
c.action do |_, options|
options["serving"] = false
Jekyll::Commands::Build.process(options)
end
@@ -23,18 +21,23 @@ module Jekyll
# Build your jekyll site
# Continuously watch if `watch` is set to true in the config.
def process(options)
Jekyll.logger.log_level = :error if options['quiet']
# Adjust verbosity quickly
Jekyll.logger.adjust_verbosity(options)
options = configuration_from_options(options)
site = Jekyll::Site.new(options)
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."
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)
if options.fetch("detach", false)
Jekyll.logger.info "Auto-regeneration:",
"disabled when running server detached."
elsif options.fetch("watch", false)
watch(site, options)
else
Jekyll.logger.info "Auto-regeneration:", "disabled. Use --watch to enable."
@@ -48,13 +51,17 @@ module Jekyll
#
# Returns nothing.
def build(site, options)
source = options['source']
destination = options['destination']
t = Time.now
source = options["source"]
destination = options["destination"]
incremental = options["incremental"]
Jekyll.logger.info "Source:", source
Jekyll.logger.info "Destination:", destination
Jekyll.logger.info "Incremental build:",
(incremental ? "enabled" : "disabled. Enable with --incremental")
Jekyll.logger.info "Generating..."
process_site(site)
Jekyll.logger.info "", "done."
Jekyll.logger.info "", "done in #{(Time.now - t).round(3)} seconds."
end
# Private: Watch for file changes and rebuild the site.
@@ -64,12 +71,26 @@ module Jekyll
#
# Returns nothing.
def watch(site, options)
Deprecator.gracefully_require 'jekyll-watch'
Jekyll::Watcher.watch(options)
if Utils::Platforms.windows?
Jekyll.logger.warn "", "--watch arg is unsupported on Windows. "
Jekyll.logger.warn "", "If you are on Windows Bash, please see: " \
"https://github.com/Microsoft/BashOnWindows/issues/216"
else
External.require_with_graceful_fail "jekyll-watch"
watch_method = Jekyll::Watcher.method(:watch)
if watch_method.parameters.size == 1
watch_method.call(
options
)
else
watch_method.call(
options, site
)
end
end
end
end # end of class << self
end
end
end

View File

@@ -0,0 +1,41 @@
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 |_, options|
Jekyll::Commands::Clean.process(options)
end
end
end
def process(options)
options = configuration_from_options(options)
destination = options["destination"]
metadata_file = File.join(options["source"], ".jekyll-metadata")
sass_cache = File.join(options["source"], ".sass-cache")
remove(destination, :checker_func => :directory?)
remove(metadata_file, :checker_func => :file?)
remove(sass_cache, :checker_func => :directory?)
end
def remove(filename, checker_func: :file?)
if File.public_send(checker_func, filename)
Jekyll.logger.info "Cleaner:", "Removing #{filename}..."
FileUtils.rm_rf(filename)
else
Jekyll.logger.info "Cleaner:", "Nothing to do for #{filename}."
end
end
end
end
end
end

View File

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

View File

@@ -2,16 +2,16 @@ 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.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.option "config", "--config CONFIG_FILE[,CONFIG_FILE2,...]", Array,
"Custom configuration file"
c.action do |args, options|
c.action do |_, options|
Jekyll::Commands::Doctor.process(options)
end
end
@@ -19,7 +19,9 @@ module Jekyll
def process(options)
site = Jekyll::Site.new(configuration_from_options(options))
site.reset
site.read
site.generate
if healthy?(site)
Jekyll.logger.info "Your test results", "are in. Everything looks fine."
@@ -30,41 +32,66 @@ module Jekyll
def healthy?(site)
[
fsnotify_buggy?(site),
!deprecated_relative_permalinks(site),
!conflicting_urls(site)
!conflicting_urls(site),
!urls_only_differ_by_case(site)
].all?
end
def deprecated_relative_permalinks(site)
contains_deprecated_pages = false
site.pages.each do |page|
if page.uses_relative_permalinks
Jekyll.logger.warn "Deprecation:", "'#{page.path}' uses relative" +
" permalinks which will be deprecated in" +
" Jekyll v2.0.0 and beyond."
contains_deprecated_pages = true
end
if site.config["relative_permalinks"]
Jekyll::Deprecator.deprecation_message "Your site still uses relative" \
" permalinks, which was removed in" \
" Jekyll v3.0.0."
return true
end
contains_deprecated_pages
end
def conflicting_urls(site)
conflicting_urls = false
urls = {}
urls = collect_urls(urls, site.pages, site.dest)
urls = collect_urls(urls, site.posts, site.dest)
urls = collect_urls(urls, site.posts.docs, site.dest)
urls.each do |url, paths|
if paths.size > 1
conflicting_urls = true
Jekyll.logger.warn "Conflict:", "The URL '#{url}' is the destination" +
" for the following pages: #{paths.join(", ")}"
end
next unless paths.size > 1
conflicting_urls = true
Jekyll.logger.warn "Conflict:", "The URL '#{url}' is the destination" \
" for the following pages: #{paths.join(", ")}"
end
conflicting_urls
end
private
def fsnotify_buggy?(_site)
return true unless Utils::Platforms.osx?
if Dir.pwd != `pwd`.strip
Jekyll.logger.error " " + <<-STR.strip.gsub(%r!\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
def urls_only_differ_by_case(site)
urls_only_differ_by_case = false
urls = case_insensitive_urls(site.pages + site.docs_to_write, site.dest)
urls.each do |_case_insensitive_url, real_urls|
next unless real_urls.uniq.size > 1
urls_only_differ_by_case = true
Jekyll.logger.warn "Warning:", "The following URLs only differ" \
" by case. On a case-insensitive file system one of the URLs" \
" will be overwritten by the other: #{real_urls.join(", ")}"
end
urls_only_differ_by_case
end
private
def collect_urls(urls, things, destination)
things.each do |thing|
dest = thing.destination(destination)
@@ -77,8 +104,13 @@ module Jekyll
urls
end
def case_insensitive_urls(things, destination)
things.each_with_object({}) do |thing, memo|
dest = thing.destination(destination)
(memo[dest.downcase] ||= []) << dest
end
end
end
end
end
end

View File

@@ -2,11 +2,10 @@ 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.syntax "help [subcommand]"
c.description "Show the help message, optionally for a given subcommand."
c.action do |args, _|
cmd = (args.first || "").to_sym
@@ -23,10 +22,10 @@ module Jekyll
end
def invalid_command(prog, cmd)
Jekyll.logger.error "Error:", "Hmm... we don't know what the '#{cmd}' command is."
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

View File

@@ -1,17 +1,18 @@
require 'erb'
require "erb"
module Jekyll
module Commands
class New < Command
class << self
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.syntax "new PATH"
c.description "Creates a new Jekyll site scaffold in PATH"
c.option "force", "--force", "Force creation even if PATH already exists"
c.option "blank", "--blank", "Creates scaffolding but with empty files"
c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"
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
@@ -19,25 +20,22 @@ module Jekyll
end
def process(args, options = {})
raise ArgumentError.new('You must specify a path.') if args.empty?
raise ArgumentError, "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."
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
create_site new_blog_path
end
Jekyll.logger.info "New jekyll site installed in #{new_blog_path}."
after_install(new_blog_path, options)
end
def create_blank_site(path)
@@ -55,17 +53,58 @@ module Jekyll
#
# 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"
"_posts/#{Time.now.strftime("%Y-%m-%d")}-welcome-to-jekyll.markdown"
end
private
def gemfile_contents
<<-RUBY
source "https://rubygems.org"
ruby RUBY_VERSION
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "#{Jekyll::VERSION}"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
RUBY
end
def create_site(new_blog_path)
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
File.open(File.expand_path("Gemfile", new_blog_path), "w") do |f|
f.write(gemfile_contents)
end
end
def preserve_source_location?(path, options)
!options["force"] && !Dir["#{path}/**/*"].empty?
end
def create_sample_files(path)
FileUtils.cp_r site_template + '/.', path
FileUtils.cp_r site_template + "/.", path
FileUtils.rm File.expand_path(scaffold_path, path)
end
@@ -76,7 +115,32 @@ module Jekyll
def scaffold_path
"_posts/0000-00-00-welcome-to-jekyll.markdown.erb"
end
end
# After a new blog has been created, print a success notification and
# then automatically execute bundle install from within the new blog dir
# unless the user opts to generate a blank blog or skip 'bundle install'.
def after_install(path, options = {})
Jekyll.logger.info "New jekyll site installed in #{path.cyan}."
Jekyll.logger.info "Bundle install skipped." if options["skip-bundle"]
unless options["blank"] || options["skip-bundle"]
bundle_install path
end
end
def bundle_install(path)
Jekyll::External.require_with_graceful_fail "bundler"
Jekyll.logger.info "Running bundle install in #{path.cyan}..."
Dir.chdir(path) do
if ENV["CI"]
system("bundle", "install", "--quiet")
else
system("bundle", "install")
end
end
end
end
end
end
end

View File

@@ -0,0 +1,38 @@
require "erb"
class Jekyll::Commands::NewTheme < Jekyll::Command
class << self
def init_with_program(prog)
prog.command(:"new-theme") do |c|
c.syntax "new-theme NAME"
c.description "Creates a new Jekyll theme scaffold"
c.option "code_of_conduct", \
"-c", "--code-of-conduct", \
"Include a Code of Conduct. (defaults to false)"
c.action do |args, opts|
Jekyll::Commands::NewTheme.process(args, opts)
end
end
end
# rubocop:disable Metrics/AbcSize
def process(args, opts)
if !args || args.empty?
raise Jekyll::Errors::InvalidThemeName, "You must specify a theme name."
end
new_theme_name = args.join("_")
theme = Jekyll::ThemeBuilder.new(new_theme_name, opts)
if theme.path.exist?
Jekyll.logger.abort_with "Conflict:", "#{theme.path} already exists."
end
theme.create!
Jekyll.logger.info "Your new Jekyll theme, #{theme.name.cyan}," \
" is ready for you in #{theme.path.to_s.cyan}!"
Jekyll.logger.info "For help getting started, read #{theme.path}/README.md."
end
# rubocop:enable Metrics/AbcSize
end
end

View File

@@ -1,136 +1,242 @@
# -*- encoding: utf-8 -*-
module Jekyll
module Commands
class Serve < Command
class << self
COMMAND_OPTIONS = {
"ssl_cert" => ["--ssl-cert [CERT]", "X.509 (SSL) certificate."],
"host" => ["host", "-H", "--host [HOST]", "Host to bind to"],
"open_url" => ["-o", "--open-url", "Launch your site in a browser"],
"detach" => ["-B", "--detach", "Run the server in the background"],
"ssl_key" => ["--ssl-key [KEY]", "X.509 (SSL) Private Key."],
"port" => ["-P", "--port [PORT]", "Port to listen on"],
"show_dir_listing" => ["--show-dir-listing",
"Show a directory listing instead of loading your index file."],
"skip_initial_build" => ["skip_initial_build", "--skip-initial-build",
"Skips the initial site build which occurs before the server is started."]
}.freeze
#
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
prog.command(:serve) do |cmd|
cmd.description "Serve your site locally"
cmd.syntax "serve [options]"
cmd.alias :server
cmd.alias :s
add_build_options(c)
add_build_options(cmd)
COMMAND_OPTIONS.each do |key, val|
cmd.option key, *val
end
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)
cmd.action do |_, opts|
opts["serving"] = true
opts["watch" ] = true unless opts.key?("watch")
config = opts["config"]
opts["url"] = default_url(opts) if Jekyll.env == "development"
Build.process(opts)
opts["config"] = config
Serve.process(opts)
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']
#
def process(opts)
opts = configuration_from_options(opts)
destination = opts["destination"]
setup(destination)
s = WEBrick::HTTPServer.new(webrick_options(options))
s.unmount("")
s.mount(
options['baseurl'],
WEBrick::HTTPServlet::FileHandler,
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 `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
start_up_webrick(opts, destination)
end
# Do a base pre-setup of WEBRick so that everything is in place
# when we get ready to party, checking for an setting up an error page
# and making sure our destination exists.
private
def setup(destination)
require 'webrick'
require_relative "serve/servlet"
FileUtils.mkdir_p(destination)
# monkey patch WEBrick using custom 404 page (/404.html)
if File.exist?(File.join(destination, '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'))
@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)
#
private
def webrick_opts(opts)
opts = {
:BindAddress => config['host'],
:DirectoryIndex => %w(index.html index.htm index.cgi index.rhtml index.xml),
:DocumentRoot => config['destination'],
:JekyllOptions => opts,
:DoNotReverseLookup => true,
:MimeTypes => mime_types,
:Port => config['port'],
:StartCallback => start_callback(config['detach'])
:DocumentRoot => opts["destination"],
:StartCallback => start_callback(opts["detach"]),
:BindAddress => opts["host"],
:Port => opts["port"],
:DirectoryIndex => %W(
index.htm
index.html
index.rhtml
index.cgi
index.xml
)
}
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[:DirectoryIndex] = [] if opts[:JekyllOptions]["show_dir_listing"]
enable_ssl(opts)
enable_logging(opts)
opts
end
def start_callback(detached)
unless detached
Proc.new { Jekyll.logger.info "Server running...", "press ctrl-c to stop." }
end
#
private
def start_up_webrick(opts, destination)
server = WEBrick::HTTPServer.new(webrick_opts(opts)).tap { |o| o.unmount("") }
server.mount(opts["baseurl"], Servlet, destination, file_handler_opts)
Jekyll.logger.info "Server address:", server_address(server, opts)
launch_browser server, opts if opts["open_url"]
boot_or_detach server, opts
end
def mime_types
mime_types_file = File.expand_path('../mime.types', File.dirname(__FILE__))
WEBrick::HTTPUtils::load_mime_types(mime_types_file)
end
# Recreate NondisclosureName under utf-8 circumstance
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
private
def file_handler_opts
WEBrick::Config::FileHandler.merge({
:FancyIndexing => true,
:NondisclosureName => ['.ht*','~*']
:NondisclosureName => [
".ht*", "~*"
]
})
end
end
#
private
def server_address(server, options = {})
format_url(
server.config[:SSLEnable],
server.config[:BindAddress],
server.config[:Port],
options["baseurl"]
)
end
private
def format_url(ssl_enabled, address, port, baseurl = nil)
format("%{prefix}://%{address}:%{port}%{baseurl}", {
:prefix => ssl_enabled ? "https" : "http",
:address => address,
:port => port,
:baseurl => baseurl ? "#{baseurl}/" : ""
})
end
#
private
def default_url(opts)
config = configuration_from_options(opts)
format_url(
config["ssl_cert"] && config["ssl_key"],
config["host"] == "127.0.0.1" ? "localhost" : config["host"],
config["port"]
)
end
#
private
def launch_browser(server, opts)
address = server_address(server, opts)
return system "start", address if Utils::Platforms.windows?
return system "xdg-open", address if Utils::Platforms.linux?
return system "open", address if Utils::Platforms.osx?
Jekyll.logger.error "Refusing to launch browser; " \
"Platform launcher unknown."
end
# Keep in our area with a thread or detach the server as requested
# by the user. This method determines what we do based on what you
# ask us to do.
private
def boot_or_detach(server, opts)
if opts["detach"]
pid = Process.fork do
server.start
end
Process.detach(pid)
Jekyll.logger.info "Server detached with pid '#{pid}'.", \
"Run `pkill -f jekyll' or `kill -9 #{pid}' to stop the server."
else
t = Thread.new { server.start }
trap("INT") { server.shutdown }
t.join
end
end
# Make the stack verbose if the user requests it.
private
def enable_logging(opts)
opts[:AccessLog] = []
level = WEBrick::Log.const_get(opts[:JekyllOptions]["verbose"] ? :DEBUG : :WARN)
opts[:Logger] = WEBrick::Log.new($stdout, level)
end
# Add SSL to the stack if the user triggers --enable-ssl and they
# provide both types of certificates commonly needed. Raise if they
# forget to add one of the certificates.
private
# rubocop:disable Metrics/AbcSize
def enable_ssl(opts)
return if !opts[:JekyllOptions]["ssl_cert"] && !opts[:JekyllOptions]["ssl_key"]
if !opts[:JekyllOptions]["ssl_cert"] || !opts[:JekyllOptions]["ssl_key"]
# rubocop:disable Style/RedundantException
raise RuntimeError, "--ssl-cert or --ssl-key missing."
end
require "openssl"
require "webrick/https"
source_key = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], \
opts[:JekyllOptions]["ssl_key" ])
source_certificate = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], \
opts[:JekyllOptions]["ssl_cert"])
opts[:SSLCertificate] =
OpenSSL::X509::Certificate.new(File.read(source_certificate))
opts[:SSLPrivateKey ] = OpenSSL::PKey::RSA.new(File.read(source_key))
opts[:SSLEnable] = true
end
private
def start_callback(detached)
unless detached
proc do
Jekyll.logger.info("Server running...", "press ctrl-c to stop.")
end
end
end
private
def mime_types
file = File.expand_path("../mime.types", File.dirname(__FILE__))
WEBrick::HTTPUtils.load_mime_types(file)
end
end
end
end
end

View File

@@ -0,0 +1,60 @@
require "webrick"
module Jekyll
module Commands
class Serve
class Servlet < WEBrick::HTTPServlet::FileHandler
DEFAULTS = {
"Cache-Control" => "private, max-age=0, proxy-revalidate, " \
"no-store, no-cache, must-revalidate"
}.freeze
def initialize(server, root, callbacks)
# So we can access them easily.
@jekyll_opts = server.config[:JekyllOptions]
set_defaults
super
end
# Add the ability to tap file.html the same way that Nginx does on our
# Docker images (or on GitHub Pages.) The difference is that we might end
# up with a different preference on which comes first.
def search_file(req, res, basename)
# /file.* > /file/index.html > /file.html
super || super(req, res, "#{basename}.html")
end
# rubocop:disable Style/MethodName
def do_GET(req, res)
rtn = super
validate_and_ensure_charset(req, res)
res.header.merge!(@headers)
rtn
end
#
private
def validate_and_ensure_charset(_req, res)
key = res.header.keys.grep(%r!content-type!i).first
typ = res.header[key]
unless typ =~ %r!;\s*charset=!
res.header[key] = "#{typ}; charset=#{@jekyll_opts["encoding"]}"
end
end
#
private
def set_defaults
hash_ = @jekyll_opts.fetch("webrick", {}).fetch("headers", {})
DEFAULTS.each_with_object(@headers = hash_) do |(key, val), hash|
hash[key] = val unless hash.key?(key)
end
end
end
end
end
end

View File

@@ -2,105 +2,108 @@
module Jekyll
class Configuration < Hash
# Default options. Overridden by values in _config.yml.
# Strings rather than symbols are used for compatibility with YAML.
DEFAULTS = {
DEFAULTS = Configuration[{
# Where things are
'source' => Dir.pwd,
'destination' => File.join(Dir.pwd, '_site'),
'plugins' => '_plugins',
'layouts' => '_layouts',
'data_source' => '_data',
'collections' => nil,
"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',
'textile_ext' => 'textile',
"safe" => false,
"include" => [".htaccess"],
"exclude" => %w(node_modules vendor),
"keep_files" => [".git", ".svn"],
"encoding" => "utf-8",
"markdown_ext" => "markdown,mkdown,mkdn,mkd,md",
# Filtering Content
'show_drafts' => nil,
'limit_posts' => 0,
'future' => true, # remove and make true just default
'unpublished' => false,
"show_drafts" => nil,
"limit_posts" => 0,
"future" => false,
"unpublished" => false,
# Plugins
'whitelist' => [],
'gems' => [],
"whitelist" => [],
"gems" => [],
# Conversion
'markdown' => 'kramdown',
'highlighter' => 'pygments',
'lsi' => false,
'excerpt_separator' => "\n\n",
"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' => '',
# Backwards-compatibility options
'relative_permalinks' => false,
"detach" => false, # default to not detaching the server
"port" => "4000",
"host" => "127.0.0.1",
"baseurl" => "",
"show_dir_listing" => false,
# Output Configuration
'permalink' => 'date',
'paginate_path' => '/page:num',
'timezone' => nil, # use the local timezone
"permalink" => "date",
"paginate_path" => "/page:num",
"timezone" => nil, # use the local timezone
'quiet' => false,
'defaults' => [],
"quiet" => false,
"verbose" => false,
"defaults" => [],
'maruku' => {
'use_tex' => false,
'use_divs' => false,
'png_engine' => 'blahtex',
'png_dir' => 'images/latex',
'png_url' => '/images/latex',
'fenced_code_blocks' => true
"liquid" => {
"error_mode" => "warn"
},
'rdiscount' => {
'extensions' => []
"rdiscount" => {
"extensions" => []
},
'redcarpet' => {
'extensions' => []
"redcarpet" => {
"extensions" => []
},
'kramdown' => {
'auto_ids' => true,
'footnote_nr' => 1,
'entity_output' => 'as_char',
'toc_levels' => '1..6',
'smart_quotes' => 'lsquo,rsquo,ldquo,rdquo',
'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'
}
},
'redcloth' => {
'hard_breaks' => true
"kramdown" => {
"auto_ids" => true,
"toc_levels" => "1..6",
"entity_output" => "as_char",
"smart_quotes" => "lsquo,rsquo,ldquo,rdquo",
"input" => "GFM",
"hard_wrap" => false,
"footnote_nr" => 1
}
}
}.map { |k, v| [k, v.freeze] }].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.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) }
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
@@ -109,21 +112,29 @@ module Jekyll
#
# Returns the path to the Jekyll source directory
def source(override)
override['source'] || self['source'] || DEFAULTS['source']
get_config_value_with_override("source", override)
end
def quiet?(override = {})
override['quiet'] || self['quiet'] || DEFAULTS['quiet']
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
when %r!\.toml!i
Jekyll::External.require_with_graceful_fail("toml") unless defined?(TOML)
TOML.load_file(filename)
when /\.ya?ml/i
SafeYAML.load_file(filename)
when %r!\.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."
raise ArgumentError, "No parser for '#{filename}' is available.
Use a .toml or .y(a)ml file instead."
end
end
@@ -133,14 +144,17 @@ module Jekyll
#
# Returns an Array of config files
def config_files(override)
# Be quiet quickly.
Jekyll.logger.log_level = :error if quiet?(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')
config_files = override.delete("config")
if config_files.to_s.empty?
default = %w[yml yaml].find(Proc.new { 'yml' }) do |ext|
File.exists? Jekyll.sanitized_path(source(override), "_config.#{ext}")
default = %w(yml yaml).find(-> { "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
@@ -156,15 +170,16 @@ module Jekyll
# 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)
check_config_is_hash!(next_config, file)
Jekyll.logger.info "Configuration file:", file
next_config
rescue SystemCallError
if @default_config_file
if @default_config_file ||= nil
Jekyll.logger.warn "Configuration file:", "none"
{}
else
Jekyll.logger.error "Fatal:", "The configuration file '#{file}' could not be found."
Jekyll.logger.error "Fatal:", "The configuration file '#{file}'
could not be found."
raise LoadError, "The Configuration file '#{file}' could not be found."
end
end
@@ -180,16 +195,17 @@ module Jekyll
begin
files.each do |config_file|
next if config_file.nil? || 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. " +
Jekyll.logger.warn "WARNING:", "Error reading configuration. " \
"Using defaults (and options)."
$stderr.puts "#{err}"
$stderr.puts err
end
configuration.fix_common_issues.backwards_compatibilize
configuration.fix_common_issues.backwards_compatibilize.add_default_collections
end
# Public: Split a CSV string into an array containing its values
@@ -208,69 +224,163 @@ module Jekyll
def backwards_compatibilize
config = clone
# Provide backwards-compatibility
if config.key?('auto') || config.key?('watch')
Jekyll.logger.warn "Deprecation:", "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
check_auto(config)
check_server(config)
if config.key? 'server'
Jekyll.logger.warn "Deprecation:", "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? 'server_port'
Jekyll.logger.warn "Deprecation:", "The 'server_port' configuration option" +
" has been renamed to 'port'. Please update your config" +
" file accordingly."
# copy but don't overwrite:
config['port'] = config['server_port'] unless config.key?('port')
config.delete('server_port')
end
check_pygments(config)
check_include_exclude(config)
check_coderay(config)
check_maruku(config)
if config.key? 'pygments'
Jekyll.logger.warn "Deprecation:", "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.logger.warn "Deprecation:", "The '#{option}' configuration option" +
" must now be specified as an array, but you specified" +
" a string. For now, we've treated the string you provided" +
" as a list of comma-separated values."
config[option] = csv_to_array(config[option])
end
config[option].map!(&:to_s)
end
if config.fetch('markdown', 'kramdown').to_s.downcase.eql?("maruku")
Jekyll::Deprecator.deprecation_message "You're using the 'maruku' " +
"Markdown processor. Maruku support has been deprecated and will " +
"be removed in 3.0.0. We recommend you switch to Kramdown."
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
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, _ = 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:output_ext"
when :date
"/:categories/:year/:month/:day/:title:output_ext"
when :ordinal
"/:categories/:year/:y_day/:title:output_ext"
else
permalink_style.to_s
end
end
# Private: Checks if a given config is a hash
#
# extracted_config - the value to check
# file - the file from which the config was extracted
#
# Raises an ArgumentError if given config is not a hash
private
def check_config_is_hash!(extracted_config, file)
unless extracted_config.is_a?(Hash)
raise ArgumentError, "Configuration file: (INVALID) #{file}".yellow
end
end
private
def check_auto(config)
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
end
private
def check_server(config)
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
end
private
def check_pygments(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
end
private
def check_include_exclude(config)
%w(include exclude).each do |option|
if config[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
end
private
def check_coderay(config)
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
end
private
def check_maruku(config)
if config.fetch("markdown", "kramdown").to_s.casecmp("maruku").zero?
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
end
end
end

View File

@@ -8,7 +8,9 @@ module Jekyll
#
# Returns the String prefix.
def self.highlighter_prefix(highlighter_prefix = nil)
@highlighter_prefix = highlighter_prefix if highlighter_prefix
if !defined?(@highlighter_prefix) || !highlighter_prefix.nil?
@highlighter_prefix = highlighter_prefix
end
@highlighter_prefix
end
@@ -20,7 +22,9 @@ module Jekyll
#
# Returns the String suffix.
def self.highlighter_suffix(highlighter_suffix = nil)
@highlighter_suffix = highlighter_suffix if highlighter_suffix
if !defined?(@highlighter_suffix) || !highlighter_suffix.nil?
@highlighter_suffix = highlighter_suffix
end
@highlighter_suffix
end

View File

@@ -5,7 +5,7 @@ module Jekyll
priority :lowest
def matches(ext)
def matches(_ext)
true
end

View File

@@ -1,63 +1,72 @@
module Jekyll
module Converters
class Markdown < Converter
safe true
highlighter_prefix "\n"
highlighter_suffix "\n"
safe true
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)
when 'maruku' then MarukuParser.new(@config)
else
# So they can't try some tricky bullshit or go down the ancestor chain, I hope.
if allowed_custom_class?(@config['markdown'])
self.class.const_get(@config['markdown']).new(@config)
else
Jekyll.logger.error "Invalid Markdown Processor:", "#{@config['markdown']}"
Jekyll.logger.error "", "Valid options are [ #{valid_processors.join(" | ")} ]"
raise Errors::FatalException, "Invalid Markdown Processor: #{@config['markdown']}"
end
return if @setup ||= false
unless (@parser = get_processor)
Jekyll.logger.error "Invalid Markdown processor given:", @config["markdown"]
if @config["safe"]
Jekyll.logger.info "", "Custom processors are not loaded in safe mode"
end
Jekyll.logger.error(
"",
"Available processors are: #{valid_processors.join(", ")}"
)
raise Errors::FatalException, "Bailing out; invalid Markdown processor."
end
@setup = true
end
def valid_processors
%w[
maruku
rdiscount
kramdown
redcarpet
] + third_party_processors
# Rubocop does not allow reader methods to have names starting with `get_`
# To ensure compatibility, this check has been disabled on this method
#
# rubocop:disable Style/AccessorMethodName
def get_processor
case @config["markdown"].downcase
when "redcarpet" then return RedcarpetParser.new(@config)
when "kramdown" then return KramdownParser.new(@config)
when "rdiscount" then return RDiscountParser.new(@config)
else
custom_processor
end
end
# rubocop:enable Style/AccessorMethodName
# Public: Provides you with a list of processors, the ones we
# support internally and the ones that you have provided to us (if you
# are not in safe mode.)
def valid_processors
%W(rdiscount kramdown redcarpet) + third_party_processors
end
# Public: A list of processors that you provide via plugins.
# This is really only available if you are not in safe mode, if you are
# in safe mode (re: GitHub) then there will be none.
def third_party_processors
self.class.constants - %w[
KramdownParser
MarukuParser
RDiscountParser
RedcarpetParser
PRIORITIES
].map(&:to_sym)
self.class.constants - \
%w(KramdownParser RDiscountParser RedcarpetParser PRIORITIES).map(
&:to_sym
)
end
def extname_matches_regexp
@extname_matches_regexp ||= Regexp.new(
'(' + @config['markdown_ext'].gsub(',','|') +')$',
Regexp::IGNORECASE
)
def extname_list
@extname_list ||= @config["markdown_ext"].split(",").map do |e|
".#{e.downcase}"
end
end
def matches(ext)
ext =~ extname_matches_regexp
extname_list.include?(ext.downcase)
end
def output_ext(ext)
def output_ext(_ext)
".html"
end
@@ -67,16 +76,26 @@ module Jekyll
end
private
def custom_processor
converter_name = @config["markdown"]
if custom_class_allowed?(converter_name)
self.class.const_get(converter_name).new(@config)
end
end
# Private: Determine whether a class name is an allowed custom markdown
# class name
# 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)
# Returns true if the parser name contains only alphanumeric
# characters and is defined within Jekyll::Converters::Markdown
private
def custom_class_allowed?(parser_name)
parser_name !~ %r![^A-Za-z0-9_]! && self.class.constants.include?(
parser_name.to_sym
)
end
end
end

View File

@@ -0,0 +1,35 @@
class Kramdown::Parser::Inline < Kramdown::Parser::Kramdown
def initialize(source, options)
super
@block_parsers = [:block_html].freeze
end
end
module Jekyll
module Converters
class Markdown
class Inline < Converter
safe true
priority :low
def initialize(config)
Jekyll::External.require_with_graceful_fail "kramdown"
@config = config["kramdown"].dup || {}
@config[:input] = :Inline
end
def matches(_)
false
end
def output_ext(_)
nil
end
def convert(content)
Kramdown::Document.new(content, @config).to_html.chomp
end
end
end
end
end

View File

@@ -1,28 +1,124 @@
# Frozen-string-literal: true
# Encoding: utf-8
module Jekyll
module Converters
class Markdown
class KramdownParser
CODERAY_DEFAULTS = {
"css" => "style",
"bold_every" => 10,
"line_numbers" => "inline",
"line_number_start" => 1,
"tab_width" => 4,
"wrap" => "div"
}.freeze
def initialize(config)
require 'kramdown'
@config = config
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")
Jekyll::External.require_with_graceful_fail "kramdown"
@main_fallback_highlighter = config["highlighter"] || "rouge"
@config = config["kramdown"] || {}
@highlighter = nil
setup
end
# Setup and normalize the configuration:
# * Create Kramdown if it doesn't exist.
# * Set syntax_highlighter, detecting enable_coderay and merging
# highlighter if none.
# * Merge kramdown[coderay] into syntax_highlighter_opts stripping coderay_.
# * Make sure `syntax_highlighter_opts` exists.
def setup
@config["syntax_highlighter"] ||= highlighter
@config["syntax_highlighter_opts"] ||= {}
@config["coderay"] ||= {} # XXX: Legacy.
modernize_coderay_config
make_accessible
end
def convert(content)
# Check for use of coderay
if @config['kramdown']['use_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
Kramdown::Document.new(content, @config).to_html
end
private
def make_accessible(hash = @config)
proc_ = proc { |hash_, key| hash_[key.to_s] if key.is_a?(Symbol) }
hash.default_proc = proc_
hash.each do |_, val|
make_accessible val if val.is_a?(
Hash
)
end
end
# config[kramdown][syntax_higlighter] >
# config[kramdown][enable_coderay] >
# config[highlighter]
# Where `enable_coderay` is now deprecated because Kramdown
# supports Rouge now too.
private
def highlighter
return @highlighter if @highlighter
if @config["syntax_highlighter"]
return @highlighter = @config[
"syntax_highlighter"
]
end
@highlighter = begin
if @config.key?("enable_coderay") && @config["enable_coderay"]
Jekyll::Deprecator.deprecation_message(
"You are using 'enable_coderay', " \
"use syntax_highlighter: coderay in your configuration file."
)
"coderay"
else
@main_fallback_highlighter
end
end
end
private
def strip_coderay_prefix(hash)
hash.each_with_object({}) do |(key, val), hsh|
cleaned_key = key.gsub(%r!\Acoderay_!, "")
if key != cleaned_key
Jekyll::Deprecator.deprecation_message(
"You are using '#{key}'. Normalizing to #{cleaned_key}."
)
end
hsh[cleaned_key] = val
end
end
# If our highlighter is CodeRay we go in to merge the CodeRay defaults
# with your "coderay" key if it's there, deprecating it in the
# process of you using it.
private
def modernize_coderay_config
unless @config["coderay"].empty?
Jekyll::Deprecator.deprecation_message(
"You are using 'kramdown.coderay' in your configuration, " \
"please use 'syntax_highlighter_opts' instead."
)
@config["syntax_highlighter_opts"] = begin
strip_coderay_prefix(
@config["syntax_highlighter_opts"] \
.merge(CODERAY_DEFAULTS) \
.merge(@config["coderay"])
)
end
end
end
end
end
end

View File

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

View File

@@ -3,16 +3,16 @@ module Jekyll
class Markdown
class RDiscountParser
def initialize(config)
Jekyll::Deprecator.gracefully_require "rdiscount"
Jekyll::External.require_with_graceful_fail "rdiscount"
@config = config
@rdiscount_extensions = @config['rdiscount']['extensions'].map { |e| e.to_sym }
@rdiscount_extensions = @config["rdiscount"]["extensions"].map(&: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'])
if @config["rdiscount"]["toc_token"]
html = replace_generated_toc(rd, html, @config["rdiscount"]["toc_token"])
end
html
end
@@ -21,7 +21,7 @@ module Jekyll
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)
utf8_toc.force_encoding("utf-8") if utf8_toc.respond_to?(:force_encoding)
html.gsub(toc_token, utf8_toc)
else
html

View File

@@ -1,103 +1,108 @@
module Jekyll
module Converters
class Markdown
class RedcarpetParser
class Jekyll::Converters::Markdown::RedcarpetParser
module CommonMethods
def add_code_tags(code, lang)
code = code.to_s
code = code.sub(
%r!<pre>!,
"<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">"
)
code = code.sub(%r!</pre>!, "</code></pre>")
code
end
end
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
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)
Jekyll::External.require_with_graceful_fail("redcarpet")
@config = config
@redcarpet_extensions = {}
@config["redcarpet"]["extensions"].each do |e|
@redcarpet_extensions[e.to_sym] = true
end
@renderer ||= class_with_proper_highlighter(@config["highlighter"])
end
def class_with_proper_highlighter(highlighter)
Class.new(Redcarpet::Render::HTML) do
case highlighter
when "pygments"
include WithPygments
when "rouge"
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
module WithPygments
include CommonMethods
def block_code(code, lang)
Jekyll::Deprecator.gracefully_require("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)
"<div class=\"highlight\"><pre>#{CGI::escapeHTML(code)}</pre></div>"
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)
Deprecator.gracefully_require("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::Deprecator.gracefully_require(%w[
rouge
rouge/plugins/redcarpet
])
if Rouge.version < '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
include Rouge::Plugins::Redcarpet
include CommonMethods
include WithRouge
else
include WithoutHighlighting
end
end
end
def convert(content)
@redcarpet_extensions[:fenced_code_blocks] = \
!@redcarpet_extensions[:no_fenced_code_blocks]
if @redcarpet_extensions[:smart]
@renderer.send :include, Redcarpet::Render::SmartyPants
end
markdown = Redcarpet::Markdown.new(
@renderer.new(@redcarpet_extensions),
@redcarpet_extensions
)
markdown.render(content)
end
end

View File

@@ -0,0 +1,34 @@
class Kramdown::Parser::SmartyPants < Kramdown::Parser::Kramdown
def initialize(source, options)
super
@block_parsers = [:block_html]
@span_parsers = [:smart_quotes, :html_entity, :typographic_syms, :span_html]
end
end
module Jekyll
module Converters
class SmartyPants < Converter
safe true
priority :low
def initialize(config)
Jekyll::External.require_with_graceful_fail "kramdown"
@config = config["kramdown"].dup || {}
@config[:input] = :SmartyPants
end
def matches(_)
false
end
def output_ext(_)
nil
end
def convert(content)
Kramdown::Document.new(content, @config).to_html.chomp
end
end
end
end

View File

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

View File

@@ -1,6 +1,6 @@
# encoding: UTF-8
require 'set'
require "set"
# Convertible provides methods for converting a pagelike item
# from a certain type of markup into actual content
@@ -20,18 +20,12 @@ module Jekyll
module Convertible
# Returns the contents as a String.
def to_s
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)
!(data.key?("published") && data["published"] == false)
end
# Read the YAML frontmatter.
@@ -41,36 +35,50 @@ module Jekyll
# opts - optional parameter to File.read, default at site configs
#
# Returns nothing.
# rubocop:disable Metrics/AbcSize
def read_yaml(base, name, opts = {})
filename = File.join(base, name)
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 = File.read(@path || site.in_source_dir(base, name),
Utils.merged_file_read_opts(site, opts))
if content =~ Document::YAML_FRONT_MATTER_REGEXP
self.content = $POSTMATCH
self.data = SafeYAML.load($1)
self.data = SafeYAML.load(Regexp.last_match(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}"
Jekyll.logger.warn "YAML Exception reading #{filename}: #{e.message}"
rescue => e
Jekyll.logger.warn "Error reading file #{filename}: #{e.message}"
end
self.data ||= {}
validate_data! filename
validate_permalink! filename
self.data
end
# rubocop:enable Metrics/AbcSize
def validate_data!(filename)
unless self.data.is_a?(Hash)
raise Errors::InvalidYAMLFrontMatterError,
"Invalid YAML front matter in #{filename}"
end
end
def validate_permalink!(filename)
if self.data["permalink"] && self.data["permalink"].empty?
raise Errors::InvalidPermalinkError, "Invalid permalink in #{filename}"
end
end
# Transform the contents based on the content type.
#
# Returns the transformed contents.
def transform
converters.reduce(content) do |output, converter|
begin
converter.convert output
rescue => e
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error converting '#{path}'."
Jekyll.logger.error("Conversion error:", e.to_s)
raise e
end
end
_renderer.transform
end
# Determine the extension depending on content_type.
@@ -78,13 +86,7 @@ module Jekyll
# Returns the String extension for the output file.
# e.g. ".html" for an HTML output file.
def output_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
_renderer.output_ext
end
# Determine which converter to use based on this convertible's
@@ -92,7 +94,7 @@ module Jekyll
#
# Returns the Converter instance.
def converters
@converters ||= site.converters.select { |c| c.matches(ext) }.sort
_renderer.converters
end
# Render Liquid in the content
@@ -102,23 +104,18 @@ module Jekyll
# info - the info for Liquid
#
# Returns the converted content
def render_liquid(content, payload, info, path = nil)
Liquid::Template.parse(content).render!(payload, info)
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
def render_liquid(content, payload, info, path)
_renderer.render_liquid(content, payload, info, path)
end
# rubocop: enable RescueException
# 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|
further_data = Hash[(attrs || self.class::ATTRIBUTES_FOR_LIQUID).map do |attribute|
[attribute, send(attribute)]
}]
end]
defaults = site.frontmatter_defaults.all(relative_path, type)
Utils.deep_merge_hashes defaults, Utils.deep_merge_hashes(data, further_data)
@@ -129,11 +126,14 @@ module Jekyll
#
# Returns the type of self.
def type
if is_a?(Draft)
:drafts
elsif is_a?(Post)
:posts
elsif is_a?(Page)
if is_a?(Page)
:pages
end
end
# returns the owner symbol for hook triggering
def hook_owner
if is_a?(Page)
:pages
end
end
@@ -151,14 +151,14 @@ module Jekyll
#
# Returns true if extname == .sass or .scss, false otherwise.
def sass_file?
%w[.sass .scss].include?(ext)
%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)
".coffee" == ext
end
# Determine whether the file should be rendered with Liquid.
@@ -192,51 +192,28 @@ module Jekyll
#
# 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
payload = Utils.deep_merge_hashes(payload, {"content" => output, "page" => layout.data})
self.output = render_liquid(layout.content,
payload,
info,
File.join(site.config['layouts'], layout.name))
if layout = layouts[layout.data["layout"]]
if used.include?(layout)
layout = nil # avoid recursive chain
else
used << layout
end
end
end
_renderer.layouts = layouts
self.output = _renderer.place_in_layouts(output, payload, info)
ensure
@_renderer = nil # this will allow the modifications above to disappear
end
# Add any necessary layouts to this convertible document.
#
# payload - The site payload Hash.
# payload - The site payload Drop or Hash.
# layouts - A Hash of {"name" => "layout"}.
#
# Returns nothing.
def do_layout(payload, layouts)
info = { :filters => [Jekyll::Filters], :registers => { :site => site, :page => payload['page'] } }
self.output = _renderer.tap do |renderer|
renderer.layouts = layouts
renderer.payload = payload
end.run
# render and transform content (this becomes the final content of the object)
payload["highlighter_prefix"] = converters.first.highlighter_prefix
payload["highlighter_suffix"] = converters.first.highlighter_suffix
self.content = render_liquid(content, payload, info) if render_with_liquid?
self.content = transform
# output keeps track of what will finally be written
self.output = content
render_all_layouts(layouts, payload, info) if place_in_layout?
Jekyll.logger.debug "Post-Render Hooks:", self.relative_path
Jekyll::Hooks.trigger hook_owner, :post_render, self
ensure
@_renderer = nil # this will allow the modifications above to disappear
end
# Write the generated page file to the destination directory.
@@ -247,9 +224,8 @@ module Jekyll
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |f|
f.write(output)
end
File.write(path, output, :mode => "wb")
Jekyll::Hooks.trigger hook_owner, :post_write, self
end
# Accessor for data properties by Liquid.
@@ -264,5 +240,10 @@ module Jekyll
data[property]
end
end
private
def _renderer
@_renderer ||= Jekyll::Renderer.new(site, self)
end
end
end

View File

@@ -3,25 +3,31 @@ module Jekyll
extend self
def process(args)
no_subcommand(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, "--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 \
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."
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."
unless args.empty? ||
args.first !~ %r(!/^--/!) || %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
@@ -37,25 +43,9 @@ module Jekyll
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}'."
Jekyll.logger.warn "Defaults:", "Please update your front-matter defaults to use \
'type: #{current}'."
end
def gracefully_require(gem_name)
Array(gem_name).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 Errors::MissingDependencyException.new(name)
end
end
end
end
end

View File

@@ -4,21 +4,39 @@ module Jekyll
class Document
include Comparable
attr_reader :path, :site, :extname
attr_accessor :content, :collection, :output
attr_reader :path, :site, :extname, :collection
attr_accessor :content, :output
YAML_FRONT_MATTER_REGEXP = %r!\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)!m
DATELESS_FILENAME_MATCHER = %r!^(?:.+/)*(.*)(\.[^.]+)$!
DATE_FILENAME_MATCHER = %r!^(?:.+/)*(\d+-\d+-\d+)-(.*)(\.[^.]+)$!
# Create a new Document.
#
# site - the Jekyll::Site instance to which this Document belongs
# path - the path to the file
# relations - a hash with keys :site and :collection, the values of which
# are the Jekyll::Site and Jekyll::Collection to which this
# Document belong.
#
# Returns nothing.
def initialize(path, relations)
def initialize(path, relations = {})
@site = relations[:site]
@path = path
@extname = File.extname(path)
@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 |_, key|
site.frontmatter_defaults.find(relative_path, collection.label, key)
end
trigger_hooks(:post_init)
end
# Fetch the Document's data.
@@ -26,7 +44,35 @@ module Jekyll
# Returns a Hash containing the data. An empty hash is returned if
# no data was read.
def data
@data ||= Hash.new
@data ||= {}
end
# Merge some data in with this document's data.
#
# Returns the merged data.
def merge_data!(other, source: "YAML front matter")
merge_categories!(other)
Utils.deep_merge_hashes!(data, other)
merge_date!(source)
data
end
def date
data["date"] ||= (draft? ? source_file_mtime : site.time)
end
def source_file_mtime
@source_file_mtime ||= File.mtime(path)
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.
@@ -34,14 +80,21 @@ module Jekyll
# 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
@relative_path ||= Pathutil.new(path).relative_path_from(site.source).to_s
end
# The output extension of the document.
#
# Returns the output extension
def output_ext
Jekyll::Renderer.new(site, self).output_ext
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, '.*')
@basename_without_ext ||= File.basename(path, ".*")
end
# The base filename of the document.
@@ -64,14 +117,14 @@ module Jekyll
# 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, "")
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)
%w(.yaml .yml).include?(extname)
end
# Determine whether the document is an asset file.
@@ -87,14 +140,14 @@ module Jekyll
#
# Returns true if extname == .sass or .scss, false otherwise.
def sass_file?
%w[.sass .scss].include?(extname)
%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)
".coffee" == extname
end
# Determine whether the file should be rendered with Liquid.
@@ -125,13 +178,7 @@ module Jekyll
#
# Returns the Hash of key-value pairs for replacement in the URL.
def url_placeholders
{
collection: collection.label,
path: cleaned_relative_path,
output_ext: Jekyll::Renderer.new(site, self).output_ext,
name: Utils.slugify(basename_without_ext),
title: Utils.slugify(data['title']) || Utils.slugify(basename_without_ext)
}
@url_placeholders ||= Drops::UrlDrop.new(self)
end
# The permalink for this Document.
@@ -139,7 +186,7 @@ module Jekyll
#
# Returns the permalink or nil if no permalink was set in the data.
def permalink
data && data.is_a?(Hash) && data['permalink']
data && data.is_a?(Hash) && data["permalink"]
end
# The computed URL for the document. See `Jekyll::URL#to_s` for more details.
@@ -147,12 +194,16 @@ module Jekyll
# Returns the computed URL for the document.
def url
@url = URL.new({
template: url_template,
placeholders: url_placeholders,
permalink: permalink
: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
@@ -160,8 +211,12 @@ module Jekyll
# 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)
path = File.join(path, "index.html") if 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
@@ -173,26 +228,17 @@ module Jekyll
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |f|
f.write(output)
end
end
File.write(path, output, :mode => "wb")
# 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
trigger_hooks(:post_write)
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`.
# Returns 'false' if the 'published' key is specified in the
# YAML front-matter and is 'false'. Otherwise returns 'true'.
def published?
!(data.key?('published') && data['published'] == false)
!(data.key?("published") && data["published"] == false)
end
# Read in the file and assign the content and data based on the file contents.
@@ -201,26 +247,20 @@ module Jekyll
#
# Returns nothing.
def read(opts = {})
Jekyll.logger.debug "Reading:", relative_path
if yaml_file?
@data = SafeYAML.load_file(path)
else
begin
defaults = @site.frontmatter_defaults.all(url, collection.label.to_sym)
unless defaults.empty?
@data = defaults
end
@content = File.read(path, merged_file_read_opts(opts))
if content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
@content = $POSTMATCH
data_file = SafeYAML.load($1)
unless data_file.nil?
@data = Utils.deep_merge_hashes(defaults, data_file)
end
end
merge_defaults
read_content(opts)
read_post_data
rescue SyntaxError => e
puts "YAML Exception reading #{path}: #{e.message}"
rescue Exception => e
puts "Error reading file #{path}: #{e.message}"
Jekyll.logger.error "Error:", "YAML Exception reading #{path}: #{e.message}"
rescue => e
raise e if e.is_a? Jekyll::Errors::FatalException
Jekyll.logger.error "Error:", "could not read file #{path}: #{e.message}"
end
end
end
@@ -229,18 +269,7 @@ module Jekyll
#
# Returns a Hash representing this Document's data.
def to_liquid
if data.is_a?(Hash)
Utils.deep_merge_hashes data, {
"output" => output,
"content" => content,
"path" => path,
"relative_path" => relative_path,
"url" => url,
"collection" => collection.label
}
else
data
end
@to_liquid ||= Drops::DocumentDrop.new(self)
end
# The inspect string for this document.
@@ -255,7 +284,7 @@ module Jekyll
#
# Returns the content of the document
def to_s
content || ''
output || content || "NO CONTENT"
end
# Compare this document against another document.
@@ -263,8 +292,11 @@ module Jekyll
#
# Returns -1, 0, +1 or nil depending on whether this doc's path is less than,
# equal or greater than the other doc's path. See String#<=> for more details.
def <=>(anotherDocument)
path <=> anotherDocument.path
def <=>(other)
return nil unless other.respond_to?(:data)
cmp = data["date"] <=> other.data["date"]
cmp = path <=> other.path if cmp.nil? || cmp.zero?
cmp
end
# Determine whether this document should be written.
@@ -276,5 +308,183 @@ module Jekyll
collection && collection.write?
end
# The Document excerpt_separator, from the YAML Front-Matter or site
# default excerpt_separator value
#
# Returns the document excerpt_separator
def excerpt_separator
(data["excerpt_separator"] || site.config["excerpt_separator"]).to_s
end
# Whether to generate an excerpt
#
# Returns true if the excerpt separator is configured.
def generate_excerpt?
!excerpt_separator.empty?
end
def next_doc
pos = collection.docs.index { |post| post.equal?(self) }
if pos && pos < collection.docs.length - 1
collection.docs[pos + 1]
end
end
def previous_doc
pos = collection.docs.index { |post| post.equal?(self) }
if pos && pos > 0
collection.docs[pos - 1]
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::Deprecator.deprecation_message "Document##{method} is now a key "\
"in the #data hash."
Jekyll::Deprecator.deprecation_message "Called by #{caller.first}."
data[method.to_s]
else
super
end
end
def respond_to_missing?(method, *)
data.key?(method.to_s) || super
end
private
def merge_categories!(other)
if other.key?("categories") && !other["categories"].nil?
if other["categories"].is_a?(String)
other["categories"] = other["categories"].split(%r!\s+!).map(&:strip)
end
other["categories"] = (data["categories"] || []) | other["categories"]
end
end
private
def merge_date!(source)
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
end
private
def merge_defaults
defaults = @site.frontmatter_defaults.all(
relative_path,
collection.label.to_sym
)
merge_data!(defaults, :source => "front matter defaults") unless defaults.empty?
end
private
def read_content(opts)
self.content = File.read(path, Utils.merged_file_read_opts(site, opts))
if content =~ YAML_FRONT_MATTER_REGEXP
self.content = $POSTMATCH
data_file = SafeYAML.load(Regexp.last_match(1))
merge_data!(data_file, :source => "YAML front matter") if data_file
end
end
private
def read_post_data
populate_title
populate_categories
populate_tags
generate_excerpt
end
private
def populate_title
if relative_path =~ DATE_FILENAME_MATCHER
date, slug, ext = Regexp.last_match.captures
modify_date(date)
elsif relative_path =~ DATELESS_FILENAME_MATCHER
slug, ext = Regexp.last_match.captures
end
# Try to ensure the user gets a title.
data["title"] ||= Utils.titleize_slug(slug)
# Only overwrite slug & ext if they aren't specified.
data["slug"] ||= slug
data["ext"] ||= ext
end
private
def modify_date(date)
if !data["date"] || data["date"].to_i == site.time.to_i
merge_data!({ "date" => date }, :source => "filename")
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.
private
def categories_from_path(special_dir)
superdirs = relative_path.sub(%r!#{special_dir}(.*)!, "")
.split(File::SEPARATOR)
.reject do |c|
c.empty? || c == special_dir || c == basename
end
merge_data!({ "categories" => superdirs }, :source => "file path")
end
private
def populate_categories
merge_data!({
"categories" => (
Array(data["categories"]) + Utils.pluralized_array_from_hash(
data,
"category",
"categories"
)
).map(&:to_s).flatten.uniq
})
end
private
def populate_tags
merge_data!({
"tags" => Utils.pluralized_array_from_hash(data, "tag", "tags").flatten
})
end
private
def generate_excerpt
if generate_excerpt?
data["excerpt"] ||= Jekyll::Excerpt.new(self)
end
end
end
end

View File

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

View File

@@ -0,0 +1,22 @@
# encoding: UTF-8
module Jekyll
module Drops
class CollectionDrop < Drop
extend Forwardable
mutable false
def_delegator :@obj, :write?, :output
def_delegators :@obj, :label, :docs, :files, :directory,
:relative_directory
def to_s
docs.to_s
end
private
def_delegator :@obj, :metadata, :fallback_data
end
end
end

View File

@@ -0,0 +1,69 @@
# encoding: UTF-8
module Jekyll
module Drops
class DocumentDrop < Drop
extend Forwardable
NESTED_OBJECT_FIELD_BLACKLIST = %w(
content output excerpt next previous
).freeze
mutable false
def_delegator :@obj, :relative_path, :path
def_delegators :@obj, :id, :output, :content, :to_s, :relative_path, :url
def collection
@obj.collection.label
end
def excerpt
fallback_data["excerpt"].to_s
end
def <=>(other)
return nil unless other.is_a? DocumentDrop
cmp = self["date"] <=> other["date"]
cmp = self["path"] <=> other["path"] if cmp.nil? || cmp.zero?
cmp
end
def previous
@obj.previous_doc.to_liquid
end
def next
@obj.next_doc.to_liquid
end
# Generate a Hash for use in generating JSON.
# This is useful if fields need to be cleared before the JSON can generate.
#
# state - the JSON::State object which determines the state of current processing.
#
# Returns a Hash ready for JSON generation.
def hash_for_json(state = nil)
to_h.tap do |hash|
if state && state.depth >= 2
hash["previous"] = collapse_document(hash["previous"]) if hash["previous"]
hash["next"] = collapse_document(hash["next"]) if hash["next"]
end
end
end
# Generate a Hash which breaks the recursive chain.
# Certain fields which are normally available are omitted.
#
# Returns a Hash with only non-recursive fields present.
def collapse_document(doc)
doc.keys.each_with_object({}) do |(key, _), result|
result[key] = doc[key] unless NESTED_OBJECT_FIELD_BLACKLIST.include?(key)
end
end
private
def_delegator :@obj, :data, :fallback_data
end
end
end

215
lib/jekyll/drops/drop.rb Normal file
View File

@@ -0,0 +1,215 @@
# encoding: UTF-8
module Jekyll
module Drops
class Drop < Liquid::Drop
include Enumerable
NON_CONTENT_METHODS = [:fallback_data, :collapse_document].freeze
# Get or set whether the drop class is mutable.
# Mutability determines whether or not pre-defined fields may be
# overwritten.
#
# is_mutable - Boolean set mutability of the class (default: nil)
#
# Returns the mutability of the class
def self.mutable(is_mutable = nil)
@is_mutable = if is_mutable
is_mutable
else
false
end
end
def self.mutable?
@is_mutable
end
# Create a new Drop
#
# obj - the Jekyll Site, Collection, or Document required by the
# drop.
#
# Returns nothing
def initialize(obj)
@obj = obj
@mutations = {} # only if mutable: true
end
# Access a method in the Drop or a field in the underlying hash data.
# If mutable, checks the mutations first. Then checks the methods,
# and finally check the underlying hash (e.g. document front matter)
# if all the previous places didn't match.
#
# key - the string key whose value to fetch
#
# Returns the value for the given key, or nil if none exists
def [](key)
if self.class.mutable? && @mutations.key?(key)
@mutations[key]
elsif self.class.invokable? key
public_send key
else
fallback_data[key]
end
end
# Set a field in the Drop. If mutable, sets in the mutations and
# returns. If not mutable, checks first if it's trying to override a
# Drop method and raises a DropMutationException if so. If not
# mutable and the key is not a method on the Drop, then it sets the
# key to the value in the underlying hash (e.g. document front
# matter)
#
# key - the String key whose value to set
# val - the Object to set the key's value to
#
# Returns the value the key was set to unless the Drop is not mutable
# and the key matches a method in which case it raises a
# DropMutationException.
def []=(key, val)
if respond_to?("#{key}=")
public_send("#{key}=", val)
elsif respond_to? key
if self.class.mutable?
@mutations[key] = val
else
raise Errors::DropMutationException, "Key #{key} cannot be set in the drop."
end
else
fallback_data[key] = val
end
end
# Generates a list of strings which correspond to content getter
# methods.
#
# Returns an Array of strings which represent method-specific keys.
def content_methods
@content_methods ||= (
self.class.instance_methods \
- Jekyll::Drops::Drop.instance_methods \
- NON_CONTENT_METHODS
).map(&:to_s).reject do |method|
method.end_with?("=")
end
end
# Check if key exists in Drop
#
# key - the string key whose value to fetch
#
# Returns true if the given key is present
def key?(key)
if self.class.mutable
@mutations.key?(key)
else
respond_to?(key) || fallback_data.key?(key)
end
end
# Generates a list of keys with user content as their values.
# This gathers up the Drop methods and keys of the mutations and
# underlying data hashes and performs a set union to ensure a list
# of unique keys for the Drop.
#
# Returns an Array of unique keys for content for the Drop.
def keys
(content_methods |
@mutations.keys |
fallback_data.keys).flatten
end
# Generate a Hash representation of the Drop by resolving each key's
# value. It includes Drop methods, mutations, and the underlying object's
# data. See the documentation for Drop#keys for more.
#
# Returns a Hash with all the keys and values resolved.
def to_h
keys.each_with_object({}) do |(key, _), result|
result[key] = self[key]
end
end
alias_method :to_hash, :to_h
# Inspect the drop's keys and values through a JSON representation
# of its keys and values.
#
# Returns a pretty generation of the hash representation of the Drop.
def inspect
require "json"
JSON.pretty_generate to_h
end
# Generate a Hash for use in generating JSON.
# This is useful if fields need to be cleared before the JSON can generate.
#
# Returns a Hash ready for JSON generation.
def hash_for_json(*)
to_h
end
# Generate a JSON representation of the Drop.
#
# state - the JSON::State object which determines the state of current processing.
#
# Returns a JSON representation of the Drop in a String.
def to_json(state = nil)
require "json"
JSON.generate(hash_for_json(state), state)
end
# Collects all the keys and passes each to the block in turn.
#
# block - a block which accepts one argument, the key
#
# Returns nothing.
def each_key(&block)
keys.each(&block)
end
def each
each_key.each do |key|
yield key, self[key]
end
end
def merge(other, &block)
self.dup.tap do |me|
if block.nil?
me.merge!(other)
else
me.merge!(other, block)
end
end
end
def merge!(other)
other.each_key do |key|
if block_given?
self[key] = yield key, self[key], other[key]
else
if Utils.mergable?(self[key]) && Utils.mergable?(other[key])
self[key] = Utils.deep_merge_hashes(self[key], other[key])
next
end
self[key] = other[key] unless other[key].nil?
end
end
end
# Imitate Hash.fetch method in Drop
#
# Returns value if key is present in Drop, otherwise returns default value
# KeyError is raised if key is not present and no default value given
def fetch(key, default = nil, &block)
return self[key] if key?(key)
raise KeyError, %(key not found: "#{key}") if default.nil? && block.nil?
return yield(key) unless block.nil?
return default unless default.nil?
end
end
end
end

View File

@@ -0,0 +1,15 @@
# encoding: UTF-8
module Jekyll
module Drops
class ExcerptDrop < DocumentDrop
def layout
@obj.doc.data["layout"]
end
def excerpt
nil
end
end
end
end

View File

@@ -0,0 +1,33 @@
# encoding: UTF-8
module Jekyll
module Drops
class JekyllDrop < Liquid::Drop
class << self
def global
@global ||= JekyllDrop.new
end
end
def version
Jekyll::VERSION
end
def environment
Jekyll.env
end
def to_h
@to_h ||= {
"version" => version,
"environment" => environment
}
end
def to_json(state = nil)
require "json"
JSON.generate(to_h, state)
end
end
end
end

View File

@@ -0,0 +1,40 @@
# encoding: UTF-8
module Jekyll
module Drops
class SiteDrop < Drop
extend Forwardable
mutable false
def_delegator :@obj, :site_data, :data
def_delegators :@obj, :time, :pages, :static_files, :documents,
:tags, :categories
def [](key)
if @obj.collections.key?(key) && key != "posts"
@obj.collections[key].docs
else
super(key)
end
end
def posts
@site_posts ||= @obj.posts.docs.sort { |a, b| b <=> a }
end
def html_pages
@site_html_pages ||= @obj.pages.select do |page|
page.html? || page.url.end_with?("/")
end
end
def collections
@site_collections ||= @obj.collections.values.sort_by(&:label).map(&:to_liquid)
end
private
def_delegator :@obj, :config, :fallback_data
end
end
end

View File

@@ -0,0 +1,25 @@
# encoding: UTF-8
module Jekyll
module Drops
class UnifiedPayloadDrop < Drop
mutable true
attr_accessor :page, :layout, :content, :paginator
attr_accessor :highlighter_prefix, :highlighter_suffix
def jekyll
JekyllDrop.global
end
def site
@site_drop ||= SiteDrop.new(@obj)
end
private
def fallback_data
@fallback_data ||= {}
end
end
end
end

View File

@@ -0,0 +1,83 @@
# encoding: UTF-8
module Jekyll
module Drops
class UrlDrop < Drop
extend Forwardable
mutable false
def_delegator :@obj, :cleaned_relative_path, :path
def_delegator :@obj, :output_ext, :output_ext
def collection
@obj.collection.label
end
def name
Utils.slugify(@obj.basename_without_ext)
end
def title
Utils.slugify(@obj.data["slug"], :mode => "pretty", :cased => true) ||
Utils.slugify(@obj.basename_without_ext, :mode => "pretty", :cased => true)
end
def slug
Utils.slugify(@obj.data["slug"]) || Utils.slugify(@obj.basename_without_ext)
end
def categories
category_set = Set.new
Array(@obj.data["categories"]).each do |category|
category_set << category.to_s.downcase
end
category_set.to_a.join("/")
end
def year
@obj.date.strftime("%Y")
end
def month
@obj.date.strftime("%m")
end
def day
@obj.date.strftime("%d")
end
def hour
@obj.date.strftime("%H")
end
def minute
@obj.date.strftime("%M")
end
def second
@obj.date.strftime("%S")
end
def i_day
@obj.date.strftime("%-d")
end
def i_month
@obj.date.strftime("%-m")
end
def short_month
@obj.date.strftime("%b")
end
def short_year
@obj.date.strftime("%y")
end
def y_day
@obj.date.strftime("%j")
end
end
end
end

View File

@@ -1,12 +1,15 @@
module Jekyll
class EntryFilter
SPECIAL_LEADING_CHARACTERS = ['.', '_', '#'].freeze
attr_reader :site
SPECIAL_LEADING_CHARACTERS = [
".", "_", "#", "~"
].freeze
def initialize(site, base_directory = nil)
@site = site
@base_directory = derive_base_directory(@site, base_directory.to_s.dup)
@base_directory = derive_base_directory(
@site, base_directory.to_s.dup
)
end
def base_directory
@@ -14,14 +17,14 @@ module Jekyll
end
def derive_base_directory(site, base_dir)
if base_dir.start_with?(site.source)
base_dir[site.source] = ""
end
base_dir[site.source] = "" if base_dir.start_with?(site.source)
base_dir
end
def relative_to_source(entry)
File.join(base_directory, entry)
File.join(
base_directory, entry
)
end
def filter(entries)
@@ -33,7 +36,8 @@ module Jekyll
end
def included?(entry)
glob_include?(site.include, entry)
glob_include?(site.include,
entry)
end
def special?(entry)
@@ -42,30 +46,75 @@ module Jekyll
end
def backup?(entry)
entry[-1..-1] == '~'
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)}) ==> #{excluded}"
if excluded
Jekyll.logger.debug(
"EntryFilter:",
"excluded #{relative_to_source(entry)}"
)
end
excluded
end
# --
# Check if a file is a symlink.
# NOTE: This can be converted to allowing even in safe,
# since we use Pathutil#in_path? now.
# --
def symlink?(entry)
File.symlink?(entry) && site.safe
site.safe && File.symlink?(entry) && symlink_outside_site_source?(entry)
end
def ensure_leading_slash(path)
path[0..0] == "/" ? path : "/#{path}"
# --
# NOTE: Pathutil#in_path? gets the realpath.
# @param [<Anything>] entry the entry you want to validate.
# Check if a path is outside of our given root.
# --
def symlink_outside_site_source?(entry)
!Pathutil.new(entry).in_path?(
site.in_source_dir
)
end
# --
# Check if an entry matches a specific pattern and return true,false.
# 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)
entry = Pathutil.new(site.in_source_dir).join(e)
enum.any? do |exp|
item = ensure_leading_slash(exp)
File.fnmatch?(item, entry) || entry.start_with?(item)
# Users who send a Regexp knows what they want to
# exclude, so let them send a Regexp to exclude files,
# we will not bother caring if it works or not, it's
# on them at this point.
if exp.is_a?(Regexp)
entry =~ exp
else
item = Pathutil.new(site.in_source_dir).join(exp)
# If it's a directory they want to exclude, AKA
# ends with a "/" then we will go on to check and
# see if the entry falls within that path and
# exclude it if that's the case.
if e.end_with?("/")
entry.in_path?(
item
)
else
File.fnmatch?(item, entry) ||
entry.to_path.start_with?(
item
)
end
end
end
end
end

View File

@@ -1,9 +1,17 @@
module Jekyll
module Errors
class FatalException < RuntimeError
end
FatalException = Class.new(::RuntimeError)
class MissingDependencyException < FatalException
end
InvalidThemeName = Class.new(FatalException)
DropMutationException = Class.new(FatalException)
InvalidPermalinkError = Class.new(FatalException)
InvalidYAMLFrontMatterError = Class.new(FatalException)
MissingDependencyException = Class.new(FatalException)
InvalidDateError = Class.new(FatalException)
InvalidPostNameError = Class.new(FatalException)
PostURLError = Class.new(FatalException)
InvalidURLError = Class.new(FatalException)
end
end

View File

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

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