Compare commits

..

1758 Commits

Author SHA1 Message Date
Parker Moore
2db51e6464 Beginning work on class-based hooks. 2014-06-23 19:35:29 -04:00
Parker Moore
579d9fc813 Update history to reflect merge of #2477 [ci skip] 2014-06-23 19:11:17 -04:00
Parker Moore
dc074fcc50 Merge pull request #2477 from jekyll/serve-skip-initial-build 2014-06-23 19:06:10 -04:00
Parker Moore
5d95267c4a Update history to reflect merge of #2495 [ci skip] 2014-06-23 19:04:40 -04:00
Parker Moore
69fdd45459 Merge pull request #2495 from jekyll/latest-liquid 2014-06-23 19:04:19 -04:00
Parker Moore
d3370bf596 Update history to reflect merge of #2493 [ci skip] 2014-06-23 19:03:50 -04:00
Parker Moore
d359c63018 Merge pull request #2493 from jekyll/fix-sort 2014-06-23 19:02:54 -04:00
Parker Moore
a9376f0a41 Update history to reflect merge of #2511 [ci skip] 2014-06-23 19:01:55 -04:00
Parker Moore
e75dcc18f1 Merge pull request #2511 from denilsonsa/patch-1 2014-06-23 19:01:31 -04:00
Parker Moore
7da0cfd0d8 Update history to reflect merge of #2524 [ci skip] 2014-06-23 19:00:38 -04:00
Parker Moore
b0e51e2cba Merge pull request #2524 from jekyll/all-html-files 2014-06-23 18:59:57 -04:00
Parker Moore
a762956000 Update history to reflect merge of #2531 [ci skip] 2014-06-23 18:59:10 -04:00
Parker Moore
e58c1ee306 Merge pull request #2531 from jekyll/merge-post-categories 2014-06-23 18:58:51 -04:00
Parker Moore
fd3ceb60c8 Update history to reflect merge of #2535 [ci skip] 2014-06-23 18:56:04 -04:00
Parker Moore
4c04420a51 Merge pull request #2535 from simonsarris/master 2014-06-23 18:54:11 -04:00
Parker Moore
e345ceb01a Update history to reflect merge of #2536 [ci skip] 2014-06-21 12:56:09 -04:00
Parker Moore
f3e4157698 Merge pull request #2536 from letuboy/master 2014-06-21 12:55:37 -04:00
Paul Henry
1a99b241ca nil parsed in yaml is just a string, should be explicit 2014-06-20 17:13:21 -07:00
Simon Sarris
74f0f27d18 Before copying file, explicitly remove the old one
On Windows, FileUtils.cp(path, dest_path) will fail with a Permission
Denied if the dest_path already exists and is read-only. People have
complained about this since at least 2008.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Closes #1561.
2013-09-18 13:51:56 -04:00
Anatol Broder
f97eed544c Change exception type in tests 2013-09-17 22:20:41 +02:00
Anatol Broder
ec85c49de3 Change exception type 2013-09-17 22:11:56 +02:00
Anatol Broder
7cec996f90 Validate the entire markup as soon as possible 2013-09-17 21:41:11 +02:00
Anatol Broder
25519b38f6 Validate file name as soon as possible 2013-09-17 20:57:01 +02:00
Anatol Broder
8017548bd0 Rename variable 2013-09-17 20:46:01 +02:00
Anatol Broder
7f62e69837 Remove obvious comment 2013-09-17 20:36:33 +02:00
Anatol Broder
e5f99e2798 Remove return 2013-09-17 20:35:18 +02:00
Anatol Broder
3e2ab58d56 Fix unruby paradigm 2013-09-17 20:34:04 +02:00
Anatol Broder
a42e57f274 Rename constants 2013-09-17 20:14:41 +02:00
Matt Rogers
f7beb6bff0 Update history to reflect merge of #1255 2013-09-16 21:38:31 -05:00
Matt Rogers
045464c8d4 Update history to reflect merge of #1553 2013-09-16 20:38:47 -05:00
Matt Rogers
0b40bd033b Merge pull request #1553 from penibelst/change-link-liquid
Change links to Liquid documentation
2013-09-16 18:38:13 -07:00
Matt Rogers
bff0f9e537 Update history to reflect merge of #1556 2013-09-16 20:35:14 -05:00
Matt Rogers
de49342324 Merge pull request #1556 from maul-esel/dest-match
Fix up matching against source and destination when the two locations are similar.
2013-09-16 18:34:22 -07:00
Matt Rogers
454e038fad Require 'pathname' 2013-09-16 20:29:57 -05:00
Matt Rogers
c376f345fa Update history to reflect merge of #1539 2013-09-16 20:29:17 -05:00
Matt Rogers
52a39db029 Merge pull request #1539 from maul-esel/coveralls
Add support for coveralls.io coverage reports
2013-09-16 18:28:28 -07:00
Anatol Broder
3dadc94ce4 Don’t repeat yourself 2013-09-16 23:16:41 +02:00
maul.esel
1cb67932f6 fix minor docs quirk 2013-09-16 15:46:15 +02:00
maul.esel
299cb93147 improve path checking, now using Pathname instead of regex 2013-09-16 15:42:59 +02:00
maul.esel
0f4d646510 extend feature tests and use scenario outline 2013-09-16 15:19:29 +02:00
maul.esel
bec4a07c12 Fix handling of source-dest matching being too aggressive
Fixes #1130.
2013-09-16 14:41:20 +02:00
maul.esel
f606d9339b add features to test source and dest matching 2013-09-16 14:30:37 +02:00
Anatol Broder
891ea8f604 People can symlink it if they want in unsafe mode 2013-09-16 08:37:07 +02:00
Anatol Broder
081b974114 Resolve conflict 2013-09-16 08:19:56 +02:00
Anatol Broder
79f50b0568 Resolve conflict 2013-09-16 08:15:10 +02:00
Parker Moore
79c2d5c8f7 Update history to reflect merge of #1555 2013-09-15 20:19:38 -04:00
Parker Moore
1aacda28b0 Merge pull request #1555 from davidensinger/patch-1
Add link to Jekyll Suggested Tweet liquid tag to list of Tags plugins.
2013-09-15 17:19:03 -07:00
David Ensinger
ed92d1c4c2 Add link to Jekyll Suggested Tweet liquid tag to list of Tags plugins. 2013-09-15 18:56:18 -04:00
Parker Moore
6d28d5f95f Update history to reflect merge of #1554 2013-09-15 17:26:15 -04:00
Parker Moore
ede0d6bd24 Merge pull request #1554 from grobmeier/patch-1
It's dbname, not database
2013-09-15 14:21:46 -07:00
Parker Moore
ab4fb89043 Fix params on JekyllImport::WordPress.process so it's using hash 2013-09-15 23:13:02 +02:00
Parker Moore
30bce38ef2 Fix JekyllImport::WordPress instructions on docs site to use hash as parameter.
See comment by @grobmeier on 97cb3f1336
2013-09-15 23:11:22 +02:00
Christian Grobmeier
f15f29a34b It's dbname, not database 2013-09-15 13:06:00 +02:00
Anatol Broder
d761338c2c Change links to Liquid documentation 2013-09-15 07:44:49 +02:00
Matt Rogers
94eed46436 Release 1.2.1 2013-09-14 22:21:15 -05:00
Matt Rogers
a8c03ae3ec Merge pull request #1551 from mojombo/release-1-2-1
Release v1.2.1
2013-09-14 20:20:04 -07:00
Parker Moore
6f053fbc8c Update gemspec & version to v1.2.1 2013-09-14 20:59:06 -04:00
Parker Moore
be9c0dcc7e Update docs/history.md for v1.2.1 2013-09-14 20:57:10 -04:00
Parker Moore
f169e37c81 Add release post. 2013-09-14 20:56:42 -04:00
Parker Moore
f922ae10e5 Update the History file 2013-09-14 20:49:23 -04:00
Parker Moore
d445798330 Fix site:releases:new rake task. 2013-09-14 20:48:20 -04:00
Parker Moore
a1e16b3d58 Update history to reflect merge of #1518 2013-09-14 20:45:24 -04:00
Parker Moore
3ddc33c4bf Merge pull request #1518 from mojombo/fix-serve-detatch
Print better messages for detached server. Mute output on detach.
2013-09-14 17:44:20 -07:00
Parker Moore
97cb3f1336 Update JekyllImport::WordPress instructions on docs site.
Closes #1548.
2013-09-14 20:16:26 -04:00
Parker Moore
5355fcf02d Update Contributing page in the docs to match the new CONTRIBUTING.markdown. #1537. 2013-09-14 20:09:26 -04:00
maul.esel
b26327f20a simplify conditions for coverage reports 2013-09-14 15:28:41 +02:00
Matt Rogers
1473448dfd Update history to reflect merge of #1537 2013-09-14 08:00:35 -05:00
Matt Rogers
46da09694d Merge pull request #1537 from mojombo/better-pr
Update CONTRIBUTING docs for better PRs
2013-09-14 05:59:50 -07:00
maul.esel
ed58ba1508 add tests for moving of coderay settings for kramdown 2013-09-13 14:06:16 +02:00
maul.esel
76d56c2352 shorten test code by moving converter instantiation to #setup 2013-09-13 14:06:16 +02:00
maul.esel
29d0841e97 #to_sym is called by #symbolize_keys 2013-09-13 14:06:16 +02:00
maul.esel
aa10f8c89e add status badge to README 2013-09-12 21:19:36 +02:00
maul.esel
66606a7e82 enable coveralls on Travis-CI 2013-09-12 21:19:36 +02:00
maul.esel
a12227c07a setup coveralls for unit tests 2013-09-12 21:19:36 +02:00
maul.esel
5ee41cd3bb setup coveralls for cucumber 2013-09-12 21:19:36 +02:00
maul.esel
699627e708 add coveralls to gemfile 2013-09-12 21:19:30 +02:00
maul.esel
f20b7d8bd2 use assert_match 2013-09-12 20:19:56 +02:00
Parker Moore
4b8bb68e56 Cleanup newlines in Commands::Serve 2013-09-12 14:05:16 -04:00
Parker Moore
c926596be7 Print better messages for detached server. Mute output on detach. 2013-09-12 14:02:52 -04:00
Parker Moore
214c851be5 Update history to reflect merge of #1536 2013-09-12 14:02:22 -04:00
Parker Moore
34a888e7b0 Merge pull request #1536 from mojombo/liquid-2.5.2
Upgrade to Liquid >= 2.5.2, < 2.6
2013-09-12 11:01:55 -07:00
Parker Moore
c38220f45c Update history to reflect merge of #1531 2013-09-12 12:45:19 -04:00
Parker Moore
097779a19f Merge pull request #1531 from maul-esel/mute-tests
mute LSI output in tests
2013-09-12 09:42:40 -07:00
Parker Moore
0090227487 Update CONTRIBUTING docs for better PRs. 2013-09-12 10:48:42 -04:00
Parker Moore
c219323384 Update history to reflect merge of #1516 2013-09-12 10:38:02 -04:00
Parker Moore
3fde4f796c Merge pull request #1516 from penibelst/fix-post-title
Fix 1.2.0 release post title
2013-09-12 07:37:04 -07:00
Parker Moore
db397dacdd Upgrade to Liquid 2.5.2 2013-09-12 10:23:24 -04:00
maul.esel
87de8ddeb4 fix test muting to work for Ruby > 1.9 2013-09-12 13:26:32 +02:00
Parker Moore
e65305990a Update history to reflect merge of #1525 2013-09-11 23:45:01 -04:00
Parker Moore
5c23ae158e Merge pull request #1525 from zerobase/issue1519
Force rendering of Include tag. Fixes #1519.
2013-09-11 20:43:37 -07:00
Parker Moore
3e936e8b75 Update site/docs/history.md as per #1512. 2013-09-11 19:15:47 -04:00
maul.esel
8060cb60a2 Add site documentation for the new feature 2013-09-11 18:39:59 +02:00
maul.esel
0afe79d1cb mute LSI output in tests 2013-09-11 18:00:28 +02:00
maul.esel
5775603f49 add inline code docs 2013-09-11 17:49:34 +02:00
maul.esel
0874c14b2c improve validation code 2013-09-11 17:37:15 +02:00
maul.esel
accea6648c fix for Ruby 1.8 2013-09-11 17:27:34 +02:00
maul.esel
2ba26f1bb6 Add basic cucumber features for frontmatter defaults 2013-09-11 00:57:49 +02:00
maul.esel
fb911af2cd Retrieve frontmatter defaults when retrieved internally
This is for example possible for layout defaults to take effect.
2013-09-11 00:57:18 +02:00
maul.esel
9d44d3290b make frontmatter defaults available to liquid 2013-09-11 00:55:57 +02:00
maul.esel
b3fdaa9792 add a class FrontmatterDefaults for handling of frontmatter defaults 2013-09-11 00:55:28 +02:00
maul.esel
3ccd8dad31 Add a method to retrieve type to post, page and draft 2013-09-11 00:48:05 +02:00
maul.esel
3a18157d20 rename the new function 2013-09-10 19:09:33 +02:00
Parker Moore
70d9225d9c Update history to reflect merge of #1515 2013-09-10 11:57:14 -04:00
Parker Moore
9422fe63fc Merge pull request #1515 from drewish/redcarpet-2.3
Update redcarpet to 2.3.0
2013-09-10 08:55:40 -07:00
Ishibashi Hideto
421e58ad59 a patch for the issue: [Liquid doesn't render my partial · Issue #1519 · mojombo/jekyll](https://github.com/mojombo/jekyll/issues/1519) 2013-09-10 23:12:15 +09:00
Parker Moore
94e001e549 Update gemspec 2013-09-09 20:23:30 -04:00
Parker Moore
828c4ba270 Update history to reflect merge of #1522 2013-09-09 20:18:43 -04:00
Parker Moore
806be3d5c4 Merge pull request #1522 from jaybe-jekyll/master
Updated jekyll.gemspec manifest site/news/[index.md][releases/index.md] ...
2013-09-09 17:11:50 -07:00
jaybe@jekyll
d485b3e099 Updated jekyll.gemspec manifest site/news/[index.md][releases/index.md] to reflect reality- [index.html] 2013-09-09 17:48:58 -05:00
Parker Moore
f7bccfd08f Whoops, spelled 'detach' incorrectly.
https://twitter.com/strangerpixel/status/376257545968824320
2013-09-09 11:16:24 -04:00
Matt Rogers
0dc86aa3f3 Update history to reflect merge of #1512 2013-09-09 08:06:59 -05:00
Matt Rogers
51d152c92f Merge pull request #1512 from penibelst/fix-history-markup
Fix latest entries in history without code tag
2013-09-09 06:06:17 -07:00
Anatol Broder
50236be19c Fix 1.2.0 release post title 2013-09-07 23:06:51 +02:00
andrew morton
91006d9d61 Update redcarpet to 2.3.0 2013-09-07 12:58:16 -07:00
maul.esel
89f0d69b07 Revert to #readlines#join, but enclose it in a function
This is necessary to preserve the handling
of \r\n and \n line endings.
2013-09-07 18:07:54 +02:00
Anatol Broder
ce6b591f45 Fix latest entries without code tag 2013-09-07 08:45:58 +02:00
Parker Moore
73789f20e1 Update history and History.markdown so it is consistent with previous release headers. 2013-09-07 01:59:48 -04:00
Parker Moore
b741e65f99 Fix problem link to /docs/history/ in v1.2.0 release post. 2013-09-07 01:55:07 -04:00
Parker Moore
d9f73cad9d Fix merge conflict. 2013-09-07 00:12:15 -04:00
Parker Moore
2d8edb9516 Update History to reflect what happenend in d48f339a1f. 2013-09-07 00:11:20 -04:00
Parker Moore
d48f339a1f Fix link to History page from Release v1.2.0 notes post. 2013-09-07 00:10:33 -04:00
Matt Rogers
e87006206e Update history to reflect merge of #1507 2013-09-06 22:58:42 -05:00
Matt Rogers
5a47609c65 Merge pull request #1507 from penibelst/add-site-menu
Make navigation menus reusable
2013-09-06 20:57:34 -07:00
Matt Rogers
e1a8ade88e Update history to reflect merge of #1404 2013-09-06 22:42:49 -05:00
Matt Rogers
cb7eb1c420 Merge pull request #1404 from mojombo/rake-site-releases-new
Add rake task to create new release post
2013-09-06 20:42:10 -07:00
Matt Rogers
3a6ffade0b Update history to reflect merge of #1363 2013-09-06 22:38:38 -05:00
Matt Rogers
d8e0f009d2 Merge pull request #1363 from koron/stop-reverse-lookup
disable reverse lookup
2013-09-06 20:37:31 -07:00
Matt Rogers
c6ae8043a0 Update history to reflect merge of #1511 2013-09-06 22:31:49 -05:00
Matt Rogers
04e1f1087f Merge pull request #1511 from mojombo/fix-validation-errors
Fix W3C Validation Errors On jekyllrb.com
2013-09-06 20:31:08 -07:00
Parker Moore
e555910f45 Move .post .post-content to a <div> to maybe fix weird validation issue. #1508. 2013-09-06 23:05:24 -04:00
Parker Moore
bc0b541e77 Add alt tag to post author <img> tag in site. #1508. 2013-09-06 23:01:44 -04:00
Parker Moore
2eb2a15bd3 Move news/releases/index.md to news/releases/index.html to prevent unnecessary <p> tags. #1508. 2013-09-06 23:00:36 -04:00
Parker Moore
cb521b7f9a Move news/index.md to news/index.html to prevent unnecessary <p> tags. #1508. 2013-09-06 22:59:43 -04:00
Parker Moore
3b2ae1d9c3 Fix validation error on home page. #1508. 2013-09-06 22:58:14 -04:00
Anatol Broder
eb29209c24 Expand URL 2013-09-06 20:40:00 +02:00
Anatol Broder
102d83f78d Make navigation menus reusable 2013-09-06 02:00:23 +02:00
Anatol Broder
3f7dcaa2ec Make navigation menu reusable 2013-09-06 01:59:22 +02:00
maul.esel
be54303fa9 Use File#read instead of #readlines.join construct 2013-09-02 14:00:58 +02:00
Parker Moore
d452135f1e Add rake task to create a new release post.
Adds all the necessary metadata and add two newlines at the
top of the post to start with.
2013-08-10 03:47:15 +02:00
MURAOKA Taro
d8bf10d761 disable reverse lookup 2013-07-30 21:28:27 +09:00
Stephen McDonald
a38902b5a7 Use valid css class names when pygments language contains invalid chars, eg html+jango 2013-04-23 06:48:31 +10:00
258 changed files with 11258 additions and 4134 deletions

View File

@@ -1,20 +1,27 @@
language: ruby
before_install:
- gem install bundler
cache: bundler
install:
- script/rebund download
- travis_retry bundle install --path vendor/bundle
rvm:
- 2.0.0
- 1.9.3
- 1.9.2
- 1.8.7
script: bundle exec rake
- 2.1
- 2.0
- 1.9.3
script: script/cibuild
after_script:
- script/rebund upload
notifications:
irc:
on_success: change
on_failure: change
channels:
- "irc.freenode.org#jekyll"
#on_success: change
#on_failure: change
- irc.freenode.org#jekyll
template:
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
- '%{repository}#%{build_number} (%{branch}) %{message} %{build_url}'
email:
on_success: never
on_failure: never
env:
global:
- secure: bt5nglPTdsc0N5fB1dOJz2WbM81dGpDuVD8PnhEsxgUfoo6xavhU4+pNrUADlSUqQ1aJrdU+MKW4x+JZ2ZnJS8vOpNzRymuMZSbFaljK4pgFGiKFgBdMKxVikvoYcxKCjLAl7NJZ11W6hUw+JtJScClDZwrJJAQB6I7Isp/LsdM=
- secure: Ym8nx7nbfGYGo47my92M+deJykaiMkdZdb615EO51liv/xy/0aQ919Jpfieugc9d3zVnm+zFGPbpv4YzRpsik6OlVBNa4lP+BnQ27ptf5YcLWD8Hksi7845WFLecXMoaTCoYer/TvYZsIWJb2nSDMH9qbfZhnd1YZKuvUpK0rEU=

View File

@@ -4,21 +4,27 @@ 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.**
* **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](http://github.com/thoughtbot/shoulda/tree/master) and
[RR](http://github.com/btakita/rr/tree/master).
[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 wiki
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
wiki.
`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
-----------------
@@ -32,8 +38,8 @@ you're all set!
Before you start, run the tests and make sure that they pass (to confirm your
environment is configured properly):
$ rake test
$ rake features
$ bundle exec rake test
$ bundle exec rake features
Workflow
--------
@@ -47,7 +53,7 @@ Here's the most direct way to get your work merged into the project:
* 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 mojombo/jekyll and describe what your change
* Create a pull request against jekyll/jekyll and describe what your change
does and the why you think it should be merged.
Updating Documentation
@@ -57,23 +63,22 @@ 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/mojombo/jekyll/tree/master/site) directory of
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.
requests directed at another branch will not be accepted.
The [Jekyll wiki](https://github.com/mojombo/jekyll/wiki) on GitHub
can be freely updated without a pull request as all
GitHub users have access.
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 mojombo/jekyll.
* 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

View File

@@ -4,13 +4,537 @@
### Minor Enhancements
* Bump to the latest Liquid version, 2.6.1 (#2495)
* Add support for JSON files in the `_data` directory (#2369)
* Allow subclasses to override `EXCERPT_ATTRIBUTES_FOR_LIQUID` (#2408)
* Add `Jekyll.env` and `jekyll.environment` (the Liquid var) (#2417)
* Use `_config.yaml` or `_config.yml` (`.yml` takes precedence) (#2406)
* Override collection url template (#2418)
* Allow subdirectories in `_data` (#2395)
* Extract Pagination Generator into gem: `jekyll-paginate` (#2455)
* Utilize `date_to_rfc822` filter in site template (#2437)
* Add categories, last build datetime, and generator to site template
feed (#2438)
* Configurable, replaceable Logger-compliant logger (#2444)
* Extract `gist` tag into a separate gem (#2469)
* Add `collection` attribute to `Document#to_liquid` to access the
document's collection label. (#2436)
* Upgrade listen to `2.7.6 <= x < 3.0.0` (#2492)
* Allow configuration of different Twitter and GitHub usernames in site template (#2485)
* Bump Pygments to v0.6.0 (#2504)
* Front-matter defaults for documents in collections (#2419)
* Include files with a url which ends in `/` in the `site.html_pages` list (#2524)
* Make `highlight` tag use `language-` prefix in CSS class (#2511)
* Lookup item property via `item#to_liquid` before `#data` or `#[]` in filters (#2493)
* Skip initial build of site on serve with flag (#2477)
### Bug Fixes
* Liquid `sort` filter should sort even if one of the values is `nil` (#2345)
* Remove padding on `pre code` in the site template CSS (#2383)
* Set `log_level` earlier to silence info level configuration output (#2393)
* Only list pages which have `title` in site template (#2411)
* Accept `Numeric` values for dates, not `Number` values (#2377)
* Prevent code from overflowing container in site template (#2429)
* Encode URLs in UTF-8 when escaping and unescaping (#2420)
* No Layouts or Liquid for Asset Files (#2431)
* Allow front-matter defaults to set post categories (#2373)
* Fix command in subcommand deprecation warning (#2457)
* Keep all parent directories of files/dirs in `keep_files` (#2458)
* When using RedCarpet and Rouge without Rouge installed, fixed erroneous
error which stated that redcarpet was missing, not rouge. (#2464)
* Ignore *all* directories and files that merit it on auto-generation (#2459)
* Before copying file, explicitly remove the old one (#2535)
* Merge file system categories with categories from YAML. (#2531)
### Development Fixes
* Test Ruby 2.1.2 instead of 2.1.1 (#2374)
* Add test for sorting UTF-8 characters (#2384)
* Use `https` for GitHub links in documentation (#2470)
* Remove coverage reporting with Coveralls (#2494)
### Site Enhancements
## v1.2.0 / 2013-09-06
* Set `timezone` to `America/Los_Angeles` (#2394)
* Improve JavaScript in `anchor_links.html` (#2368)
* Remove note on Quickstart page about default markdown converter (#2387)
* Remove broken link in extras.md to a Maruku fork (#2401)
* Update Font Awesome to v4.1.0. (#2410)
* Fix broken link on Installation page to Templates page (#2421)
* Prevent table from extending parent width in permalink style table (#2424)
* Add collections to info about pagination support (#2389)
* Add `jekyll_github_sample` plugin to list of third-party plugins (#2463)
* Clarify documentation around front-matter defaults and add details
about defaults for collections. (#2439)
* Add Jekyll Project Version Tag to list of third-party plugins (#2468)
* Use `https` for GitHub links across whole site (#2470)
* Add StickerMule + Jekyll post (#2476)
* Add Jekyll Asset Pipeline Reborn to list of third-party plugins (#2479)
* Add link to jekyll-compress-html to list of third-party plugins (#2514)
* Add Piwigo Gallery to list of third-party plugins (#2526)
* Set `show_drafts` to `false` in default configuration listing (#2536)
## 2.0.3 / 2014-05-08
### Bug Fixes
* Properly prefix links in site template with URL or baseurl depending upon
need. (#2319)
* Update gist tag comments and error message to require username (#2326)
* Fix `permalink` setting in site template (#2331)
* Don't fail if any of the path objects are nil (#2325)
* Instantiate all descendants for converters and generators, not just
direct subclasses (#2334)
* Replace all instances of `site.name` with `site.title` in site template (#2324)
* `Jekyll::Filters#time` now accepts UNIX timestamps in string or number form (#2339)
* Use `item_property` for `where` filter so it doesn't break on collections (#2359)
* Rescue errors thrown so `--watch` doesn't fail (#2364)
### Site Enhancements
* Add missing "as" to assets docs page (#2337)
* Update docs to reflect new `baseurl` default (#2341)
* Add links to headers who have an ID. (#2342)
* Use symbol instead of HTML number in `upgrading.md` (#2351)
* Fix link to frontmatter defaults docs (#2353)
* Fix for `History.markdown` in order to fix history page in docs (#2363)
## 2.0.2 / 2014-05-07
### Bug Fixes
* Correct use of `url` and `baseurl` in the site template. (#2317)
* Default `baseurl` to `""` (#2317)
### Site Enhancements
* Correct docs for the `gist` plugin so it always includes the username. (#2314)
* Clarify new (defaults, `where` filter) features in docs (#2316)
## 2.0.1 / 2014-05-06
### Bug Fixes
* Require `kramdown` gem instead of `maruku` gem
## 2.0.0 / 2014-05-06
### Major Enhancements
* Add "Collections" feature (#2199)
* Add gem-based plugin whitelist to safe mode (#1657)
* Replace the commander command line parser with a more robust
solution for our needs called `mercenary` (#1706)
* Remove support for Ruby 1.8.x (#1780)
* Move to jekyll/jekyll from mojombo/jekyll (#1817)
* Allow custom markdown processors (#1872)
* Provide support for the Rouge syntax highlighter (#1859)
* Provide support for Sass (#1932)
* Provide a 300% improvement when generating sites that use
`Post#next` or `Post#previous` (#1983)
* Provide support for CoffeeScript (#1991)
* Replace Maruku with Kramdown as Default Markdown Processor (#1988)
* Expose `site.static_files` to Liquid (#2075)
* Complete redesign of the template site generated by `jekyll new` (#2050)
* Update Listen from 1.x to 2.x (#2097)
* Front-matter defaults (#2205)
* Deprecate `relative_permalinks` configuration option (default to `false`) (#2307)
* Exclude files based on prefix as well as `fnmatch?` (#2303)
### Minor Enhancements
* Move the EntryFilter class into the Jekyll module to avoid polluting the
global namespace (#1800)
* Add `group_by` Liquid filter create lists of items grouped by a common
property's value (#1788)
* Add support for Maruku's `fenced_code_blocks` option (#1799)
* Update Redcarpet dependency to ~> 3.0 (#1815)
* Automatically sort all pages by name (#1848)
* Better error message when time is not parseable (#1847)
* Allow `include` tag variable arguments to use filters (#1841)
* `post_url` tag should raise `ArgumentError` for invalid name (#1825)
* Bump dependency `mercenary` to `~> 0.2.0` (#1879)
* Bump dependency `safe_yaml` to `~> 1.0` (#1886)
* Allow sorting of content by custom properties (#1849)
* Add `--quiet` flag to silence output during build and serve (#1898)
* Add a `where` filter to filter arrays based on a key/value pair
(#1875)
* Route 404 errors to a custom 404 page in development (#1899)
* Excludes are now relative to the site source (#1916)
* Bring MIME Types file for `jekyll serve` to complete parity with GH Pages
servers (#1993)
* Adding Breakpoint to make new site template more responsive (#2038)
* Default to using the UTF-8 encoding when reading files. (#2031)
* Update Redcarpet dependency to ~> 3.1 (#2044)
* Remove support for Ruby 1.9.2 (#2045)
* Add `.mkdown` as valid Markdown extension (#2048)
* Add `index.xml` to the list of WEBrick directory index files (#2041)
* Make the `layouts` config key relative to CWD or to source (#2058)
* Update Kramdown to `~> 1.3` (#1894)
* Remove unnecessary references to `self` (#2090)
* Update to Mercenary v0.3.x (#2085)
* Ship Sass support as a separate gem (#2098)
* Extract core extensions into a Utils module (#2112)
* Refactor CLI & Commands For Greater Happiness (#2143)
* Provide useful error when Pygments returns `nil` and error out (#2148)
* Add support for unpublished drafts (#2164)
* Add `force_polling` option to the `serve` command (#2165)
* Clean up the `<head>` in the site template (#2186)
* Permit YAML blocks to end with three dots to better conform with the
YAML spec (#2110)
* Use `File.exist?` instead of deprecated `File.exists?` (#2214)
* Require newline after start of YAML front-matter header (#2211)
* Add the ability for pages to be marked as `published: false` (#1492)
* Add `Jekyll::LiquidExtensions` with `.lookup_variable` method for easy
looking up of variable values in a Liquid context. (#2253)
* Remove literal lang name from class (#2292)
* Return `utf-8` encoding in header for webrick error page response (#2289)
* Make template site easier to customize (#2268)
* Add two-digit year to permalink template option (#2301)
* Add `site.documents` to Liquid payload (list of all docs) (#2295)
* Take into account missing values in the Liquid sort filter (#2299)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
* Remove the scrollbar that's always displayed in new sites generated
from the site template (#1805)
* Add `#path` to required methods in `Jekyll::Convertible` (#1866)
* Default Maruku fenced code blocks to ON for 2.0.0-dev (#1831)
* Change short opts for host and port for `jekyll docs` to be consistent with
other subcommands (#1877)
* Fix typos (#1910)
* Lock Maruku at 0.7.0 to prevent bugs caused by Maruku 0.7.1 (#1958)
* Fixes full path leak to source directory when using include tag (#1951)
* Don't generate pages that aren't being published (#1931)
* Use `SafeYAML.load` to avoid conflicts with other projects (#1982)
* Relative posts should never fail to build (#1976)
* Remove executable bits of non executable files (#2056)
* `#path` for a draft is now `_drafts` instead of `_posts` (#2042)
* Patch a couple show-stopping security vulnerabilities (#1946)
* Sanitize paths uniformly, in a Windows-friendly way (#2065, #2109)
* Update gem build steps to work correctly on Windows (#2118)
* Remove obsolete `normalize_options` method call from `bin/jekyll` (#2121).
* Remove `+` characters from Pygments lexer names when adding as a CSS
class (#994)
* Remove some code that caused Ruby interpreter warnings (#2178)
* Only strip the drive name if it begins the string (#2175)
* Remove default post with invalid date from site template (#2200)
* Fix `Post#url` and `Page#url` escape (#1568)
* Strip newlines from the `{% highlight %}` block content (#1823)
* Load in `rouge` only when it's been requested as the highlighter (#2189)
* Convert input to string before XML escaping (`xml_escape` liquid filter) (#2244)
* Modify configuration key for Collections and reset properly. (#2238)
* Avoid duplicated output using `highlight` tag (#2264)
* Only use Jekyll.logger for output (#2307)
* Close the file descriptor in `has_yaml_header?` (#2310)
* Add `output` to `Document` liquid output hash (#2309)
### Development Fixes
* Add a link to the site in the README.md file (#1795)
* Add in History and site changes from `v1-stable` branch (#1836)
* Testing additions on the Excerpt class (#1893)
* Fix the `highlight` tag feature (#1859)
* Test Jekyll under Ruby 2.1.0 (#1900)
* Add script/cibuild for fun and profit (#1912)
* Use `Forwardable` for delegation between `Excerpt` and `Post`
(#1927)
* Rename `read_things` to `read_content` (#1928)
* Add `script/branding` script for ASCII art lovin' (#1936)
* Update the README to reflect the repo move (#1943)
* Add the project vision to the README (#1935)
* Speed up Travis CI builds by using Rebund (#1985)
* Use Yarp as a Gem proxy for Travis CI (#1984)
* Remove Yarp as a Gem proxy for Travis CI (#2004)
* Move the reading of layouts into its own class (#2020)
* Test Sass import (#2009)
* Switch Maruku and Kramdown in lists of Runtime vs. Development dependencies (#2049)
* Clean up the gemspec for the project (#2095)
* Add Japanese translation of README and CONTRIBUTING docs. (#2081)
* Re-align the tables in Cucumber (#2108)
* Trim trailing spaces and convert tabs to spaces (#2122)
* Fix the failing Travis scenarios due to Cucumber issues (#2155)
* Wrap `bundle install` in `travis_retry` to retry when RubyGems fails (#2160)
* Refactor tags and categories (#1639)
* Extract plugin management into its own class (#2197)
* Add missing tests for `Command` (#2216)
* Update `rr` link in CONTRIBUTING doc (#2247)
* Streamline Cucumber execution of `jekyll` subcommands (#2258)
* Refactor `Commands::Serve`. (#2269)
* Refactor `highlight` tag (#2154)
* Update `Util` hash functions with latest from Rails (#2273)
* Workaround for Travis bug (#2290)
### Site Enhancements
* Document Kramdown's GFM parser option (#1791)
* Move CSS to includes & update normalize.css to v2.1.3 (#1787)
* Minify CSS only in production (#1803)
* Fix broken link to installation of Ruby on Mountain Lion blog post on
Troubleshooting docs page (#1797)
* Fix issues with 1.4.1 release blog post (#1804)
* Add note about deploying to OpenShift (#1812)
* Collect all Windows-related docs onto one page (#1818)
* Fixed typo in datafiles doc page (#1854)
* Clarify how to access `site` in docs (#1864)
* Add closing `<code>` tag to `context.registers[:site]` note (#1867)
* Fix link to @mojombo's site source (#1897)
* Add `paginate: nil` to default configuration in docs (#1896)
* Add link to our License in the site footer (#1889)
* Add a charset note in "Writing Posts" doc page (#1902)
* Disallow selection of path and prompt in bash examples
* Add jekyll-compass to the plugin list (#1923)
* Add note in Posts docs about stripping `<p>` tags from excerpt (#1933)
* Add additional info about the new exclude behavior (#1938)
* Linkify 'awesome contributors' to point to the contributors graph on
GitHub (#1940)
* Update `docs/sites.md` link to GitHub Training materials (#1949)
* Update `master` with the release info from 1.4.3 (#1947)
* Define docs nav in datafile (#1953)
* Clarify the docs around the naming convention for posts (#1971)
* Add missing `next` and `previous` docs for post layouts and templates (#1970)
* Add note to `Writing posts` page about how to strip html from excerpt (#1962)
* Add `jekyll-humanize` plugin to plugin list (#1998)
* Add `jekyll-font-awesome` plugin to plugin list (#1999)
* Add `sublime-jekyll` to list of Editor plugins (#2001)
* Add `vim-jekyll` to the list of Editor plugins (#2005)
* Fix non-semantic nesting of `p` tags in `news_item` layout (#2013)
* Document destination folder cleaning (#2016)
* Updated instructions for NearlyFreeSpeech.NET installation (#2015)
* Update link to rack-jekyll on "Deployment Methods" page (#2047)
* Fix typo in /docs/configuration (#2073)
* Fix count in docs for `site.static_files` (#2077)
* Update configuration docs to indicate utf-8 is the default for 2.0.0
and ASCII for 1.9.3 (#2074)
* Add info about unreleased feature to the site (#2061)
* Add whitespace to liquid example in GitHub Pages docs (#2084)
* Clarify the way Sass and CoffeeScript files are read in and output (#2067)
* Add lyche gallery tag plugin link to list of plugins (#2094)
* Add Jekyll Pages Directory plugin to list of plugins (#2096)
* Update Configuration docs page with new markdown extension (#2102)
* Add `jekyll-image-set` to the list of third-party plugins (#2105)
* Losslessly compress images (#2128)
* Update normalize.css to 3.0.0 (#2126)
* Update modernizr to v2.7.1 (#2129)
* Add `jekyll-ordinal` to list of third-party plugins (#2150)
* Add `jekyll_figure` to list of third-party plugins (#2158)
* Clarify the documentation for safe mode (#2163)
* Some HTML tidying (#2130)
* Remove modernizr and use html5shiv.js directly for IE less than v9 (#2131)
* Remove unused images (#2187)
* Use `array_to_sentence_string` filter when outputting news item
categories (#2191)
* Add link to Help repo in primary navigation bar (#2177)
* Switch to using an ico file for the shortcut icon (#2193)
* Use numbers to specify font weights and only bring in font weights used (#2185)
* Add a link to the list of all tz database time zones (#1824)
* Clean-up and improve documentation `feed.xml` (#2192)
* Remove duplicate entry in list of third-party plugins (#2206)
* Reduce the whitespace in the favicon. (#2213)
* Add `jekyll-page-collections` to list of third-party plugins (#2215)
* Add a cross-reference about `post_url` (#2243)
* Add `jekyll-live-tiles` to list of third-party plugins (#2250)
* Fixed broken link to GitHub training material site source (#2257)
* Update link to help repo, now called `jekyll-help` (#2277)
* Fix capitalization of 'Jekyll' on Deployment Methods page (#2291)
* Include plugins by sonnym in list of third-party plugins (#2297)
* Add deprecated articles keeper filter to list of third-party plugins (#2300)
* Simplify and improve our CSS. (#2127)
* Use black text color for the mobile navbar (#2306)
* Use the built in date filter and `site.time` for the copyright year. (#2305)
* Update html5shiv to v3.7.2 (#2304)
* Add 2.0.0 release post (#2298)
* Add docs for custom markdown processors (#2298)
* Add docs for `where` and `group_by` Liquid filters (#2298)
* Remove notes in docs for unreleased features (#2309)
## 1.5.1 / 2014-03-27
### Bug Fixes
* Only strip the drive name if it begins the string (#2176)
## 1.5.0 / 2014-03-24
### Minor Enhancements
* Loosen `safe_yaml` dependency to `~> 1.0` (#2167)
* Bump `safe_yaml` dependency to `~> 1.0.0` (#1942)
### Bug Fixes
* Fix issue where filesystem traversal restriction broke Windows (#2167)
* Lock `maruku` at `0.7.0` (#2167)
### Development Fixes
* Lock `cucumber` at `1.3.11` (#2167)
## 1.4.3 / 2014-01-13
### Bug Fixes
* Patch show-stopping security vulnerabilities (#1944)
## 1.4.2 / 2013-12-16
### Bug Fixes
* Turn on Maruku fenced code blocks by default (#1830)
## 1.4.1 / 2013-12-09
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
## 1.4.0 / 2013-12-07
### Major Enhancements
* Add support for TOML config files (#1765)
### Minor Enhancements
* Sort plugins as a way to establish a load order (#1682)
* Update Maruku to 0.7.0 (#1775)
### Bug Fixes
* Add a space between two words in a Pagination warning message (#1769)
* Upgrade `toml` gem to `v0.1.0` to maintain compat with Ruby 1.8.7 (#1778)
### Development Fixes
* Remove some whitespace in the code (#1755)
* Remove some duplication in the reading of posts and drafts (#1779)
### Site Enhancements
* Fixed case of a word in the Jekyll v1.3.0 release post (#1762)
* Fixed the mime type for the favicon (#1772)
## 1.3.1 / 2013-11-26
### Minor Enhancements
* Add a `--prefix` option to passthrough for the importers (#1669)
* Push the paginator plugin lower in the plugin priority order so
other plugins run before it (#1759)
### Bug Fixes
* Fix the include tag when ran in a loop (#1726)
* Fix errors when using `--watch` on 1.8.7 (#1730)
* Specify where the include is called from if an included file is
missing (#1746)
### Development Fixes
* Extract `Site#filter_entries` into its own object (#1697)
* Enable Travis' bundle caching (#1734)
* Remove trailing whitespace in some files (#1736)
* Fix a duplicate test name (#1754)
### Site Enhancements
* Update link to example Rakefile to point to specific commit (#1741)
* Fix drafts docs to indicate that draft time is based on file modification
time, not `Time.now` (#1695)
* Add `jekyll-monthly-archive-plugin` and `jekyll-category-archive-plugin` to
list of third-party plugins (#1693)
* Add `jekyll-asset-path-plugin` to list of third-party plugins (#1670)
* Add `emoji-for-jekyll` to list of third-part plugins (#1708)
* Fix previous section link on plugins page to point to pagination page (#1707)
* Add `org-mode` converter plugin to third-party plugins (#1711)
* Point "Blog migrations" page to http://import.jekyllrb.com (#1732)
* Add docs for `post_url` when posts are in subdirectories (#1718)
* Update the docs to point to `example.com` (#1448)
## 1.3.0 / 2013-11-04
### Major Enhancements
* Add support for adding data as YAML files under a site's `_data`
directory (#1003)
* Allow variables to be used with `include` tags (#1495)
* Allow using gems for plugin management (#1557)
### Minor Enhancements
* Decrease the specificity in the site template CSS (#1574)
* Add `encoding` configuration option (#1449)
* Provide better error handling for Jekyll's custom Liquid tags
(#1514)
* If an included file causes a Liquid error, add the path to the
include file that caused the error to the error message (#1596)
* If a layout causes a Liquid error, change the error message so that
we know it comes from the layout (#1601)
* Update Kramdown dependency to `~> 1.2` (#1610)
* Update `safe_yaml` dependency to `~> 0.9.7` (#1602)
* Allow layouts to be in subfolders like includes (#1622)
* Switch to listen for site watching while serving (#1589)
* Add a `json` liquid filter to be used in sites (#1651)
* Point people to the migration docs when the `jekyll-import` gem is
missing (#1662)
### Bug Fixes
* Fix up matching against source and destination when the two
locations are similar (#1556)
* Fix the missing `pathname` require in certain cases (#1255)
* Use `+` instead of `Array#concat` when building `Post` attribute list (#1571)
* Print server address when launching a server (#1586)
* Downgrade to Maruku `~> 0.6.0` in order to avoid changes in rendering (#1598)
* Fix error with failing include tag when variable was file name (#1613)
* Downcase lexers before passing them to pygments (#1615)
* Capitalize the short verbose switch because it conflicts with the
built-in Commander switch (#1660)
* Fix compatibility with 1.8.x (#1665)
* Fix an error with the new file watching code due to library version
incompatibilities (#1687)
### Development Fixes
* Add coverage reporting with Coveralls (#1539)
* Refactor the Liquid `include` tag (#1490)
* Update launchy dependency to `~> 2.3` (#1608)
* Update rr dependency to `~> 1.1` (#1604)
* Update cucumber dependency to `~> 1.3` (#1607)
* Update coveralls dependency to `~> 0.7.0` (#1606)
* Update rake dependency to `~> 10.1` (#1603)
* Clean up `site.rb` comments to be more concise/uniform (#1616)
* Use the master branch for the build badge in the readme (#1636)
* Refactor Site#render (#1638)
* Remove duplication in command line options (#1637)
* Add tests for all the coderay options (#1543)
* Improve some of the Cucumber test code (#1493)
* Improve comparisons of timestamps by ignoring the seconds (#1582)
### Site Enhancements
* Fix params for `JekyllImport::WordPress.process` arguments (#1554)
* Add `jekyll-suggested-tweet` to list of third-party plugins (#1555)
* Link to Liquid's docs for tags and filters (#1553)
* Add note about installing Xcode on the Mac in the Installation docs (#1561)
* Simplify/generalize pagination docs (#1577)
* Add documentation for the new data sources feature (#1503)
* Add more information on how to create generators (#1590, #1592)
* Improve the instructions for mimicking GitHub Flavored Markdown
(#1614)
* Add `jekyll-import` warning note of missing dependencies (#1626)
* Fix grammar in the Usage section (#1635)
* Add documentation for the use of gems as plugins (#1656)
* Document the existence of a few additional plugins (#1405)
* Document that the `date_to_string` always returns a two digit day (#1663)
* Fix navigation in the "Working with Drafts" page (#1667)
* Fix an error with the data documentation (#1691)
## 1.2.1 / 2013-09-14
### Minor Enhancements
* Print better messages for detached server. Mute output on detach. (#1518)
* Disable reverse lookup when running `jekyll serve` (#1363)
* Upgrade RedCarpet dependency to `~> 2.3.0` (#1515)
* Upgrade to Liquid `>= 2.5.2, < 2.6` (#1536)
### Bug Fixes
* Fix file discrepancy in gemspec (#1522)
* Force rendering of Include tag (#1525)
### Development Fixes
* Add a rake task to generate a new release post (#1404)
* Mute LSI output in tests (#1531)
* Update contributor documentation (#1537)
### Site Enhancements
* Fix a couple of validation errors on the site (#1511)
* Make navigation menus reusable (#1507)
* Fix link to History page from Release v1.2.0 notes post.
* Fix markup in History file for command line options (#1512)
* Expand 1.2 release post title to 1.2.0 (#1516)
## 1.2.0 / 2013-09-06
### Major Enhancements
* Disable automatically-generated excerpts when `excerpt_separator` is `""`. (#1386)
@@ -20,7 +544,7 @@
* Catch and fix invalid `paginate` values (#1390)
* Remove superfluous `div.container` from the default html template for
`jekyll new` (#1315)
* Add -D short-form switch for the drafts option (#1394)
* Add `-D` short-form switch for the drafts option (#1394)
* Update the links in the site template for Twitter and GitHub (#1400)
* Update dummy email address to example.com domain (#1408)
* Update normalize.css to v2.1.2 and minify; add rake task to update
@@ -70,7 +594,7 @@
* Fix markup for the Kramdown options (#1445)
* Fix typos in the History file (#1454)
* Add trailing slash to site's post URL (#1462)
* Clarify that --config will take multiple files (#1474)
* Clarify that `--config` will take multiple files (#1474)
* Fix docs/templates.md private gist example (#1477)
* Use `site.repository` for Jekyll's GitHub URL (#1463)
* Add `jekyll-pageless-redirects` to list of third-party plugins (#1486)
@@ -79,12 +603,12 @@
* XML escape the blog post title in our feed (#1501)
* Add `jekyll-toc-generator` to list of third-party plugins (#1506)
## v1.1.2 / 2013-07-25
## 1.1.2 / 2013-07-25
### Bug Fixes
* Require Liquid 2.5.1 (#1349)
## v1.1.1 / 2013-07-24
## 1.1.1 / 2013-07-24
### Minor Enhancements
* Remove superfluous `table` selector from main.css in `jekyll new` template (#1328)
@@ -135,7 +659,7 @@
* Latest posts first in non-LSI `related_posts` (#1271)
### Development Fixes
* Merge the theme and layout cucumber steps into one step (#1151)
* Merge the theme and layout Cucumber steps into one step (#1151)
* Restrict activesupport dependency to pre-4.0.0 to maintain compatibility with `<= 1.9.2`
* Include/exclude deprecation handling simplification (#1284)
* Convert README to Markdown. (#1267)
@@ -165,7 +689,7 @@
* Update contributor information (#1192)
* Update URL of article about Blogger migration (#1242)
* Specify that RedCarpet is the default for new Jekyll sites on Quickstart page (#1247)
* Added site.pages to Variables page in docs (#1251)
* Added `site.pages` to Variables page in docs (#1251)
* Add Youku and Tudou Embed link on Plugins page. (#1250)
* Add note that `gist` tag supports private gists. (#1248)
* Add `jekyll-timeago` to list of third-party plugins. (#1260)
@@ -183,7 +707,7 @@
### Minor Enhancements
* Add support to gist tag for private gists. (#1189)
* Fail loudly when MaRuKu errors out (#1190)
* Fail loudly when Maruku errors out (#1190)
* Move the building of related posts into their own class (#1057)
* Removed trailing spaces in several places throughout the code (#1116)
* Add a `--force` option to `jekyll new` (#1115)
@@ -249,7 +773,7 @@
## 1.0.1 / 2013-05-08
### Minor Enhancements
* Do not force use of toc_token when using generate_tok in RDiscount (#1048)
* Do not force use of `toc_token` when using `generate_tok` in RDiscount (#1048)
* Add newer `language-` class name prefix to code blocks (#1037)
* Commander error message now preferred over process abort with incorrect args (#1040)
@@ -272,15 +796,15 @@
## 1.0.0 / 2013-05-06
### Major Enhancements
* Add `jekyll new` subcommand: generate a jekyll scaffold (#764)
* Refactored jekyll commands into subcommands: build, serve, and migrate. (#690)
* Add `jekyll new` subcommand: generate a Jekyll scaffold (#764)
* Refactored Jekyll commands into subcommands: build, serve, and migrate. (#690)
* Removed importers/migrators from main project, migrated to jekyll-import sub-gem (#793)
* Added ability to render drafts in `_drafts` folder via command line (#833)
* Add ordinal date permalink style (/:categories/:year/:y_day/:title.html) (#928)
### Minor Enhancements
* Site template HTML5-ified (#964)
* Use post's directory path when matching for the post_url tag (#998)
* Use post's directory path when matching for the `post_url` tag (#998)
* Loosen dependency on Pygments so it's only required when it's needed (#1015)
* Parse strings into Time objects for date-related Liquid filters (#1014)
* Tell the user if there is no subcommand specified (#1008)
@@ -294,7 +818,7 @@
* Expose new attribute to Liquid via `page`: `page.path` (#951)
* Accept multiple config files from command line (#945)
* Add page variable to liquid custom tags and blocks (#413)
* Add paginator.previous_page_path and paginator.next_page_path (#942)
* Add `paginator.previous_page_path` and `paginator.next_page_path` (#942)
* Backwards compatibility for 'auto' (#821, #934)
* Added date_to_rfc822 used on RSS feeds (#892)
* Upgrade version of pygments.rb to 0.4.2 (#927)
@@ -307,13 +831,13 @@
* Allow symlinked files in unsafe mode (#824)
* Add 'gist' Liquid tag to core (#822, #861)
* New format of Jekyll output (#795)
* Reinstate --limit_posts and --future switches (#788)
* Reinstate `--limit_posts` and `--future` switches (#788)
* Remove ambiguity from command descriptions (#815)
* Fix SafeYAML Warnings (#807)
* Relaxed Kramdown version to 0.14 (#808)
* Aliased `jekyll server` to `jekyll serve`. (#792)
* Updated gem versions for Kramdown, Rake, Shoulda, Cucumber, and RedCarpet. (#744)
* Refactored jekyll subcommands into Jekyll::Commands submodule, which now contains them (#768)
* Refactored Jekyll subcommands into Jekyll::Commands submodule, which now contains them (#768)
* Rescue from import errors in Wordpress.com migrator (#671)
* Massively accelerate LSI performance (#664)
* Truncate post slugs when importing from Tumblr (#496)
@@ -328,9 +852,9 @@
* Paginate in subdirectories properly (#1016)
* Ensure post and page URLs have a leading slash (#992)
* Catch all exceptions, not just StandardError descendents (#1007)
* Bullet-proof limit_posts option (#1004)
* Bullet-proof `limit_posts` option (#1004)
* Read in YAML as UTF-8 to accept non-ASCII chars (#836)
* Fix the CLI option --plugins to actually accept dirs and files (#993)
* Fix the CLI option `--plugins` to actually accept dirs and files (#993)
* Allow 'excerpt' in YAML Front-Matter to override the extracted excerpt (#946)
* Fix cascade problem with site.baseurl, site.port and site.host. (#935)
* Filter out directories with valid post names (#875)
@@ -340,10 +864,10 @@
* Force usage of older directory_watcher gem as 1.5 is broken (#883)
* Ensure all Post categories are downcase (#842, #872)
* Force encoding of the rdiscount TOC to UTF8 to avoid conversion errors (#555)
* Patch for multibyte URI problem with jekyll serve (#723)
* Patch for multibyte URI problem with `jekyll serve` (#723)
* Order plugin execution by priority (#864)
* Fixed Page#dir and Page#url for edge cases (#536)
* Fix broken post_url with posts with a time in their YAML Front-Matter (#831)
* Fix broken `post_url` with posts with a time in their YAML Front-Matter (#831)
* Look for plugins under the source directory (#654)
* Tumblr Migrator: finds `_posts` dir correctly, fixes truncation of long
post names (#775)
@@ -365,7 +889,7 @@
### Development Fixes
* Exclude Cucumber 1.2.4, which causes tests to fail in 1.9.2 (#938)
* Added "features:html" rake task for debugging purposes, cleaned up
cucumber profiles (#832)
Cucumber profiles (#832)
* Explicitly require HTTPS rubygems source in Gemfile (#826)
* Changed Ruby version for development to 1.9.3-p374 from p362 (#801)
* Including a link to the GitHub Ruby style guide in CONTRIBUTING.md (#806)
@@ -375,6 +899,7 @@
* Switch to Simplecov for coverage report (#765)
## 0.12.1 / 2013-02-19
### Minor Enhancements
* Update Kramdown version to 0.14.1 (#744)
* Test Enhancements
@@ -383,11 +908,12 @@
* Update Redcarpet version to 2.2.2 (#744)
## 0.12.0 / 2012-12-22
### Minor Enhancements
* Add ability to explicitly specify included files (#261)
* Add --default-mimetype option (#279)
* Add `--default-mimetype` option (#279)
* Allow setting of RedCloth options (#284)
* Add post_url Liquid tag for internal post linking (#369)
* Add `post_url` Liquid tag for internal post linking (#369)
* Allow multiple plugin dirs to be specified (#438)
* Inline TOC token support for RDiscount (#333)
* Add the option to specify the paginated url format (#342)
@@ -397,9 +923,9 @@
* Bug Fixes
* Allow some special characters in highlight names
* URL escape category names in URL generation (#360)
* Fix error with limit_posts (#442)
* Fix error with `limit_posts` (#442)
* Properly select dotfile during directory scan (#363, #431, #377)
* Allow setting of Kramdown smart_quotes (#482)
* Allow setting of Kramdown `smart_quotes` (#482)
* Ensure front-matter is at start of file (#562)
## 0.11.2 / 2011-12-27
@@ -412,6 +938,7 @@
* Update dependencies
## 0.11.0 / 2011-07-10
### Major Enhancements
* Add command line importer functionality (#253)
* Add Redcarpet Markdown support (#318)
@@ -433,9 +960,10 @@
## 0.10.0 / 2010-12-16
* Bug Fixes
* Add --no-server option.
* Add `--no-server` option.
## 0.9.0 / 2010-12-15
### Minor Enhancements
* Use OptionParser's `[no-]` functionality for better boolean parsing.
* Add Drupal migrator (#245)
@@ -444,11 +972,12 @@
* Add Marley migrator (#28)
## 0.8.0 / 2010-11-22
### Minor Enhancements
* Add wordpress.com importer (#207)
* Add --limit-posts cli option (#212)
* Add uri_escape filter (#234)
* Add --base-url cli option (#235)
* Add `--limit-posts` cli option (#212)
* Add `uri_escape` filter (#234)
* Add `--base-url` cli option (#235)
* Improve MT migrator (#238)
* Add kramdown support (#239)
* Bug Fixes
@@ -457,6 +986,7 @@
* Prevent `_includes` dir from being a symlink
## 0.7.0 / 2010-08-24
### Minor Enhancements
* Add support for rdiscount extensions (#173)
* Bug Fixes
@@ -468,13 +998,14 @@
* Fix Rakefile 'release' task (tag pushing was missing origin)
* Ensure that RedCloth is loaded when textilize filter is used (#183)
* Expand source, destination, and plugin paths (#180)
* Fix page.url to include full relative path (#181)
* Fix `page.url` to include full relative path (#181)
## 0.6.1 / 2010-06-24
* Bug Fixes
* Fix Markdown Pygments prefix and suffix (#178)
## 0.6.0 / 2010-06-23
### Major Enhancements
* Proper plugin system (#19, #100)
* Add safe mode so unsafe converters/generators can be added
@@ -485,9 +1016,9 @@
### Minor Enhancements
* Inclusion/exclusion of future dated posts (#59)
* Generation for a specific time (#59)
* Allocate site.time on render not per site_payload invocation (#59)
* Allocate `site.time` on render not per site_payload invocation (#59)
* Pages now present in the site payload and can be used through the
site.pages and site.html_pages variables
`site.pages` and `site.html_pages` variables
* Generate phase added to site#process and pagination is now a generator
* Switch to RakeGem for build/test process
* Only regenerate static files when they have changed (#142)
@@ -499,9 +1030,10 @@
* Fix extension munging when pretty permalinks are enabled (#64)
* Stop sorting categories (#33)
* Preserve generated attributes over front matter (#119)
* Fix source directory binding using Dir.pwd (#75)
* Fix source directory binding using `Dir.pwd` (#75)
## 0.5.7 / 2010-01-12
### Minor Enhancements
* Allow overriding of post date in the front matter (#62, #38)
* Bug Fixes
@@ -509,7 +1041,7 @@
* Empty tags causes error in read_posts (#84)
* Fix pagination to adhere to read/render/write paradigm
* Test Enhancement
* cucumber features no longer use site.posts.first where a better
* Cucumber features no longer use site.posts.first where a better
alternative is available
## 0.5.6 / 2010-01-08
@@ -567,6 +1099,7 @@
* Added Date#xmlschema for Ruby versions < 1.9
## 0.5.1 / 2009-05-06
### Major Enhancements
* Next/previous posts in site payload (@pantulis, @tomo)
* Permalink templating system
@@ -581,6 +1114,7 @@
* CGI escaped post titles (@Chrononaut)
## 0.5.0 / 2009-04-07
### Minor Enhancements
* Ability to set post categories via YAML (@qrush)
* Ability to set prevent a post from publishing via YAML (@qrush)
@@ -599,18 +1133,20 @@
* Add Cucumber acceptance test suite (@qrush, @technicalpickles)
## 0.4.1
### Minor Enhancements
* Changed date format on wordpress converter (zeropadding) (@dysinger)
* Bug Fixes
* Add jekyll binary as executable to gemspec (@dysinger)
* Add Jekyll binary as executable to gemspec (@dysinger)
## 0.4.0 / 2009-02-03
### Major Enhancements
* Switch to Jeweler for packaging tasks
### Minor Enhancements
* Type importer (@codeslinger)
* site.topics accessor (@baz)
* `site.topics` accessor (@baz)
* Add `array_to_sentence_string` filter (@mchung)
* Add a converter for textpattern (@PerfectlyNormal)
* Add a working Mephisto / MySQL converter (@ivey)
@@ -625,8 +1161,9 @@
* Fix site payload available to files (@matrix9180)
## 0.3.0 / 2008-12-24
### Major Enhancements
* Added --server option to start a simple WEBrick server on destination
* Added `--server` option to start a simple WEBrick server on destination
directory (@johnreilly and @mchung)
### Minor Enhancements
@@ -645,23 +1182,24 @@
## 0.2.1 / 2008-12-15
* Major Changes
* Use Maruku (pure Ruby) for Markdown by default (@mreid)
* Allow use of RDiscount with --rdiscount flag
* Allow use of RDiscount with `--rdiscount` flag
### Minor Enhancements
* Don't load directory_watcher unless it's needed (@pjhyett)
## 0.2.0 / 2008-12-14
* Major Changes
* related_posts is now found in site.related_posts
* related_posts is now found in `site.related_posts`
## 0.1.6 / 2008-12-13
* Major Features
* Include files in `_includes` with `{% include x.textile %}`
## 0.1.5 / 2008-12-12
### Major Enhancements
* Code highlighting with Pygments if --pygments is specified
* Disable true LSI by default, enable with --lsi
* Code highlighting with Pygments if `--pygments` is specified
* Disable true LSI by default, enable with `--lsi`
### Minor Enhancements
* Output informative message if RDiscount is not available (@JackDanger)
@@ -680,7 +1218,7 @@
* Code hilighting (@vanpelt)
* Autobuild
* Bug Fixes
* Accept both \r\n and \n in YAML header (@vanpelt)
* Accept both `\r\n` and `\n` in YAML header (@vanpelt)
## 0.1.2 / 2008-11-22
* Major Features

View File

@@ -1,6 +1,6 @@
(The MIT License)
Copyright (c) 2008 Tom Preston-Werner
Copyright (c) 2008-2014 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
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.

View File

@@ -1,55 +1,35 @@
# Jekyll
# [Jekyll](http://jekyllrb.com/)
[![Gem Version](https://badge.fury.io/rb/jekyll.png)](http://badge.fury.io/rb/jekyll)
[![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)
[![Build Status](https://secure.travis-ci.org/mojombo/jekyll.png)](https://travis-ci.org/mojombo/jekyll)
[![Code Climate](https://codeclimate.com/github/mojombo/jekyll.png)](https://codeclimate.com/github/mojombo/jekyll)
[![Dependency Status](https://gemnasium.com/mojombo/jekyll.png)](https://gemnasium.com/mojombo/jekyll)
By Tom Preston-Werner, Nick Quaranto, and many [awesome contributors](https://github.com/jekyll/jekyll/graphs/contributors)!
By Tom Preston-Werner, Nick Quaranto, and many awesome contributors!
Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind [GitHub Pages](http://pages.github.com), which you can use to host sites right from your GitHub repositories.
Jekyll is a simple, blog aware, static site generator. It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind [GitHub Pages](http://pages.github.com), which you can use to host your project's page or blog right here from GitHub.
## 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.
## Getting Started
* [Install](http://jekyllrb.com/docs/installation/) the gem
* Read up about its [Usage](http://jekyllrb.com/docs/usage/) and [Configuration](http://jekyllrb.com/docs/configuration/)
* Take a gander at some existing [Sites](http://wiki.github.com/mojombo/jekyll/sites)
* 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.
* Have questions? Check out [`#jekyll` on irc.freenode.net](https://botbot.me/freenode/jekyll/).
## Diving In
* [Migrate](http://jekyllrb.com/docs/migrations/) from your previous system
* [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
## Runtime Dependencies
* Commander: Command-line interface constructor (Ruby)
* Colorator: Colorizes command line output (Ruby)
* Classifier: Generating related posts (Ruby)
* Directory Watcher: Auto-regeneration of sites (Ruby)
* Liquid: Templating system (Ruby)
* Maruku: Default markdown engine (Ruby)
* Pygments.rb: Syntax highlighting (Ruby/Python)
* RedCarpet: Markdown engine (Ruby)
* Safe YAML: YAML Parser built for security (Ruby)
## Developer Dependencies
* Kramdown: Markdown-superset converter (Ruby)
* Launchy: Cross-platform file launcher (Ruby)
* RDiscount: Discount Markdown Processor (Ruby)
* RedCloth: Textile support (Ruby)
* RedGreen: Nicer test output (Ruby)
* RR: Mocking (Ruby)
* Shoulda: Test framework (Ruby)
* SimpleCov: Coverage framework (Ruby)
## License
See [LICENSE](https://github.com/mojombo/jekyll/blob/master/LICENSE).
See [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE).

View File

@@ -5,6 +5,7 @@ require 'date'
require 'yaml'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w[lib]))
require 'jekyll/version'
#############################################################################
#
@@ -17,20 +18,7 @@ def name
end
def version
line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
end
def date
Date.today.to_s
end
def file_date
Date.today.strftime("%F")
end
def rubyforge_project
name
Jekyll::VERSION
end
def gemspec_file
@@ -41,12 +29,8 @@ def gem_file
"#{name}-#{version}.gem"
end
def replace_header(head, header_name)
head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
end
def normalize_bullets(markdown)
markdown.gsub(/\s{2}\*{1}/, "-")
markdown.gsub(/\n\s{2}\*{1}/, "\n-")
end
def linkify_prs(markdown)
@@ -149,7 +133,7 @@ namespace :site do
desc "Update normalize.css library to the latest version and minify"
task :update_normalize_css do
Dir.chdir("site/css") do
Dir.chdir("site/_includes/css") do
sh 'curl "http://necolas.github.io/normalize.css/latest/normalize.css" -o "normalize.scss"'
sh 'sass "normalize.scss":"normalize.css" --style compressed'
sh 'rm "normalize.scss"'
@@ -162,7 +146,7 @@ namespace :site do
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:mojombo/jekyll gh-pages"
puts " `git clone git@github.com:jekyll/jekyll gh-pages"
puts " `cd gh-pages"
puts " `git checkout gh-pages`"
exit(1)
@@ -185,7 +169,7 @@ namespace :site do
sha = `git log`.match(/[a-z0-9]{40}/)[0]
Dir.chdir('gh-pages') do
sh "git add ."
sh "git commit -m 'Updating to #{sha}.'"
sh "git commit --allow-empty -m 'Updating to #{sha}.'"
sh "git push origin gh-pages"
end
puts 'Done.'
@@ -211,6 +195,31 @@ namespace :site do
abort "You seem to have misplaced your History.markdown file. I can haz?"
end
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
#############################################################################
@@ -231,36 +240,8 @@ task :release => :build do
sh "gem push pkg/#{name}-#{version}.gem"
end
task :build => :gemspec do
sh "mkdir -p pkg"
task :build do
mkdir_p "pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end
task :gemspec do
# read spec file and split out manifest section
spec = File.read(gemspec_file)
head, manifest, tail = spec.split(" # = MANIFEST =\n")
# replace name version and date
replace_header(head, :name)
replace_header(head, :version)
replace_header(head, :date)
#comment this out if your rubyforge_project has a different name
replace_header(head, :rubyforge_project)
# determine file list from git ls-files
files = `git ls-files`.
split("\n").
sort.
reject { |file| file =~ /^\./ }.
reject { |file| file =~ /^(rdoc|pkg|coverage)/ }.
map { |file| " #{file}" }.
join("\n")
# piece file back together and write
manifest = " s.files = %w[\n#{files}\n ]\n"
spec = [head, manifest, tail].join(" # = MANIFEST =\n")
File.open(gemspec_file, 'w') { |io| io.write(spec) }
puts "Updated #{gemspec_file}"
end

View File

@@ -3,156 +3,38 @@ STDOUT.sync = true
$:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
require 'commander/import'
require 'jekyll'
require 'mercenary'
%w[jekyll-import].each do |blessed_gem|
begin
require blessed_gem
rescue LoadError
end
end
Jekyll::Deprecator.process(ARGV)
program :name, 'jekyll'
program :version, Jekyll::VERSION
program :description, 'Jekyll is a blog-aware, static site generator in Ruby'
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]'
default_command :default
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)'
global_option '-s', '--source [DIR]', 'Source directory (defaults to ./)'
global_option '-d', '--destination [DIR]', 'Destination directory (defaults to ./_site)'
global_option '--safe', 'Safe mode (defaults to false)'
global_option '-p', '--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]', Array, 'Plugins directory (defaults to ./_plugins)'
global_option '--layouts DIR', String, 'Layouts directory (defaults to ./_layouts)'
Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
# Option names don't always directly match the configuration value we'd like.
# This method will rename options to match what Jekyll configuration expects.
#
# options - The Hash of options from Commander.
#
# Returns the normalized Hash.
def normalize_options(options)
if drafts_state = options.delete(:drafts)
options[:show_drafts] = drafts_state
end
options
end
command :default do |c|
c.action do |args, options|
p.action do |args, options|
if args.empty?
command(:help).run
puts p
else
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
unless p.has_command?(args.first)
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
end
end
end
end
command :new do |c|
c.syntax = 'jekyll new PATH'
c.description = 'Creates a new Jekyll site scaffold in PATH'
c.option '--force', 'Force creation even if PATH already exists'
c.option '--blank', 'Creates scaffolding but with empty files'
c.action do |args, options|
Jekyll::Commands::New.process(args, options.__hash__)
end
end
command :build do |c|
c.syntax = 'jekyll build [options]'
c.description = 'Build your site'
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.option '--future', 'Publishes posts with a future date'
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.option '-D', '--drafts', 'Render posts in the _drafts folder'
c.action do |args, options|
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options)
Jekyll::Commands::Build.process(options)
end
end
command :serve do |c|
c.syntax = 'jekyll serve [options]'
c.description = 'Serve your site locally'
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.option '--future', 'Publishes posts with a future date'
c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.option '-B', '--detach', 'Run the server in the background (detach)'
c.option '-D', '--drafts', 'Render posts in the _drafts folder'
c.option '-P', '--port [PORT]', 'Port to listen on'
c.option '-H', '--host [HOST]', 'Host to bind to'
c.option '-b', '--baseurl [URL]', 'Base URL'
c.action do |args, options|
options.default :serving => true
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options)
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
end
alias_command :server, :serve
command :doctor do |c|
c.syntax = 'jekyll doctor'
c.description = 'Search site and print specific deprecation warnings'
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.action do |args, options|
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options)
Jekyll::Commands::Doctor.process(options)
end
end
alias_command :hyde, :doctor
command :docs do |c|
c.syntax = 'jekyll docs'
c.description = "Launch local server with docs for Jekyll v#{Jekyll::VERSION}"
c.option '-p', '--port [PORT]', 'Port to listen on'
c.option '-u', '--host [HOST]', 'Host to bind to'
c.action do |args, options|
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options.merge!({
'source' => File.expand_path("../site", File.dirname(__FILE__)),
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
}))
puts options
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
end
command :import do |c|
c.syntax = 'jekyll import <platform> [options]'
c.description = 'Import your old blog to Jekyll'
c.option '--source STRING', 'Source file or URL to migrate from'
c.option '--file STRING', 'File to migrate from'
c.option '--dbname STRING', 'Database name to migrate from'
c.option '--user STRING', 'Username to use when migrating'
c.option '--pass STRING', 'Password to use when migrating'
c.option '--host STRING', 'Host address to use when migrating'
c.action do |args, options|
begin
require 'jekyll-import'
rescue LoadError
msg = "You must install the 'jekyll-import' gem before continuing.\n"
msg += "* Do this by running `gem install jekyll-import`.\n"
msg += "* Or if you need root privileges, run `sudo gem install jekyll-import`."
abort msg
end
Jekyll::Commands::Import.process(args.first, options)
end
end

View File

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

View File

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

View File

@@ -0,0 +1,145 @@
Feature: Collections
As a hacker who likes to structure content
I want to be able to create collections of similar information
And render them
Scenario: Unrendered collection
Given I have an "index.html" page that contains "Collections: {{ site.methods }}"
And I have fixture collections
And I have a configuration file with "collections" set to "['methods']"
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>\n<p><code>Jekyll.sanitized_path</code> is used to make sure your path is in your source.</p>\n<p>Run your generators! default</p>\n<p>Page without title.</p>\n<p>Run your generators! default</p>" in "_site/index.html"
And the "_site/methods/configuration.html" file should not exist
Scenario: Rendered collection
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have an "collection_metadata.html" page that contains "Methods metadata: {{ site.collections.methods.foo }} {{ site.collections.methods }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
And I should see "Methods metadata: bar" in "_site/collection_metadata.html"
And I should see "<p>Whatever: foo.bar</p>" in "_site/methods/configuration.html"
Scenario: Rendered collection at a custom URL
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
permalink: /:collection/:path/
"""
When I run jekyll build
Then the _site directory should exist
And I should see "<p>Whatever: foo.bar</p>" in "_site/methods/configuration/index.html"
Scenario: Rendered document in a layout
Given I have an "index.html" page that contains "Collections: {{ site.collections }}"
And I have a default layout that contains "<div class='title'>Tom Preston-Werner</div> {{content}}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
methods:
output: true
foo: bar
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: {\"methods" in "_site/index.html"
And I should see "<p>Run your generators! default</p>" in "_site/methods/site/generate.html"
And I should see "<div class='title'>Tom Preston-Werner</div>" in "_site/methods/site/generate.html"
Scenario: Collections specified as an array
Given I have an "index.html" page that contains "Collections: {% for method in site.methods %}{{ method.relative_path }} {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: Collections specified as an hash
Given I have an "index.html" page that contains "Collections: {% for method in site.methods %}{{ method.relative_path }} {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: All the documents
Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: Documents have an output attribute, which is the converted HTML
Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "First document's output: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>" in "_site/index.html"
Scenario: Filter documents by where
Given I have an "index.html" page that contains "{% assign items = site.methods | where: 'whatever','foo.bar' %}Item count: {{ items.size }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Item count: 1" in "_site/index.html"
Scenario: Sort by title
Given I have an "index.html" page that contains "{% assign items = site.methods | sort: 'title' %}1. of {{ items.size }}: {{ items.first.output }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "1. of 5: <p>Page without title.</p>" in "_site/index.html"
Scenario: Sort by relative_path
Given I have an "index.html" page that contains "Collections: {% assign methods = site.methods | sort: 'relative_path' %}{% for method in methods %}{{ method.title }}, {% endfor %}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: Jekyll.configuration, Jekyll.sanitized_path, Site#generate, , Site#generate," in "_site/index.html"

View File

@@ -5,23 +5,23 @@ Feature: Create sites
Scenario: Blank site
Given I do not have a "test_blank" directory
When I call jekyll new with test_blank --blank
When I run jekyll new test_blank --blank
Then the test_blank/_layouts directory should exist
And the test_blank/_posts directory should exist
And the "test_blank/index.html" file should exist
Scenario: Basic site
Given I have an "index.html" file that contains "Basic Site"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site" in "_site/index.html"
Scenario: Basic site with a post
Given I have a _posts directory
And I have the following post:
| title | date | content |
| title | date | content |
| Hackers | 2009-03-27 | My First Exploit |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "My First Exploit" in "_site/2009/03/27/hackers.html"
@@ -29,7 +29,7 @@ Feature: Create sites
Given I have a _layouts directory
And I have an "index.html" page with layout "default" that contains "Basic Site with Layout"
And I have a default layout that contains "Page Layout: {{ content }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: Basic Site with Layout" in "_site/index.html"
@@ -37,10 +37,21 @@ Feature: Create sites
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
And I have a default layout that contains "Post Layout: {{ content }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
Scenario: Basic site with layout inside a subfolder and a post
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| Wargames | 2009-03-27 | post/simple | The only winning move is not to play. |
And I have a post/simple layout that contains "Post Layout: {{ content }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
@@ -55,15 +66,15 @@ Feature: Create sites
And I have an "another_file" file that contains ""
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2009-03-27 | post | content for entry1. |
| entry2 | 2009-04-27 | post | content for entry2. |
| title | date | layout | content |
| entry1 | 2009-03-27 | post | content for entry1. |
| entry2 | 2009-04-27 | post | content for entry2. |
And I have a category/_posts directory
And I have the following posts in "category":
| title | date | layout | content |
| entry3 | 2009-05-27 | post | content for entry3. |
| entry4 | 2009-06-27 | post | content for entry4. |
When I run jekyll
| title | date | layout | content |
| entry3 | 2009-05-27 | post | content for entry3. |
| entry4 | 2009-06-27 | post | content for entry4. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html"
And I should see "No replacement \{\{ site.posts.size \}\}" in "_site/about.html"
@@ -78,7 +89,7 @@ Feature: Create sites
Given I have a _includes directory
And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
@@ -87,7 +98,7 @@ Feature: Create sites
And I have an "_includes/about.textile" file that contains "Generated by Jekyll"
And I have an info directory
And I have an "info/index.html" page that contains "Basic Site with subdir include tag: {% include about.textile %}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"
@@ -96,7 +107,7 @@ Feature: Create sites
And I have an "_includes/about.textile" file that contains "Generated by {% include jekyll.textile %}"
And I have an "_includes/jekyll.textile" file that contains "Jekyll"
And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
@@ -105,26 +116,43 @@ Feature: Create sites
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. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
Scenario: Basic site with whitelisted dotfile
Given I have an ".htaccess" file that contains "SomeDirective"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "SomeDirective" in "_site/.htaccess"
Scenario: File was replaced by a directory
Given I have a "test" file that contains "some stuff"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
When I delete the file "test"
Given I have a test directory
And I have a "test/index.html" file that contains "some other stuff"
When I run jekyll
When I run jekyll build
Then the _site/test directory should exist
And I should see "some other stuff" in "_site/test/index.html"
Scenario: Basic site with unpublished page
Given I have an "index.html" page with title "index" that contains "Published page"
And I have a "public.html" page with published "true" that contains "Explicitly published page"
And I have a "secret.html" page with published "false" that contains "Unpublished page"
When I run jekyll build
Then the _site directory should exist
And the "_site/index.html" file should exist
And the "_site/public.html" file should exist
But the "_site/secret.html" file should not exist
When I run jekyll build --unpublished
Then the _site directory should exist
And the "_site/index.html" file should exist
And the "_site/public.html" file should exist
And the "_site/secret.html" file should exist

105
features/data.feature Normal file
View File

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

View File

@@ -7,9 +7,9 @@ Feature: Draft Posts
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll with drafts
When I run jekyll build --drafts
Then the _site directory should exist
And I should see "Not baked yet." in "_site/recipe.html"
@@ -18,8 +18,29 @@ Feature: Draft Posts
And I have an "index.html" page that contains "Totally index"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Don't preview a draft that is not published
Given I have a configuration file with "permalink" set to "none"
And I have an "index.html" page that contains "Totally index"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | published | content |
| Recipe | 2009-03-27 | default | false | Not baked yet. |
When I run jekyll build --drafts
Then the _site directory should exist
And the "_site/recipe.html" file should not exist
Scenario: Use page.path variable
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
| title | date | layout | content |
| Recipe | 2009-03-27 | simple | Post path: {{ page.path }} |
When I run jekyll build --drafts
Then the _site directory should exist
And I should see "Post path: _drafts/recipe.textile" in "_site/recipe.html"

View File

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

View File

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

View File

@@ -10,15 +10,15 @@ Feature: Include tags
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 %} |
| 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 %} |
When I run jekyll
| 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 %} |
When I run jekyll build
Then the _site directory should exist
And I should see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/include-files.html"
And I should not see "myparam" in "_site/2013/03/21/ignore-params-if-unused.html"
@@ -33,3 +33,36 @@ Feature: Include tags
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"
Scenario: Include a file from a variable
Given I have an _includes directory
And I have an "_includes/snippet.html" file that contains "a snippet"
And I have an "_includes/parametrized.html" file that contains "works with {{include.what}}"
And I have a configuration file with:
| key | value |
| include_file1 | snippet.html |
| include_file2 | parametrized.html |
And I have an "index.html" page that contains "{% include {{site.include_file1}} %} that {% include {{site.include_file2}} what='parameters' %}"
When I run jekyll build
Then the _site directory should exist
And I should see "a snippet that works with parameters" in "_site/index.html"
Scenario: Include a variable file in a loop
Given I have an _includes directory
And I have an "_includes/one.html" file that contains "one"
And I have an "_includes/two.html" file that contains "two"
And I have an "index.html" page with files "[one.html, two.html]" that contains "{% for file in page.files %}{% include {{file}} %} {% endfor %}"
When I run jekyll build
Then the _site directory should exist
And I should see "one two" in "_site/index.html"
Scenario: Include a file with variables and filters
Given I have an _includes directory
And I have an "_includes/one.html" file that contains "one included"
And I have a configuration file with:
| key | value |
| include_file | one |
And I have an "index.html" page that contains "{% include {{ site.include_file | append: '.html' }} %}"
When I run jekyll build
Then the _site directory should exist
And I should see "one included" in "_site/index.html"

View File

@@ -8,23 +8,60 @@ Feature: Markdown
And I have an "index.html" page that contains "Index - {% for post in site.posts %} {{ post.content }} {% endfor %}"
And I have a _posts directory
And I have the following post:
| title | date | content | type |
| title | date | content | type |
| Hackers | 2009-03-27 | # My Title | markdown |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Index" in "_site/index.html"
And I should see "<h1 id='my_title'>My Title</h1>" in "_site/2009/03/27/hackers.html"
And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/2009/03/27/hackers.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
Scenario: Markdown in pagination on index
Given I have a configuration file with "paginate" set to "5"
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 |
| title | date | content | type |
| Hackers | 2009-03-27 | # My Title | markdown |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Index" in "_site/index.html"
And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```
My awesome code
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome code" in "_site/index.html"
And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
"""
---
title: My title
---
# My title
```ruby
puts "My awesome string"
```
"""
When I run jekyll build
Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html"
And I should see "<pre class="ruby"><code class="ruby">\nputs &quot;My awesome string&quot;\n</code></pre>" in "_site/index.html"

View File

@@ -9,12 +9,12 @@ Feature: Site pagination
And I have an "index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll
When I run jekyll build
Then the _site/page<exist> directory should exist
And the "_site/page<exist>/index.html" file should exist
And I should see "<posts>" in "_site/page<exist>/index.html"
@@ -36,12 +36,12 @@ Feature: Site pagination
And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll
When I run jekyll build
Then the _site/blog/page-<exist> directory should exist
And the "_site/blog/page-<exist>/index.html" file should exist
And I should see "<posts>" in "_site/blog/page-<exist>/index.html"
@@ -69,7 +69,7 @@ Feature: Site pagination
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
When I run jekyll
When I run jekyll build
Then the _site/blog/page/<exist> directory should exist
And the "_site/blog/page/<exist>/index.html" file should exist
And I should see "<posts>" in "_site/blog/page/<exist>/index.html"

View File

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

View File

@@ -7,10 +7,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post title: {{ page.title }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
@@ -18,10 +18,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post url: {{ page.url }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
@@ -29,10 +29,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post date: 27 Mar 2009" in "_site/2009/03/27/star-wars.html"
@@ -40,10 +40,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post id: {{ page.id }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
@@ -51,10 +51,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post content: {{ content }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
@@ -63,21 +63,33 @@ Feature: Post data
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
Scenario: Use post.categories variable when category is in a folder and has categories in YAML
Given I have a movies directory
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | [film] | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/film/2009/03/27/star-wars.html"
Scenario: Use post.tags variable
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | tag | content |
| title | date | layout | tag | content |
| Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
And I have a simple layout that contains "Post tags: {{ page.tags }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
@@ -87,10 +99,10 @@ Feature: Post data
And I have a scifi/movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/movies":
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
@@ -100,10 +112,10 @@ Feature: Post data
And I have a scifi/Movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/Movies":
| title | date | layout | content |
| title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
@@ -111,10 +123,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | category | content |
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -122,10 +134,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | category | content |
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -133,10 +145,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | category | content |
| title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -144,11 +156,11 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following posts:
| title | date | layout | categories | content |
| title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
| Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll
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"
@@ -156,24 +168,24 @@ Feature: Post data
Scenario Outline: Use page.path variable
Given I have a <dir>/_posts directory
And I have the following post in "<dir>":
| title | type | date | content |
| title | type | date | content |
| my-post | html | 2013-04-12 | Source path: {{ page.path }} |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Source path: <path_prefix>_posts/2013-04-12-my-post.html" in "_site/<dir>/2013/04/12/my-post.html"
Examples:
| dir | path_prefix |
| . | |
| dir | dir/ |
| dir | path_prefix |
| . | |
| dir | dir/ |
| dir/nested | dir/nested/ |
Scenario: Override page.path variable
Given I have a _posts directory
And I have the following post:
| title | date | path | content |
| title | date | path | content |
| override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
When I run jekyll
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"
@@ -181,9 +193,9 @@ Feature: Post data
Given I have a _posts directory
And I have an "index.html" file that contains "Published!"
And I have the following post:
| title | date | layout | published | content |
| title | date | layout | published | content |
| Star Wars | 2009-03-27 | simple | false | Luke, I am your father. |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And the "_site/2009/03/27/star-wars.html" file should not exist
And I should see "Published!" in "_site/index.html"
@@ -192,10 +204,10 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
| title | date | layout | author | content |
| title | date | layout | author | content |
| Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. |
And I have a simple layout that contains "Post author: {{ page.author }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
@@ -203,12 +215,12 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following posts:
| title | date | layout | author | content |
| title | date | layout | author | content |
| Star Wars | 2009-03-27 | ordered | Darth Vader | Luke, I am your father. |
| Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. |
| Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby |
And I have a ordered layout that contains "Previous post: {{ page.previous.title }} and next post: {{ page.next.title }}"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "next post: Some like it hot" in "_site/2009/03/27/star-wars.html"
And I should see "Previous post: Some like it hot" in "_site/2009/05/27/terminator.html"

View File

@@ -9,9 +9,9 @@ Feature: Post excerpts
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
@@ -21,9 +21,9 @@ Feature: Post excerpts
And I have a _layouts directory
And I have a post layout that contains "{{ page.excerpt }}"
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And the _site/2007 directory should exist
And the _site/2007/12 directory should exist
@@ -38,9 +38,9 @@ Feature: Post excerpts
And I have a _layouts directory
And I have a post layout that contains "<html><head></head><body>{{ page.excerpt }}</body></html>"
And I have the following posts:
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
When I run jekyll build
Then the _site directory should exist
And the _site/2007 directory should exist
And the _site/2007/12 directory should exist

View File

@@ -0,0 +1,34 @@
Feature: Rendering
As a hacker who likes to blog
I want to be able to make a static site
In order to share my awesome ideas with the interwebs
But I want to make it as simply as possible
So render with Liquid and place in Layouts
Scenario: Render Liquid and place in layout
Given I have a "index.html" page with layout "simple" that contains "Hi there, Jekyll {{ jekyll.environment }}!"
And I have a simple layout that contains "{{ content }}Ahoy, indeed!"
When I run jekyll build
Then the _site directory should exist
And I should see "Hi there, Jekyll development!\nAhoy, indeed" in "_site/index.html"
Scenario: Don't place asset files in layout
Given I have an "index.scss" page with layout "simple" that contains ".foo-bar { color:black; }"
And I have an "index.coffee" page with layout "simple" that contains "whatever()"
And I have a simple layout that contains "{{ content }}Ahoy, indeed!"
When I run jekyll build
Then the _site directory should exist
And I should not see "Ahoy, indeed!" in "_site/index.css"
And I should not see "Ahoy, indeed!" in "_site/index.js"
Scenario: Don't render liquid in Sass
Given I have an "index.scss" page that contains ".foo-bar { color:{{site.color}}; }"
When I run jekyll build
Then the _site directory should not exist
And I should see "Invalid CSS after" in the build output
Scenario: Don't render liquid in CoffeeScript
Given I have an "index.coffee" page that contains "hey='for {{site.animal}}'"
When I run jekyll build
Then the _site directory should exist
And I should see "hey = 'for {{site.animal}}';" in "_site/index.js"

View File

@@ -7,23 +7,44 @@ Feature: Site configuration
Given I have a blank site in "_sourcedir"
And I have an "_sourcedir/index.html" file that contains "Changing source directory"
And I have a configuration file with "source" set to "_sourcedir"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "Changing source directory" in "_site/index.html"
Scenario: Change destination directory
Given I have an "index.html" file that contains "Changing destination directory"
And I have a configuration file with "destination" set to "_mysite"
When I run jekyll
When I run jekyll build
Then the _mysite directory should exist
And I should see "Changing destination directory" in "_mysite/index.html"
Scenario Outline: Similarly named source and destination
Given I have a blank site in "<source>"
And I have an "<source>/index.md" page that contains "markdown"
And I have a configuration file with:
| key | value |
| source | <source> |
| destination | <dest> |
When I run jekyll build
Then the <source> directory should exist
And the "<dest>/index.html" file should <file_exist> exist
And I should see "markdown" in "<source>/index.md"
Examples:
| source | dest | file_exist |
| mysite_source | mysite | |
| mysite | mysite_dest | |
| mysite/ | mysite | not |
| mysite | ./mysite | not |
| mysite/source | mysite | not |
| mysite | mysite/dest | |
Scenario: Exclude files inline
Given I have an "Rakefile" file that contains "I want to be excluded"
And I have an "README" file that contains "I want to be excluded"
And I have an "index.html" file that contains "I want to be included"
And I have a configuration file with "exclude" set to "['Rakefile', 'README']"
When I run jekyll
When I run jekyll build
Then I should see "I want to be included" in "_site/index.html"
And the "_site/Rakefile" file should not exist
And the "_site/README" file should not exist
@@ -36,7 +57,7 @@ Feature: Site configuration
| value |
| README |
| Rakefile |
When I run jekyll
When I run jekyll build
Then I should see "I want to be included" in "_site/index.html"
And the "_site/Rakefile" file should not exist
And the "_site/README" file should not exist
@@ -44,37 +65,54 @@ Feature: Site configuration
Scenario: Use RDiscount for markup
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
And I have a configuration file with "markdown" set to "rdiscount"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "<a href="http://google.com">Google</a>" in "_site/index.html"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use Kramdown for markup
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
And I have a configuration file with "markdown" set to "kramdown"
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see "<a href="http://google.com">Google</a>" in "_site/index.html"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use 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
When I run jekyll build
Then the _site directory should exist
And I should see "<a href="http://google.com">Google</a>" in "_site/index.html"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Use Maruku for markup
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
When I run jekyll build
Then the _site directory should exist
And I should see "<a href='http://google.com'>Google</a>" in "_site/index.html"
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
Scenario: Highlight code with pygments
Given I have an "index.html" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
And I have a configuration file with "pygments" set to "true"
When I run jekyll
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
When I run jekyll build
Then the _site directory should exist
And I should see "puts 'Hello world!'" in "_site/index.html"
And I should see "Hello world!" in "_site/index.html"
And I should see "class=\"highlight\"" in "_site/index.html"
Scenario: Highlight code with rouge
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
And I have a configuration file with "highlighter" set to "rouge"
When I run jekyll build
Then the _site directory should exist
And I should see "Hello world!" in "_site/index.html"
And I should see "class=\"highlight\"" in "_site/index.html"
Scenario: Rouge renders code block once
Given I have a configuration file with "highlighter" set to "rouge"
And I have a _posts directory
And I have the following post:
| title | date | layout | content |
| foo | 2014-04-27 11:34 | default | {% highlight text %} test {% endhighlight %} |
When I run jekyll build
Then I should not see "highlight(.*)highlight" in "_site/2014/04/27/foo.html"
Scenario: Set time and no future dated posts
Given I have a _layouts directory
@@ -87,10 +125,10 @@ Feature: Site configuration
| future | false |
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
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
@@ -107,10 +145,10 @@ Feature: Site configuration
| future | true |
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
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
@@ -129,7 +167,7 @@ Feature: Site configuration
| 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
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p> built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
@@ -148,7 +186,7 @@ Feature: Site configuration
| 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
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2" in "_site/index.html"
And the "_site/2013/04/10/entry1.html" file should exist
@@ -162,11 +200,11 @@ Feature: Site configuration
| key | value |
| limit_posts | 2 |
And I have the following posts:
| title | date | content |
| Apples | 2009-03-27 | An article about apples |
| Oranges | 2009-04-01 | An article about oranges |
| Bananas | 2009-04-05 | An article about bananas |
When I run jekyll
| title | date | content |
| Apples | 2009-03-27 | An article about apples |
| Oranges | 2009-04-01 | An article about oranges |
| Bananas | 2009-04-05 | An article about bananas |
When I run jekyll build
Then the _site directory should exist
And the "_site/2009/04/05/bananas.html" file should exist
And the "_site/2009/04/01/oranges.html" file should exist
@@ -179,7 +217,7 @@ Feature: Site configuration
| value |
| .gitignore |
| .foo |
When I run jekyll
When I run jekyll build
Then the _site directory should exist
And I should see ".DS_Store" in "_site/.gitignore"
And the "_site/.htaccess" file should not exist
@@ -196,11 +234,42 @@ Feature: Site configuration
| layouts | _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
| title | date | layout | content |
| entry1 | 2007-12-31 | post | content for entry1. |
| entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll build
Then the _site directory should exist
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
And I should see "Post Layout: <p>content for entry2.</p>" in "_site/2020/01/31/entry2.html"
Scenario: Add a gem-based plugin
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with "gems" set to "[jekyll_test_plugin]"
When I run jekyll build
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And I should see "this is a test" in "_site/test.txt"
Scenario: Add an empty whitelist to restrict all gems
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin] |
| whitelist | [] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should not exist
Scenario: Add a whitelist to restrict some gems but allow others
Given I have an "index.html" file that contains "Whatever"
And I have a configuration file with:
| key | value |
| gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] |
| whitelist | [jekyll_test_plugin] |
When I run jekyll build --safe
Then the _site directory should exist
And I should see "Whatever" in "_site/index.html"
And the "_site/test.txt" file should exist
And I should see "this is a test" in "_site/test.txt"

View File

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

View File

@@ -1,13 +1,35 @@
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.rm_rf(TEST_DIR)
FileUtils.mkdir(TEST_DIR)
FileUtils.mkdir_p(TEST_DIR) unless File.exist?(TEST_DIR)
Dir.chdir(TEST_DIR)
end
After do
FileUtils.rm_rf(TEST_DIR) if File.exists?(TEST_DIR)
FileUtils.rm(JEKYLL_COMMAND_OUTPUT_FILE) if File.exists?(JEKYLL_COMMAND_OUTPUT_FILE)
end
World(Test::Unit::Assertions)
Given /^I have a blank site in "(.*)"$/ do |path|
FileUtils.mkdir(path)
FileUtils.mkdir_p(path) unless File.exist?(path)
end
Given /^I do not have a "(.*)" directory$/ do |path|
@@ -38,7 +60,18 @@ Given /^I have an? (.*) (layout|theme) that contains "(.*)"$/ do |name, type, te
else
'_theme'
end
File.open(File.join(folder, name + '.html'), 'w') do |f|
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
@@ -47,42 +80,28 @@ Given /^I have an? (.*) directory$/ do |dir|
FileUtils.mkdir_p(dir)
end
Given /^I have the following (draft|post)s?(?: (in|under) "([^"]+)")?:$/ do |status, direction, folder, table|
table.hashes.each do |post|
title = slug(post['title'])
ext = post['type'] || 'textile'
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)
if "draft" == status
folder_post = '_drafts'
case status
when "draft"
dest_folder = '_drafts'
filename = "#{title}.#{ext}"
elsif "post" == status
parsed_date = Time.xmlschema(post['date']) rescue Time.parse(post['date'])
folder_post = '_posts'
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, folder_post, after, filename)
matter_hash = {}
%w(title layout tag tags category categories published author path date permalink).each do |key|
matter_hash[key] = post[key] if post[key]
end
matter = matter_hash.map { |k, v| "#{k}: #{v}\n" }.join.chomp
content = if post['input'] && post['filter']
"{{ #{post['input']} | #{post['filter']} }}"
else
post['content']
end
path = File.join(before, dest_folder, after, filename)
File.open(path, 'w') do |f|
f.write <<EOF
---
#{matter}
---
#{content}
EOF
f.write file_content_from_hash(input_hash)
end
end
end
@@ -110,21 +129,21 @@ Given /^I have a configuration file with "([^\"]*)" set to:$/ do |key, table|
end
end
When /^I run jekyll$/ do
run_jekyll
Given /^I have fixture collections$/ do
FileUtils.cp_r File.join(JEKYLL_SOURCE_DIR, "test", "source", "_methods"), source_dir
end
When /^I run jekyll with drafts$/ do
run_jekyll(:drafts => true)
end
##################
#
# Changing stuff
#
##################
When /^I call jekyll new with test_blank --blank$/ do
call_jekyll_new(:path => "test_blank", :blank => true)
end
When /^I debug jekyll$/ do
run_jekyll(:debug => true)
When /^I run jekyll(.*)$/ do |args|
status = run_jekyll(args)
if args.include?("--verbose") || ENV['DEBUG']
puts jekyll_run_output
end
end
When /^I change "(.*)" to contain "(.*)"$/ do |file, text|
@@ -137,38 +156,46 @@ When /^I delete the file "(.*)"$/ do |file|
File.delete(file)
end
Then /^the (.*) directory should exist$/ do |dir|
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 Regexp.new(text).match(File.open(file).readlines.join)
assert_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end
Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file|
assert_equal text, File.open(file).readlines.join.strip
assert_equal text, file_contents(file).strip
end
Then /^I should not see "(.*)" in "(.*)"$/ do |text, file|
assert_no_match Regexp.new(text), File.read(file)
assert_no_match Regexp.new(text, Regexp::MULTILINE), file_contents(file)
end
Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file|
assert Regexp.new(Regexp.escape(text)).match(File.open(file).readlines.join)
assert_match Regexp.new(Regexp.escape(text)), file_contents(file)
end
Then /^the "(.*)" file should exist$/ do |file|
assert File.file?(file)
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.exists?(file)
assert !File.exist?(file), "The file \"#{file}\" exists"
end
Then /^I should see today's time in "(.*)"$/ do |file|
assert_match Regexp.new(Regexp.escape(Time.now.to_s)), File.open(file).readlines.join
assert_match Regexp.new(seconds_agnostic_time(Time.now)), file_contents(file)
end
Then /^I should see today's date in "(.*)"$/ do |file|
assert_match Regexp.new(Date.today.to_s), File.open(file).readlines.join
assert_match Regexp.new(Date.today.to_s), file_contents(file)
end
Then /^I should see "(.*)" in the build output$/ do |text|
assert_match Regexp.new(text), jekyll_run_output
end

View File

@@ -3,28 +3,33 @@ require 'rr'
require 'test/unit'
require 'time'
TEST_DIR = File.join('/', 'tmp', 'jekyll')
JEKYLL_SOURCE_DIR = File.dirname(File.dirname(File.dirname(__FILE__)))
TEST_DIR = File.expand_path(File.join('..', '..', 'tmp', 'jekyll'), File.dirname(__FILE__))
JEKYLL_PATH = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll')
JEKYLL_COMMAND_OUTPUT_FILE = File.join(File.dirname(TEST_DIR), 'jekyll_output.txt')
def run_jekyll(opts = {})
command = JEKYLL_PATH.clone
command << " build"
command << " --drafts" if opts[:drafts]
command << " >> /dev/null 2>&1" if opts[:debug].nil?
system command
def source_dir(*files)
File.join(TEST_DIR, *files)
end
def call_jekyll_new(opts = {})
command = JEKYLL_PATH.clone
command << " new"
command << " #{opts[:path]}" if opts[:path]
command << " --blank" if opts[:blank]
command << " >> /dev/null 2>&1" if opts[:debug].nil?
system command
def jekyll_output_file
JEKYLL_COMMAND_OUTPUT_FILE
end
def jekyll_run_output
File.read(jekyll_output_file)
end
def run_jekyll(args)
system "#{JEKYLL_PATH} #{args} --trace > #{jekyll_output_file} 2>&1"
end
def slug(title)
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
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)
@@ -35,5 +40,26 @@ def location(folder, direction)
[before || '.', after || '.']
end
# work around "invalid option: --format" cucumber bug (see #296)
Test::Unit.run = true if RUBY_VERSION < '1.9'
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

@@ -1,279 +1,63 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'jekyll/version'
Gem::Specification.new do |s|
s.specification_version = 2 if s.respond_to? :specification_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.rubygems_version = '1.3.5'
s.rubygems_version = '2.2.2'
s.required_ruby_version = '>= 1.9.3'
s.name = 'jekyll'
s.version = '1.2.0'
s.version = Jekyll::VERSION
s.license = 'MIT'
s.date = '2013-09-06'
s.rubyforge_project = 'jekyll'
s.summary = "A simple, blog aware, static site generator."
s.description = "Jekyll is a simple, blog aware, static site generator."
s.authors = ["Tom Preston-Werner"]
s.email = 'tom@mojombo.com'
s.homepage = 'http://github.com/mojombo/jekyll'
s.homepage = 'https://github.com/jekyll/jekyll'
s.require_paths = %w[lib]
s.executables = ["jekyll"]
s.files = `git ls-files`.split($/)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ["lib"]
s.rdoc_options = ["--charset=UTF-8"]
s.extra_rdoc_files = %w[README.markdown LICENSE]
s.add_runtime_dependency('liquid', "~> 2.5.1")
s.add_runtime_dependency('liquid', "~> 2.6.1")
s.add_runtime_dependency('classifier', "~> 1.3")
s.add_runtime_dependency('directory_watcher', "~> 1.4.1")
s.add_runtime_dependency('maruku', "~> 0.5")
s.add_runtime_dependency('pygments.rb', "~> 0.5.0")
s.add_runtime_dependency('commander', "~> 4.1.3")
s.add_runtime_dependency('safe_yaml', "~> 0.7.0")
s.add_runtime_dependency('listen', [">= 2.7.6", "< 3.0.0"])
s.add_runtime_dependency('kramdown', "~> 1.3")
s.add_runtime_dependency('pygments.rb', "~> 0.6.0")
s.add_runtime_dependency('mercenary', "~> 0.3.3")
s.add_runtime_dependency('safe_yaml', "~> 1.0")
s.add_runtime_dependency('colorator', "~> 0.1")
s.add_runtime_dependency('redcarpet', "~> 2.2.2")
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('jekyll-sass-converter', '~> 1.0')
s.add_development_dependency('rake', "~> 10.0.3")
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.3.2")
s.add_development_dependency('rr', "~> 1.0.0")
s.add_development_dependency('cucumber', "~> 1.2.1", '!= 1.2.4')
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('kramdown', "~> 1.0.2")
s.add_development_dependency('maruku', "0.7.0")
s.add_development_dependency('rdiscount', "~> 1.6")
s.add_development_dependency('launchy', "~> 2.1.2")
s.add_development_dependency('launchy', "~> 2.3")
s.add_development_dependency('simplecov', "~> 0.7")
s.add_development_dependency('simplecov-gem-adapter', "~> 1.0.1")
s.add_development_dependency('mime-types', "~> 1.5")
s.add_development_dependency('activesupport', '~> 3.2.13')
# = MANIFEST =
s.files = %w[
CONTRIBUTING.markdown
Gemfile
History.markdown
LICENSE
README.markdown
Rakefile
bin/jekyll
cucumber.yml
features/create_sites.feature
features/drafts.feature
features/embed_filters.feature
features/include_tag.feature
features/markdown.feature
features/pagination.feature
features/permalinks.feature
features/post_data.feature
features/post_excerpts.feature
features/site_configuration.feature
features/site_data.feature
features/step_definitions/jekyll_steps.rb
features/support/env.rb
jekyll.gemspec
lib/jekyll.rb
lib/jekyll/cleaner.rb
lib/jekyll/command.rb
lib/jekyll/commands/build.rb
lib/jekyll/commands/doctor.rb
lib/jekyll/commands/new.rb
lib/jekyll/commands/serve.rb
lib/jekyll/configuration.rb
lib/jekyll/converter.rb
lib/jekyll/converters/identity.rb
lib/jekyll/converters/markdown.rb
lib/jekyll/converters/markdown/kramdown_parser.rb
lib/jekyll/converters/markdown/maruku_parser.rb
lib/jekyll/converters/markdown/rdiscount_parser.rb
lib/jekyll/converters/markdown/redcarpet_parser.rb
lib/jekyll/converters/textile.rb
lib/jekyll/convertible.rb
lib/jekyll/core_ext.rb
lib/jekyll/deprecator.rb
lib/jekyll/draft.rb
lib/jekyll/errors.rb
lib/jekyll/excerpt.rb
lib/jekyll/filters.rb
lib/jekyll/generator.rb
lib/jekyll/generators/pagination.rb
lib/jekyll/layout.rb
lib/jekyll/mime.types
lib/jekyll/page.rb
lib/jekyll/plugin.rb
lib/jekyll/post.rb
lib/jekyll/related_posts.rb
lib/jekyll/site.rb
lib/jekyll/static_file.rb
lib/jekyll/stevenson.rb
lib/jekyll/tags/gist.rb
lib/jekyll/tags/highlight.rb
lib/jekyll/tags/include.rb
lib/jekyll/tags/post_url.rb
lib/jekyll/url.rb
lib/site_template/.gitignore
lib/site_template/_config.yml
lib/site_template/_layouts/default.html
lib/site_template/_layouts/post.html
lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb
lib/site_template/css/main.css
lib/site_template/css/syntax.css
lib/site_template/index.html
script/bootstrap
site/.gitignore
site/CNAME
site/README
site/_config.yml
site/_includes/analytics.html
site/_includes/docs_contents.html
site/_includes/docs_contents_mobile.html
site/_includes/footer.html
site/_includes/header.html
site/_includes/news_contents.html
site/_includes/news_contents_mobile.html
site/_includes/news_item.html
site/_includes/primary-nav-items.html
site/_includes/section_nav.html
site/_includes/top.html
site/_layouts/default.html
site/_layouts/docs.html
site/_layouts/news.html
site/_layouts/news_item.html
site/_posts/2013-05-06-jekyll-1-0-0-released.markdown
site/_posts/2013-05-08-jekyll-1-0-1-released.markdown
site/_posts/2013-05-12-jekyll-1-0-2-released.markdown
site/_posts/2013-06-07-jekyll-1-0-3-released.markdown
site/_posts/2013-07-14-jekyll-1-1-0-released.markdown
site/_posts/2013-07-24-jekyll-1-1-1-released.markdown
site/_posts/2013-07-25-jekyll-1-0-4-released.markdown
site/_posts/2013-07-25-jekyll-1-1-2-released.markdown
site/_posts/2013-09-06-jekyll-1-2-0-released.markdown
site/css/gridism.css
site/css/normalize.css
site/css/pygments.css
site/css/style.css
site/docs/configuration.md
site/docs/contributing.md
site/docs/deployment-methods.md
site/docs/drafts.md
site/docs/extras.md
site/docs/frontmatter.md
site/docs/github-pages.md
site/docs/heroku.md
site/docs/history.md
site/docs/index.md
site/docs/installation.md
site/docs/migrations.md
site/docs/pages.md
site/docs/pagination.md
site/docs/permalinks.md
site/docs/plugins.md
site/docs/posts.md
site/docs/quickstart.md
site/docs/resources.md
site/docs/sites.md
site/docs/structure.md
site/docs/templates.md
site/docs/troubleshooting.md
site/docs/upgrading.md
site/docs/usage.md
site/docs/variables.md
site/favicon.png
site/feed.xml
site/freenode.txt
site/img/article-footer.png
site/img/footer-arrow.png
site/img/footer-logo.png
site/img/logo-2x.png
site/img/octojekyll.png
site/img/tube.png
site/img/tube1x.png
site/index.html
site/js/modernizr-2.5.3.min.js
site/news/index.md
site/news/releases/index.md
test/fixtures/broken_front_matter1.erb
test/fixtures/broken_front_matter2.erb
test/fixtures/broken_front_matter3.erb
test/fixtures/exploit_front_matter.erb
test/fixtures/front_matter.erb
test/helper.rb
test/source/+/foo.md
test/source/.htaccess
test/source/_includes/params.html
test/source/_includes/sig.markdown
test/source/_layouts/default.html
test/source/_layouts/simple.html
test/source/_plugins/dummy.rb
test/source/_posts/2008-02-02-not-published.textile
test/source/_posts/2008-02-02-published.textile
test/source/_posts/2008-10-18-foo-bar.textile
test/source/_posts/2008-11-21-complex.textile
test/source/_posts/2008-12-03-permalinked-post.textile
test/source/_posts/2008-12-13-include.markdown
test/source/_posts/2009-01-27-array-categories.textile
test/source/_posts/2009-01-27-categories.textile
test/source/_posts/2009-01-27-category.textile
test/source/_posts/2009-01-27-empty-categories.textile
test/source/_posts/2009-01-27-empty-category.textile
test/source/_posts/2009-03-12-hash-#1.markdown
test/source/_posts/2009-05-18-empty-tag.textile
test/source/_posts/2009-05-18-empty-tags.textile
test/source/_posts/2009-05-18-tag.textile
test/source/_posts/2009-05-18-tags.textile
test/source/_posts/2009-06-22-empty-yaml.textile
test/source/_posts/2009-06-22-no-yaml.textile
test/source/_posts/2010-01-08-triple-dash.markdown
test/source/_posts/2010-01-09-date-override.textile
test/source/_posts/2010-01-09-time-override.textile
test/source/_posts/2010-01-09-timezone-override.textile
test/source/_posts/2010-01-16-override-data.textile
test/source/_posts/2011-04-12-md-extension.md
test/source/_posts/2011-04-12-text-extension.text
test/source/_posts/2013-01-02-post-excerpt.markdown
test/source/_posts/2013-01-12-nil-layout.textile
test/source/_posts/2013-01-12-no-layout.textile
test/source/_posts/2013-03-19-not-a-post.markdown/.gitkeep
test/source/_posts/2013-04-11-custom-excerpt.markdown
test/source/_posts/2013-05-10-number-category.textile
test/source/_posts/2013-07-22-post-excerpt-with-layout.markdown
test/source/_posts/2013-08-01-mkdn-extension.mkdn
test/source/_posts/es/2008-11-21-nested.textile
test/source/about.html
test/source/category/_posts/2008-9-23-categories.textile
test/source/contacts.html
test/source/contacts/bar.html
test/source/contacts/index.html
test/source/css/screen.css
test/source/deal.with.dots.html
test/source/foo/_posts/bar/2008-12-12-topical-post.textile
test/source/index.html
test/source/sitemap.xml
test/source/symlink-test/symlinked-dir
test/source/symlink-test/symlinked-file
test/source/win/_posts/2009-05-24-yaml-linebreak.markdown
test/source/z_category/_posts/2008-9-23-categories.textile
test/suite.rb
test/test_command.rb
test/test_configuration.rb
test/test_convertible.rb
test/test_core_ext.rb
test/test_excerpt.rb
test/test_filters.rb
test/test_generated_site.rb
test/test_kramdown.rb
test/test_new_command.rb
test/test_page.rb
test/test_pager.rb
test/test_post.rb
test/test_rdiscount.rb
test/test_redcarpet.rb
test/test_redcloth.rb
test/test_related_posts.rb
test/test_site.rb
test/test_tags.rb
test/test_url.rb
]
# = MANIFEST =
s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
s.add_development_dependency('jekyll_test_plugin')
s.add_development_dependency('jekyll_test_plugin_malicious')
s.add_development_dependency('rouge', '~> 1.3')
end

View File

@@ -18,19 +18,29 @@ require 'rubygems'
# stdlib
require 'fileutils'
require 'time'
require 'safe_yaml'
require 'safe_yaml/load'
require 'English'
require 'pathname'
require 'logger'
# 3rd party
require 'liquid'
require 'maruku'
require 'kramdown'
require 'colorator'
require 'toml'
# internal requires
require 'jekyll/core_ext'
require 'jekyll/version'
require 'jekyll/utils'
require 'jekyll/hooks'
require 'jekyll/log_adapter'
require 'jekyll/stevenson'
require 'jekyll/deprecator'
require 'jekyll/configuration'
require 'jekyll/document'
require 'jekyll/collection'
require 'jekyll/plugin_manager'
require 'jekyll/frontmatter_defaults'
require 'jekyll/site'
require 'jekyll/convertible'
require 'jekyll/url'
@@ -44,12 +54,17 @@ require 'jekyll/static_file'
require 'jekyll/errors'
require 'jekyll/related_posts'
require 'jekyll/cleaner'
require 'jekyll/entry_filter'
require 'jekyll/layout_reader'
require 'jekyll/publisher'
require 'jekyll/renderer'
# extensions
require 'jekyll/plugin'
require 'jekyll/converter'
require 'jekyll/generator'
require 'jekyll/command'
require 'jekyll/liquid_extensions'
require_all 'jekyll/commands'
require_all 'jekyll/converters'
@@ -57,10 +72,23 @@ require_all 'jekyll/converters/markdown'
require_all 'jekyll/generators'
require_all 'jekyll/tags'
# plugins
require 'jekyll-coffeescript'
require 'jekyll-sass-converter'
require 'jekyll-paginate'
require 'jekyll-gist'
SafeYAML::OPTIONS[:suppress_warnings] = true
module Jekyll
VERSION = '1.2.0'
# Public: Tells you which Jekyll environment you are building in so you can skip tasks
# if you need to. This is useful when doing expensive compression tasks on css and
# images and allows you to skip that when working in development.
def self.env
ENV["JEKYLL_ENV"] || "development"
end
# Public: Generate a Jekyll configuration Hash by merging the default
# options with anything in _config.yml, and adding the given options on top.
@@ -76,7 +104,7 @@ module Jekyll
config = config.read_config_files(config.config_files(override))
# Merge DEFAULTS < _config.yml < override
config = config.deep_merge(override).stringify_keys
config = Utils.deep_merge_hashes(config, override).stringify_keys
set_timezone(config['timezone']) if config['timezone']
config
@@ -92,6 +120,27 @@ module Jekyll
end
def self.logger
@logger ||= Stevenson.new
@logger ||= LogAdapter.new(Stevenson.new)
end
def self.logger=(writer)
@logger = LogAdapter.new(writer)
end
# Public: File system root
#
# Returns the root of the filesystem as a Pathname
def self.fs_root
@fs_root ||= "/"
end
def self.sanitized_path(base_directory, questionable_path)
clean_path = File.expand_path(questionable_path, fs_root)
clean_path.gsub!(/\A\w\:\//, '/')
unless clean_path.start_with?(base_directory)
File.join(base_directory, clean_path)
else
clean_path
end
end
end

View File

@@ -2,8 +2,10 @@ require 'set'
module Jekyll
class Site
# Handles the cleanup of a site's destination before the site is built.
# Handles the cleanup of a site's destination before it is built.
class Cleaner
attr_reader :site
def initialize(site)
@site = site
end
@@ -15,39 +17,51 @@ module Jekyll
private
# Private: The list of files and directories to be deleted during the cleanup process
# Private: The list of files and directories to be deleted during cleanup process
#
# Returns an Array with the file and directory paths
# 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 existing files, except those included in keep_files and hidden files.
# Private: The list of existing files, apart from those included in keep_files and hidden files.
#
# Returns a Set with the file paths
def existing_files
files = Set.new
Dir.glob(File.join(@site.dest, "**", "*"), File::FNM_DOTMATCH) do |file|
files << file unless file =~ /\/\.{1,2}$/ || file =~ keep_file_regex
Dir.glob(File.join(site.dest, "**", "*"), File::FNM_DOTMATCH) do |file|
files << file unless file =~ /\/\.{1,2}$/ || file =~ keep_file_regex || keep_dirs.include?(file)
end
files
end
# Private: The list of files to be created when the site is built.
# 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) }
site.each_site_file { |item| files << item.destination(site.dest) }
files
end
# Private: The list of directories to be created when the site is built.
# 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| File.dirname(file) }.to_set
new_files.map { |file| parent_dirs(file) }.flatten.to_set
end
# Private: The list of parent directories of a given file
#
# Returns an Array with the directory paths
def parent_dirs(file)
parent_dir = File.dirname(file)
if parent_dir == site.dest
[]
else
[parent_dir] + parent_dirs(parent_dir)
end
end
# Private: The list of existing files that will be replaced by a directory during build
@@ -57,17 +71,25 @@ module Jekyll
new_dirs.select { |dir| File.file?(dir) }.to_set
end
# Private: creates a regular expression from the config's keep_files array
# Private: The list of directories that need to be kept because they are parent directories
# of files specified in keep_files
#
# Returns a Set with the directory paths
def keep_dirs
site.keep_files.map{|file| parent_dirs(File.join(site.dest, file))}.flatten.to_set
end
# Private: Creates a regular expression from the config's keep_files array
#
# Examples
# ['.git','.svn'] creates the following regex: /\/(\.git|\/.svn)/
#
# Returns the regular expression
def keep_file_regex
or_list = @site.keep_files.join("|")
or_list = site.keep_files.join("|")
pattern = "\/(#{or_list.gsub(".", "\.")})"
Regexp.new pattern
end
end
end
end
end

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

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

View File

@@ -1,27 +1,91 @@
module Jekyll
class Command
def self.globs(source, destination)
Dir.chdir(source) do
dirs = Dir['*'].select { |x| File.directory?(x) }
dirs -= [destination, File.expand_path(destination), File.basename(destination)]
dirs = dirs.map { |x| "#{x}/**/*" }
dirs += ['*']
class << self
# A list of subclasses of Jekyll::Command
def subclasses
@subclasses ||= []
end
# Keep a list of subclasses of Jekyll::Command every time it's inherited
# Called automatically.
#
# base - the subclass
#
# Returns nothing
def inherited(base)
subclasses << base
super(base)
end
# Paths to ignore for the watch option
#
# options - A Hash of options passed to the command
#
# Returns a list of relative paths from source that should be ignored
def ignore_paths(options)
source = options['source']
destination = options['destination']
config_files = Configuration[options].config_files(options)
paths = config_files + Array(destination)
ignored = []
source_abs = Pathname.new(source).expand_path
paths.each do |p|
path_abs = Pathname.new(p).expand_path
begin
rel_path = path_abs.relative_path_from(source_abs).to_s
ignored << Regexp.new(Regexp.escape(rel_path)) unless rel_path.start_with?('../')
rescue ArgumentError
# Could not find a relative path
end
end
ignored
end
# Run Site#process and catch errors
#
# site - the Jekyll::Site object
#
# Returns nothing
def process_site(site)
site.process
rescue Jekyll::FatalException => e
Jekyll.logger.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:"
Jekyll.logger.error "", "------------------------------------"
Jekyll.logger.error "", e.message
exit(1)
end
# Create a full Jekyll configuration with the options passed in as overrides
#
# options - the configuration overrides
#
# Returns a full Jekyll configuration
def configuration_from_options(options)
Jekyll.configuration(options)
end
# Add common options to a command for building configuration
#
# c - the Jekyll::Command to add these options to
#
# Returns nothing
def add_build_options(c)
c.option 'config', '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.option 'future', '--future', 'Publishes posts with a future date'
c.option 'limit_posts', '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
c.option 'watch', '-w', '--watch', 'Watch for changes and rebuild'
c.option '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.'
end
end
# Static: Run Site#process and catch errors
#
# site - the Jekyll::Site object
#
# Returns nothing
def self.process_site(site)
site.process
rescue Jekyll::FatalException => e
puts
Jekyll.logger.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:"
Jekyll.logger.error "", "------------------------------------"
Jekyll.logger.error "", e.message
exit(1)
end
end
end

View File

@@ -1,64 +1,99 @@
module Jekyll
module Commands
class Build < Command
def self.process(options)
site = Jekyll::Site.new(options)
self.build(site, options)
self.watch(site, options) if options['watch']
end
class << self
# Private: Build the site from source into destination.
#
# site - A Jekyll::Site instance
# options - A Hash of options passed to the command
#
# Returns nothing.
def self.build(site, options)
source = options['source']
destination = options['destination']
Jekyll.logger.info "Source:", source
Jekyll.logger.info "Destination:", destination
print Jekyll.logger.formatted_topic "Generating..."
self.process_site(site)
puts "done."
end
# 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'
# Private: Watch for file changes and rebuild the site.
#
# site - A Jekyll::Site instance
# options - A Hash of options passed to the command
#
# Returns nothing.
def self.watch(site, options)
require 'directory_watcher'
add_build_options(c)
source = options['source']
destination = options['destination']
Jekyll.logger.info "Auto-regeneration:", "enabled"
dw = DirectoryWatcher.new(source, :glob => self.globs(source, destination), :pre_load => true)
dw.interval = 1
dw.add_observer do |*args|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
print Jekyll.logger.formatted_topic("Regenerating:") + "#{args.size} files at #{t} "
self.process_site(site)
puts "...done."
end
dw.start
unless options['serving']
trap("INT") do
puts " Halting auto-regeneration."
exit 0
c.action do |args, options|
options["serving"] = false
Jekyll::Commands::Build.process(options)
end
end
loop { sleep 1000 }
end
end
# 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']
options = configuration_from_options(options)
site = Jekyll::Site.new(options)
if options.fetch('skip_initial_build', false)
Jekyll.logger.warn "Build Warning:", "Skipping the initial build. This may result in an out-of-date site."
else
build(site, options)
end
watch(site, options) if options['watch']
end
# Build your Jekyll site.
#
# site - the Jekyll::Site instance to build
# options - the
#
# Returns nothing.
def build(site, options)
source = options['source']
destination = options['destination']
Jekyll.logger.info "Source:", source
Jekyll.logger.info "Destination:", destination
Jekyll.logger.info "Generating..."
process_site(site)
Jekyll.logger.info "", "done."
end
# Private: Watch for file changes and rebuild the site.
#
# site - A Jekyll::Site instance
# options - A Hash of options passed to the command
#
# Returns nothing.
def watch(site, options)
require 'listen'
listener = Listen.to(
options['source'],
:ignore => ignore_paths(options),
:force_polling => options['force_polling']
) do |modified, added, removed|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
n = modified.length + added.length + removed.length
print Jekyll.logger.formatted_topic("Regenerating:") + "#{n} files at #{t} "
begin
process_site(site)
puts "...done."
rescue => e
puts "...error:"
Jekyll.logger.warn "Error:", e.message
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
end
end
listener.start
Jekyll.logger.info "Auto-regeneration:", "enabled for '#{source}'"
unless options['serving']
trap("INT") do
listener.stop
puts " Halting auto-regeneration."
exit 0
end
loop { sleep 1000 }
end
end
end # end of class << self
end
end
end

View File

@@ -0,0 +1,30 @@
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,8 +2,23 @@ module Jekyll
module Commands
class Doctor < Command
class << self
def init_with_program(prog)
prog.command(:doctor) do |c|
c.syntax 'doctor'
c.description 'Search site and print specific deprecation warnings'
c.alias(:hyde)
c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
c.action do |args, options|
Jekyll::Commands::Doctor.process(options)
end
end
end
def process(options)
site = Jekyll::Site.new(options)
site = Jekyll::Site.new(configuration_from_options(options))
site.read
if healthy?(site)
@@ -26,7 +41,7 @@ module Jekyll
if page.uses_relative_permalinks
Jekyll.logger.warn "Deprecation:", "'#{page.path}' uses relative" +
" permalinks which will be deprecated in" +
" Jekyll v1.2 and beyond."
" Jekyll v2.0.0 and beyond."
contains_deprecated_pages = true
end
end
@@ -61,7 +76,9 @@ module Jekyll
end
urls
end
end
end
end
end

View File

@@ -3,27 +3,40 @@ require 'erb'
module Jekyll
module Commands
class New < Command
def self.init_with_program(prog)
prog.command(:new) do |c|
c.syntax 'new PATH'
c.description 'Creates a new Jekyll site scaffold in PATH'
c.option 'force', '--force', 'Force creation even if PATH already exists'
c.option 'blank', '--blank', 'Creates scaffolding but with empty files'
c.action do |args, options|
Jekyll::Commands::New.process(args, options)
end
end
end
def self.process(args, options = {})
raise ArgumentError.new('You must specify a path.') if args.empty?
new_blog_path = File.expand_path(args.join(" "), Dir.pwd)
FileUtils.mkdir_p new_blog_path
if preserve_source_location?(new_blog_path, options)
Jekyll.logger.error "Conflict:", "#{new_blog_path} exists and is not empty."
exit(1)
Jekyll.logger.abort_with "Conflict:", "#{new_blog_path} exists and is not empty."
end
if options[:blank]
if options["blank"]
create_blank_site new_blog_path
else
create_sample_files new_blog_path
File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f|
f.write(self.scaffold_post_content)
File.open(File.expand_path(initialized_post_name, new_blog_path), "w") do |f|
f.write(scaffold_post_content)
end
end
puts "New jekyll site installed in #{new_blog_path}."
Jekyll.logger.info "New jekyll site installed in #{new_blog_path}."
end
def self.create_blank_site(path)
@@ -47,7 +60,7 @@ module Jekyll
private
def self.preserve_source_location?(path, options)
!options[:force] && !Dir["#{path}/**/*"].empty?
!options["force"] && !Dir["#{path}/**/*"].empty?
end
def self.create_sample_files(path)

View File

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

View File

@@ -10,29 +10,34 @@ module Jekyll
'destination' => File.join(Dir.pwd, '_site'),
'plugins' => '_plugins',
'layouts' => '_layouts',
'data_source' => '_data',
'keep_files' => ['.git','.svn'],
'gems' => [],
'collections' => nil,
'timezone' => nil, # use the local timezone
'encoding' => 'utf-8', # always use utf-8 encoding. NEVER FORGET
'safe' => false,
'detach' => false, # default to not detaching the server
'show_drafts' => nil,
'limit_posts' => 0,
'lsi' => false,
'future' => true, # remove and make true just default
'pygments' => true,
'unpublished' => false,
'relative_permalinks' => true, # backwards-compatibility with < 1.0
# will be set to false once 1.1 hits
'relative_permalinks' => false,
'markdown' => 'maruku',
'markdown' => 'kramdown',
'highlighter' => 'pygments',
'permalink' => 'date',
'baseurl' => '/',
'baseurl' => '',
'include' => ['.htaccess'],
'exclude' => [],
'paginate_path' => '/page:num',
'markdown_ext' => 'markdown,mkd,mkdn,md',
'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md',
'textile_ext' => 'textile',
'port' => '4000',
@@ -40,12 +45,15 @@ module Jekyll
'excerpt_separator' => "\n\n",
'defaults' => [],
'maruku' => {
'use_tex' => false,
'use_divs' => false,
'png_engine' => 'blahtex',
'png_dir' => 'images/latex',
'png_url' => '/images/latex'
'png_url' => '/images/latex',
'fenced_code_blocks' => true
},
'rdiscount' => {
@@ -95,6 +103,17 @@ module Jekyll
override['source'] || self['source'] || DEFAULTS['source']
end
def safe_load_file(filename)
case File.extname(filename)
when '.toml'
TOML.load_file(filename)
when /\.y(a)?ml/
SafeYAML.load_file(filename)
else
raise ArgumentError, "No parser for '#{filename}' is available. Use a .toml or .y(a)ml file instead."
end
end
# Public: Generate list of configuration files from the override
#
# override - the command-line options hash
@@ -104,7 +123,10 @@ module Jekyll
# Get configuration from <source>/_config.yml or <source>/<config_file>
config_files = override.delete('config')
if config_files.to_s.empty?
config_files = File.join(source(override), "_config.yml")
default = %w[yml yaml].find(Proc.new { 'yml' }) do |ext|
File.exists? Jekyll.sanitized_path(source(override), "_config.#{ext}")
end
config_files = Jekyll.sanitized_path(source(override), "_config.#{default}")
@default_config_file = true
end
config_files = [config_files] unless config_files.is_a? Array
@@ -117,8 +139,8 @@ module Jekyll
#
# Returns this configuration, overridden by the values in the file
def read_config_file(file)
next_config = YAML.safe_load_file(file)
raise ArgumentError.new("Configuration file: (INVALID) #{file}".yellow) if !next_config.is_a?(Hash)
next_config = safe_load_file(file)
raise ArgumentError.new("Configuration file: (INVALID) #{file}".yellow) unless next_config.is_a?(Hash)
Jekyll.logger.info "Configuration file:", file
next_config
rescue SystemCallError
@@ -127,7 +149,7 @@ module Jekyll
{}
else
Jekyll.logger.error "Fatal:", "The configuration file '#{file}' could not be found."
raise LoadError
raise LoadError, "The Configuration file '#{file}' could not be found."
end
end
@@ -143,7 +165,7 @@ module Jekyll
begin
files.each do |config_file|
new_config = read_config_file(config_file)
configuration = configuration.deep_merge(new_config)
configuration = Utils.deep_merge_hashes(configuration, new_config)
end
rescue ArgumentError => err
Jekyll.logger.warn "WARNING:", "Error reading configuration. " +
@@ -194,6 +216,16 @@ module Jekyll
config.delete('server_port')
end
if config.has_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" +
@@ -203,6 +235,12 @@ module Jekyll
config[option] = csv_to_array(config[option])
end
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
@@ -217,6 +255,5 @@ module Jekyll
config
end
end
end

View File

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

View File

@@ -3,25 +3,27 @@ module Jekyll
class Markdown < Converter
safe true
pygments_prefix "\n"
pygments_suffix "\n"
highlighter_prefix "\n"
highlighter_suffix "\n"
def setup
return if @setup
@parser = case @config['markdown']
when 'redcarpet'
RedcarpetParser.new @config
when 'kramdown'
KramdownParser.new @config
when 'rdiscount'
RDiscountParser.new @config
when 'maruku'
MarukuParser.new @config
@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
STDERR.puts "Invalid Markdown processor: #{@config['markdown']}"
STDERR.puts " Valid options are [ maruku | rdiscount | kramdown | redcarpet ]"
raise FatalException.new("Invalid Markdown process: #{@config['markdown']}")
end
# So they can't try some tricky bullshit or go down the ancestor chain, I hope.
if allowed_custom_class?(@config['markdown'])
self.class.const_get(@config['markdown']).new(@config)
else
Jekyll.logger.error "Invalid Markdown Processor:", "#{@config['markdown']}"
Jekyll.logger.error "", "Valid options are [ maruku | rdiscount | kramdown | redcarpet ]"
raise FatalException, "Invalid Markdown Processor: #{@config['markdown']}"
end
end
@setup = true
end
@@ -38,6 +40,19 @@ module Jekyll
setup
@parser.convert(content)
end
private
# Private: Determine whether a class name is an allowed custom markdown
# class name
#
# parser_name - the name of the parser class
#
# Returns true if the parser name contains only alphanumeric characters
# and is defined within Jekyll::Converters::Markdown
def allowed_custom_class?(parser_name)
parser_name !~ /[^A-Za-z0-9]/ && self.class.constants.include?(parser_name.to_sym)
end
end
end
end

View File

@@ -16,11 +16,11 @@ module Jekyll
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.to_sym] = @config['kramdown']['coderay'][key] unless @config['kramdown'].has_key?(key)
@config['kramdown'][key] = @config['kramdown']['coderay'][key] unless @config['kramdown'].has_key?(key)
end
end
Kramdown::Document.new(content, @config["kramdown"].symbolize_keys).to_html
Kramdown::Document.new(content, Utils.symbolize_hash_keys(@config["kramdown"])).to_html
end
end

View File

@@ -8,6 +8,10 @@ module Jekyll
@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'
@@ -41,7 +45,7 @@ module Jekyll
end
def convert(content)
converted = Maruku.new(content, :error_stream => @errors).to_html
converted = Maruku.new(content, :error_stream => @errors).to_html.strip
print_errors_and_fail unless @errors.empty?
converted
end

View File

@@ -5,7 +5,8 @@ module Jekyll
module CommonMethods
def add_code_tags(code, lang)
code = code.sub(/<pre>/, "<pre><code class=\"#{lang} language-#{lang}\" data-lang=\"#{lang}\">")
code = code.to_s
code = code.sub(/<pre>/, "<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">")
code = code.sub(/<\/pre>/,"</code></pre>")
end
end
@@ -15,14 +16,14 @@ module Jekyll
def block_code(code, lang)
require 'pygments'
lang = lang && lang.split.first || "text"
output = add_code_tags(
add_code_tags(
Pygments.highlight(code, :lexer => lang, :options => { :encoding => 'utf-8' }),
lang
)
end
end
module WithoutPygments
module WithoutHighlighting
require 'cgi'
include CommonMethods
@@ -33,23 +34,60 @@ module Jekyll
def block_code(code, lang)
lang = lang && lang.split.first || "text"
output = add_code_tags(code_wrap(code), lang)
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(opts = {})
Rouge::Formatters::HTML.new(opts.merge(wrap: false))
end
end
def initialize(config)
require 'redcarpet'
@config = config
@redcarpet_extensions = {}
@config['redcarpet']['extensions'].each { |e| @redcarpet_extensions[e.to_sym] = true }
@renderer ||= if @config['pygments']
@renderer ||= case @config['highlighter']
when 'pygments'
Class.new(Redcarpet::Render::HTML) do
include WithPygments
end
when 'rouge'
Class.new(Redcarpet::Render::HTML) do
begin
require 'rouge'
require 'rouge/plugins/redcarpet'
rescue LoadError => e
Jekyll.logger.error "You are missing the 'rouge' gem. Please run:"
Jekyll.logger.error " $ [sudo] gem install rouge"
Jekyll.logger.error "Or add 'rouge' to your Gemfile."
raise FatalException.new("Missing dependency: rouge")
end
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 WithoutPygments
include WithoutHighlighting
end
end
rescue LoadError

View File

@@ -3,8 +3,8 @@ module Jekyll
class Textile < Converter
safe true
pygments_prefix '<notextile>'
pygments_suffix '</notextile>'
highlighter_prefix '<notextile>'
highlighter_suffix '</notextile>'
def setup
return if @setup

View File

@@ -13,31 +13,46 @@ require 'set'
# self.ext=
# self.output=
# self.name
# self.path
# self.type -> :page, :post or :draft
module Jekyll
module Convertible
# Returns the contents as a String.
def to_s
self.content || ''
content || ''
end
# Whether the file is published or not, as indicated in YAML front-matter
def published?
!(data.has_key?('published') && data['published'] == false)
end
# Returns merged option hash for File.read of self.site (if exists)
# and a given param
def merged_file_read_opts(opts)
(site ? site.file_read_opts : {}).merge(opts)
end
# Read the YAML frontmatter.
#
# base - The String path to the dir containing the file.
# name - The String filename of the file.
# opts - optional parameter to File.read, default at site configs
#
# Returns nothing.
def read_yaml(base, name)
def read_yaml(base, name, opts = {})
begin
self.content = File.read(File.join(base, name))
if self.content =~ /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
self.content = File.read(File.join(base, name),
merged_file_read_opts(opts))
if content =~ /\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)/m
self.content = $POSTMATCH
self.data = YAML.safe_load($1)
self.data = SafeYAML.load($1)
end
rescue SyntaxError => e
puts "YAML Exception reading #{File.join(base, name)}: #{e.message}"
Jekyll.logger.warn "YAML Exception reading #{File.join(base, name)}: #{e.message}"
rescue Exception => e
puts "Error reading file #{File.join(base, name)}: #{e.message}"
Jekyll.logger.warn "Error reading file #{File.join(base, name)}: #{e.message}"
end
self.data ||= {}
@@ -47,10 +62,10 @@ module Jekyll
#
# Returns nothing.
def transform
self.content = converter.convert(self.content)
self.content = converter.convert(content)
rescue => e
Jekyll.logger.error "Conversion error:", "There was an error converting" +
" '#{self.path}'."
" '#{path}'."
raise e
end
@@ -59,7 +74,7 @@ module Jekyll
# Returns the String extension for the output file.
# e.g. ".html" for an HTML output file.
def output_ext
converter.output_ext(self.ext)
converter.output_ext(ext)
end
# Determine which converter to use based on this convertible's
@@ -67,7 +82,7 @@ module Jekyll
#
# Returns the Converter instance.
def converter
@converter ||= self.site.converters.find { |c| c.matches(self.ext) }
@converter ||= site.converters.find { |c| c.matches(ext) }
end
# Render Liquid in the content
@@ -77,10 +92,13 @@ module Jekyll
# info - the info for Liquid
#
# Returns the converted content
def render_liquid(content, payload, info)
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 #{self.path}"
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{path || self.path}"
raise e
end
@@ -91,7 +109,48 @@ module Jekyll
further_data = Hash[(attrs || self.class::ATTRIBUTES_FOR_LIQUID).map { |attribute|
[attribute, send(attribute)]
}]
data.deep_merge(further_data)
defaults = site.frontmatter_defaults.all(relative_path, type)
Utils.deep_merge_hashes defaults, Utils.deep_merge_hashes(data, further_data)
end
# The type of a document,
# i.e., its classname downcase'd and to_sym'd.
#
# Returns the type of self.
def type
if is_a?(Post)
:post
elsif is_a?(Page)
:page
elsif is_a?(Draft)
:draft
end
end
# Determine whether the document is an asset file.
# Asset files include CoffeeScript files and Sass/SCSS files.
#
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
%w[.sass .scss .coffee].include?(ext)
end
# Determine whether the file should be rendered with Liquid.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def render_with_liquid?
!asset_file?
end
# Determine whether the file should be placed into layouts.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def place_in_layout?
!asset_file?
end
# Recursively render layouts
@@ -103,15 +162,16 @@ module Jekyll
# Returns nothing
def render_all_layouts(layouts, payload, info)
# recursively render layouts
layout = layouts[self.data["layout"]]
layout = layouts[data["layout"]]
used = Set.new([layout])
while layout
payload = payload.deep_merge({"content" => self.output, "page" => layout.data})
payload = Utils.deep_merge_hashes(payload, {"content" => output, "page" => layout.data})
self.output = self.render_liquid(layout.content,
self.output = render_liquid(layout.content,
payload,
info)
info,
File.join(site.config['layouts'], layout.name))
if layout = layouts[layout.data["layout"]]
if used.include?(layout)
@@ -130,21 +190,19 @@ module Jekyll
#
# Returns nothing.
def do_layout(payload, layouts)
info = { :filters => [Jekyll::Filters], :registers => { :site => self.site, :page => payload['page'] } }
info = { :filters => [Jekyll::Filters], :registers => { :site => site, :page => payload['page'] } }
# render and transform content (this becomes the final content of the object)
payload["pygments_prefix"] = converter.pygments_prefix
payload["pygments_suffix"] = converter.pygments_suffix
payload["highlighter_prefix"] = converter.highlighter_prefix
payload["highlighter_suffix"] = converter.highlighter_suffix
self.content = self.render_liquid(self.content,
payload,
info)
self.transform
self.content = render_liquid(content, payload, info) if render_with_liquid?
transform
# output keeps track of what will finally be written
self.output = self.content
self.output = content
self.render_all_layouts(layouts, payload, info)
render_all_layouts(layouts, payload, info) if place_in_layout?
end
# Write the generated page file to the destination directory.
@@ -156,7 +214,20 @@ module Jekyll
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |f|
f.write(self.output)
f.write(output)
end
end
# Accessor for data properties by Liquid.
#
# property - The String name of the property to retrieve.
#
# Returns the String value or nil if the property isn't included.
def [](property)
if self.class::ATTRIBUTES_FOR_LIQUID.include?(property)
send(property)
else
data[property]
end
end
end

View File

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

View File

@@ -9,8 +9,8 @@ module Jekyll
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' setting can only be set in \
your config files."
arg_is_present? args, "--pygments", "The 'pygments'settings has been removed in \
favour of 'highlighter'."
arg_is_present? args, "--paginate", "The 'paginate' setting can only be set in your \
config files."
arg_is_present? args, "--url", "The 'url' setting can only be set in your config files."
@@ -19,7 +19,7 @@ module Jekyll
def self.no_subcommand(args)
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
Jekyll.logger.error "Deprecation:", "Jekyll now uses subcommands instead of just \
switches. Run `jekyll help' to find out more."
switches. Run `jekyll --help' to find out more."
end
end

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

@@ -0,0 +1,260 @@
module Jekyll
class Document
include Comparable
attr_reader :path, :site
attr_accessor :content, :collection, :output
# Create a new Document.
#
# site - the Jekyll::Site instance to which this Document belongs
# path - the path to the file
#
# Returns nothing.
def initialize(path, relations)
@site = relations[:site]
@path = path
@collection = relations[:collection]
end
# Fetch the Document's data.
#
# Returns a Hash containing the data. An empty hash is returned if
# no data was read.
def data
@data ||= Hash.new
end
# The path to the document, relative to the site source.
#
# Returns a String path which represents the relative path
# from the site source to this document
def relative_path
Pathname.new(path).relative_path_from(Pathname.new(site.source)).to_s
end
# The base filename of the document.
#
# suffix - (optional) the suffix to be removed from the end of the filename
#
# Returns the base filename of the document.
def basename(suffix = "")
File.basename(path, suffix)
end
# The extension name of the document.
#
# Returns the extension name of the document.
def extname
File.extname(path)
end
# Produces a "cleaned" relative path.
# The "cleaned" relative path is the relative path without the extname
# and with the collection's directory removed as well.
# This method is useful when building the URL of the document.
#
# Examples:
# When relative_path is "_methods/site/generate.md":
# cleaned_relative_path
# # => "/site/generate"
#
# Returns the cleaned relative path of the document.
def cleaned_relative_path
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
end
# Determine whether the document is a YAML file.
#
# Returns true if the extname is either .yml or .yaml, false otherwise.
def yaml_file?
%w[.yaml .yml].include?(extname)
end
# Determine whether the document is an asset file.
# Asset files include CoffeeScript files and Sass/SCSS files.
#
# Returns true if the extname belongs to the set of extensions
# that asset files use.
def asset_file?
%w[.sass .scss .coffee].include?(extname)
end
# Determine whether the file should be rendered with Liquid.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def render_with_liquid?
!(asset_file? || yaml_file?)
end
# Determine whether the file should be placed into layouts.
#
# Returns false if the document is either an asset file or a yaml file,
# true otherwise.
def place_in_layout?
!(asset_file? || yaml_file?)
end
# The URL template where the document would be accessible.
#
# Returns the URL template for the document.
def url_template
collection.url_template
end
# Construct a Hash of key-value pairs which contain a mapping between
# a key in the URL template and the corresponding value for this document.
#
# Returns the Hash of key-value pairs for replacement in the URL.
def url_placeholders
{
collection: collection.label,
path: cleaned_relative_path,
output_ext: Jekyll::Renderer.new(site, self).output_ext
}
end
# The permalink for this Document.
# Permalink is set via the data Hash.
#
# Returns the permalink or nil if no permalink was set in the data.
def permalink
data && data.is_a?(Hash) && data['permalink']
end
# The computed URL for the document. See `Jekyll::URL#to_s` for more details.
#
# Returns the computed URL for the document.
def url
@url ||= URL.new({
template: url_template,
placeholders: url_placeholders,
permalink: permalink
}).to_s
end
# The full path to the output file.
#
# base_directory - the base path of the output directory
#
# Returns the full path to the output file of this document.
def destination(base_directory)
path = Jekyll.sanitized_path(base_directory, url)
path = File.join(path, "index.html") if url =~ /\/$/
path
end
# Write the generated Document file to the destination directory.
#
# dest - The String path to the destination dir.
#
# Returns nothing.
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |f|
f.write(output)
end
end
# Returns merged option hash for File.read of self.site (if exists)
# and a given param
#
# opts - override options
#
# Return the file read options hash.
def merged_file_read_opts(opts)
site ? site.file_read_opts.merge(opts) : opts
end
# Whether the file is published or not, as indicated in YAML front-matter
#
# Returns true if the 'published' key is specified in the YAML front-matter and not `false`.
def published?
!(data.has_key?('published') && data['published'] == false)
end
# Read in the file and assign the content and data based on the file contents.
# Merge the frontmatter of the file with the frontmatter default
# values
#
# Returns nothing.
def read(opts = {})
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
rescue SyntaxError => e
puts "YAML Exception reading #{path}: #{e.message}"
rescue Exception => e
puts "Error reading file #{path}: #{e.message}"
end
end
end
# Create a Liquid-understandable version of this Document.
#
# Returns a Hash representing this Document's data.
def to_liquid
if data.is_a?(Hash)
Utils.deep_merge_hashes data, {
"output" => output,
"content" => content,
"path" => path,
"relative_path" => relative_path,
"url" => url,
"collection" => collection.label
}
else
data
end
end
# The inspect string for this document.
# Includes the relative path and the collection label.
#
# Returns the inspect string for this document.
def inspect
"#<Jekyll::Document #{relative_path} collection=#{collection.label}>"
end
# The string representation for this document.
#
# Returns the content of the document
def to_s
output || content
end
# Compare this document against another document.
# Comparison is a comparison between the 2 paths of the documents.
#
# Returns -1, 0, +1 or nil depending on whether this doc's path is less than,
# equal or greater than the other doc's path. See String#<=> for more details.
def <=>(anotherDocument)
path <=> anotherDocument.path
end
# Determine whether this document should be written.
# Based on the Collection to which it belongs.
#
# True if the document has a collection and if that collection's #write?
# method returns true, otherwise false.
def write?
collection && collection.write?
end
end
end

View File

@@ -18,6 +18,11 @@ module Jekyll
File.join(source, dir, '_drafts')
end
# The path to the draft source file, relative to the site source
def relative_path
File.join(@dir, '_drafts', @name)
end
# Extract information from the post filename.
#
# name - The String filename of the post file.

View File

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

View File

@@ -1,10 +1,18 @@
require 'jekyll/convertible'
require 'forwardable'
module Jekyll
class Excerpt
include Convertible
extend Forwardable
attr_accessor :post
attr_accessor :content, :output, :ext
def_delegator :@post, :site, :site
def_delegator :@post, :name, :name
def_delegator :@post, :ext, :ext
# Initialize this Post instance.
#
# site - The Site.
@@ -17,14 +25,8 @@ module Jekyll
self.content = extract_excerpt(post.content)
end
%w[site name ext].each do |meth|
define_method(meth) do
post.send(meth)
end
end
def to_liquid
post.to_liquid(Post::EXCERPT_ATTRIBUTES_FOR_LIQUID)
post.to_liquid(post.class::EXCERPT_ATTRIBUTES_FOR_LIQUID)
end
# Fetch YAML front-matter data from related post, without layout key
@@ -37,7 +39,7 @@ module Jekyll
end
# 'Path' of the excerpt.
#
#
# Returns the path for the post this excerpt belongs to with #excerpt appended
def path
File.join(post.path, "#excerpt")
@@ -45,9 +47,9 @@ module Jekyll
# Check if excerpt includes a string
#
# Returns true if the string passed in
# Returns true if the string passed in
def include?(something)
(self.output && self.output.include?(something)) || self.content.include?(something)
(output && output.include?(something)) || content.include?(something)
end
# The UID for this post (useful in feeds).
@@ -59,7 +61,7 @@ module Jekyll
end
def to_s
self.output || self.content
output || content
end
# Returns the shorthand String identifier of this Post.

View File

@@ -1,4 +1,5 @@
require 'uri'
require 'json'
module Jekyll
module Filters
@@ -82,7 +83,7 @@ module Jekyll
#
# Returns the escaped String.
def xml_escape(input)
CGI.escapeHTML(input)
CGI.escapeHTML(input.to_s)
end
# CGI escape a string for use in a URL. Replaces any special characters
@@ -99,7 +100,7 @@ module Jekyll
def cgi_escape(input)
CGI::escape(input)
end
# URI escape a string.
#
# input - The String to escape.
@@ -123,7 +124,7 @@ module Jekyll
input.split.length
end
# Join an array of things into a string by separating with commes and the
# Join an array of things into a string by separating with commas and the
# word "and" for the last one.
#
# array - The Array of Strings to join.
@@ -148,17 +149,110 @@ module Jekyll
end
end
# Convert the input into json string
#
# input - The Array or Hash to be converted
#
# Returns the converted json string
def jsonify(input)
input.to_json
end
# Group an array of items by a property
#
# input - the inputted Enumerable
# property - the property
#
# Returns an array of Hashes, each looking something like this:
# {"name" => "larry"
# "items" => [...] } # all the items where `property` == "larry"
def group_by(input, property)
if groupable?(input)
input.group_by do |item|
item_property(item, property).to_s
end.inject([]) do |memo, i|
memo << {"name" => i.first, "items" => i.last}
end
else
input
end
end
# Filter an array of objects
#
# input - the object array
# key - key within each object to filter by
# value - desired value
#
# Returns the filtered array of objects
def where(input, property, value)
return input unless input.is_a?(Array)
input.select { |object| item_property(object, property) == value }
end
# Sort an array of objects
#
# input - the object array
# property - property within each object to filter by
# nils ('first' | 'last') - nils appear before or after non-nil values
#
# Returns the filtered array of objects
def sort(input, property = nil, nils = "first")
if property.nil?
input.sort
else
case
when nils == "first"
order = - 1
when nils == "last"
order = + 1
else
raise ArgumentError.new("Invalid nils order: " +
"'#{nils}' is not a valid nils order. It must be 'first' or 'last'.")
end
input.sort { |apple, orange|
apple_property = item_property(apple, property)
orange_property = item_property(orange, property)
if !apple_property.nil? && orange_property.nil?
- order
elsif apple_property.nil? && !orange_property.nil?
+ order
else
apple_property <=> orange_property
end
}
end
end
private
def time(input)
case input
when Time
input
when String
Time.parse(input)
Time.parse(input) rescue Time.at(input.to_i)
when Numeric
Time.at(input)
else
Jekyll.logger.error "Invalid Date:", "'#{input}' is not a valid datetime."
exit(1)
end
end
def groupable?(element)
element.respond_to?(:group_by)
end
def item_property(item, property)
if item.respond_to?(:to_liquid)
item.to_liquid[property.to_s]
elsif item.respond_to?(:data)
item.data[property.to_s]
else
item[property.to_s]
end
end
end
end

View File

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

View File

@@ -1,214 +0,0 @@
module Jekyll
module Generators
class Pagination < Generator
# This generator is safe from arbitrary code execution.
safe true
# Generate paginated pages if necessary.
#
# site - The Site.
#
# Returns nothing.
def generate(site)
if Pager.pagination_enabled?(site)
if template = template_page(site)
paginate(site, template)
else
Jekyll.logger.warn "Pagination:", "Pagination is enabled, but I couldn't find" +
"an index.html page to use as the pagination template. Skipping pagination."
end
end
end
# Paginates the blog's posts. Renders the index.html file into paginated
# directories, e.g.: page2/index.html, page3/index.html, etc and adds more
# site-wide data.
#
# site - The Site.
# page - The index.html Page that requires pagination.
#
# {"paginator" => { "page" => <Number>,
# "per_page" => <Number>,
# "posts" => [<Post>],
# "total_posts" => <Number>,
# "total_pages" => <Number>,
# "previous_page" => <Number>,
# "next_page" => <Number> }}
def paginate(site, page)
all_posts = site.site_payload['site']['posts']
pages = Pager.calculate_pages(all_posts, site.config['paginate'].to_i)
(1..pages).each do |num_page|
pager = Pager.new(site, num_page, all_posts, pages)
if num_page > 1
newpage = Page.new(site, site.source, page.dir, page.name)
newpage.pager = pager
newpage.dir = Pager.paginate_path(site, num_page)
site.pages << newpage
else
page.pager = pager
end
end
end
# Static: Fetch the URL of the template page. Used to determine the
# path to the first pager in the series.
#
# site - the Jekyll::Site object
#
# Returns the url of the template page
def self.first_page_url(site)
if page = Pagination.new.template_page(site)
page.url
else
nil
end
end
# Public: Find the Jekyll::Page which will act as the pager template
#
# site - the Jekyll::Site object
#
# Returns the Jekyll::Page which will act as the pager template
def template_page(site)
site.pages.dup.select do |page|
Pager.pagination_candidate?(site.config, page)
end.sort do |one, two|
two.path.size <=> one.path.size
end.first
end
end
end
class Pager
attr_reader :page, :per_page, :posts, :total_posts, :total_pages,
:previous_page, :previous_page_path, :next_page, :next_page_path
# Calculate the number of pages.
#
# all_posts - The Array of all Posts.
# per_page - The Integer of entries per page.
#
# Returns the Integer number of pages.
def self.calculate_pages(all_posts, per_page)
(all_posts.size.to_f / per_page.to_i).ceil
end
# Determine if pagination is enabled the site.
#
# site - the Jekyll::Site object
#
# Returns true if pagination is enabled, false otherwise.
def self.pagination_enabled?(site)
!site.config['paginate'].nil? &&
site.pages.size > 0
end
# Static: Determine if a page is a possible candidate to be a template page.
# Page's name must be `index.html` and exist in any of the directories
# between the site source and `paginate_path`.
#
# config - the site configuration hash
# page - the Jekyll::Page about which we're inquiring
#
# Returns true if the
def self.pagination_candidate?(config, page)
page_dir = File.dirname(File.expand_path(remove_leading_slash(page.path), config['source']))
paginate_path = remove_leading_slash(config['paginate_path'])
paginate_path = File.expand_path(paginate_path, config['source'])
page.name == 'index.html' &&
in_hierarchy(config['source'], page_dir, File.dirname(paginate_path))
end
# Determine if the subdirectories of the two paths are the same relative to source
#
# source - the site source
# page_dir - the directory of the Jekyll::Page
# paginate_path - the absolute paginate path (from root of FS)
#
# Returns whether the subdirectories are the same relative to source
def self.in_hierarchy(source, page_dir, paginate_path)
return false if paginate_path == File.dirname(paginate_path)
return false if paginate_path == Pathname.new(source).parent
page_dir == paginate_path ||
in_hierarchy(source, page_dir, File.dirname(paginate_path))
end
# Static: Return the pagination path of the page
#
# site - the Jekyll::Site object
# num_page - the pagination page number
#
# Returns the pagination path as a string
def self.paginate_path(site, num_page)
return nil if num_page.nil?
return Generators::Pagination.first_page_url(site) if num_page <= 1
format = site.config['paginate_path']
format = format.sub(':num', num_page.to_s)
ensure_leading_slash(format)
end
# Static: Return a String version of the input which has a leading slash.
# If the input already has a forward slash in position zero, it will be
# returned unchanged.
#
# path - a String path
#
# Returns the path with a leading slash
def self.ensure_leading_slash(path)
path[0..0] == "/" ? path : "/#{path}"
end
# Static: Return a String version of the input without a leading slash.
#
# path - a String path
#
# Returns the input without the leading slash
def self.remove_leading_slash(path)
ensure_leading_slash(path)[1..-1]
end
# Initialize a new Pager.
#
# site - the Jekyll::Site object
# page - The Integer page number.
# all_posts - The Array of all the site's Posts.
# num_pages - The Integer number of pages or nil if you'd like the number
# of pages calculated.
def initialize(site, page, all_posts, num_pages = nil)
@page = page
@per_page = site.config['paginate'].to_i
@total_pages = num_pages || Pager.calculate_pages(all_posts, @per_page)
if @page > @total_pages
raise RuntimeError, "page number can't be greater than total pages: #{@page} > #{@total_pages}"
end
init = (@page - 1) * @per_page
offset = (init + @per_page - 1) >= all_posts.size ? all_posts.size : (init + @per_page - 1)
@total_posts = all_posts.size
@posts = all_posts[init..offset]
@previous_page = @page != 1 ? @page - 1 : nil
@previous_page_path = Pager.paginate_path(site, @previous_page)
@next_page = @page != @total_pages ? @page + 1 : nil
@next_page_path = Pager.paginate_path(site, @next_page)
end
# Convert this Pager's data to a Hash suitable for use by Liquid.
#
# Returns the Hash representation of this Pager.
def to_liquid
{
'page' => page,
'per_page' => per_page,
'posts' => posts,
'total_posts' => total_posts,
'total_pages' => total_pages,
'previous_page' => previous_page,
'previous_page_path' => previous_page_path,
'next_page' => next_page,
'next_page_path' => next_page_path
}
end
end
end

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

@@ -0,0 +1,62 @@
module Jekyll
module Hooks
class HookCollection
include Enumerable
def each(&block)
if block.nil?
hook_methods
else
hook_methods.each &block
end
end
def hook_methods
@hook_methods ||= Array.new
end
def add_hook(proc)
hook_methods << proc
end
def exec(*args)
if args.empty?
hook_methods.each { |hook| hook.call }
else
hook_methods.each do |hook|
args.each { |arg| hook.call(arg) }
end
end
end
end
%w[
post_reset
pre_read
post_read
pre_generate
post_generate
pre_render
post_render
pre_cleanup
post_cleanup
pre_write
post_write
].each do |method|
declaration = <<-METH
def #{method}(method_name, *args)
cr = caller
((@hooks ||= Hash.new).fetch(method_name.to_s, HookCollection.new)).add_hook -> { cr.send(method_name.to_sym, args) }
end
def #{method}_exec(*args)
((@hooks ||= Hash.new).fetch(method_name.to_s, HookCollection.new)).exec(*args)
end
METH
puts declaration
class_eval declaration
end
end
end

View File

@@ -29,8 +29,8 @@ module Jekyll
self.data = {}
self.process(name)
self.read_yaml(base, name)
process(name)
read_yaml(base, name)
end
# Extract information from the layout filename.

View File

@@ -0,0 +1,53 @@
module Jekyll
class LayoutReader
attr_reader :site
def initialize(site)
@site = site
@layouts = {}
end
def read
layout_entries.each do |f|
@layouts[layout_name(f)] = Layout.new(site, layout_directory, f)
end
@layouts
end
def layout_directory
@layout_directory ||= (layout_directory_in_cwd || layout_directory_inside_source)
end
private
def layout_entries
entries = []
within(layout_directory) do
entries = EntryFilter.new(site).filter(Dir['**/*.*'])
end
entries
end
def layout_name(file)
file.split(".")[0..-2].join(".")
end
def within(directory)
return unless File.exist?(directory)
Dir.chdir(directory) { yield }
end
def layout_directory_inside_source
Jekyll.sanitized_path(site.source, site.config['layouts'])
end
def layout_directory_in_cwd
dir = Jekyll.sanitized_path(Dir.pwd, site.config['layouts'])
if File.directory?(dir)
dir
else
nil
end
end
end
end

View File

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

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

@@ -0,0 +1,102 @@
module Jekyll
class LogAdapter
attr_reader :writer
LOG_LEVELS = {
:debug => ::Logger::DEBUG,
:info => ::Logger::INFO,
:warn => ::Logger::WARN,
:error => ::Logger::ERROR
}
# Public: Create a new instance of Jekyll's log writer
#
# writer - Logger compatible instance
# log_level - (optional, symbol) the log level
#
# Returns nothing
def initialize(writer, level = :info)
@writer = writer
self.log_level = level
end
# Public: Set the log level on the writer
#
# level - (symbol) the log level
#
# Returns nothing
def log_level=(level)
writer.level = LOG_LEVELS.fetch(level)
end
# Public: Print a jekyll debug message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def debug(topic, message = nil)
writer.debug(message(topic, message))
end
# Public: Print a jekyll message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def info(topic, message = nil)
writer.info(message(topic, message))
end
# Public: Print a jekyll message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def warn(topic, message = nil)
writer.warn(message(topic, message))
end
# Public: Print a jekyll error message
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def error(topic, message = nil)
writer.error(message(topic, message))
end
# Public: Print a Jekyll error message and immediately abort the process
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail (can be omitted)
#
# Returns nothing
def abort_with(topic, message = nil)
error(topic, message)
abort
end
# Internal: Build a Jekyll topic method
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns the formatted message
def message(topic, message)
formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
end
# Internal: Format the topic
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
#
# Returns the formatted topic statement
def formatted_topic(topic)
"#{topic} ".rjust(20)
end
end
end

View File

@@ -1,12 +1,13 @@
# These are the same MIME types that GitHub Pages uses as of 17 Mar 2013.
-# These are the same MIME types that GitHub Pages uses as of 26 January 2014
text/html html htm shtml
text/css css
text/xml xml rss xsl
text/xml xml rss xsl xsd
image/gif gif
image/jpeg jpeg jpg
application/x-javascript js
application/atom+xml atom
application/json json geojson topojson
text/mathml mml
text/plain txt
@@ -17,16 +18,22 @@ text/cache-manifest manifest appcache
text/coffeescript coffee
text/plain pde
text/plain md markdown
text/vcard vcf vcard
image/png png
image/svg+xml svg
image/svg+xml svgz
image/tiff tif tiff
image/vnd.wap.wbmp wbmp
image/x-icon ico
image/x-jng jng
image/x-ms-bmp bmp
application/json json
application/vnd.ms-fontobject eot
application/x-font-ttf ttf
application/x-font-woff woff
font/opentype otf
application/java-archive jar ear
application/mac-binhex40 hqx
application/msword doc
@@ -34,18 +41,19 @@ application/pdf pdf
application/postscript ps eps ai
application/rdf+xml rdf
application/rtf rtf
text/vcard vcf vcard
application/vnd.apple.pkpass pkpass
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
application/vnd.wap.wmlc wmlc
application/xhtml+xml xhtml
application/x-chrome-extension crx
application/x-cocoa cco
application/x-font-ttf ttf
application/x-chrome-extension crx
application/x-java-archive-diff jardiff
application/x-java-jnlp-file jnlp
application/x-makeself run
application/x-ms-application application
application/x-ms-manifest manifest
application/x-ms-vsto vsto
application/x-ns-proxy-autoconfig pac
application/x-perl pl pm
application/x-pilot prc pdb
@@ -63,8 +71,8 @@ application/zip zip
application/octet-stream bin exe dll
application/octet-stream deb
application/octet-stream deploy
application/octet-stream dmg
application/octet-stream eot
application/octet-stream iso img
application/octet-stream msi msp msm
@@ -74,12 +82,14 @@ audio/x-realaudio ra
audio/ogg ogg
video/3gpp 3gpp 3gp
video/m4v m4v
video/mp4 mp4
video/mpeg mpeg mpg
video/ogg ogg ogv
video/quicktime mov
video/webm webm
video/x-flv flv
video/x-mng mng
video/x-ms-asf asx asf
video/x-ms-wmv wmv
video/x-msvideo avi
video/ogg ogv
video/webm webm

View File

@@ -9,9 +9,11 @@ module Jekyll
# Attributes for Liquid templates
ATTRIBUTES_FOR_LIQUID = %w[
url
content
dir
name
path
url
]
# Initialize a new Page.
@@ -26,8 +28,13 @@ module Jekyll
@dir = dir
@name = name
self.process(name)
self.read_yaml(File.join(base, dir), name)
process(name)
read_yaml(File.join(base, dir), name)
data.default_proc = proc do |hash, key|
site.frontmatter_defaults.find(File.join(dir, name), type, key)
end
end
# The generated directory into which the page will be placed
@@ -44,11 +51,11 @@ module Jekyll
#
# Returns the String permalink or nil if none has been set.
def permalink
return nil if self.data.nil? || self.data['permalink'].nil?
return nil if data.nil? || data['permalink'].nil?
if site.config['relative_permalinks']
File.join(@dir, self.data['permalink'])
File.join(@dir, data['permalink'])
else
self.data['permalink']
data['permalink']
end
end
@@ -56,7 +63,7 @@ module Jekyll
#
# Returns the template String.
def template
if self.site.permalink_style == :pretty
if site.permalink_style == :pretty
if index? && html?
"/:path/"
elsif html?
@@ -85,8 +92,8 @@ module Jekyll
def url_placeholders
{
:path => @dir,
:basename => self.basename,
:output_ext => self.output_ext
:basename => basename,
:output_ext => output_ext
}
end
@@ -97,7 +104,7 @@ module Jekyll
# Returns nothing.
def process(name)
self.ext = File.extname(name)
self.basename = name[0 .. -self.ext.length-1]
self.basename = name[0 .. -ext.length - 1]
end
# Add any necessary layouts to this post
@@ -107,10 +114,10 @@ module Jekyll
#
# Returns nothing.
def render(layouts, site_payload)
payload = {
"page" => self.to_liquid,
payload = Utils.deep_merge_hashes({
"page" => to_liquid,
'paginator' => pager.to_liquid
}.deep_merge(site_payload)
}, site_payload)
do_layout(payload, layouts)
end
@@ -119,12 +126,12 @@ module Jekyll
#
# Returns the path to the source file
def path
self.data.fetch('path', self.relative_path.sub(/\A\//, ''))
data.fetch('path', relative_path.sub(/\A\//, ''))
end
# The path to the page source file, relative to the site source
def relative_path
File.join(@dir, @name)
File.join(*[@dir, @name].map(&:to_s).reject(&:empty?))
end
# Obtain destination path.
@@ -133,14 +140,14 @@ module Jekyll
#
# Returns the destination file path String.
def destination(dest)
path = File.join(dest, self.url)
path = File.join(path, "index.html") if self.url =~ /\/$/
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if url =~ /\/$/
path
end
# Returns the object as a debug String.
def inspect
"#<Jekyll:Page @name=#{self.name.inspect}>"
"#<Jekyll:Page @name=#{name.inspect}>"
end
# Returns the Boolean of whether this Page is HTML or not.
@@ -154,7 +161,7 @@ module Jekyll
end
def uses_relative_permalinks
permalink && @dir != "" && site.config['relative_permalinks']
permalink && !@dir.empty? && site.config['relative_permalinks']
end
end
end

View File

@@ -6,22 +6,15 @@ module Jekyll
:high => 10,
:highest => 100 }
# Install a hook so that subclasses are recorded. This method is only
# ever called by Ruby itself.
# Fetch all the subclasses of this class and its subclasses' subclasses.
#
# base - The Class subclass.
#
# Returns nothing.
def self.inherited(base)
subclasses << base
subclasses.sort!
end
# The list of Classes that have been subclassed.
#
# Returns an Array of Class objects.
def self.subclasses
@subclasses ||= []
# Returns an array of descendant classes.
def self.descendants
descendants = []
ObjectSpace.each_object(singleton_class) do |k|
descendants.unshift k unless k == self
end
descendants
end
# Get or set the priority of this plugin. When called without an

View File

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

View File

@@ -9,6 +9,7 @@ module Jekyll
EXCERPT_ATTRIBUTES_FOR_LIQUID = %w[
title
url
dir
date
id
categories
@@ -19,10 +20,10 @@ module Jekyll
]
# Attributes for Liquid templates
ATTRIBUTES_FOR_LIQUID = EXCERPT_ATTRIBUTES_FOR_LIQUID.concat(%w[
ATTRIBUTES_FOR_LIQUID = EXCERPT_ATTRIBUTES_FOR_LIQUID + %w[
content
excerpt
])
]
# Post name validator. Post filenames must be like:
# 2008-11-05-my-awesome-post.textile
@@ -34,7 +35,7 @@ module Jekyll
attr_accessor :site
attr_accessor :data, :extracted_excerpt, :content, :output, :ext
attr_accessor :date, :slug, :published, :tags, :categories
attr_accessor :date, :slug, :tags, :categories
attr_reader :name
@@ -48,25 +49,27 @@ module Jekyll
def initialize(site, source, dir, name)
@site = site
@dir = dir
@base = self.containing_dir(source, dir)
@base = containing_dir(source, dir)
@name = name
self.categories = dir.downcase.split('/').reject { |x| x.empty? }
self.process(name)
self.read_yaml(@base, name)
process(name)
read_yaml(@base, name)
if self.data.has_key?('date')
self.date = Time.parse(self.data["date"].to_s)
data.default_proc = proc do |hash, key|
site.frontmatter_defaults.find(File.join(dir, name), type, key)
end
self.published = self.published?
if data.has_key?('date')
self.date = Time.parse(data["date"].to_s)
end
self.populate_categories
self.populate_tags
populate_categories
populate_tags
end
def published?
if self.data.has_key?('published') && self.data['published'] == false
if data.has_key?('published') && data['published'] == false
false
else
true
@@ -74,14 +77,13 @@ module Jekyll
end
def populate_categories
if self.categories.empty?
self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.to_s.downcase}
end
self.categories.flatten!
categories_from_data = Utils.pluralized_array_from_hash(data, 'category', 'categories')
self.categories = (Array(categories) + categories_from_data).map {|c| c.to_s.downcase}
categories.flatten!
end
def populate_tags
self.tags = self.data.pluralized_array("tag", "tags").flatten
self.tags = Utils.pluralized_array_from_hash(data, "tag", "tags").flatten
end
# Get the full path to the directory containing the post files
@@ -97,7 +99,7 @@ module Jekyll
# Returns nothing.
def read_yaml(base, name)
super(base, name)
self.extracted_excerpt = self.extract_excerpt
self.extracted_excerpt = extract_excerpt
end
# The post excerpt. This is either a custom excerpt
@@ -105,19 +107,19 @@ module Jekyll
#
# Returns excerpt string.
def excerpt
self.data.fetch('excerpt', self.extracted_excerpt.to_s)
data.fetch('excerpt', extracted_excerpt.to_s)
end
# Public: the Post title, from the YAML Front-Matter or from the slug
#
# Returns the post title
def title
self.data.fetch("title", self.titleized_slug)
data.fetch("title", titleized_slug)
end
# Turns the post slug into a suitable title
def titleized_slug
self.slug.split('-').select {|w| w.capitalize! || w }.join(' ')
slug.split('-').select {|w| w.capitalize! || w }.join(' ')
end
# Public: the path to the post relative to the site source,
@@ -127,12 +129,12 @@ module Jekyll
#
# Returns the path to the file relative to the site source
def path
self.data.fetch('path', self.relative_path.sub(/\A\//, ''))
data.fetch('path', relative_path.sub(/\A\//, ''))
end
# The path to the post source file, relative to the site source
def relative_path
File.join(@dir, '_posts', @name)
File.join(*[@dir, "_posts", @name].map(&:to_s).reject(&:empty?))
end
# Compares Post objects. First compares the Post date. If the dates are
@@ -160,7 +162,10 @@ module Jekyll
self.slug = slug
self.ext = ext
rescue ArgumentError
raise FatalException.new("Post #{name} does not have a valid date.")
path = File.join(@dir || "", name)
msg = "Post '#{path}' does not have a valid date.\n"
msg << "Fix the date, or exclude the file or directory from being processed"
raise FatalException.new(msg)
end
# The generated directory into which the post will be placed
@@ -178,11 +183,11 @@ module Jekyll
#
# Returns the String permalink.
def permalink
self.data && self.data['permalink']
data && data['permalink']
end
def template
case self.site.permalink_style
case site.permalink_style
when :pretty
"/:categories/:year/:month/:day/:title/"
when :none
@@ -192,7 +197,7 @@ module Jekyll
when :ordinal
"/:categories/:year/:y_day/:title.html"
else
self.site.permalink_style.to_s
site.permalink_style.to_s
end
end
@@ -214,13 +219,14 @@ module Jekyll
:year => date.strftime("%Y"),
:month => date.strftime("%m"),
:day => date.strftime("%d"),
:title => CGI.escape(slug),
:title => slug,
:i_day => date.strftime("%d").to_i.to_s,
:i_month => date.strftime("%m").to_i.to_s,
:categories => (categories || []).map { |c| URI.escape(c.to_s) }.join('/'),
:categories => (categories || []).map { |c| c.to_s }.join('/'),
:short_month => date.strftime("%b"),
:short_year => date.strftime("%y"),
:y_day => date.strftime("%j"),
:output_ext => self.output_ext
:output_ext => output_ext
}
end
@@ -229,7 +235,7 @@ module Jekyll
#
# Returns the String UID.
def id
File.join(self.dir, self.slug)
File.join(dir, slug)
end
# Calculate related posts.
@@ -247,16 +253,16 @@ module Jekyll
# Returns nothing.
def render(layouts, site_payload)
# construct payload
payload = {
payload = Utils.deep_merge_hashes({
"site" => { "related_posts" => related_posts(site_payload["site"]["posts"]) },
"page" => self.to_liquid(EXCERPT_ATTRIBUTES_FOR_LIQUID)
}.deep_merge(site_payload)
"page" => to_liquid(self.class::EXCERPT_ATTRIBUTES_FOR_LIQUID)
}, site_payload)
if generate_excerpt?
self.extracted_excerpt.do_layout(payload, {})
extracted_excerpt.do_layout(payload, {})
end
do_layout(payload.merge({"page" => self.to_liquid}), layouts)
do_layout(payload.merge({"page" => to_liquid}), layouts)
end
# Obtain destination path.
@@ -266,30 +272,29 @@ module Jekyll
# Returns destination file path String.
def destination(dest)
# The url needs to be unescaped in order to preserve the correct filename
path = File.join(dest, CGI.unescape(self.url))
path = Jekyll.sanitized_path(dest, URL.unescape_path(url))
path = File.join(path, "index.html") if path[/\.html$/].nil?
path
end
# Returns the shorthand String identifier of this Post.
def inspect
"<Post: #{self.id}>"
"<Post: #{id}>"
end
def next
pos = self.site.posts.index(self)
if pos && pos < self.site.posts.length-1
self.site.posts[pos+1]
pos = site.posts.index {|post| post.equal?(self) }
if pos && pos < site.posts.length - 1
site.posts[pos + 1]
else
nil
end
end
def previous
pos = self.site.posts.index(self)
pos = site.posts.index {|post| post.equal?(self) }
if pos && pos > 0
self.site.posts[pos-1]
site.posts[pos - 1]
else
nil
end

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

@@ -0,0 +1,21 @@
module Jekyll
class Publisher
def initialize(site)
@site = site
end
def publish?(thing)
can_be_published?(thing) && !hidden_in_the_future?(thing)
end
private
def can_be_published?(thing)
thing.data.fetch('published', true) || @site.unpublished
end
def hidden_in_the_future?(thing)
thing.is_a?(Post) && !@site.future && thing.date > @site.time
end
end
end

View File

@@ -14,9 +14,9 @@ module Jekyll
end
def build
return [] unless self.site.posts.size > 1
return [] unless site.posts.size > 1
if self.site.lsi
if site.lsi
build_index
lsi_related_posts
else
@@ -30,7 +30,7 @@ module Jekyll
lsi = Classifier::LSI.new(:auto_rebuild => false)
display("Populating LSI...")
self.site.posts.each do |x|
site.posts.each do |x|
lsi.add_item(x)
end
@@ -42,11 +42,11 @@ module Jekyll
end
def lsi_related_posts
self.class.lsi.find_related(post.content, 11) - [self.post]
self.class.lsi.find_related(post.content, 11) - [post]
end
def most_recent_posts
recent_posts = self.site.posts.reverse - [self.post]
recent_posts = site.posts.reverse - [post]
recent_posts.first(10)
end

136
lib/jekyll/renderer.rb Normal file
View File

@@ -0,0 +1,136 @@
module Jekyll
class Renderer
attr_reader :document, :site
def initialize(site, document)
@site = site
@document = document
end
# Determine which converters to use based on this document's
# extension.
#
# Returns an array of Converter instances.
def converters
@converters ||= site.converters.select { |c| c.matches(document.extname) }
end
# Determine the extname the outputted file should have
#
# Returns the output extname including the leading period.
def output_ext
converters.first.output_ext(document.extname)
end
######################
## DAT RENDER THO
######################
def run
payload = Utils.deep_merge_hashes({
"page" => document.to_liquid
}, site.site_payload)
info = {
filters: [Jekyll::Filters],
registers: { :site => site, :page => payload['page'] }
}
# render and transform content (this becomes the final content of the object)
payload["highlighter_prefix"] = converters.first.highlighter_prefix
payload["highlighter_suffix"] = converters.first.highlighter_suffix
output = document.content
if document.render_with_liquid?
output = render_liquid(output, payload, info)
end
if document.place_in_layout?
place_in_layouts(
convert(output),
payload,
info
)
else
convert(output)
end
end
# Convert the given content using the converters which match this renderer's document.
#
# content - the raw, unconverted content
#
# Returns the converted content.
def convert(content)
converters.reduce(content) do |output, converter|
begin
converter.convert output
rescue => e
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error converting '#{document.relative_path}'."
raise e
end
end
end
# Render the given content with the payload and info
#
# content -
# payload -
# info -
# path - (optional) the path to the file, for use in ex
#
# Returns the content, rendered by Liquid.
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 || document.relative_path}"
raise e
rescue Exception => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{path || document.relative_path}"
raise e
end
# Render layouts and place given content inside.
#
# content - the content to be placed in the layout
#
#
# Returns the content placed in the Liquid-rendered layouts
def place_in_layouts(content, payload, info)
output = content.dup
layout = site.layouts[document.data["layout"]]
used = Set.new([layout])
while layout
payload = Utils.deep_merge_hashes(
payload,
{
"content" => output,
"page" => document.to_liquid,
"layout" => layout.data
}
)
output = render_liquid(
layout.content,
payload,
info,
File.join(site.config['layouts'], layout.name)
)
if layout = site.layouts[layout.data["layout"]]
if used.include?(layout)
layout = nil # avoid recursive chain
else
used << layout
end
end
end
output
end
end
end

View File

@@ -1,60 +1,65 @@
module Jekyll
class Site
attr_accessor :config, :layouts, :posts, :pages, :static_files,
:categories, :exclude, :include, :source, :dest, :lsi, :pygments,
:permalink_style, :tags, :time, :future, :safe, :plugins, :limit_posts,
:show_drafts, :keep_files, :baseurl
:exclude, :include, :source, :dest, :lsi, :highlighter,
:permalink_style, :time, :future, :unpublished, :safe, :plugins, :limit_posts,
:show_drafts, :keep_files, :baseurl, :data, :file_read_opts, :gems,
:plugin_manager
attr_accessor :converters, :generators
include Jekyll::Hooks
# Public: Initialize a new Site.
#
# config - A Hash containing site configuration details.
def initialize(config)
self.config = config.clone
self.config = config.clone
%w[safe lsi pygments baseurl exclude include future show_drafts limit_posts keep_files].each do |opt|
%w[safe lsi highlighter baseurl exclude include future unpublished
show_drafts limit_posts keep_files gems].each do |opt|
self.send("#{opt}=", config[opt])
end
self.source = File.expand_path(config['source'])
self.dest = File.expand_path(config['destination'])
self.plugins = plugins_path
self.permalink_style = config['permalink'].to_sym
self.reset
self.setup
self.plugin_manager = Jekyll::PluginManager.new(self)
self.plugins = plugin_manager.plugins_path
self.file_read_opts = {}
self.file_read_opts[:encoding] = config['encoding'] if config['encoding']
reset
setup
end
# Public: Read, process, and write this Site to output.
#
# Returns nothing.
def process
self.reset
self.read
self.generate
self.render
self.cleanup
self.write
reset
read
generate
render
cleanup
write
end
# Reset Site details.
#
# Returns nothing
def reset
self.time = if self.config['time']
Time.parse(self.config['time'].to_s)
else
Time.now
end
self.layouts = {}
self.posts = []
self.pages = []
self.static_files = []
self.categories = Hash.new { |hash, key| hash[key] = [] }
self.tags = Hash.new { |hash, key| hash[key] = [] }
self.time = (config['time'] ? Time.parse(config['time'].to_s) : Time.now)
self.layouts = {}
self.posts = []
self.pages = []
self.static_files = []
self.data = {}
@collections = nil
if self.limit_posts < 0
if limit_posts < 0
raise ArgumentError, "limit_posts must be a non-negative number"
end
end
@@ -63,34 +68,48 @@ module Jekyll
#
# Returns nothing.
def setup
# Check that the destination dir isn't the source dir or a directory
# parent to the source dir.
if self.source =~ /^#{self.dest}/
raise FatalException.new "Destination directory cannot be or contain the Source directory."
end
ensure_not_in_dest
# If safe mode is off, load in any Ruby files under the plugins
# directory.
unless self.safe
self.plugins.each do |plugins|
Dir[File.join(plugins, "**/*.rb")].each do |f|
require f
end
end
end
plugin_manager.conscientious_require
self.converters = instantiate_subclasses(Jekyll::Converter)
self.generators = instantiate_subclasses(Jekyll::Generator)
end
# Internal: Setup the plugin search path
# Check that the destination dir isn't the source dir or a directory
# parent to the source dir.
def ensure_not_in_dest
dest_pathname = Pathname.new(dest)
Pathname.new(source).ascend do |path|
if path == dest_pathname
raise FatalException.new "Destination directory cannot be or contain the Source directory."
end
end
end
# The list of collections and their corresponding Jekyll::Collection instances.
# If config['collections'] is set, a new instance is created for each item in the collection.
# If config['collections'] is not set, a new hash is returned.
#
# Returns an Array of plugin search paths
def plugins_path
if (config['plugins'] == Jekyll::Configuration::DEFAULTS['plugins'])
[File.join(self.source, config['plugins'])]
# Returns a Hash containing collection name-to-instance pairs.
def collections
@collections ||= Hash[collection_names.map { |coll| [coll, Jekyll::Collection.new(self, coll)] } ]
end
# The list of collection names.
#
# Returns an array of collection names from the configuration,
# or an empty array if the `collections` key is not set.
def collection_names
case config['collections']
when Hash
config['collections'].keys
when Array
config['collections']
when nil
[]
else
Array(config['plugins']).map { |d| File.expand_path(d) }
raise ArgumentError, "Your `collections` key must be a hash or an array."
end
end
@@ -98,24 +117,10 @@ module Jekyll
#
# Returns nothing.
def read
self.read_layouts
self.read_directories
end
# Read all the files in <source>/<layouts> and create a new Layout object
# with each one.
#
# Returns nothing.
def read_layouts
base = File.join(self.source, self.config['layouts'])
return unless File.exists?(base)
entries = []
Dir.chdir(base) { entries = filter_entries(Dir['*.*']) }
entries.each do |f|
name = f.split(".")[0..-2].join(".")
self.layouts[name] = Layout.new(self, base, f)
end
self.layouts = LayoutReader.new(self).read
read_directories
read_data(config['data_source'])
read_collections
end
# Recursively traverse directories to find posts, pages and static files
@@ -126,25 +131,28 @@ module Jekyll
#
# Returns nothing.
def read_directories(dir = '')
base = File.join(self.source, dir)
entries = Dir.chdir(base) { filter_entries(Dir.entries('.')) }
base = File.join(source, dir)
entries = Dir.chdir(base) { filter_entries(Dir.entries('.'), base) }
self.read_posts(dir)
self.read_drafts(dir) if self.show_drafts
self.posts.sort!
read_posts(dir)
read_drafts(dir) if show_drafts
posts.sort!
limit_posts! if limit_posts > 0 # limit the posts if :limit_posts option is set
entries.each do |f|
f_abs = File.join(base, f)
if File.directory?(f_abs)
f_rel = File.join(dir, f)
read_directories(f_rel) unless self.dest.sub(/\/$/, '') == f_abs
read_directories(f_rel) unless dest.sub(/\/$/, '') == f_abs
elsif has_yaml_header?(f_abs)
pages << Page.new(self, self.source, dir, f)
page = Page.new(self, source, dir, f)
pages << page if publisher.publish?(page)
else
static_files << StaticFile.new(self, self.source, dir, f)
static_files << StaticFile.new(self, source, dir, f)
end
end
pages.sort_by!(&:name)
end
# Read all the files in <source>/<dir>/_posts and create a new Post
@@ -154,17 +162,10 @@ module Jekyll
#
# Returns nothing.
def read_posts(dir)
entries = get_entries(dir, '_posts')
posts = read_content(dir, '_posts', Post)
# first pass processes, but does not yet render post content
entries.each do |f|
if Post.valid?(f)
post = Post.new(self, self.source, dir, f)
if post.published && (self.future || post.date <= self.time)
aggregate_post_info(post)
end
end
posts.each do |post|
aggregate_post_info(post) if publisher.publish?(post)
end
end
@@ -175,23 +176,72 @@ module Jekyll
#
# Returns nothing.
def read_drafts(dir)
entries = get_entries(dir, '_drafts')
# first pass processes, but does not yet render draft content
entries.each do |f|
if Draft.valid?(f)
draft = Draft.new(self, self.source, dir, f)
drafts = read_content(dir, '_drafts', Draft)
drafts.each do |draft|
if draft.published?
aggregate_post_info(draft)
end
end
end
def read_content(dir, magic_dir, klass)
get_entries(dir, magic_dir).map do |entry|
klass.new(self, source, dir, entry) if klass.valid?(entry)
end.reject do |entry|
entry.nil?
end
end
# Read and parse all yaml files under <source>/<dir>
#
# Returns nothing
def read_data(dir)
base = File.join(source, dir)
read_data_to(base, self.data)
end
# Read and parse all yaml files under <dir> and add them to the
# <data> variable.
#
# dir - The string absolute path of the directory to read.
# data - The variable to which data will be added.
#
# Returns nothing
def read_data_to(dir, data)
return unless File.directory?(dir) && (!safe || !File.symlink?(dir))
entries = Dir.chdir(dir) do
Dir['*.{yaml,yml,json}'] + Dir['*'].select { |fn| File.directory?(fn) }
end
entries.each do |entry|
path = File.join(dir, entry)
next if File.symlink?(path) && safe
key = sanitize_filename(File.basename(entry, '.*'))
if File.directory?(path)
read_data_to(path, data[key] = {})
else
data[key] = SafeYAML.load_file(path)
end
end
end
# Read in all collections specified in the configuration
#
# Returns nothing.
def read_collections
collections.each do |_, collection|
collection.read unless collection.label.eql?("data")
end
end
# Run each of the Generators.
#
# Returns nothing.
def generate
self.generators.each do |generator|
generators.each do |generator|
generator.generate(self)
end
end
@@ -200,18 +250,18 @@ module Jekyll
#
# Returns nothing.
def render
relative_permalinks_deprecation_method
collections.each do |label, collection|
collection.docs.each do |document|
document.output = Jekyll::Renderer.new(self, document).run
end
end
payload = site_payload
self.posts.each do |post|
post.render(self.layouts, payload)
[posts, pages].flatten.each do |page_or_post|
page_or_post.render(layouts, payload)
end
self.pages.each do |page|
relative_permalinks_deprecation_method if page.uses_relative_permalinks
page.render(self.layouts, payload)
end
self.categories.values.map { |ps| ps.sort! { |a, b| b <=> a } }
self.tags.values.map { |ps| ps.sort! { |a, b| b <=> a } }
rescue Errno::ENOENT => e
# ignore missing layout dir
end
@@ -227,7 +277,7 @@ module Jekyll
#
# Returns nothing.
def write
each_site_file { |item| item.write(self.dest) }
each_site_file { |item| item.write(dest) }
end
# Construct a Hash of Posts indexed by the specified Post attribute.
@@ -246,12 +296,28 @@ module Jekyll
def post_attr_hash(post_attr)
# Build a hash map based on the specified post attribute ( post attr =>
# array of posts ) then sort each array in reverse order.
hash = Hash.new { |hsh, key| hsh[key] = Array.new }
self.posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } }
hash.values.map { |sortme| sortme.sort! { |a, b| b <=> a } }
hash = Hash.new { |h, key| h[key] = [] }
posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } }
hash.values.each { |posts| posts.sort!.reverse! }
hash
end
def tags
post_attr_hash('tags')
end
def categories
post_attr_hash('categories')
end
# Prepare site data for site payload. The method maintains backward compatibility
# if the key 'data' is already used in _config.yml.
#
# Returns the Hash to be hooked to site.data.
def site_data
config['data'] || data
end
# The Hash payload containing site-wide data.
#
# Returns the Hash: { "site" => data } where data is a Hash with keys:
@@ -266,14 +332,25 @@ module Jekyll
# "tags" - The Hash of tag values and Posts.
# See Site#post_attr_hash for type info.
def site_payload
{"jekyll" => { "version" => Jekyll::VERSION },
"site" => self.config.merge({
"time" => self.time,
"posts" => self.posts.sort { |a, b| b <=> a },
"pages" => self.pages,
"html_pages" => self.pages.reject { |page| !page.html? },
"categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags')})}
{
"jekyll" => {
"version" => Jekyll::VERSION,
"environment" => Jekyll.env
},
"site" => Utils.deep_merge_hashes(config,
Utils.deep_merge_hashes(Hash[collections.map{|label, coll| [label, coll.docs]}], {
"time" => time,
"posts" => posts.sort { |a, b| b <=> a },
"pages" => pages,
"static_files" => static_files.sort { |a, b| a.relative_path <=> b.relative_path },
"html_pages" => pages.select { |page| page.html? || page.url.end_with?("/") },
"categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags'),
"collections" => collections,
"documents" => documents,
"data" => site_data
}))
}
end
# Filter out any files/directories that are hidden or backup files (start
@@ -284,15 +361,8 @@ module Jekyll
# entries - The Array of String file/directory entries to filter.
#
# Returns the Array of filtered entries.
def filter_entries(entries)
entries.reject do |e|
unless self.include.glob_include?(e)
['.', '_', '#'].include?(e[0..0]) ||
e[-1..-1] == '~' ||
self.exclude.glob_include?(e) ||
(File.symlink?(e) && self.safe)
end
end
def filter_entries(entries, base_directory = nil)
EntryFilter.new(self, base_directory).filter(entries)
end
# Get the implementation class for the given Converter.
@@ -301,7 +371,7 @@ module Jekyll
#
# Returns the Converter instance implementing the given Converter.
def getConverterImpl(klass)
matches = self.converters.select { |c| c.class == klass }
matches = converters.select { |c| c.class == klass }
if impl = matches.first
impl
else
@@ -317,10 +387,10 @@ module Jekyll
#
# Returns array of instances of subclasses of parameter
def instantiate_subclasses(klass)
klass.subclasses.select do |c|
!self.safe || c.safe
klass.descendants.select do |c|
!safe || c.safe
end.sort.map do |c|
c.new(self.config)
c.new(config)
end
end
@@ -331,9 +401,9 @@ module Jekyll
#
# Returns the list of entries to process
def get_entries(dir, subfolder)
base = File.join(self.source, dir, subfolder)
return [] unless File.exists?(base)
entries = Dir.chdir(base) { filter_entries(Dir['**/*']) }
base = File.join(source, dir, subfolder)
return [] unless File.exist?(base)
entries = Dir.chdir(base) { filter_entries(Dir['**/*'], base) }
entries.delete_if { |e| File.directory?(File.join(base, e)) }
end
@@ -343,45 +413,68 @@ module Jekyll
#
# Returns nothing
def aggregate_post_info(post)
self.posts << post
post.categories.each { |c| self.categories[c] << post }
post.tags.each { |c| self.tags[c] << post }
posts << post
end
def relative_permalinks_deprecation_method
if config['relative_permalinks'] && !@deprecated_relative_permalinks
$stderr.puts # Places newline after "Generating..."
Jekyll.logger.warn "Deprecation:", "Starting in 1.1, permalinks for pages" +
if config['relative_permalinks'] && has_relative_page?
Jekyll.logger.warn "Deprecation:", "Starting in 2.0, permalinks for pages" +
" in subfolders must be relative to the" +
" site source directory, not the parent" +
" directory. Check http://jekyllrb.com/docs/upgrading/"+
" for more info."
$stderr.print Jekyll.logger.formatted_topic("") + "..." # for "done."
@deprecated_relative_permalinks = true
end
end
def docs_to_write
documents.select(&:write?)
end
def documents
collections.reduce(Set.new) do |docs, (_, collection)|
docs.merge(collection.docs)
end.to_a
end
def each_site_file
%w(posts pages static_files).each do |type|
self.send(type).each do |item|
%w(posts pages static_files docs_to_write).each do |type|
send(type).each do |item|
yield item
end
end
end
def frontmatter_defaults
@frontmatter_defaults ||= Configuration::FrontmatterDefaults.new(self)
end
private
def has_relative_page?
pages.any? { |page| page.uses_relative_permalinks }
end
def has_yaml_header?(file)
"---" == File.open(file) { |fd| fd.read(3) }
!!(File.open(file, 'rb') { |f| f.read(5) } =~ /\A---\r?\n/)
end
def limit_posts!
limit = self.posts.length < limit_posts ? self.posts.length : limit_posts
self.posts = self.posts[-limit, limit]
limit = posts.length < limit_posts ? posts.length : limit_posts
self.posts = posts[-limit, limit]
end
def site_cleaner
@site_cleaner ||= Cleaner.new(self)
end
def sanitize_filename(name)
name.gsub!(/[^\w\s_-]+/, '')
name.gsub!(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
name.gsub(/\s+/, '_')
end
def publisher
@publisher ||= Publisher.new(self)
end
end
end

View File

@@ -18,7 +18,12 @@ module Jekyll
# Returns source file path.
def path
File.join(@base, @dir, @name)
File.join(*[@base, @dir, @name].compact)
end
# Returns the source file path relative to the site source
def relative_path
@relative_path ||= path.sub(/\A#{@site.source}/, '')
end
# Obtain destination path.
@@ -27,7 +32,7 @@ module Jekyll
#
# Returns destination file path.
def destination(dest)
File.join(dest, @dir, @name)
File.join(*[dest, @dir, @name].compact)
end
# Returns last modification time for this file.
@@ -54,6 +59,7 @@ module Jekyll
@@mtimes[path] = mtime
FileUtils.mkdir_p(File.dirname(dest_path))
FileUtils.rm(dest_path) if File.exist?(dest_path)
FileUtils.cp(path, dest_path)
true
@@ -66,5 +72,13 @@ module Jekyll
@@mtimes = Hash.new
nil
end
def to_liquid
{
"path" => relative_path,
"modified_time" => mtime.to_s,
"extname" => File.extname(relative_path)
}
end
end
end

View File

@@ -1,89 +1,58 @@
module Jekyll
class Stevenson
attr_accessor :log_level
DEBUG = 0
INFO = 1
WARN = 2
ERROR = 3
# Public: Create a new instance of Stevenson, Jekyll's logger
#
# level - (optional, integer) the log level
#
# Returns nothing
def initialize(level = INFO)
@log_level = level
end
# Public: Print a jekyll debug message to stdout
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def debug(topic, message = nil)
$stdout.puts(message(topic, message)) if log_level <= DEBUG
class Stevenson < ::Logger
def initialize
@progname = nil
@level = DEBUG
@default_formatter = Formatter.new
@logdev = $stdout
@formatter = proc do |severity, datetime, progname, msg|
"#{msg}"
end
end
# Public: Print a jekyll message to stdout
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def info(topic, message = nil)
$stdout.puts(message(topic, message)) if log_level <= INFO
def add(severity, message = nil, progname = nil, &block)
severity ||= UNKNOWN
@logdev = set_logdevice(severity)
if @logdev.nil? or severity < @level
return true
end
progname ||= @progname
if message.nil?
if block_given?
message = yield
else
message = progname
progname = @progname
end
end
@logdev.puts(
format_message(format_severity(severity), Time.now, progname, message))
true
end
# Public: Print a jekyll message to stderr
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def warn(topic, message = nil)
$stderr.puts(message(topic, message).yellow) if log_level <= WARN
# Log a +WARN+ message
def warn(progname = nil, &block)
add(WARN, nil, progname.yellow, &block)
end
# Public: Print a jekyll error message to stderr
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def error(topic, message = nil)
$stderr.puts(message(topic, message).red) if log_level <= ERROR
# Log an +ERROR+ message
def error(progname = nil, &block)
add(ERROR, nil, progname.red, &block)
end
# Public: Print a Jekyll error message to stderr and immediately abort the process
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail (can be omitted)
#
# Returns nothing
def abort_with(topic, message = nil)
error(topic, message)
abort
def close
# No LogDevice in use
end
# Public: Build a Jekyll topic method
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns the formatted message
def message(topic, message)
formatted_topic(topic) + message.to_s.gsub(/\s+/, ' ')
end
private
# Public: Format the topic
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
#
# Returns the formatted topic statement
def formatted_topic(topic)
"#{topic} ".rjust(20)
def set_logdevice(severity)
if severity > INFO
$stderr
else
$stdout
end
end
end
end

View File

@@ -1,40 +0,0 @@
# Gist Liquid Tag
#
# Example:
# {% gist 1234567 %}
# {% gist 1234567 file.rb %}
module Jekyll
class GistTag < Liquid::Tag
def render(context)
if tag_contents = determine_arguments(@markup.strip)
gist_id, filename = tag_contents[0], tag_contents[1]
gist_script_tag(gist_id, filename)
else
"Error parsing gist id"
end
end
private
def determine_arguments(input)
matched = if input.include?("/")
input.match(/\A([a-zA-Z0-9\/\-_]+) ?(\S*)\Z/)
else
input.match(/\A(\d+) ?(\S*)\Z/)
end
[matched[1].strip, matched[2].strip] if matched && matched.length >= 3
end
def gist_script_tag(gist_id, filename = nil)
if filename.empty?
"<script src=\"https://gist.github.com/#{gist_id}.js\"> </script>"
else
"<script src=\"https://gist.github.com/#{gist_id}.js?file=#{filename}\"> </script>"
end
end
end
end
Liquid::Template.register_tag('gist', Jekyll::GistTag)

View File

@@ -5,30 +5,21 @@ module Jekyll
# The regular expression syntax checker. Start with the language specifier.
# Follow that by zero or more space separated options that take one of two
# forms:
#
# 1. name
# 2. name=value
# forms: name or name=value
SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+\w+(=\w+)?)*)$/
def initialize(tag_name, markup, tokens)
super
if markup.strip =~ SYNTAX
@lang = $1
@lang = $1.downcase
@options = {}
if defined?($2) && $2 != ''
$2.split.each do |opt|
key, value = opt.split('=')
if value.nil?
if key == 'linenos'
value = 'inline'
else
value = true
end
end
@options[key] = value
@options[key.to_sym] = value || true
end
end
@options[:linenos] = "inline" if @options.key?(:linenos) and @options[:linenos] == true
else
raise SyntaxError.new <<-eos
Syntax Error in tag 'highlight' while parsing the following markup:
@@ -41,41 +32,60 @@ eos
end
def render(context)
if context.registers[:site].pygments
render_pygments(context, super)
prefix = context["highlighter_prefix"] || ""
suffix = context["highlighter_suffix"] || ""
code = super.to_s.strip
output = case context.registers[:site].highlighter
when 'pygments'
render_pygments(code)
when 'rouge'
render_rouge(code)
else
render_codehighlighter(context, super)
render_codehighlighter(code)
end
rendered_output = add_code_tag(output)
prefix + rendered_output + suffix
end
def render_pygments(context, code)
def render_pygments(code)
require 'pygments'
@options[:encoding] = 'utf-8'
output = add_code_tags(
Pygments.highlight(code, :lexer => @lang, :options => @options),
@lang
)
highlighted_code = Pygments.highlight(code, :lexer => @lang, :options => @options)
output = context["pygments_prefix"] + output if context["pygments_prefix"]
output = output + context["pygments_suffix"] if context["pygments_suffix"]
output
if highlighted_code.nil?
Jekyll.logger.error "There was an error highlighting your code:"
puts
Jekyll.logger.error code
puts
Jekyll.logger.error "While attempting to convert the above code, Pygments.rb" +
" returned an unacceptable value."
Jekyll.logger.error "This is usually a timeout problem solved by running `jekyll build` again."
raise ArgumentError.new("Pygments.rb returned an unacceptable value when attempting to highlight some code.")
end
highlighted_code
end
def render_codehighlighter(context, code)
#The div is required because RDiscount blows ass
<<-HTML
<div>
<pre><code class='#{@lang}'>#{h(code).strip}</code></pre>
</div>
HTML
def render_rouge(code)
require 'rouge'
formatter = Rouge::Formatters::HTML.new(line_numbers: @options[:linenos], wrap: false)
lexer = Rouge::Lexer.find_fancy(@lang, code) || Rouge::Lexers::PlainText
code = formatter.format(lexer.lex(code))
"<div class=\"highlight\"><pre>#{code}</pre></div>"
end
def add_code_tags(code, lang)
def render_codehighlighter(code)
"<div class=\"highlight\"><pre>#{h(code).strip}</pre></div>"
end
def add_code_tag(code)
# Add nested <code> tags to code blocks
code = code.sub(/<pre>/,'<pre><code class="' + lang + '">')
code = code.sub(/<\/pre>/,"</code></pre>")
code = code.sub(/<pre>\n*/,'<pre><code class="language-' + @lang.to_s.gsub("+", "-") + '" data-lang="' + @lang.to_s + '">')
code = code.sub(/\n*<\/pre>/,"</code></pre>")
code.strip
end
end

View File

@@ -1,21 +1,40 @@
module Jekyll
module Tags
class IncludeTagError < StandardError
attr_accessor :path
def initialize(msg, path)
super(msg)
@path = path
end
end
class IncludeTag < Liquid::Tag
MATCHER = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
SYNTAX_EXAMPLE = "{% include file.ext param='value' param2='value' %}"
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
VARIABLE_SYNTAX = /(?<variable>\{\{\s*(?<name>[\w\-\.]+)\s*(\|.*)?\}\})(?<params>.*)/
INCLUDES_DIR = '_includes'
def initialize(tag_name, markup, tokens)
super
@file, @params = markup.strip.split(' ', 2);
matched = markup.strip.match(VARIABLE_SYNTAX)
if matched
@file = matched['variable'].strip
@params = matched['params'].strip
else
@file, @params = markup.strip.split(' ', 2);
end
validate_params if @params
end
def parse_params(context)
validate_syntax
params = {}
markup = @params
while match = MATCHER.match(markup) do
while match = VALID_SYNTAX.match(markup) do
markup = markup[match.end(0)..-1]
value = if match[2]
@@ -31,55 +50,95 @@ module Jekyll
params
end
# ensure the entire markup string from start to end is valid syntax, and params are separated by spaces
def validate_syntax
full_matcher = Regexp.compile('\A\s*(?:' + MATCHER.to_s + '(?=\s|\z)\s*)*\z')
unless @params =~ full_matcher
raise SyntaxError.new <<-eos
Invalid syntax for include tag:
def validate_file_name(file)
if file !~ /^[a-zA-Z0-9_\/\.-]+$/ || file =~ /\.\// || file =~ /\/\./
raise ArgumentError.new <<-eos
Invalid syntax for include tag. File contains invalid characters or sequences:
#{@params}
#{file}
Valid syntax:
{% include file.ext param='value' param2="value" %}
#{SYNTAX_EXAMPLE}
eos
end
end
def render(context)
includes_dir = File.join(context.registers[:site].source, '_includes')
def validate_params
full_valid_syntax = Regexp.compile('\A\s*(?:' + VALID_SYNTAX.to_s + '(?=\s|\z)\s*)*\z')
unless @params =~ full_valid_syntax
raise ArgumentError.new <<-eos
Invalid syntax for include tag:
if error = validate_file(includes_dir)
return error
end
#{@params}
source = File.read(File.join(includes_dir, @file))
partial = Liquid::Template.parse(source)
Valid syntax:
context.stack do
context['include'] = parse_params(context) if @params
partial.render(context)
#{SYNTAX_EXAMPLE}
eos
end
end
def validate_file(includes_dir)
if File.symlink?(includes_dir)
return "Includes directory '#{includes_dir}' cannot be a symlink"
end
# Grab file read opts in the context
def file_read_opts(context)
context.registers[:site].file_read_opts
end
if @file !~ /^[a-zA-Z0-9_\/\.-]+$/ || @file =~ /\.\// || @file =~ /\/\./
return "Include file '#{@file}' contains invalid characters or sequences"
# Render the variable if required
def render_variable(context)
if @file.match(VARIABLE_SYNTAX)
partial = Liquid::Template.parse(@file)
partial.render!(context)
end
end
file = File.join(includes_dir, @file)
if !File.exists?(file)
return "Included file #{@file} not found in _includes directory"
elsif File.symlink?(file)
return "The included file '_includes/#{@file}' should not be a symlink"
def render(context)
dir = File.join(File.realpath(context.registers[:site].source), INCLUDES_DIR)
file = render_variable(context) || @file
validate_file_name(file)
path = File.join(dir, file)
validate_path(path, dir, context.registers[:site].safe)
begin
partial = Liquid::Template.parse(source(path, context))
context.stack do
context['include'] = parse_params(context) if @params
partial.render!(context)
end
rescue => e
raise IncludeTagError.new e.message, File.join(INCLUDES_DIR, @file)
end
end
def validate_path(path, dir, safe)
if safe && !realpath_prefixed_with?(path, dir)
raise IOError.new "The included file '#{path}' should exist and should not be a symlink"
elsif !File.exist?(path)
raise IOError.new "Included file '#{path_relative_to_source(dir, path)}' not found"
end
end
def path_relative_to_source(dir, path)
File.join(INCLUDES_DIR, path.sub(Regexp.new("^#{dir}"), ""))
end
def realpath_prefixed_with?(path, dir)
File.exist?(path) && File.realpath(path).start_with?(dir)
end
def blank?
false
end
# This method allows to modify the file content by inheriting from the class.
def source(file, context)
File.read(file, file_read_opts(context))
end
end
end
end

View File

@@ -7,6 +7,7 @@ module Jekyll
def initialize(name)
all, path, date, slug = *name.sub(/^\//, "").match(MATCHER)
raise ArgumentError.new("'#{name}' does not contain valid date and/or title") unless all
@slug = path ? path + slug : slug
@date = Time.parse(date)
end
@@ -38,7 +39,15 @@ module Jekyll
def initialize(tag_name, post, tokens)
super
@orig_post = post.strip
@post = PostComparer.new(@orig_post)
begin
@post = PostComparer.new(@orig_post)
rescue
raise ArgumentError.new <<-eos
Could not parse name of post "#{@orig_post}" in tag 'post_url'.
Make sure the post exists and the name is correct.
eos
end
end
def render(context)
@@ -50,9 +59,11 @@ module Jekyll
end
end
puts "ERROR: post_url: \"#{@orig_post}\" could not be found"
raise ArgumentError.new <<-eos
Could not find post "#{@orig_post}" in tag 'post_url'.
return "#"
Make sure the post exists and the name is correct.
eos
end
end
end

View File

@@ -1,3 +1,5 @@
require 'uri'
# Public: Methods that generate a URL for a resource such as a Post or a Page.
#
# Examples
@@ -22,9 +24,9 @@ module Jekyll
# template. Instead, the given permalink will be
# used as URL.
def initialize(options)
@template = options[:template]
@template = options[:template]
@placeholders = options[:placeholders] || {}
@permalink = options[:permalink]
@permalink = options[:permalink]
if (@template || @permalink).nil?
raise ArgumentError, "One of :template or :permalink must be supplied."
@@ -44,12 +46,13 @@ module Jekyll
# Returns the _unsanitizied_ String URL
def generate_url
@placeholders.inject(@template) do |result, token|
result.gsub(/:#{token.first}/, token.last)
result.gsub(/:#{token.first}/, self.class.escape_path(token.last))
end
end
# Returns a sanitized String URL
def sanitize_url(in_url)
# Remove all double slashes
url = in_url.gsub(/\/\//, "/")
@@ -61,7 +64,46 @@ module Jekyll
# Always add a leading slash
url.gsub!(/\A([^\/])/, '/\1')
url
end
# Escapes a path to be a valid URL path segment
#
# path - The path to be escaped.
#
# Examples:
#
# URL.escape_path("/a b")
# # => "/a%20b"
#
# Returns the escaped path.
def self.escape_path(path)
# Because URI.escape doesn't escape '?', '[' and ']' by defaut,
# specify unsafe string (except unreserved, sub-delims, ":", "@" and "/").
#
# URI path segment is defined in RFC 3986 as follows:
# segment = *pchar
# pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
# unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
# pct-encoded = "%" HEXDIG HEXDIG
# sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
# / "*" / "+" / "," / ";" / "="
URI.escape(path, /[^a-zA-Z\d\-._~!$&\'()*+,;=:@\/]/).encode('utf-8')
end
# Unescapes a URL path segment
#
# path - The path to be unescaped.
#
# Examples:
#
# URL.unescape_path("/a%20b")
# # => "/a b"
#
# Returns the unescaped path.
def self.unescape_path(path)
URI.unescape(path.encode('utf-8'))
end
end
end

87
lib/jekyll/utils.rb Normal file
View File

@@ -0,0 +1,87 @@
module Jekyll
module Utils
class << self
# Merges a master hash with another hash, recursively.
#
# master_hash - the "parent" hash whose values will be overridden
# other_hash - the other hash whose values will be persisted after the merge
#
# This code was lovingly stolen from some random gem:
# http://gemjack.com/gems/tartan-0.1.1/classes/Hash.html
#
# Thanks to whoever made it.
def deep_merge_hashes(master_hash, other_hash)
target = master_hash.dup
other_hash.keys.each do |key|
if other_hash[key].is_a? Hash and target[key].is_a? Hash
target[key] = Utils.deep_merge_hashes(target[key], other_hash[key])
next
end
target[key] = other_hash[key]
end
target
end
# Read array from the supplied hash favouring the singular key
# and then the plural key, and handling any nil entries.
#
# hash - the hash to read from
# singular_key - the singular key
# plural_key - the plural key
#
# Returns an array
def pluralized_array_from_hash(hash, singular_key, plural_key)
[].tap do |array|
array << (value_from_singular_key(hash, singular_key) || value_from_plural_key(hash, plural_key))
end.flatten.compact
end
def value_from_singular_key(hash, key)
hash[key] if (hash.has_key?(key) || (hash.default_proc && hash[key]))
end
def value_from_plural_key(hash, key)
if hash.has_key?(key) || (hash.default_proc && hash[key])
val = hash[key]
case val
when String
val.split
when Array
val.compact
end
end
end
def transform_keys(hash)
result = {}
hash.each_key do |key|
result[yield(key)] = hash[key]
end
result
end
# Apply #to_sym to all keys in the hash
#
# hash - the hash to which to apply this transformation
#
# Returns a new hash with symbolized keys
def symbolize_hash_keys(hash)
transform_keys(hash) { |key| key.to_sym rescue key }
end
# Apply #to_s to all keys in the Hash
#
# hash - the hash to which to apply this transformation
#
# Returns a new hash with stringified keys
def stringify_hash_keys(hash)
transform_keys(hash) { |key| key.to_s rescue key }
end
end
end
end

3
lib/jekyll/version.rb Normal file
View File

@@ -0,0 +1,3 @@
module Jekyll
VERSION = '2.0.3'
end

View File

@@ -1,3 +1,12 @@
name: Your New Jekyll Site
markdown: redcarpet
pygments: true
# Site settings
title: Your awesome title
email: your-email@domain.com
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
baseurl: ""
url: "http://yourdomain.com"
twitter_username: jekyllrb
github_username: jekyll
# Build settings
markdown: kramdown
permalink: pretty

View File

@@ -0,0 +1,61 @@
<footer class="site-footer">
<div class="wrap">
<h2 class="footer-heading">{{ site.title }}</h2>
<div class="footer-col-1 column">
<ul>
<li>{{ site.title }}</li>
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
</ul>
</div>
<div class="footer-col-2 column">
<ul>
{% if site.github_username %}<li>
<a href="https://github.com/{{ site.github_username }}">
<span class="icon github">
<svg version="1.1" class="github-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
<path fill-rule="evenodd" clip-rule="evenodd" fill="#C2C2C2" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761
c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32
c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472
c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037
C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65
c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261
c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082
c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129
c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
</svg>
</span>
<span class="username">{{ site.github_username }}</span>
</a>
</li>{% endif %}
{% if site.twitter_username %}<li>
<a href="https://twitter.com/{{ site.twitter_username }}">
<span class="icon twitter">
<svg version="1.1" class="twitter-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
<path fill="#C2C2C2" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27
c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767
c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206
C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271
c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469
c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
</svg>
</span>
<span class="username">{{ site.twitter_username }}</span>
</a>
</li>{% endif %}
</ul>
</div>
<div class="footer-col-3 column">
<p class="text">{{ site.description }}</p>
</div>
</div>
</footer>

View File

@@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="{{ site.description }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<!-- Custom CSS -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
</head>

View File

@@ -0,0 +1,28 @@
<header class="site-header">
<div class="wrap">
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
<nav class="site-nav">
<a href="#" class="menu-icon">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 18 15" enable-background="new 0 0 18 15" xml:space="preserve">
<path fill="#505050" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0
h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#505050" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484
h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#505050" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0
c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<div class="trigger">
{% for page in site.pages %}
{% if page.title %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
{% endfor %}
</div>
</nav>
</div>
</header>

View File

@@ -1,44 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width">
<!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css">
{% include head.html %}
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<div class="site">
<div class="header">
<h1 class="title"><a href="/">{{ site.name }}</a></h1>
<a class="extra" href="/">home</a>
</div>
{% include header.html %}
{{ content }}
<div class="page-content">
<div class="wrap">
{{ content }}
</div>
</div>
<div class="footer">
<div class="contact">
<p>
Your Name<br />
What You Are<br />
you@example.com
</p>
</div>
<div class="contact">
<p>
<a href="https://github.com/yourusername">github.com/yourusername</a><br />
<a href="https://twitter.com/yourusername">twitter.com/yourusername</a><br />
</p>
</div>
</div>
</div>
{% include footer.html %}
</body>
</html>
</html>

View File

@@ -0,0 +1,14 @@
---
layout: default
---
<div class="post">
<header class="post-header">
<h1>{{ page.title }}</h1>
</header>
<article class="post-content">
{{ content }}
</article>
</div>

View File

@@ -1,9 +1,15 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post">
{{ content }}
</div>
<header class="post-header">
<h1>{{ page.title }}</h1>
<p class="meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{ content }}
</article>
</div>

View File

@@ -20,5 +20,5 @@ print_hi('Tom')
Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh].
[jekyll-gh]: https://github.com/mojombo/jekyll
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll]: http://jekyllrb.com

View File

@@ -0,0 +1,11 @@
---
layout: page
title: About
permalink: /about/
---
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new)
You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)

478
lib/site_template/css/main.css Executable file → Normal file
View File

@@ -1,10 +1,6 @@
/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/
/* Base */
/* ----------------------------------------------------------*/
/* Global Reset */
* {
margin: 0;
padding: 0;
@@ -13,139 +9,243 @@
html, body { height: 100%; }
body {
background-color: #FFF;
font: 13.34px Helvetica, Arial, sans-serif;
font-size: small;
text-align: center;
font-family: Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
background-color: #fdfdfd;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: 400; }
h1 { margin-bottom: 1em; }
p { margin: 1em 0; }
a { color: #2a7ae2; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
a:visited { color: #205caa; }
a { color: #00a; }
a:hover { color: #000; }
a:visited { color: #a0a; }
/* Utility */
/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
ul.posts {
list-style-type: none;
margin-bottom: 2em;
.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }
.wrap {
max-width: 800px;
padding: 0 30px;
margin: 0 auto;
zoom: 1;
}
ul.posts li {
line-height: 1.75em;
/* Layout Styles */
/* ----------------------------------------------------------*/
/* Site header */
.site-header {
border-top: 5px solid #333;
border-bottom: 1px solid #e8e8e8;
min-height: 56px;
background-color: white;
}
ul.posts span {
color: #aaa;
font-family: Monaco, "Courier New", monospace;
font-size: 80%;
}
/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/
.site {
font-size: 115%;
text-align: justify;
width: 42em;
margin: 3em auto 2em;
line-height: 1.5em;
}
.site .header a {
font-weight: bold;
text-decoration: none;
}
.site .header h1.title {
display: inline-block;
margin-bottom: 2em;
}
.site .header h1.title a {
color: #a00;
}
.site .header h1.title a:hover {
color: #000;
}
.site .header a.extra {
color: #aaa;
margin-left: 1em;
}
.site .header a.extra:hover {
color: #000;
}
.site .meta {
color: #aaa;
}
.site .footer {
font-size: 80%;
color: #666;
border-top: 4px solid #eee;
margin-top: 2em;
overflow: hidden;
}
.site .footer .contact {
.site-title,
.site-title:hover,
.site-title:visited {
display: block;
color: #333;
font-size: 26px;
letter-spacing: -1px;
float: left;
margin-right: 3em;
line-height: 56px;
position: relative;
z-index: 1;
}
.site .footer .contact a {
color: #8085C1;
}
.site .footer .rss {
margin-top: 1.1em;
margin-right: -.2em;
.site-nav {
float: right;
line-height: 56px;
}
.site .footer .rss img {
border: 0;
.site-nav .menu-icon { display: none; }
.site-nav .page-link {
margin-left: 20px;
color: #727272;
letter-spacing: -.5px;
}
/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/
/* Site footer */
/* standard */
.post pre {
border: 1px solid #ddd;
background-color: #eef;
padding: 0 .4em;
.site-footer {
border-top: 1px solid #e8e8e8;
padding: 30px 0;
}
.post ul, .post ol {
margin-left: 1.35em;
.footer-heading {
font-size: 18px;
font-weight: 300;
letter-spacing: -.5px;
margin-bottom: 15px;
}
.site-footer .column { float: left; margin-bottom: 15px; }
.footer-col-1 {
width: 270px; /*fallback*/
width: -webkit-calc(35% - 10px);
width: -moz-calc(35% - 10px);
width: -o-calc(35% - 10px);
width: calc(35% - 10px);
margin-right: 10px
}
.footer-col-2 {
width: 175px; /*fallback*/
width: -webkit-calc(23.125% - 10px);
width: -moz-calc(23.125% - 10px);
width: -o-calc(23.125% - 10px);
width: calc(23.125% - 10px);
margin-right: 10px
}
.footer-col-3 {
width: 335px; /*fallback*/
width: -webkit-calc(41.875%);
width: -moz-calc(41.875%);
width: -o-calc(41.875%);
width: calc(41.875%);
}
.site-footer ul { list-style: none; }
.site-footer li,
.site-footer p {
font-size: 15px;
letter-spacing: -.3px;
color: #828282;
}
.github-icon-svg,
.twitter-icon-svg {
display: inline-block;
width: 16px;
height: 16px;
position: relative;
top: 3px;
}
/* Page Content styles */
/* ----------------------------------------------------------*/
.page-content {
padding: 30px 0;
background-color: #fff;
}
/* Home styles */
/* ----------------------------------------------------------*/
.home h1 { margin-bottom: 25px; }
.posts { list-style-type: none; }
.posts li { margin-bottom: 30px; }
.posts .post-link {
font-size: 24px;
letter-spacing: -1px;
line-height: 1;
}
.posts .post-date {
display: block;
font-size: 15px;
color: #818181;
}
/* Post styles */
/* ----------------------------------------------------------*/
.post-header { margin: 10px 0 30px; }
.post-header h1 {
font-size: 42px;
letter-spacing: -1.75px;
line-height: 1;
font-weight: 300;
}
.post-header .meta {
font-size: 15px;
color: #818181;
margin-top: 5px;
}
.post-content { margin: 0 0 30px; }
.post-content > * { margin: 20px 0; }
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
line-height: 1;
font-weight: 300;
margin: 40px 0 20px;
}
.post-content h2 {
font-size: 32px;
letter-spacing: -1.25px;
}
.post-content h3 {
font-size: 26px;
letter-spacing: -1px;
}
.post-content h4 {
font-size: 20px;
letter-spacing: -1px;
}
.post-content blockquote {
border-left: 4px solid #e8e8e8;
padding-left: 20px;
font-size: 18px;
opacity: .6;
letter-spacing: -1px;
font-style: italic;
margin: 30px 0;
}
.post-content ul,
.post-content ol { padding-left: 20px; }
.post pre,
.post code {
border: 1px solid #ddd;
border: 1px solid #d5d5e9;
background-color: #eef;
padding: 0 .2em;
padding: 8px 12px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
font-size: 15px;
overflow:scroll;
}
.post code { padding: 1px 5px; }
.post ul,
.post ol { margin-left: 1.35em; }
.post pre code {
border: none;
border: 0;
padding-right: 0;
padding-left: 0;
}
/* terminal */
@@ -153,8 +253,158 @@ ul.posts span {
border: 1px solid #000;
background-color: #333;
color: #FFF;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.post pre.terminal code {
background-color: #333;
.post pre.terminal code { background-color: #333; }
/* Syntax highlighting styles */
/* ----------------------------------------------------------*/
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
/* media queries */
/* ----------------------------------------------------------*/
@media screen and (max-width: 750px) {
.footer-col-1 { width: 50%; }
.footer-col-2 {
width: 45%; /*fallback*/
width: -webkit-calc(50% - 10px);
width: -moz-calc(50% - 10px);
width: -o-calc(50% - 10px);
width: calc(50% - 10px);
margin-right: 0;
}
.site-footer .column.footer-col-3 {
width: auto;
float: none;
clear: both;
}
}
@media screen and (max-width: 600px) {
.wrap { padding: 0 12px; }
.site-nav {
position: fixed;
z-index: 10;
top: 14px; right: 8px;
background-color: white;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #e8e8e8;
}
.site-nav .menu-icon {
display: block;
font-size: 24px;
color: #505050;
float: right;
width: 36px;
text-align: center;
line-height: 36px;
}
.site-nav .menu-icon svg { width: 18px; height: 16px; }
.site-nav .trigger {
clear: both;
margin-bottom: 5px;
display: none;
}
.site-nav:hover .trigger { display: block; }
.site-nav .page-link {
display: block;
text-align: right;
line-height: 1.25;
padding: 5px 10px;
margin: 0;
}
.post-header h1 { font-size: 36px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }
.post-content blockquote { padding-left: 10px; }
.post-content ul,
.post-content ol { padding-left: 10px; }
.site-footer .column {
float: none;
clear: both;
width: auto;
margin: 0 0 15px; }
}

View File

@@ -1,60 +0,0 @@
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

View File

@@ -0,0 +1,30 @@
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>

View File

@@ -1,13 +1,20 @@
---
layout: default
title: Your New Jekyll Site
---
<div id="home">
<h1>Blog Posts</h1>
<div class="home">
<h1>Posts</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>

View File

@@ -1,2 +1,4 @@
#!/bin/sh
script/branding
bundle install

11
script/branding Executable file
View File

@@ -0,0 +1,11 @@
#! /bin/bash
echo " ---------------------------------------------------------- "
echo " _ ______ _ __ __ __ _ _ "
echo " | | | ____| | |/ / \ \ / / | | | | "
echo " | | | |__ | ' / \ \_/ / | | | | "
echo " _ | | | __| | < \ / | | | | "
echo " | |__| | | |____ | . \ | | | |____ | |____ "
echo " \____/ |______| |_|\_\ |_| |______| |______| "
echo " "
echo " ---------------------------------------------------------- "

4
script/cibuild Executable file
View File

@@ -0,0 +1,4 @@
#! /bin/bash
script/branding
bundle exec rake

38
script/console Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/env ruby
require 'pry'
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
require 'jekyll'
TEST_DIR = File.expand_path(File.join(File.dirname(__FILE__), *%w{ .. test }))
def fixture_site(overrides = {})
Jekyll::Site.new(site_configuration(overrides))
end
def build_configs(overrides, base_hash = Jekyll::Configuration::DEFAULTS)
Jekyll::Utils.deep_merge_hashes(base_hash, overrides)
end
def site_configuration(overrides = {})
build_configs({
"source" => source_dir,
"destination" => dest_dir
}, build_configs(overrides))
end
def dest_dir(*subdirs)
test_dir('dest', *subdirs)
end
def source_dir(*subdirs)
test_dir('source', *subdirs)
end
def test_dir(*subdirs)
File.join(TEST_DIR, *subdirs)
end
module Jekyll
binding.pry
end

140
script/rebund Executable file
View File

@@ -0,0 +1,140 @@
#!/bin/bash
#
# rebund(1)
#
# Author: Julien Letessier
# Homepage: https://github.com/mezis/rebund
# License:
#
# Copyright (c) 2014 HouseTrip Ltd
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy 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 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 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Configuration
: ${REBUND_CREDENTIALS:=user:secret}
: ${REBUND_ENDPOINT=http://keyfile-production.herokuapp.com}
: ${REBUND_TARBALL:=bundle.tbz}
: ${REBUND_BUNDLE_DIR:=vendor/bundle}
log() {
echo "rebund: $*" > /dev/stderr
}
die() {
echo "fatal: $*" > /dev/stderr
exit 1
}
success() {
log "$*"
exit 0
}
on_error() {
die 'unknown error.'
}
get_ruby_version() {
bundle exec ruby --version
}
get_gemfile() {
bundle exec sh -c 'echo $BUNDLE_GEMFILE'
}
calculate_hash() {
(get_ruby_version ; cat $(get_gemfile)) | openssl sha256 | sed -e 's/.* //'
}
build_tarball() {
test -e $REBUND_BUNDLE_DIR || die "cannot find bundle directory in ${REBUND_BUNDLE_DIR}"
test -e $REBUND_TARBALL && success 'bundle already uploaded'
tar jcf $REBUND_TARBALL $REBUND_BUNDLE_DIR
}
upload_tarball() {
curl --fail \
-F filedata=@${REBUND_TARBALL} \
--digest --user $REBUND_CREDENTIALS \
${REBUND_ENDPOINT}/$(calculate_hash) \
|| success "could not upload bundle"
}
expand_tarball() {
test -e $REBUND_TARBALL || success "no tarball"
tar jxf $REBUND_TARBALL
}
download_tarball() {
curl --fail \
--location \
-o ${REBUND_TARBALL} \
--digest --user $REBUND_CREDENTIALS \
${REBUND_ENDPOINT}/$(calculate_hash) \
|| success "could not download bundle"
}
rebund_upload() {
build_tarball
upload_tarball
}
rebund_download() {
download_tarball
expand_tarball
}
rebund_usage() {
success "usage: $0 [-v] [upload|download]"
}
# cath errors
trap on_error ERR
# inherit the ERR trap in subprocesses
set -E
while test $# -gt 0 ; do
case $1 in
-v)
set -x
;;
upload)
rebund_upload
exit 0
;;
download)
rebund_download
exit 0
;;
*)
rebund_usage
exit 1
;;
esac
shift
done
rebund_usage

11
script/test Executable file
View File

@@ -0,0 +1,11 @@
#! /bin/bash
set -x
if [ -z "$1" ]; then
TEST_FILES="test/test*.rb"
else
TEST_FILES="$@"
fi
/usr/bin/env bundle exec ruby -I"lib:test" -r rake -r rake/rake_test_loader ${TEST_FILES}

View File

@@ -1,6 +1,10 @@
pygments: true
markdown: kramdown
highlighter: pygments
relative_permalinks: false
gauges_id: 503c5af6613f5d0f19000027
permalink: /news/:year/:month/:day/:title/
excerpt_separator: noifniof3nioaniof3nioafafinoafnoif
repository: https://github.com/mojombo/jekyll
repository: https://github.com/jekyll/jekyll
help_url: https://github.com/jekyll/jekyll-help
google_analytics_id: UA-50755011-1
timezone: America/Los_Angeles

45
site/_data/docs.yml Normal file
View File

@@ -0,0 +1,45 @@
- title: Getting Started
docs:
- home
- quickstart
- installation
- usage
- structure
- configuration
- title: Your Content
docs:
- frontmatter
- posts
- drafts
- pages
- variables
- collections
- datafiles
- assets
- migrations
- title: Customization
docs:
- templates
- permalinks
- pagination
- plugins
- extras
- title: Deployment
docs:
- github-pages
- deployment-methods
- title: Miscellaneous
docs:
- troubleshooting
- sites
- resources
- upgrading
- title: Meta
docs:
- contributing
- history

View File

@@ -1,6 +1,6 @@
{% if site.gauges_id %}
<!-- Gauges (http://gaug.es/) -->
<script type="text/javascript">
<script>
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
@@ -17,16 +17,14 @@
{% if site.google_analytics_id %}
<!-- Google Analytics (http://google.com/analytics) -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics_id }}']);
_gaq.push(['_setDomainName', '{{ site.url }}']); // Multiple sub-domains
_gaq.push(['_setAllowLinker', true]); // Multiple TLDs
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics_id }}', 'jekyllrb.com');
ga('send', 'pageview');
</script>
{% endif %}

View File

@@ -0,0 +1,32 @@
<script>
var anchorForId = function (id) {
var anchor = document.createElement("a");
anchor.className = "header-link";
anchor.href = "#" + id;
anchor.innerHTML = "<i class=\"fa fa-link\"></i>";
return anchor;
};
var linkifyAnchors = function (level, containingElement) {
var headers = containingElement.getElementsByTagName("h" + level);
for (var h = 0; h < headers.length; h++) {
var header = headers[h];
if (typeof header.id !== "undefined" && header.id !== "") {
header.appendChild(anchorForId(header.id));
}
}
};
document.onreadystatechange = function () {
if (this.readyState === "complete") {
var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
if (!contentBlock) {
return;
}
for (var level = 1; level <= 6; level++) {
linkifyAnchors(level, contentBlock);
}
}
};
</script>

44
site/_includes/css/font-awesome.css vendored Normal file
View File

@@ -0,0 +1,44 @@
/*!
* Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.1.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.1.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.1.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.1.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-link:before {
content: "\f0c1";
}
/*
* This code is courtesy Ben Balter, modified by Parker Moore for jekyllrb.com
* http://ben.balter.com/2014/03/13/pages-anchor-links/
*/
.header-link {
position: relative;
left: 0.5em;
opacity: 0;
font-size: 0.8em;
-webkit-transition: opacity 0.2s ease-in-out 0.1s;
-moz-transition: opacity 0.2s ease-in-out 0.1s;
-ms-transition: opacity 0.2s ease-in-out 0.1s;
}
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
opacity: 1;
}

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