Commit Graph

499 Commits

Author SHA1 Message Date
Christopher H. Laco 4c08643c50 Added uri_escape for cases where cgi_escape isn't appropriate 2010-11-12 11:15:30 -05:00
cblunt f688c9df81 Added limit-posts option to site configuration.
* Added unit tests for limit-posts.
  * Added feature for limit-posts.
  * Added --limit_posts option to bin/jekyll options parser
2010-09-13 00:31:52 +01:00
Jeremy Lecour 16c19ecd19 Add a failing test for rendering dotfiles
The test uses a simple ".htaccess" file that needs to be rendered
as any other page, like the sitemap.xml, …
2010-09-09 09:37:51 +02:00
Leandro Lisboa Penz b1049c84cd Correctly generates file basename. Fixes #208.
The previous procedure generated invalid basenames when the filename had
more than one dot.
2010-09-05 18:11:09 -03:00
Jason Watson de7e0011f9 Add some colouring to the unit tests. 2010-08-31 03:41:00 +01:00
Jason Watson dc7a7d0090 Updated for 1.9 encoding support. 2010-08-30 23:03:04 +01:00
Jason Watson 4aae2a7bc7 RedGreen is broken in 1.9.2. Test::Unit has colouring ability now. 2010-08-30 22:57:13 +01:00
Jason Watson e53a5407b9 Test::Unit is no longer ships with Ruby. 2010-08-30 22:55:39 +01:00
Jason Watson e054202c2b fix load errors in ruby 1.9.2. 2010-08-30 22:35:15 +01:00
Tom Preston-Werner 391d1a9677 Merge remote branch 'ctrochalakis/rdiscount_extensions' 2010-08-24 15:19:47 -07:00
Tom Preston-Werner d9bc00c804 Highlight should not be able to render local files. 2010-08-24 15:05:28 -07:00
Christos Trochalakis a56eeb8289 Add support for rdiscount extensions
Specify extensions at your _config.yml file:

    ...
    rdiscount:
        extensions: [smart, autolink]

Available extensions can be found here:
http://rdoc.info/projects/rtomayko/rdiscount

closes #173
2010-06-25 16:38:45 +03:00
Tom Preston-Werner f8484570b7 Merge remote branch 'christianhellsten/master' into next 2010-06-22 16:01:48 -07:00
Tom Preston-Werner de8bd48154 Maruku is now the only processor dependency installed by default. Closes #57.
Other processors will be lazy-loaded when necessary (and prompt the
user to install them when necessary).
2010-06-22 15:17:39 -07:00
Christian Hellsten 46a95bc036 git merge mojombo/master 2010-06-22 15:42:51 +03:00
Antonin Hildebrand f91954be76 optimization: write static file to the destination only if source file timestamp differs
Also make sure static files get regenerated when they are missing in destination.

This is useful in --server --auto mode when it reduces disk/cpu load and also plays nice with xrefresh-server (which was my main motivation) -> soft CSS refresh works again!
2010-06-20 08:02:16 +02:00
Tom Preston-Werner 5335debfb2 Merge remote branch 'technoweenie/no-leading-zeroes'
Conflicts:
	lib/jekyll/post.rb
2010-06-18 15:34:56 -07:00
Tom Preston-Werner f6ef6f21ae whitespace 2010-06-03 16:09:33 -07:00
rick e8d119ef0a add :i_day and :i_month permalink values so you can get urls like /2010/6/1/title 2010-05-31 23:28:39 -07:00
Kris Brown 84b26a31da removed use of content_type strings in the highlighting tag 2010-02-28 00:11:43 +00:00
Kris Brown cedda3afa3 move converters to classes 2010-02-27 22:14:27 +00:00
Kris Brown 80b13a81fa added usage of site.html_pages to test source sitemap.xml 2010-02-27 14:11:06 +00:00
Kris Brown cd946a587b removed tabs and made into a better example for sitemap times 2010-02-26 22:07:26 +00:00
Kris Brown e4a2319bf3 added tests to show how date and tags can end up having the wrong value when rendered 2010-02-26 21:24:32 +00:00
Kris Brown 98fa570c86 added support for consistent site.time in payload, generating the site at a specific time and limiting future posts
squish
2010-02-26 20:52:41 +00:00
Tom Preston-Werner a4f3f5c583 Merge commit '0a1e3cd2508c797d7b8d1038636a6e7111e5cd3d'. Fixes #33.
Conflicts:
	features/post_data.feature
