tigefa 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. data/History.markdown +0 -144
  2. data/LICENSE +1 -1
  3. data/README.markdown +6 -10
  4. data/Rakefile +6 -13
  5. data/bin/tigefa +22 -26
  6. data/features/create_sites.feature +0 -11
  7. data/features/include_tag.feature +0 -22
  8. data/features/markdown.feature +4 -41
  9. data/features/site_configuration.feature +4 -33
  10. data/features/site_data.feature +4 -4
  11. data/features/step_definitions/{tigefa_steps.rb → jekyll_steps.rb} +17 -32
  12. data/features/support/env.rb +2 -38
  13. data/lib/site_template/_config.yml +2 -2
  14. data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +1 -0
  15. data/lib/site_template/css/main.css +15 -15
  16. data/lib/tigefa.rb +2 -5
  17. data/lib/tigefa/cleaner.rb +8 -8
  18. data/lib/tigefa/commands/build.rb +8 -14
  19. data/lib/tigefa/commands/new.rb +1 -1
  20. data/lib/tigefa/commands/serve.rb +0 -2
  21. data/lib/tigefa/configuration.rb +5 -21
  22. data/lib/tigefa/converters/markdown/kramdown_parser.rb +1 -1
  23. data/lib/tigefa/converters/markdown/maruku_parser.rb +1 -6
  24. data/lib/tigefa/convertible.rb +6 -17
  25. data/lib/tigefa/core_ext.rb +0 -19
  26. data/lib/tigefa/deprecator.rb +1 -1
  27. data/lib/tigefa/filters.rb +2 -12
  28. data/lib/tigefa/generators/pagination.rb +6 -9
  29. data/lib/tigefa/page.rb +1 -1
  30. data/lib/tigefa/post.rb +4 -4
  31. data/lib/tigefa/related_posts.rb +1 -1
  32. data/lib/tigefa/site.rb +50 -90
  33. data/lib/tigefa/stevenson.rb +4 -4
  34. data/lib/tigefa/tags/gist.rb +1 -9
  35. data/lib/tigefa/tags/highlight.rb +1 -1
  36. data/lib/tigefa/tags/include.rb +32 -75
  37. data/lib/tigefa/tags/post_url.rb +4 -6
  38. data/lib/tigefa/url.rb +0 -2
  39. data/site/_includes/docs_contents.html +1 -1
  40. data/site/_includes/docs_contents_mobile.html +1 -1
  41. data/site/_includes/top.html +1 -1
  42. data/site/docs/configuration.md +0 -19
  43. data/site/docs/deployment-methods.md +3 -3
  44. data/site/docs/drafts.md +3 -4
  45. data/site/docs/history.md +3 -147
  46. data/site/docs/installation.md +0 -10
  47. data/site/docs/migrations.md +240 -3
  48. data/site/docs/pages.md +7 -7
  49. data/site/docs/pagination.md +37 -16
  50. data/site/docs/plugins.md +7 -72
  51. data/site/docs/posts.md +1 -1
  52. data/site/docs/structure.md +0 -17
  53. data/site/docs/templates.md +7 -40
  54. data/site/docs/upgrading.md +3 -3
  55. data/site/docs/usage.md +1 -1
  56. data/site/docs/variables.md +2 -2
  57. data/test/helper.rb +1 -4
  58. data/test/test_configuration.rb +7 -16
  59. data/test/test_convertible.rb +1 -1
  60. data/test/test_excerpt.rb +3 -3
  61. data/test/test_filters.rb +0 -11
  62. data/test/test_generated_site.rb +1 -1
  63. data/test/test_kramdown.rb +5 -32
  64. data/test/test_new_command.rb +1 -1
  65. data/test/test_page.rb +0 -10
  66. data/test/test_post.rb +1 -12
  67. data/test/test_redcloth.rb +3 -3
  68. data/test/test_site.rb +64 -58
  69. data/test/test_tags.rb +35 -68
  70. data/tigefa.gemspec +15 -39
  71. metadata +101 -126
  72. checksums.yaml +0 -7
  73. data/features/data.feature +0 -65
  74. data/lib/tigefa/entry_filter.rb +0 -35
  75. data/site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown +0 -19
  76. data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +0 -43
  77. data/site/_posts/2013-11-26-jekyll-1-3-1-released.markdown +0 -21
  78. data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +0 -30
  79. data/site/_posts/2013-12-16-jekyll-1-4-2-released.markdown +0 -18
  80. data/site/_posts/2014-01-13-jekyll-1-4-3-released.markdown +0 -27
  81. data/site/docs/datafiles.md +0 -63
  82. data/test/source/_config.dev.toml +0 -2
  83. data/test/source/_data/languages.yml +0 -2
  84. data/test/source/_data/members.yaml +0 -7
  85. data/test/source/_data/products.yml +0 -1
  86. data/test/source/_includes/tmp +0 -1
  87. data/test/source/_layouts/post/simple.html +0 -1
  88. data/test/source/_posts/2014-01-06-permalink-traversal.md +0 -5
  89. data/test/source/exploit.md +0 -5
  90. data/test/source/products.yml +0 -4
  91. data/test/source/symlink-test/_data +0 -1
  92. data/test/test_entry_filter.rb +0 -74
