Anatol Broder
79f50b0568
Resolve conflict
2013-09-16 08:15:10 +02:00
Parker Moore
6f053fbc8c
Update gemspec & version to v1.2.1
2013-09-14 20:59:06 -04: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
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
Matt Rogers
d8e0f009d2
Merge pull request #1363 from koron/stop-reverse-lookup
...
disable reverse lookup
2013-09-06 20:37:31 -07:00
Parker Moore
afe1291f0c
Update Jekyll::VERSION
2013-09-06 22:23:31 -04:00
Matt Rogers
3212aac4bc
Merge pull request #1481 from mojombo/pathawks-patch-1
...
Expose Jekyll version to templates: `jekyll.version`
2013-09-05 13:24:37 -07:00
maul.esel
09ed340835
Fix include tag to avoid NameError
2013-09-02 14:25:13 +02:00
Parker Moore
b7e34175d0
Put version under 'jekyll' namespace.
2013-08-30 18:54:03 -04:00
Parker Moore
20f44be87f
Merge branch 'patch-1' of git://github.com/pathawks/jekyll into pathawks-patch-1
...
* 'patch-1' of git://github.com/pathawks/jekyll:
Use proper Ruby syntax for constant
Expose Jekyll version to templates
2013-08-30 18:50:58 -04:00
Matt Rogers
a9e2a74ea6
Merge pull request #1341 from maul-esel/minor-refactors
...
Minor refactors
2013-08-29 20:21:08 -07:00
Parker Moore
0d890e4b70
Merge pull request #944 from x3ro/permalink-special-characters
...
WIP - Improve permalink generation for URLs with special characters
2013-08-28 15:02:20 -07:00
Parker Moore
8ea336945c
Merge pull request #1429 from maul-esel/refactor-cleanup
...
Refactor `Site#cleanup` into Jekyll::Site::Cleaner class
2013-08-26 14:01:53 -07:00
Matt Rogers
4fa4ad2232
Merge pull request #1443 from ddavison/detachment
...
Detachment
2013-08-24 20:16:42 -07:00
ddavison
b163bf637e
final mods
2013-08-24 21:31:05 -04:00
maul.esel
4c015fc5ff
move Jekyll::Cleaner to Jekyll::Site::Cleaner
2013-08-23 20:42:27 +02:00
maul.esel
dbd368f6ee
remove no longer necessary condition
2013-08-23 20:41:13 +02:00
ddavison
9681f3a776
adding default configuration to false
2013-08-21 21:00:18 +00:00
ddavison
4e52869f0f
adding detachment functionality
2013-08-21 20:53:01 +00:00
Frederic ROS
bca28056ef
Fix a misleading typo
2013-08-21 14:53:10 +02:00
maul.esel
d28858a9e9
put the Cleaner instance in a `Site#site_cleaner` method
2013-08-19 20:15:54 +02:00
maul.esel
0b3005b3b4
make obsolete_files a method (@mattr-)
2013-08-19 20:01:36 +02:00
Matt Rogers
820f526569
Merge pull request #1389 from mojombo/doctor-conflicting-permalinks
...
Implement URL conflict checking in `jekyll-doctor`.
2013-08-18 08:57:49 -07:00
maul.esel
506cdc5179
include: more helpful error message for symlinks
2013-08-18 17:08:42 +02:00
maul.esel
5d7dba476c
change site_cleaner to use attr_accessor
2013-08-17 22:33:01 +02:00
Parker Moore
8b8fa4da4e
Use Doctor#healthy? and ensure _all_ items are checked before process quits.
2013-08-17 15:16:14 -04:00
maul.esel
5da13d2b66
Refactor `Site#cleanup`
...
Move the cleanup logic out into a separate class,
`Jekyll::Cleaner`.
2013-08-17 17:14:08 +02:00
maul.esel
95719fa4ce
improve error handling in include tag
...
* Reduce condition to one-liner
* Remove `self`
* Implicit return value
* Explicit error message for symlinks
2013-08-17 16:24:06 +02:00
Pat Hawks
32e55e7717
Use proper Ruby syntax for constant
2013-08-16 21:01:09 -07:00
Pat Hawks
2744b66fac
Expose Jekyll version to templates
...
Make available `site.version` to liquid
2013-08-16 20:30:26 -07:00
Parker Moore
5f4efd34bd
When a Liquid Exception is caught, show the full path (rel to site source)
2013-08-12 21:19:54 +02:00
Parker Moore
d4300be758
Merge branch 'permalink-no-dir' of git://github.com/maul-esel/jekyll into maul-esel-permalink-no-dir
...
* 'permalink-no-dir' of git://github.com/maul-esel/jekyll:
test per-post permalinks
do not force the permalink to be a dir if it ends on .html
Conflicts:
features/step_definitions/jekyll_steps.rb
2013-08-11 12:08:56 +02:00
Anatol Broder
affffb4ed4
Update dummy email address to example.com domain
2013-08-10 15:29:33 +02:00
Anatol Broder
381a8148e3
Correct the social dummie URLs
...
Twitter and Github seem to always force HTTPS. They don’t use backslashes after the username.
2013-08-09 17:09:24 +02:00
Parker Moore
7d26be5102
Call ruby's 'abort' if the site is unhealthy
2013-08-08 18:33:55 +02:00
Parker Moore
318a379747
Nuke comment.
2013-08-08 18:32:13 +02:00
Parker Moore
bc3dccf0e5
Merge pull request #1386 from mojombo/disable-excerpts
...
Disable automatically-generated excerpts with option
2013-08-08 02:39:06 -07:00
Nick Fagerlund
9ca7f70d70
Fix 'undefined method `encoding` for "mailto"' errors w/ Ruby 1.8 and Kramdown > 0.14.0
...
When using Ruby 1.8.7 and Kramdown 0.14.0 and newer, the following build error
would occur if any page in your site contained a `<name@example.com>` email
address link:
Generating... Conversion error: There was an error converting 'contribute.markdown'.
/Users/nick/Documents/puppet-docs/vendor/bundle/ruby/1.8/gems/kramdown-1.0.2/lib/kramdown/converter/html.rb:404:in `obfuscate': undefined method `encoding' for "mailto":String (NoMethodError)
See also:
http://rubyforge.org/tracker/index.php?func=detail&aid=29750&group_id=7403&atid=28673
This problem traced back to the following line in the Kramdown source:
result.force_encoding(text.encoding) if result.respond_to?(:force_encoding)
Strings aren't supposed to respond to the :force_encoding method in Ruby < 1.9,
but lib/jekyll/core_ext.rb was modifying the string class like so:
def force_encoding(enc)
self
end
Strings still won't respond to :encoding, though, so we get an error when
Kramdown tries to read the incoming encoding and everything will blow up.
An ack of the codebase suggests that this was only added so we could force an
encoding for rdiscount on 1.9 without having to check whether we were running
under 1.8. Since testing for said method to learn whether one is running under a
1.9-like encoding regime seems to be a thing in libraries we rely on, we
shouldn't insert this dummy method without also dummying every other part of the
Ruby 1.9+ encoding system.
This commit removes the dummy :force_encoding method to stop poisoning core
classes for libraries we use, and moves the adjustment for 1.9-like encoding
regimes to the one place where it's needed.
2013-08-07 20:07:54 -07:00
Parker Moore
95534733ed
should_generate_excerpt? ~> generate_excerpt?
2013-08-08 00:35:42 +02:00
Parker Moore
cb52535c03
Merge pull request #1390 from mojombo/better-errors
...
Catch and fix (somehow) common configuration errors
2013-08-07 15:28:16 -07:00
Parker Moore
826293ebe3
Merge pull request #1364 from koron/write-in-binary-mode
...
use binary mode when writing file.
2013-08-07 08:12:27 -07:00
Parker Moore
ccedcd0eb9
Use .empty? instead of == ''
2013-08-07 17:12:13 +02:00
Parker Moore
d19c6983f2
paginate option cannot be 0.
2013-08-06 21:04:15 +02:00
Parker Moore
6eec3a7942
Print warning when `paginate` is set to `true`.
...
Related to #1105 .
Sample output:
~/code/jekyll/tsite$ ../bin/jekyll build --trace
Configuration file: /Users/parker/code/jekyll/tsite/_config.yml
Config Warning: The `paginate` key must be a positive integer or nil. It's currently set to 'true'.
Source: /Users/parker/code/jekyll/tsite
Destination: /Users/parker/code/jekyll/tsite/_site
Generating... done.
2013-08-06 20:56:29 +02:00
Parker Moore
8f7e229e8c
Cleaned up the deprecator a little
2013-08-06 20:56:20 +02:00
Parker Moore
1d14692e5d
Implement URL conflict checking in `jekyll-doctor`.
2013-08-06 20:41:00 +02:00
Parker Moore
aee7a41bc3
Align {{ content }} call with its siblings in site template.
2013-08-06 20:12:26 +02:00
Wlodek Bzyl
ece35e5e36
Remove div.container from the default html template
2013-08-06 20:12:26 +02:00
Parker Moore
e3abda9897
Fix 'undefined method `gsub' for nil:NilClass' when undefined method is called.
...
Closes #1388 .
http://stackoverflow.com/questions/18037596/error-undefined-method-gsub-for-nilnilclass/18038912
2013-08-06 20:06:33 +02:00
Parker Moore
cb8bc5accc
Just clarifying the Post#should_generate_excerpt?
2013-08-06 18:15:06 +02:00
Parker Moore
9dc90333c1
Only generate excerpts if the excerpt_separator isn't blank
2013-08-06 18:05:15 +02:00
Thomas Torsney-Weir
627916bc54
force markdown match to match the full extension
2013-08-06 10:56:24 +02:00
Lucas Jenss
362fcf28f0
Use do ... end for multiline block
2013-07-31 23:17:56 +02:00
Lucas Jenss
a23e94ad48
Improve comment for url_placeholders method
2013-07-31 23:17:06 +02:00
Lucas Jenss
cce58159ce
Use symbols for all placeholders
...
See https://github.com/mojombo/jekyll/pull/944#discussion_r5443105
for a discussion.
2013-07-31 23:11:51 +02:00
MURAOKA Taro
8a155e0a50
use binary mode when writing file.
2013-07-30 21:35:02 +09:00
MURAOKA Taro
d8bf10d761
disable reverse lookup
2013-07-30 21:28:27 +09:00
maul.esel
b5d25427e5
Merge branch 'master' into minor-refactors
2013-07-28 21:21:50 +02:00
maul.esel
01922a10ac
Convertible#to_liquid: allow an alternate attribute set to be passed
2013-07-28 21:18:54 +02:00
Parker Moore
e973e59306
Remove redundant argument in Jekyll::Commands::New#scaffold_post_content
2013-07-26 16:25:39 +02:00
Lucas Jenss
f5d0be9660
Move URL generation to own class instead of a module
...
As suggested by @parkr in #944
2013-07-25 22:44:27 +02:00
Lucas Jenss
41b2f0824e
Merge branch 'master' of https://github.com/mojombo/jekyll into permalink-special-characters
2013-07-25 21:33:55 +02:00
Parker Moore
0db5dcf832
Release 1.1.2
2013-07-25 09:15:34 +02:00
Parker Moore
fe10f21d8d
Release 1.1.1
2013-07-24 22:42:03 +02:00
maul.esel
6c6dd173c7
Post + Page: extract real path retrieval into separate method (@parkr)
2013-07-24 16:30:24 +02:00
maul.esel
d815e2b2a2
coding style preferences (@parkr)
2013-07-24 16:28:03 +02:00
Matt Rogers
d68d29c06f
Merge pull request #1339 from mojombo/no-layouts-for-excerpt
...
No layouts for excerpt
2013-07-23 18:43:08 -07:00
Parker Moore
0bb2af8dee
Remove superfluous conditional, props @mattr-
2013-07-23 20:04:39 +02:00
maul.esel
ba5db5ad5b
refactor Include tag file validation
...
Split validation into a separate method, and give a more
descriptive error on symlinks.
2013-07-23 14:23:33 +02:00
maul.esel
86e007f970
remove no-longer needed LSI accessor
...
LSI has been moved to another class (Jekyll::RelatedPosts),
but this was left in Post.
2013-07-23 11:24:23 +02:00
maul.esel
75d6587d27
Move #to_liquid to Convertible
2013-07-22 16:34:01 +02:00
maul.esel
21de43090a
Posts: move slug to title in a separate method
2013-07-22 16:23:40 +02:00
maul.esel
5efadd6674
Support missing kramdown coderay option
2013-07-22 16:02:50 +02:00
maul.esel
955f913f04
simplify Site#initialize
2013-07-22 16:02:50 +02:00
maul.esel
fd907fa631
simplify coderay option handling
2013-07-22 16:02:50 +02:00
maul.esel
5d777eb9e9
With the move of path handling, Page#to_liquid can be simplified
2013-07-22 16:02:50 +02:00
maul.esel
08567b1091
move path handling in pages to the `path` method, as in posts
2013-07-22 16:02:50 +02:00
maul.esel
f0e2468249
simplify some code with Hash#fetch
2013-07-22 16:02:42 +02:00
Parker Moore
f883acc664
Remove debug statements
2013-07-22 11:33:19 +02:00
Parker Moore
26dc14881c
Moving data around to make sure excerpts have no layouts but that they are still converted with liquid and the proper converter
2013-07-22 11:31:15 +02:00
Parker Moore
e359472870
May as well add Stevenson#debug
2013-07-22 11:30:19 +02:00
Parker Moore
c6a37a424b
Debug statements - take them out later
2013-07-22 10:11:32 +02:00
Parker Moore
f99c726085
Override Excerpt#render_all_layouts to just assign content to output
2013-07-22 10:11:32 +02:00
Parker Moore
0e0e25b9ba
start with Excerpt#output, otherwise call #to_s
2013-07-22 10:11:32 +02:00
Parker Moore
04e0b318c8
Remove duplicate comment
2013-07-22 10:11:32 +02:00
Parker Moore
374e6fcdf4
Add Jekyll::Stevenson#abort_with
2013-07-22 10:07:15 +02:00
Wlodek Bzyl
a880b7f99f
Remove superfluous 'table' selector from main.css in 'jekyll new' site template.
...
Closes #1323
2013-07-19 16:01:32 +02:00
Lucas Jenss
2ac98a7358
Merge branch 'master' into permalink-special-characters
...
Conflicts:
lib/jekyll/page.rb
lib/jekyll/post.rb
2013-07-14 23:58:22 +02:00
Parker Moore
d572e588e8
Release 1.1.0
2013-07-14 19:52:44 +02:00
Parker Moore
5d91b8f346
merge bang to modify in place. Woops. #1201
2013-07-14 17:48:34 +02:00
Parker Moore
e95086b211
Fix for kramdown coderay options. #1201 .
2013-07-14 17:47:13 +02:00
Parker Moore
4ce89ac96d
Merge pull request #1201 from zachgersh/all_kramdown
...
Supporting more kramdown options.
2013-07-14 08:45:05 -07:00
zachgersh
90500f37ac
Deleted unused code.
2013-07-14 00:24:57 -05:00
zachgersh
774bf07380
Supporting more kramdown options.
2013-07-14 00:24:56 -05:00
Parker Moore
d815c12571
Don't try to be smarter than the computer. Pass Excerpt#to_liquid to its parent post.
2013-07-14 04:22:34 +02:00
Parker Moore
015ace6773
Shuffle around rendering of extracted excerpt so it can be liquified.
2013-07-13 16:18:20 +02:00
Parker Moore
253fc8c506
Raise LoadError if the file doesn't exist but do not catch it. :)
2013-07-12 12:22:06 +02:00
Parker Moore
a7efb86d5c
Throw ArgumentError when there's an invalid config file, and catch only that.
2013-07-12 11:56:22 +02:00
Parker Moore
456ac01890
Crash if a config file isn't there.
...
If a configuration file is specified via the command line but does not exist,
fail loudly and crash to preserve the current state. Do not fail if the requested
file is the default configuration file, _config.yml. In that case, fall back on
the defaults.
2013-07-12 11:18:46 +02:00