2010-01-14 20:00:19 -08:00
Kris Brown a0aa3fa6dc Merge branch 'enh_post_date_in_front_matter_issue_62' 2010-01-10 21:58:34 +00:00
Kris Brown a1550b3378 allow date to be specified in the front matter and override the value from the file name, fixes #62 and #38 2010-01-10 21:55:54 +00:00
Kris Brown ce228ac1c4 removed accessor method and fixed tests 2010-01-10 16:24:56 +00:00
Kris Brown 2292e4268c added tests for handling of tags and catergories, see #73 and #84 2010-01-10 16:12:41 +00:00
Kris Brown e0e4a47af1 added pluralized_array method to Hash and tests 2010-01-10 16:09:24 +00:00
Kris Brown 6b74454a07 resetting to upstream 2010-01-10 10:11:44 +00:00
Kris Brown 2a7b1cbd98 merged 'mojombo/master' at 'v0.5.6' 2010-01-09 09:03:59 +00:00
Tom Preston-Werner 8d4b96084a Merge commit 'e3bd1c88e9ad6c9d6c89a543ca72c82a289b6bd7' 2010-01-08 18:19:36 -08:00
Tom Preston-Werner 473f3ffc11 Merge commit '597c7a7904198d92aa5eacad356019165685c311' 2010-01-08 18:08:17 -08:00
Tom Preston-Werner 4c1021d597 don't prematurely terminate front matter on mid-line triple dashes. fixes #93 2010-01-08 18:04:36 -08:00
Tom Preston-Werner 1adf9a7c64 Merge commit 'krisb/fix_for_test_redcloth_version' 2010-01-08 17:19:41 -08:00
Kris Brown 7806a0d6bb separated up the attrs required by convertible and made tags and categories always non-nil as empty front matter entries could cause them to be nil 2010-01-06 15:19:39 +00:00
Kris Brown d80c643681 Merge branch 'fix_for_render_order_issue71' 2010-01-05 22:21:58 +00:00
Kris Brown 0cb1ebcda1 split process handling into phases to allow pages to have access to full and complete site payload and added some test improvements 2010-01-05 17:05:44 +00:00
Kris Brown 5ea06f3ad9 fixes issue #78, including comprehensive scenarios and tests 2010-01-04 09:39:54 +00:00
Kris Brown 39a487cdf0 redcloth set to >= 4.2.1 2010-01-02 13:17:58 +00:00
Gregor Schmidt 597c7a7904 changes to stdout and -err - tests and behaviour
By using $stdin adn $stderr instead of STDIN and 
STDERR it is possible to capture or redirect them 
using in process ruby code without the need
to manage pipes and external processes
2009-11-24 21:42:22 +01:00
Christian Hellsten 52342fe6e1 Fixed bug where including includes from an include threw an exception. 2009-10-28 02:12:47 +02:00
Patrick Crowley 4cc0873172 updated pygments output to wrap code blocks with <code> tags 2009-10-22 21:14:05 -07:00
Jeffry Degrande 176c047ff1 bugfix for permalinks
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-07-14 19:17:44 -04:00
Nick Quaranto 8b678a8f01 Merge commit 'bahuvrihi/master' 2009-06-24 17:33:57 -04:00
Nick Quaranto 237df13778 Upgrading RedCloth to 4.2.1, which fixed <notextile> tags 2009-06-24 07:53:13 -04:00
Simon Chiang ca98cd0152 updated convertible to allow for posts with no, or empty YAML 2009-06-23 20:55:13 -06:00
Simon Chiang b616a4ceca fixed test for CRLF (extra newline was being picked up) 2009-06-23 20:54:26 -06:00
Nick Quaranto 150ff1e5e4 Fixed small bug in test_generated_site and updating history with latest fixes 2009-06-23 08:10:42 -04:00
Stefan Saasen e39810c984 Fix exception that causes jekyll to fail when using CRLF (0d0a) linebreaks in YAML front matter.
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-06-23 08:10:38 -04:00
Gaius Novus 5468548948 creating a Site with an invalid Markdown processor fails sooner and gives a better error message
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-06-23 08:10:33 -04:00
eugenebolshakov e0ceee2e89 Added trailing slash to pretty url template
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-06-23 08:10:27 -04:00
Nick Quaranto 52fbd940c3 Merging in eugenebolshakov/permalinks_for_pages 2009-06-22 18:32:18 -04:00
Thomas Jack 535d78de7d change features and tests to make sure categories in urls follow the order specified by directory layout or in yaml 2009-06-08 19:26:03 -05:00
Nick Quaranto 486ae25fc1 Validating the configuration loads properly and is a hash, based on jrk's implementation. Closes #22. 2009-05-31 21:33:27 -04:00
Nick Quaranto 86b1450234 Adding tags to the site payload. Derived mostly from Henrik's implementation in 072d9e7 2009-05-18 18:28:56 -04:00
Nick Quaranto 99098dd8c7 Removing the extremely brittle generated_site test and moving the tags check into post.rb so pages don't break 2009-05-18 18:28:56 -04:00
Nick Quaranto 102f6be6a2 Added tags to posts. Based off Henrik's implementation in 072d9e7. 2009-05-18 18:28:56 -04:00
Nick Quaranto 921aee23d3 Removing topics for good 2009-05-18 18:28:56 -04:00
eugenebolshakov 49c39f43a1 the index page should always have index.html permalink no matter what 2009-05-10 15:29:05 +04:00
eugenebolshakov ee0167d706 Made pages respect permalinks style and permalinks in yml front matter 2009-05-10 14:53:00 +04:00
Nick Quaranto 605adf88d5 Shoulda-izing the pager test and correcting some formatting issues 2009-05-09 11:45:36 -04:00
Nick Quaranto e1dbda47ed Merging in calavera's pagination branch 2009-05-09 11:44:34 -04:00
Nick Quaranto a42690dd38 Freezing to RedCloth 4.1.0 just for the tests 2009-05-06 12:41:16 -07:00
Nick Quaranto d948e0da91 Removing RedCloth gem lock and adding notes in for deps 2009-05-06 12:41:16 -07:00
Martin Vilcans 6968346703 Added cgi_escape filter 2009-05-02 00:44:33 +02:00
Nick Quaranto 53368cc3e1 Making sure excludes can work with a YAML array 2009-05-01 08:28:00 -04:00
Nick Quaranto 26f9ad3d98 Testing for RedCloth notextile issue and locking to 4.1.0, which parses the tag correctly 2009-04-29 09:07:29 -04:00
Bjørn Arild Mæland 4bcece18ae Issue 7: CGI escape post titles
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-04-28 08:09:42 -04:00
Nick Quaranto e0477e32cc Adding failing test for RDiscount parsing issue with highlight tags. 2009-04-27 08:29:54 -04:00
Nick Quaranto 6342a3842c Adding failing test for UTF-8 pygments issue GH-8 2009-04-25 23:27:46 -04:00
Nick Quaranto 9da140fcb2 Getting there, prefixes work great 2009-04-25 00:58:28 -04:00
Nick Quaranto 288d5045d2 Changing to the template permalink system, only test_post passing so far 2009-04-25 00:17:10 -04:00
Nick Quaranto 73fa7dcad4 Actually testing existing permalink_style and its effect on posts 2009-04-24 23:19:13 -04:00
Nick Quaranto 45b46722bf Making the generated site test happy when doing a glob on Ubuntu 2009-04-22 22:35:53 -04:00
Juan Lupion 2e187864cf Next and previous posts
Signed-off-by: Nick Quaranto <nick@quaran.to>
2009-04-22 19:51:41 -04:00
David Calavera f099d00cb0 posts' pagination 2009-04-04 12:45:40 +02:00
Nick Quaranto 8d0e3dd0e2 Reset posts, layouts, and categories before processing to prevent duplication when regenerating 2009-04-03 08:39:40 -04:00
Nick Quaranto f2ea61ba2a Appeasing maruku with a newline 2009-04-01 22:17:42 -04:00
Nick Quaranto cce2b8f32c Bringing back the pygments test. All unit tests are back onboard now 2009-03-19 08:12:35 -04:00
Nick Quaranto ae4e7725bf Bringing back the test_site tests 2009-03-18 08:37:03 -04:00
Nick Quaranto 479d8c7572 Allowing the dest_dir and source_dir helpers to take arguments so tests aren't littered with File.joins 2009-03-17 23:23:47 -04:00
Nick Quaranto c60be9c571 Stubbing out the configuration makes for much less warnings. 2009-03-17 23:17:51 -04:00
Nick Quaranto ab262a2ab5 Stubbing out configuration with RR and making sure include tags get rendered 2009-03-17 23:07:18 -04:00
Nick Quaranto 1423ea91a0 Removing lambdas from test_post since that was just stupid 2009-03-17 22:41:23 -04:00
Josh Nichols and Nick Quaranto a5155c8e00 Fixed tests (... or commented them out). We rule. 2009-03-17 21:13:08 -04:00
Josh Nichols and Nick Quaranto d602600394 Fixed test_generated_site. 2009-03-17 20:44:25 -04:00
Josh Nichols and Nick Quaranto 18b512a531 Merge branch 'qrush/shoulda' into can_has_good_tests
Conflicts:
	test/test_generated_site.rb
	test/test_post.rb
	test/test_site.rb
	test/test_tags.rb