data/History.markdown CHANGED
@@ -10,150 +10,6 @@
10
10
 
11
11
  ### Site Enhancements
12
12
 
13
- ## 1.4.3 / 2014-01-13
14
-
15
- ### Bug Fixes
16
-
17
- * Patch show-stopping security vulnerabilities (#1944)
18
-
19
- ## 1.4.2 / 2013-12-16
20
-
21
- ### Bug Fixes
22
- * Turn on Maruku fenced code blocks by default (#1830)
23
-
24
- ## 1.4.1 / 2013-12-09
25
-
26
- ### Bug Fixes
27
- * Don't allow nil entries when loading posts (#1796)
28
-
29
- ## 1.4.0 / 2013-12-07
30
-
31
- ### Major Enhancements
32
- * Add support for TOML config files (#1765)
33
-
34
- ### Minor Enhancements
35
- * Sort plugins as a way to establish a load order (#1682)
36
- * Update Maruku to 0.7.0 (#1775)
37
-
38
- ### Bug Fixes
39
- * Add a space between two words in a Pagination warning message (#1769)
40
- * Upgrade `toml` gem to `v0.1.0` to maintain compat with Ruby 1.8.7 (#1778)
41
-
42
- ### Development Fixes
43
- * Remove some whitespace in the code (#1755)
44
- * Remove some duplication in the reading of posts and drafts (#1779)
45
-
46
- ### Site Enhancements
47
- * Fixed case of a word in the Jekyll v1.3.0 release post (#1762)
48
- * Fixed the mime type for the favicon (#1772)
49
-
50
- ## 1.3.1 / 2013-11-26
51
-
52
- ### Minor Enhancements
53
- * Add a `--prefix` option to passthrough for the importers (#1669)
54
- * Push the paginator plugin lower in the plugin priority order so
55
- other plugins run before it (#1759)
56
-
57
- ### Bug Fixes
58
- * Fix the include tag when ran in a loop (#1726)
59
- * Fix errors when using `--watch` on 1.8.7 (#1730)
60
- * Specify where the include is called from if an included file is
61
- missing (#1746)
62
-
63
- ### Development Fixes
64
- * Extract `Site#filter_entries` into its own object (#1697)
65
- * Enable Travis' bundle caching (#1734)
66
- * Remove trailing whitespace in some files (#1736)
67
- * Fix a duplicate test name (#1754)
68
-
69
- ### Site Enhancements
70
- * Update link to example Rakefile to point to specific commit (#1741)
71
- * Fix drafts docs to indicate that draft time is based on file modification
72
- time, not `Time.now` (#1695)
73
- * Add `jekyll-monthly-archive-plugin` and `jekyll-category-archive-plugin` to
74
- list of third-party plugins (#1693)
75
- * Add `jekyll-asset-path-plugin` to list of third-party plugins (#1670)
76
- * Add `emoji-for-jekyll` to list of third-part plugins (#1708)
77
- * Fix previous section link on plugins page to point to pagination page (#1707)
78
- * Add `org-mode` converter plugin to third-party plugins (#1711)
79
- * Point "Blog migrations" page to http://import.jekyllrb.com (#1732)
80
- * Add docs for `post_url` when posts are in subdirectories (#1718)
81
- * Update the docs to point to `example.com` (#1448)
82
-
83
- ## 1.3.0 / 2013-11-04
84
-
85
- ### Major Enhancements
86
- * Add support for adding data as YAML files under a site's `_data`
87
- directory (#1003)
88
- * Allow variables to be used with `include` tags (#1495)
89
- * Allow using gems for plugin management (#1557)
90
-
91
- ### Minor Enhancements
92
- * Decrease the specificity in the site template CSS (#1574)
93
- * Add `encoding` configuration option (#1449)
94
- * Provide better error handling for Jekyll's custom Liquid tags
95
- (#1514)
96
- * If an included file causes a Liquid error, add the path to the
97
- include file that caused the error to the error message (#1596)
98
- * If a layout causes a Liquid error, change the error message so that
99
- we know it comes from the layout (#1601)
100
- * Update Kramdown dependency to `~> 1.2` (#1610)
101
- * Update `safe_yaml` dependency to `~> 0.9.7` (#1602)
102
- * Allow layouts to be in subfolders like includes (#1622)
103
- * Switch to listen for site watching while serving (#1589)
104
- * Add a `json` liquid filter to be used in sites (#1651)
105
- * Point people to the migration docs when the `jekyll-import` gem is
106
- missing (#1662)
107
-
108
- ### Bug Fixes
109
- * Fix up matching against source and destination when the two
110
- locations are similar (#1556)
111
- * Fix the missing `pathname` require in certain cases (#1255)
112
- * Use `+` instead of `Array#concat` when building `Post` attribute list (#1571)
113
- * Print server address when launching a server (#1586)
114
- * Downgrade to Maruku `~> 0.6.0` in order to avoid changes in rendering (#1598)
115
- * Fix error with failing include tag when variable was file name (#1613)
116
- * Downcase lexers before passing them to pygments (#1615)
117
- * Capitalize the short verbose switch because it conflicts with the
118
- built-in Commander switch (#1660)
119
- * Fix compatibility with 1.8.x (#1665)
120
- * Fix an error with the new file watching code due to library version
121
- incompatibilities (#1687)
122
-
123
- ### Development Fixes
124
- * Add coverage reporting with Coveralls (#1539)
125
- * Refactor the Liquid `include` tag (#1490)
126
- * Update launchy dependency to `~> 2.3` (#1608)
127
- * Update rr dependency to `~> 1.1` (#1604)
128
- * Update cucumber dependency to `~> 1.3` (#1607)
129
- * Update coveralls dependency to `~> 0.7.0` (#1606)
130
- * Update rake dependency to `~> 10.1` (#1603)
131
- * Clean up `site.rb` comments to be more concise/uniform (#1616)
132
- * Use the master branch for the build badge in the readme (#1636)
133
- * Refactor Site#render (#1638)
134
- * Remove duplication in command line options (#1637)
135
- * Add tests for all the coderay options (#1543)
136
- * Improve some of the cucumber test code (#1493)
137
- * Improve comparisons of timestamps by ignoring the seconds (#1582)
138
-
139
- ### Site Enhancements
140
- * Fix params for `JekyllImport::WordPress.process` arguments (#1554)
141
- * Add `jekyll-suggested-tweet` to list of third-party plugins (#1555)
142
- * Link to Liquid's docs for tags and filters (#1553)
143
- * Add note about installing Xcode on the Mac in the Installation docs (#1561)
144
- * Simplify/generalize pagination docs (#1577)
145
- * Add documentation for the new data sources feature (#1503)
146
- * Add more information on how to create generators (#1590, #1592)
147
- * Improve the instructions for mimicking GitHub Flavored Markdown
148
- (#1614)
149
- * Add `jekyll-import` warning note of missing dependencies (#1626)
150
- * Fix grammar in the Usage section (#1635)
151
- * Add documentation for the use of gems as plugins (#1656)
152
- * Document the existence of a few additional plugins (#1405)
153
- * Document that the `date_to_string` always returns a two digit day (#1663)
154
- * Fix navigation in the "Working with Drafts" page (#1667)
155
- * Fix an error with the data documentation (#1691)
156
-
157
13
  ## 1.2.1 / 2013-09-14
158
14
 
159
15
  ### Minor Enhancements
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2008 Tom Preston-Werner
3
+ Copyright (c) 2008 sugeng tigefa <sugeng@tigefa.org>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the 'Software'), to deal
data/README.markdown CHANGED
@@ -1,14 +1,10 @@
1
- # Tigefa Gem
1
+ # tigefa as Jekyll
2
2
 
3
- > This Generator site jekyll powered but command line changed from `jekyll new <site name>` replaced `tigefa new <site name>`
4
- > Hand from hand, eye from eye.
5
- >> Thanks for visiting.
3
+ [![Gem Version](https://badge.fury.io/rb/jekyll.png)](http://badge.fury.io/rb/jekyll)
6
4
 
7
- [![Gem Version](https://badge.fury.io/rb/tigefa.png)](http://badge.fury.io/rb/tigefa)
8
-
9
- [![Build Status](https://secure.travis-ci.org/tigefa4u/tigefa-gem.png?branch=master)](https://travis-ci.org/tigefa4u/tigefa-gem)
10
- [![Code Climate](https://codeclimate.com/github/tigefa4u/tigefa-gem.png)](https://codeclimate.com/github/tigefa4u/tigefa-gem)
11
- [![Coverage Status](https://coveralls.io/repos/tigefa4u/tigefa-gem/badge.png)](https://coveralls.io/r/tigefa4u/tigefa-gem)
5
+ [![Build Status](https://secure.travis-ci.org/mojombo/jekyll.png)](https://travis-ci.org/mojombo/jekyll)
6
+ [![Code Climate](https://codeclimate.com/github/mojombo/jekyll.png)](https://codeclimate.com/github/mojombo/jekyll)
7
+ [![Dependency Status](https://gemnasium.com/mojombo/jekyll.png)](https://gemnasium.com/mojombo/jekyll)
12
8
 
13
9
  By Tom Preston-Werner, Nick Quaranto, and many awesome contributors!
14
10
 
@@ -20,7 +16,7 @@ Jekyll is a simple, blog aware, static site generator. It takes a template direc
20
16
  * Read up about its [Usage](http://jekyllrb.com/docs/usage/) and [Configuration](http://jekyllrb.com/docs/configuration/)
21
17
  * Take a gander at some existing [Sites](http://wiki.github.com/mojombo/jekyll/sites)
22
18
  * Fork and [Contribute](http://jekyllrb.com/docs/contributing/) your own modifications
23
- * Have questions? Check out `#jekyll` on irc.freenode.net.
19
+ * Have questions? Check out `#tigefa` on irc.freenode.net.
24
20
 
25
21
  ## Diving In
26
22
 
data/Rakefile CHANGED
@@ -84,14 +84,7 @@ end
84
84
  #
85
85
  #############################################################################
86
86
 
87
- if RUBY_VERSION > '1.9' && ENV["TRAVIS"] == "true"
88
- require 'coveralls/rake/task'
89
- Coveralls::RakeTask.new
90
-
91
- task :default => [:test, :features, 'coveralls:push']
92
- else
93
- task :default => [:test, :features]
94
- end
87
+ task :default => [:test, :features]
95
88
 
96
89
  require 'rake/testtask'
97
90
  Rake::TestTask.new(:test) do |test|
@@ -150,7 +143,7 @@ namespace :site do
150
143
  # Generate the site in server mode.
151
144
  puts "Running Jekyll..."
152
145
  Dir.chdir("site") do
153
- sh "#{File.expand_path('bin/jekyll', File.dirname(__FILE__))} serve --watch"
146
+ sh "#{File.expand_path('bin/tigefa', File.dirname(__FILE__))} serve --watch"
154
147
  end
155
148
  end
156
149
 
@@ -218,7 +211,7 @@ namespace :site do
218
211
  abort "You seem to have misplaced your History.markdown file. I can haz?"
219
212
  end
220
213
  end
221
-
214
+
222
215
  namespace :releases do
223
216
  desc "Create new release post"
224
217
  task :new, :version do |t, args|
@@ -233,7 +226,7 @@ namespace :site do
233
226
  post.puts("title: 'Jekyll #{release} Released'")
234
227
  post.puts("date: #{Time.new.strftime('%Y-%m-%d %H:%M:%S %z')}")
235
228
  post.puts("author: ")
236
- post.puts("version: #{release}")
229
+ post.puts("version: #{version}")
237
230
  post.puts("categories: [release]")
238
231
  post.puts("---")
239
232
  post.puts
@@ -252,8 +245,8 @@ end
252
245
  #############################################################################
253
246
 
254
247
  task :release => :build do
255
- unless `git branch` =~ /^(\* master|\* v1-stable)$/
256
- puts "You must be on the master branch or the v1-stable branch to release!"
248
+ unless `git branch` =~ /^\* master$/
249
+ puts "You must be on the master branch to release!"
257
250
  exit!
258
251
  end
259
252
  sh "git commit --allow-empty -m 'Release #{version}'"
data/bin/tigefa CHANGED
@@ -10,7 +10,7 @@ Tigefa::Deprecator.process(ARGV)
10
10
 
11
11
  program :name, 'tigefa'
12
12
  program :version, Tigefa::VERSION
13
- program :description, 'tigefa is a blog-aware, static site generator in Ruby'
13
+ program :description, 'Tigefa is a blog-aware, static site generator in Ruby'
14
14
 
15
15
  default_command :default
16
16
 
@@ -20,12 +20,6 @@ global_option '--safe', 'Safe mode (defaults to false)'
20
20
  global_option '-p', '--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]', Array, 'Plugins directory (defaults to ./_plugins)'
21
21
  global_option '--layouts DIR', String, 'Layouts directory (defaults to ./_layouts)'
22
22
 
23
- # Option names don't always directly match the configuration value we'd like.
24
- # This method will rename options to match what Jekyll configuration expects.
25
- #
26
- # options - The Hash of options from Commander.
27
- #
28
- # Returns the normalized Hash.
29
23
  def normalize_options(options)
30
24
  if drafts_state = options.delete(:drafts)
31
25
  options[:show_drafts] = drafts_state
@@ -33,16 +27,6 @@ def normalize_options(options)
33
27
  options
34
28
  end
35
29
 
36
- def add_build_options(c)
37
- c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
38
- c.option '--future', 'Publishes posts with a future date'
39
- c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
40
- c.option '-w', '--watch', 'Watch for changes and rebuild'
41
- c.option '--lsi', 'Use LSI for improved related posts'
42
- c.option '-D', '--drafts', 'Render posts in the _drafts folder'
43
- c.option '-V', '--verbose', 'Print verbose output.'
44
- end
45
-
46
30
  command :default do |c|
47
31
  c.action do |args, options|
48
32
  if args.empty?
@@ -54,8 +38,8 @@ command :default do |c|
54
38
  end
55
39
 
56
40
  command :new do |c|
57
- c.syntax = tigefa new PATH'
58
- c.description = 'Creates a new tigefa site scaffold in PATH'
41
+ c.syntax = 'tigefa new PATH'
42
+ c.description = 'Creates a new Tigefa site scaffold in PATH'
59
43
 
60
44
  c.option '--force', 'Force creation even if PATH already exists'
61
45
  c.option '--blank', 'Creates scaffolding but with empty files'
@@ -69,7 +53,13 @@ command :build do |c|
69
53
  c.syntax = 'tigefa build [options]'
70
54
  c.description = 'Build your site'
71
55
 
72
- add_build_options(c)
56
+ c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
57
+ c.option '--future', 'Publishes posts with a future date'
58
+ c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
59
+ c.option '-w', '--watch', 'Watch for changes and rebuild'
60
+ c.option '--lsi', 'Use LSI for improved related posts'
61
+ c.option '-D', '--drafts', 'Render posts in the _drafts folder'
62
+ c.option '-v', '--verbose', 'Print verbose output.'
73
63
 
74
64
  c.action do |args, options|
75
65
  options = normalize_options(options.__hash__)
@@ -82,9 +72,15 @@ command :serve do |c|
82
72
  c.syntax = 'tigefa serve [options]'
83
73
  c.description = 'Serve your site locally'
84
74
 
85
- add_build_options(c)
86
-
75
+ c.option '--config CONFIG_FILE[,CONFIG_FILE2,...]', Array, 'Custom configuration file'
76
+ c.option '--future', 'Publishes posts with a future date'
77
+ c.option '--limit_posts MAX_POSTS', Integer, 'Limits the number of posts to parse and publish'
78
+ c.option '-w', '--watch', 'Watch for changes and rebuild'
79
+ c.option '--lsi', 'Use LSI for improved related posts'
87
80
  c.option '-B', '--detach', 'Run the server in the background (detach)'
81
+ c.option '-D', '--drafts', 'Render posts in the _drafts folder'
82
+ c.option '-v', '--verbose', 'Print verbose output.'
83
+
88
84
  c.option '-P', '--port [PORT]', 'Port to listen on'
89
85
  c.option '-H', '--host [HOST]', 'Host to bind to'
90
86
  c.option '-b', '--baseurl [URL]', 'Base URL'
@@ -116,7 +112,7 @@ alias_command :hyde, :doctor
116
112
 
117
113
  command :docs do |c|
118
114
  c.syntax = 'tigefa docs'
119
- c.description = "Launch local server with docs for Jekyll v#{Tigefa::VERSION}"
115
+ c.description = "Launch local server with docs for Tigefa v#{Tigefa::VERSION}"
120
116
 
121
117
  c.option '-p', '--port [PORT]', 'Port to listen on'
122
118
  c.option '-u', '--host [HOST]', 'Host to bind to'
@@ -135,7 +131,7 @@ end
135
131
 
136
132
  command :import do |c|
137
133
  c.syntax = 'tigefa import <platform> [options]'
138
- c.description = 'Import your old blog to Tigefa'
134
+ c.description = 'Import your old blog to Jekyll'
139
135
 
140
136
  c.option '--source STRING', 'Source file or URL to migrate from'
141
137
  c.option '--file STRING', 'File to migrate from'
@@ -143,14 +139,14 @@ command :import do |c|
143
139
  c.option '--user STRING', 'Username to use when migrating'
144
140
  c.option '--pass STRING', 'Password to use when migrating'
145
141
  c.option '--host STRING', 'Host address to use when migrating'
146
- c.option '--prefix STRING', 'Database table prefix to use when migrating'
147
142
 
148
143
  c.action do |args, options|
149
144
  begin
150
145
  require 'jekyll-import'
151
146
  rescue LoadError
152
147
  msg = "You must install the 'jekyll-import' gem before continuing.\n"
153
- msg += "* Please see the documentation at http://jekyllrb.com/docs/migrations/ for instructions.\n"
148
+ msg += "* Do this by running `gem install jekyll-import`.\n"
149
+ msg += "* Or if you need root privileges, run `sudo gem install jekyll-import`."
154
150
  abort msg
155
151
  end
156
152
  Tigefa::Commands::Import.process(args.first, options)
@@ -44,17 +44,6 @@ Feature: Create sites
44
44
  Then the _site directory should exist
45
45
  And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
46
46
 
47
- Scenario: Basic site with layout inside a subfolder and a post
48
- Given I have a _layouts directory
49
- And I have a _posts directory
50
- And I have the following posts:
51
- | title | date | layout | content |
52
- | Wargames | 2009-03-27 | post/simple | The only winning move is not to play. |
53
- And I have a post/simple layout that contains "Post Layout: {{ content }}"
54
- When I run jekyll
55
- Then the _site directory should exist
56
- And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
57
-
58
47
  Scenario: Basic site with layouts, pages, posts and files
59
48
  Given I have a _layouts directory
60
49
  And I have a page layout that contains "Page {{ page.title }}: {{ content }}"
@@ -33,25 +33,3 @@ Feature: Include tags
33
33
  And I should see "<li>param1_or_2 = value</li>" in "_site/2013/04/12/parameter-syntax.html"
34
34
  And I should see "<li>local = some text</li>" in "_site/2013/06/22/pass-a-variable.html"
35
35
  And I should see "<li>layout = default</li>" in "_site/2013/06/22/pass-a-variable.html"
36
-
37
- Scenario: Include a file from a variable
38
- Given I have an _includes directory
39
- And I have an "_includes/snippet.html" file that contains "a snippet"
40
- And I have an "_includes/parametrized.html" file that contains "works with {{include.what}}"
41
- And I have a configuration file with:
42
- | key | value |
43
- | include_file1 | snippet.html |
44
- | include_file2 | parametrized.html |
45
- And I have an "index.html" page that contains "{% include {{site.include_file1}} %} that {% include {{site.include_file2}} what='parameters' %}"
46
- When I run jekyll
47
- Then the _site directory should exist
48
- And I should see "a snippet that works with parameters" in "_site/index.html"
49
-
50
- Scenario: Include a variable file in a loop
51
- Given I have an _includes directory
52
- And I have an "_includes/one.html" file that contains "one"
53
- And I have an "_includes/two.html" file that contains "two"
54
- And I have an "index.html" page with files "[one.html, two.html]" that contains "{% for file in page.files %}{% include {{file}} %} {% endfor %}"
55
- When I run jekyll
56
- Then the _site directory should exist
57
- And I should see "one two" in "_site/index.html"
@@ -13,8 +13,8 @@ Feature: Markdown
13
13
  When I run jekyll
14
14
  Then the _site directory should exist
15
15
  And I should see "Index" in "_site/index.html"
16
- And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/2009/03/27/hackers.html"
17
- And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/index.html"
16
+ And I should see "<h1 id='my_title'>My Title</h1>" in "_site/2009/03/27/hackers.html"
17
+ And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
18
18
 
19
19
  Scenario: Markdown in pagination on index
20
20
  Given I have a configuration file with "paginate" set to "5"
@@ -26,42 +26,5 @@ Feature: Markdown
26
26
  When I run jekyll
27
27
  Then the _site directory should exist
28
28
  And I should see "Index" in "_site/index.html"
29
- And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/index.html"
30
-
31
- Scenario: Maruku fenced codeblocks
32
- Given I have a configuration file with "markdown" set to "maruku"
33
- And I have an "index.markdown" file with content:
34
- """
35
- ---
36
- title: My title
37
- ---
38
-
39
- # My title
40
-
41
- ```
42
- My awesome code
43
- ```
44
- """
45
- When I run jekyll
46
- Then the _site directory should exist
47
- And I should see "My awesome code" in "_site/index.html"
48
- And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
49
-
50
- Scenario: Maruku fenced codeblocks
51
- Given I have a configuration file with "markdown" set to "maruku"
52
- And I have an "index.markdown" file with content:
53
- """
54
- ---
55
- title: My title
56
- ---
57
-
58
- # My title
59
-
60
- ```ruby
61
- puts "My awesome string"
62
- ```
63
- """
64
- When I run jekyll
65
- Then the _site directory should exist
66
- And I should see "My awesome string" in "_site/index.html"
67
- And I should see "<pre class="ruby"><code class="ruby">\nputs &quot;My awesome string&quot;\n</code></pre>" in "_site/index.html"
29
+ And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
30
+