2009-03-17 20:31:10 -04:00
mreid cb13ea3000 Rebased with mojombo. All tests pass. Some conflicts with Liquid and Maruku 2009-03-12 21:25:34 +11:00
Mark 6edfae8c26 Refactored configuration and command-line option code 2009-03-12 20:51:11 +11:00
Tom Preston-Werner 872a221862 Merge commit '992c4a8e6f71334f6c1a422c3547fdc535e7c8c2' 2009-03-10 17:23:30 -07:00
Tom Preston-Werner a67cea2637 four foo category posts now 2009-03-10 16:53:43 -07:00
Nick Quaranto 0e132bf2cb Upgrading the rest of the tests to shoulda 2009-03-05 21:54:52 -05:00
Nick Quaranto 0d05f27fe4 Post conversion complete 2009-03-05 21:54:52 -05:00
Nick Quaranto 8807c7660b Starting conversion to shoulda 2009-03-05 21:54:52 -05:00
Brandon Dimcheff 992c4a8e6f prevented _posts from being copied to the destination directory 2009-03-04 01:24:52 -05:00
Bjørn Arild Mæland fab8442432 Factored the filtering code into a method 2009-02-25 21:44:07 +01:00
Bjørn Arild Mæland 0ec9a1330a Made it possible to enter categories from YAML as an array. 2009-02-22 19:09:16 +01:00
Tom Preston-Werner e9ccc5d600 Merge commit 'ee65dadc9a5ae5fc8f19848754f7175ebd630375' 2009-02-19 00:16:43 -08:00
Kevin Marsh ee65dadc9a Add textilize filter for transforming input into HTML via RedCloth, so you can have Textile-formatted attributes other than the page's content (for example, an excerpt) 2009-02-12 18:21:40 -05:00
Nick Quaranto efdd5ef395 Making sure that posts flagged as published: false don't get rendered or copied. 2009-02-10 01:13:36 -05:00
Nick Quaranto ad617da4e0 Added publish flag to posts, not preventing it from being in the destination directory yet. 2009-02-10 01:13:31 -05:00
Nick Quaranto 1211f23b53 Adding support for setting post categories through YAML if not specified by directory structure 2009-02-10 01:12:20 -05:00
Nick Quaranto 4bcfaeae69 Starting on yaml categories 2009-02-10 01:12:17 -05:00
Nick Quaranto 2303115235 Making rake test happy on 1.8.7 2009-02-10 01:11:13 -05:00
Tom Preston-Werner 04a283f618 prevent equivalent array from breaking tests 2009-01-23 14:33:14 -08:00
Tom Preston-Werner c274ed3592 Merge commit 'd9b183f99826df630eedeae29f70005993da3d64' into cat 2009-01-23 14:27:59 -08:00
Tom Preston-Werner fc28a907a8 Merge commit 'bac34fab3a27a12b35add1ecab409b19941e29a6' 2009-01-23 14:22:22 -08:00
Chad Ingram d9b183f998 Fix site payload available to files 2009-01-23 04:48:43 -08:00
Tom Preston-Werner 3ee55f1abe Merge commit 'ea70d8ac7ae26f' into amp 2009-01-21 16:04:38 -08:00
Tom Preston-Werner 73a5478664 Merge commit '5cfa956448f00730' 2009-01-21 15:04:57 -08:00
Aristotle Pagaltzis ea70d8ac7a add minimal tests for xml_escape filter 2009-01-20 10:21:22 +01:00
Zachary Pinter 5cfa956448 Fixed an issue with pygments, markdown, and newlines. 2009-01-11 12:03:46 -07:00
Zachary Pinter bdbf1b9383 Created a test to expose a bug with markdown and pygments
The error seems to stem from how markdown expects certain blocks to begin and end with a newline.
2009-01-11 12:01:58 -07:00
Luismi Cavalle 15c5a78a47 Fixing permalink support 2009-01-05 00:35:59 +01:00
Tom Preston-Werner a6530544fb fix test_filters classname and add to manifest 2009-01-02 12:30:56 -08:00
Marc Chung 87a5e747fd Added array_to_sentence_string filter 2008-12-30 11:33:22 -07:00
Josh Dady bac34fab3a Test and fix the site.categories hash 2008-12-25 13:49:56 -05:00
Tom Preston-Werner dad9a31559 fix categories and add topics 2008-12-24 15:25:42 -08:00
Tom Preston-Werner c46ea4096d simplify and correct rendering pipeline 2008-12-24 13:17:28 -08:00
remi b45fd65a36 added tests to confirm that {{ site.posts }} in index.html was empty and {{ post.content }} wasn't rendering (both are now fixed) 2008-12-23 05:32:25 -07:00
Tom Preston-Werner d0fbfca205 fix location of permalink test post 2008-12-21 22:12:40 -08:00
Tom Preston-Werner 10bc499ce2 Merge commit '8d08a2' 2008-12-21 17:48:41 -08:00
Mark Reid 3a8f7a8e3a Added post categories based on directories containing _posts 2008-12-16 17:52:00 +11:00
Tom Preston-Werner fbdcf469c4 add markdown test 2008-12-15 12:04:19 -08:00
Tom Kirchner 2bb59d542b test_post failed if you weren't in UTC-8, so use the current time zone for testing 2008-12-14 01:31:09 -05:00
Tom Preston-Werner 8b2aedc951 implement include tag 2008-12-13 17:12:38 -08:00
Tom Preston-Werner 2a8345df82 fix tests for command line 2008-12-12 20:56:18 -08:00
Jack Danger Canty ad29efb102 adding permalink support to posts. Defined in the post YAML 2008-12-06 16:45:39 -08:00
Tom Preston-Werner e63b9c0719 add test source files that did not get properly added before 2008-11-22 00:15:13 -08:00
Tom Preston-Werner 4f951b9b5d send introspection data to posts 2008-11-21 18:48:35 -08:00
Tom Preston-Werner bffdeee637 rename to Jekyll 2008-11-17 11:07:54 -08:00
Tom Preston-Werner 551ca08296 rename to conveyer 2008-11-16 21:29:15 -08:00
Tom Preston-Werner 45db2ba40f fix layout tests 2008-11-05 22:05:24 -05:00
Tom Preston-Werner c1e31feeec default to no layout; makes dealing with binary files easier 2008-11-05 18:12:38 -08:00
Tom Preston-Werner e4d07dc547 add comments and refactor out common page/post methods into Convertible module 2008-11-05 17:49:22 -08:00
Tom Preston-Werner d8bdb6d366 fix tests that broke when 2nd arg was added to Post#add_layout 2008-11-05 17:04:56 -08:00
Tom Preston-Werner 7c3cfad2df fix post#output test 2008-10-20 23:36:44 -07:00
Tom Preston-Werner f06d2e60da clean up tests 2008-10-19 22:21:45 -07:00
Tom Preston-Werner 7fd8fd2b14 textilize posts 2008-10-19 22:10:03 -07:00
Tom Preston-Werner 1c93bd0ce8 write posts to disk 2008-10-19 21:56:53 -07:00
Tom Preston-Werner 84b00cc63e wrap in layout 2008-10-19 21:44:27 -07:00
Tom Preston-Werner ecda27488c parse out yaml from posts 2008-10-19 21:19:43 -07:00
Tom Preston-Werner 46a2c60505 Post.url 2008-10-19 20:18:05 -07:00
Tom Preston-Werner 6c0eeb573e read posts 2008-10-19 20:12:49 -07:00
Tom Preston-Werner 6fb91f4f7d cleanup and tests 2008-10-19 19:45:47 -07:00
Tom Preston-Werner d189e05d23 first commit 2008-10-19 19:07:26 -07:00