jekyll 2.0.0.alpha.3 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CONTRIBUTING.markdown +1 -1
- data/History.markdown +10 -0
- data/features/collections.feature +49 -15
- data/features/create_sites.feature +16 -16
- data/features/data.feature +4 -4
- data/features/drafts.feature +4 -4
- data/features/embed_filters.feature +6 -6
- data/features/frontmatter_defaults.feature +79 -0
- data/features/include_tag.feature +4 -4
- data/features/markdown.feature +4 -4
- data/features/pagination.feature +3 -3
- data/features/permalinks.feature +8 -8
- data/features/post_data.feature +18 -18
- data/features/post_excerpts.feature +3 -3
- data/features/site_configuration.feature +21 -21
- data/features/site_data.feature +11 -11
- data/features/step_definitions/jekyll_steps.rb +5 -18
- data/features/support/env.rb +2 -15
- data/lib/jekyll.rb +2 -0
- data/lib/jekyll/collection.rb +30 -4
- data/lib/jekyll/configuration.rb +2 -1
- data/lib/jekyll/convertible.rb +15 -1
- data/lib/jekyll/document.rb +11 -7
- data/lib/jekyll/filters.rb +1 -1
- data/lib/jekyll/frontmatter_defaults.rb +148 -0
- data/lib/jekyll/liquid_extensions.rb +22 -0
- data/lib/jekyll/page.rb +5 -0
- data/lib/jekyll/post.rb +12 -0
- data/lib/jekyll/site.rb +42 -27
- data/lib/jekyll/version.rb +1 -1
- data/script/test +11 -0
- data/site/docs/collections.md +78 -5
- data/site/docs/configuration.md +49 -0
- data/site/docs/frontmatter.md +10 -0
- data/site/docs/plugins.md +1 -0
- data/site/docs/posts.md +9 -0
- data/site/docs/sites.md +2 -2
- data/site/docs/templates.md +1 -1
- data/test/test_collections.rb +50 -4
- data/test/test_filters.rb +4 -0
- data/test/test_liquid_extensions.rb +31 -0
- data/test/test_utils.rb +1 -0
- metadata +9 -2
@@ -18,7 +18,7 @@ Feature: Include tags
|
|
18
18
|
| 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' %} |
|
19
19
|
| Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
|
20
20
|
| Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
|
21
|
-
When I run jekyll
|
21
|
+
When I run jekyll build
|
22
22
|
Then the _site directory should exist
|
23
23
|
And I should see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/include-files.html"
|
24
24
|
And I should not see "myparam" in "_site/2013/03/21/ignore-params-if-unused.html"
|
@@ -43,7 +43,7 @@ Feature: Include tags
|
|
43
43
|
| include_file1 | snippet.html |
|
44
44
|
| include_file2 | parametrized.html |
|
45
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
|
46
|
+
When I run jekyll build
|
47
47
|
Then the _site directory should exist
|
48
48
|
And I should see "a snippet that works with parameters" in "_site/index.html"
|
49
49
|
|
@@ -52,7 +52,7 @@ Feature: Include tags
|
|
52
52
|
And I have an "_includes/one.html" file that contains "one"
|
53
53
|
And I have an "_includes/two.html" file that contains "two"
|
54
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
|
55
|
+
When I run jekyll build
|
56
56
|
Then the _site directory should exist
|
57
57
|
And I should see "one two" in "_site/index.html"
|
58
58
|
|
@@ -63,6 +63,6 @@ Feature: Include tags
|
|
63
63
|
| key | value |
|
64
64
|
| include_file | one |
|
65
65
|
And I have an "index.html" page that contains "{% include {{ site.include_file | append: '.html' }} %}"
|
66
|
-
When I run jekyll
|
66
|
+
When I run jekyll build
|
67
67
|
Then the _site directory should exist
|
68
68
|
And I should see "one included" in "_site/index.html"
|
data/features/markdown.feature
CHANGED
@@ -10,7 +10,7 @@ Feature: Markdown
|
|
10
10
|
And I have the following post:
|
11
11
|
| title | date | content | type |
|
12
12
|
| Hackers | 2009-03-27 | # My Title | markdown |
|
13
|
-
When I run jekyll
|
13
|
+
When I run jekyll build
|
14
14
|
Then the _site directory should exist
|
15
15
|
And I should see "Index" in "_site/index.html"
|
16
16
|
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/2009/03/27/hackers.html"
|
@@ -23,7 +23,7 @@ Feature: Markdown
|
|
23
23
|
And I have the following post:
|
24
24
|
| title | date | content | type |
|
25
25
|
| Hackers | 2009-03-27 | # My Title | markdown |
|
26
|
-
When I run jekyll
|
26
|
+
When I run jekyll build
|
27
27
|
Then the _site directory should exist
|
28
28
|
And I should see "Index" in "_site/index.html"
|
29
29
|
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
|
@@ -42,7 +42,7 @@ Feature: Markdown
|
|
42
42
|
My awesome code
|
43
43
|
```
|
44
44
|
"""
|
45
|
-
When I run jekyll
|
45
|
+
When I run jekyll build
|
46
46
|
Then the _site directory should exist
|
47
47
|
And I should see "My awesome code" in "_site/index.html"
|
48
48
|
And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
|
@@ -61,7 +61,7 @@ Feature: Markdown
|
|
61
61
|
puts "My awesome string"
|
62
62
|
```
|
63
63
|
"""
|
64
|
-
When I run jekyll
|
64
|
+
When I run jekyll build
|
65
65
|
Then the _site directory should exist
|
66
66
|
And I should see "My awesome string" in "_site/index.html"
|
67
67
|
And I should see "<pre class="ruby"><code class="ruby">\nputs "My awesome string"\n</code></pre>" in "_site/index.html"
|
data/features/pagination.feature
CHANGED
@@ -14,7 +14,7 @@ Feature: Site pagination
|
|
14
14
|
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
|
15
15
|
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
|
16
16
|
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
|
17
|
-
When I run jekyll
|
17
|
+
When I run jekyll build
|
18
18
|
Then the _site/page<exist> directory should exist
|
19
19
|
And the "_site/page<exist>/index.html" file should exist
|
20
20
|
And I should see "<posts>" in "_site/page<exist>/index.html"
|
@@ -41,7 +41,7 @@ Feature: Site pagination
|
|
41
41
|
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
|
42
42
|
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
|
43
43
|
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
|
44
|
-
When I run jekyll
|
44
|
+
When I run jekyll build
|
45
45
|
Then the _site/blog/page-<exist> directory should exist
|
46
46
|
And the "_site/blog/page-<exist>/index.html" file should exist
|
47
47
|
And I should see "<posts>" in "_site/blog/page-<exist>/index.html"
|
@@ -69,7 +69,7 @@ Feature: Site pagination
|
|
69
69
|
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
|
70
70
|
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
|
71
71
|
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
|
72
|
-
When I run jekyll
|
72
|
+
When I run jekyll build
|
73
73
|
Then the _site/blog/page/<exist> directory should exist
|
74
74
|
And the "_site/blog/page/<exist>/index.html" file should exist
|
75
75
|
And I should see "<posts>" in "_site/blog/page/<exist>/index.html"
|
data/features/permalinks.feature
CHANGED
@@ -9,7 +9,7 @@ Feature: Fancy permalinks
|
|
9
9
|
| title | date | content |
|
10
10
|
| None Permalink Schema | 2009-03-27 | Totally nothing. |
|
11
11
|
And I have a configuration file with "permalink" set to "none"
|
12
|
-
When I run jekyll
|
12
|
+
When I run jekyll build
|
13
13
|
Then the _site directory should exist
|
14
14
|
And I should see "Totally nothing." in "_site/none-permalink-schema.html"
|
15
15
|
|
@@ -19,7 +19,7 @@ Feature: Fancy permalinks
|
|
19
19
|
| title | date | content |
|
20
20
|
| Pretty Permalink Schema | 2009-03-27 | Totally wordpress. |
|
21
21
|
And I have a configuration file with "permalink" set to "pretty"
|
22
|
-
When I run jekyll
|
22
|
+
When I run jekyll build
|
23
23
|
Then the _site directory should exist
|
24
24
|
And I should see "Totally wordpress." in "_site/2009/03/27/pretty-permalink-schema/index.html"
|
25
25
|
|
@@ -28,7 +28,7 @@ Feature: Fancy permalinks
|
|
28
28
|
And I have an "awesome.html" page that contains "Totally awesome"
|
29
29
|
And I have an "sitemap.xml" page that contains "Totally uhm, sitemap"
|
30
30
|
And I have a configuration file with "permalink" set to "pretty"
|
31
|
-
When I run jekyll
|
31
|
+
When I run jekyll build
|
32
32
|
Then the _site directory should exist
|
33
33
|
And I should see "Totally index" in "_site/index.html"
|
34
34
|
And I should see "Totally awesome" in "_site/awesome/index.html"
|
@@ -40,7 +40,7 @@ Feature: Fancy permalinks
|
|
40
40
|
| title | category | date | content |
|
41
41
|
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
|
42
42
|
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
|
43
|
-
When I run jekyll
|
43
|
+
When I run jekyll build
|
44
44
|
Then the _site directory should exist
|
45
45
|
And I should see "Totally custom." in "_site/blog/2009/03/27/custom-permalink-schema/index.html"
|
46
46
|
|
@@ -50,7 +50,7 @@ Feature: Fancy permalinks
|
|
50
50
|
| title | category | date | content |
|
51
51
|
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
|
52
52
|
And I have a configuration file with "permalink" set to "/:categories/:title.html"
|
53
|
-
When I run jekyll
|
53
|
+
When I run jekyll build
|
54
54
|
Then the _site directory should exist
|
55
55
|
And I should see "Totally custom." in "_site/stuff/custom-permalink-schema.html"
|
56
56
|
|
@@ -60,7 +60,7 @@ Feature: Fancy permalinks
|
|
60
60
|
| title | category | date | content |
|
61
61
|
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
|
62
62
|
And I have a configuration file with "permalink" set to "/:month-:day-:year/:title.html"
|
63
|
-
When I run jekyll
|
63
|
+
When I run jekyll build
|
64
64
|
Then the _site directory should exist
|
65
65
|
And I should see "Totally custom." in "_site/03-27-2009/custom-permalink-schema.html"
|
66
66
|
|
@@ -69,7 +69,7 @@ Feature: Fancy permalinks
|
|
69
69
|
And I have the following post:
|
70
70
|
| title | date | permalink | content |
|
71
71
|
| Some post | 2013-04-14 | /custom/posts/1 | bla bla |
|
72
|
-
When I run jekyll
|
72
|
+
When I run jekyll build
|
73
73
|
Then the _site directory should exist
|
74
74
|
And the _site/custom/posts/1 directory should exist
|
75
75
|
And I should see "bla bla" in "_site/custom/posts/1/index.html"
|
@@ -79,7 +79,7 @@ Feature: Fancy permalinks
|
|
79
79
|
And I have the following post:
|
80
80
|
| title | date | permalink | content |
|
81
81
|
| Some post | 2013-04-14 | /custom/posts/some.html | bla bla |
|
82
|
-
When I run jekyll
|
82
|
+
When I run jekyll build
|
83
83
|
Then the _site directory should exist
|
84
84
|
And the _site/custom/posts directory should exist
|
85
85
|
And I should see "bla bla" in "_site/custom/posts/some.html"
|
data/features/post_data.feature
CHANGED
@@ -10,7 +10,7 @@ Feature: Post data
|
|
10
10
|
| title | date | layout | content |
|
11
11
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
12
12
|
And I have a simple layout that contains "Post title: {{ page.title }}"
|
13
|
-
When I run jekyll
|
13
|
+
When I run jekyll build
|
14
14
|
Then the _site directory should exist
|
15
15
|
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
|
16
16
|
|
@@ -21,7 +21,7 @@ Feature: Post data
|
|
21
21
|
| title | date | layout | content |
|
22
22
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
23
23
|
And I have a simple layout that contains "Post url: {{ page.url }}"
|
24
|
-
When I run jekyll
|
24
|
+
When I run jekyll build
|
25
25
|
Then the _site directory should exist
|
26
26
|
And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
|
27
27
|
|
@@ -32,7 +32,7 @@ Feature: Post data
|
|
32
32
|
| title | date | layout | content |
|
33
33
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
34
34
|
And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
|
35
|
-
When I run jekyll
|
35
|
+
When I run jekyll build
|
36
36
|
Then the _site directory should exist
|
37
37
|
And I should see "Post date: 27 Mar 2009" in "_site/2009/03/27/star-wars.html"
|
38
38
|
|
@@ -43,7 +43,7 @@ Feature: Post data
|
|
43
43
|
| title | date | layout | content |
|
44
44
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
45
45
|
And I have a simple layout that contains "Post id: {{ page.id }}"
|
46
|
-
When I run jekyll
|
46
|
+
When I run jekyll build
|
47
47
|
Then the _site directory should exist
|
48
48
|
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
|
49
49
|
|
@@ -54,7 +54,7 @@ Feature: Post data
|
|
54
54
|
| title | date | layout | content |
|
55
55
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
56
56
|
And I have a simple layout that contains "Post content: {{ content }}"
|
57
|
-
When I run jekyll
|
57
|
+
When I run jekyll build
|
58
58
|
Then the _site directory should exist
|
59
59
|
And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
|
60
60
|
|
@@ -66,7 +66,7 @@ Feature: Post data
|
|
66
66
|
| title | date | layout | content |
|
67
67
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
68
68
|
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
69
|
-
When I run jekyll
|
69
|
+
When I run jekyll build
|
70
70
|
Then the _site directory should exist
|
71
71
|
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
72
72
|
|
@@ -77,7 +77,7 @@ Feature: Post data
|
|
77
77
|
| title | date | layout | tag | content |
|
78
78
|
| Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
|
79
79
|
And I have a simple layout that contains "Post tags: {{ page.tags }}"
|
80
|
-
When I run jekyll
|
80
|
+
When I run jekyll build
|
81
81
|
Then the _site directory should exist
|
82
82
|
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
|
83
83
|
|
@@ -90,7 +90,7 @@ Feature: Post data
|
|
90
90
|
| title | date | layout | content |
|
91
91
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
92
92
|
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
93
|
-
When I run jekyll
|
93
|
+
When I run jekyll build
|
94
94
|
Then the _site directory should exist
|
95
95
|
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
96
96
|
|
@@ -103,7 +103,7 @@ Feature: Post data
|
|
103
103
|
| title | date | layout | content |
|
104
104
|
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
105
105
|
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
106
|
-
When I run jekyll
|
106
|
+
When I run jekyll build
|
107
107
|
Then the _site directory should exist
|
108
108
|
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
109
109
|
|
@@ -114,7 +114,7 @@ Feature: Post data
|
|
114
114
|
| title | date | layout | category | content |
|
115
115
|
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
|
116
116
|
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
117
|
-
When I run jekyll
|
117
|
+
When I run jekyll build
|
118
118
|
Then the _site directory should exist
|
119
119
|
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
120
120
|
|
@@ -125,7 +125,7 @@ Feature: Post data
|
|
125
125
|
| title | date | layout | category | content |
|
126
126
|
| Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. |
|
127
127
|
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
128
|
-
When I run jekyll
|
128
|
+
When I run jekyll build
|
129
129
|
Then the _site directory should exist
|
130
130
|
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
131
131
|
|
@@ -136,7 +136,7 @@ Feature: Post data
|
|
136
136
|
| title | date | layout | category | content |
|
137
137
|
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
|
138
138
|
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
139
|
-
When I run jekyll
|
139
|
+
When I run jekyll build
|
140
140
|
Then the _site directory should exist
|
141
141
|
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
142
142
|
|
@@ -148,7 +148,7 @@ Feature: Post data
|
|
148
148
|
| Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
|
149
149
|
| Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. |
|
150
150
|
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
151
|
-
When I run jekyll
|
151
|
+
When I run jekyll build
|
152
152
|
Then the _site directory should exist
|
153
153
|
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
154
154
|
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2013/03/17/star-trek.html"
|
@@ -158,7 +158,7 @@ Feature: Post data
|
|
158
158
|
And I have the following post in "<dir>":
|
159
159
|
| title | type | date | content |
|
160
160
|
| my-post | html | 2013-04-12 | Source path: {{ page.path }} |
|
161
|
-
When I run jekyll
|
161
|
+
When I run jekyll build
|
162
162
|
Then the _site directory should exist
|
163
163
|
And I should see "Source path: <path_prefix>_posts/2013-04-12-my-post.html" in "_site/<dir>/2013/04/12/my-post.html"
|
164
164
|
|
@@ -173,7 +173,7 @@ Feature: Post data
|
|
173
173
|
And I have the following post:
|
174
174
|
| title | date | path | content |
|
175
175
|
| override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
|
176
|
-
When I run jekyll
|
176
|
+
When I run jekyll build
|
177
177
|
Then the _site directory should exist
|
178
178
|
And I should see "Custom path: override-path.html" in "_site/2013/04/12/override.html"
|
179
179
|
|
@@ -183,7 +183,7 @@ Feature: Post data
|
|
183
183
|
And I have the following post:
|
184
184
|
| title | date | layout | published | content |
|
185
185
|
| Star Wars | 2009-03-27 | simple | false | Luke, I am your father. |
|
186
|
-
When I run jekyll
|
186
|
+
When I run jekyll build
|
187
187
|
Then the _site directory should exist
|
188
188
|
And the "_site/2009/03/27/star-wars.html" file should not exist
|
189
189
|
And I should see "Published!" in "_site/index.html"
|
@@ -195,7 +195,7 @@ Feature: Post data
|
|
195
195
|
| title | date | layout | author | content |
|
196
196
|
| Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. |
|
197
197
|
And I have a simple layout that contains "Post author: {{ page.author }}"
|
198
|
-
When I run jekyll
|
198
|
+
When I run jekyll build
|
199
199
|
Then the _site directory should exist
|
200
200
|
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
|
201
201
|
|
@@ -208,7 +208,7 @@ Feature: Post data
|
|
208
208
|
| Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. |
|
209
209
|
| Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby |
|
210
210
|
And I have a ordered layout that contains "Previous post: {{ page.previous.title }} and next post: {{ page.next.title }}"
|
211
|
-
When I run jekyll
|
211
|
+
When I run jekyll build
|
212
212
|
Then the _site directory should exist
|
213
213
|
And I should see "next post: Some like it hot" in "_site/2009/03/27/star-wars.html"
|
214
214
|
And I should see "Previous post: Some like it hot" in "_site/2009/05/27/terminator.html"
|
@@ -11,7 +11,7 @@ Feature: Post excerpts
|
|
11
11
|
And I have the following posts:
|
12
12
|
| title | date | layout | content |
|
13
13
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
14
|
-
When I run jekyll
|
14
|
+
When I run jekyll build
|
15
15
|
Then the _site directory should exist
|
16
16
|
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
|
17
17
|
|
@@ -23,7 +23,7 @@ Feature: Post excerpts
|
|
23
23
|
And I have the following posts:
|
24
24
|
| title | date | layout | content |
|
25
25
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
26
|
-
When I run jekyll
|
26
|
+
When I run jekyll build
|
27
27
|
Then the _site directory should exist
|
28
28
|
And the _site/2007 directory should exist
|
29
29
|
And the _site/2007/12 directory should exist
|
@@ -40,7 +40,7 @@ Feature: Post excerpts
|
|
40
40
|
And I have the following posts:
|
41
41
|
| title | date | layout | content |
|
42
42
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
43
|
-
When I run jekyll
|
43
|
+
When I run jekyll build
|
44
44
|
Then the _site directory should exist
|
45
45
|
And the _site/2007 directory should exist
|
46
46
|
And the _site/2007/12 directory should exist
|
@@ -7,14 +7,14 @@ Feature: Site configuration
|
|
7
7
|
Given I have a blank site in "_sourcedir"
|
8
8
|
And I have an "_sourcedir/index.html" file that contains "Changing source directory"
|
9
9
|
And I have a configuration file with "source" set to "_sourcedir"
|
10
|
-
When I run jekyll
|
10
|
+
When I run jekyll build
|
11
11
|
Then the _site directory should exist
|
12
12
|
And I should see "Changing source directory" in "_site/index.html"
|
13
13
|
|
14
14
|
Scenario: Change destination directory
|
15
15
|
Given I have an "index.html" file that contains "Changing destination directory"
|
16
16
|
And I have a configuration file with "destination" set to "_mysite"
|
17
|
-
When I run jekyll
|
17
|
+
When I run jekyll build
|
18
18
|
Then the _mysite directory should exist
|
19
19
|
And I should see "Changing destination directory" in "_mysite/index.html"
|
20
20
|
|
@@ -25,7 +25,7 @@ Feature: Site configuration
|
|
25
25
|
| key | value |
|
26
26
|
| source | <source> |
|
27
27
|
| destination | <dest> |
|
28
|
-
When I run jekyll
|
28
|
+
When I run jekyll build
|
29
29
|
Then the <source> directory should exist
|
30
30
|
And the "<dest>/index.html" file should <file_exist> exist
|
31
31
|
And I should see "markdown" in "<source>/index.md"
|
@@ -44,7 +44,7 @@ Feature: Site configuration
|
|
44
44
|
And I have an "README" file that contains "I want to be excluded"
|
45
45
|
And I have an "index.html" file that contains "I want to be included"
|
46
46
|
And I have a configuration file with "exclude" set to "['Rakefile', 'README']"
|
47
|
-
When I run jekyll
|
47
|
+
When I run jekyll build
|
48
48
|
Then I should see "I want to be included" in "_site/index.html"
|
49
49
|
And the "_site/Rakefile" file should not exist
|
50
50
|
And the "_site/README" file should not exist
|
@@ -57,7 +57,7 @@ Feature: Site configuration
|
|
57
57
|
| value |
|
58
58
|
| README |
|
59
59
|
| Rakefile |
|
60
|
-
When I run jekyll
|
60
|
+
When I run jekyll build
|
61
61
|
Then I should see "I want to be included" in "_site/index.html"
|
62
62
|
And the "_site/Rakefile" file should not exist
|
63
63
|
And the "_site/README" file should not exist
|
@@ -65,34 +65,34 @@ Feature: Site configuration
|
|
65
65
|
Scenario: Use RDiscount for markup
|
66
66
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
67
67
|
And I have a configuration file with "markdown" set to "rdiscount"
|
68
|
-
When I run jekyll
|
68
|
+
When I run jekyll build
|
69
69
|
Then the _site directory should exist
|
70
70
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
71
71
|
|
72
72
|
Scenario: Use Kramdown for markup
|
73
73
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
74
74
|
And I have a configuration file with "markdown" set to "kramdown"
|
75
|
-
When I run jekyll
|
75
|
+
When I run jekyll build
|
76
76
|
Then the _site directory should exist
|
77
77
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
78
78
|
|
79
79
|
Scenario: Use Redcarpet for markup
|
80
80
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
81
81
|
And I have a configuration file with "markdown" set to "redcarpet"
|
82
|
-
When I run jekyll
|
82
|
+
When I run jekyll build
|
83
83
|
Then the _site directory should exist
|
84
84
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
85
85
|
|
86
86
|
Scenario: Use Maruku for markup
|
87
87
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
88
88
|
And I have a configuration file with "markdown" set to "maruku"
|
89
|
-
When I run jekyll
|
89
|
+
When I run jekyll build
|
90
90
|
Then the _site directory should exist
|
91
91
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
92
92
|
|
93
93
|
Scenario: Highlight code with pygments
|
94
94
|
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
95
|
-
When I run jekyll
|
95
|
+
When I run jekyll build
|
96
96
|
Then the _site directory should exist
|
97
97
|
And I should see "Hello world!" in "_site/index.html"
|
98
98
|
And I should see "class=\"highlight\"" in "_site/index.html"
|
@@ -100,7 +100,7 @@ Feature: Site configuration
|
|
100
100
|
Scenario: Highlight code with rouge
|
101
101
|
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
102
102
|
And I have a configuration file with "highlighter" set to "rouge"
|
103
|
-
When I run jekyll
|
103
|
+
When I run jekyll build
|
104
104
|
Then the _site directory should exist
|
105
105
|
And I should see "Hello world!" in "_site/index.html"
|
106
106
|
And I should see "class=\"highlight\"" in "_site/index.html"
|
@@ -119,7 +119,7 @@ Feature: Site configuration
|
|
119
119
|
| title | date | layout | content |
|
120
120
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
121
121
|
| entry2 | 2020-01-31 | post | content for entry2. |
|
122
|
-
When I run jekyll
|
122
|
+
When I run jekyll build
|
123
123
|
Then the _site directory should exist
|
124
124
|
And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html"
|
125
125
|
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
@@ -139,7 +139,7 @@ Feature: Site configuration
|
|
139
139
|
| title | date | layout | content |
|
140
140
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
141
141
|
| entry2 | 2020-01-31 | post | content for entry2. |
|
142
|
-
When I run jekyll
|
142
|
+
When I run jekyll build
|
143
143
|
Then the _site directory should exist
|
144
144
|
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
|
145
145
|
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
@@ -158,7 +158,7 @@ Feature: Site configuration
|
|
158
158
|
| title | date | layout | content |
|
159
159
|
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
|
160
160
|
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
|
161
|
-
When I run jekyll
|
161
|
+
When I run jekyll build
|
162
162
|
Then the _site directory should exist
|
163
163
|
And I should see "Page Layout: 2" in "_site/index.html"
|
164
164
|
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"
|
@@ -177,7 +177,7 @@ Feature: Site configuration
|
|
177
177
|
| title | date | layout | content |
|
178
178
|
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
|
179
179
|
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
|
180
|
-
When I run jekyll
|
180
|
+
When I run jekyll build
|
181
181
|
Then the _site directory should exist
|
182
182
|
And I should see "Page Layout: 2" in "_site/index.html"
|
183
183
|
And the "_site/2013/04/10/entry1.html" file should exist
|
@@ -195,7 +195,7 @@ Feature: Site configuration
|
|
195
195
|
| Apples | 2009-03-27 | An article about apples |
|
196
196
|
| Oranges | 2009-04-01 | An article about oranges |
|
197
197
|
| Bananas | 2009-04-05 | An article about bananas |
|
198
|
-
When I run jekyll
|
198
|
+
When I run jekyll build
|
199
199
|
Then the _site directory should exist
|
200
200
|
And the "_site/2009/04/05/bananas.html" file should exist
|
201
201
|
And the "_site/2009/04/01/oranges.html" file should exist
|
@@ -208,7 +208,7 @@ Feature: Site configuration
|
|
208
208
|
| value |
|
209
209
|
| .gitignore |
|
210
210
|
| .foo |
|
211
|
-
When I run jekyll
|
211
|
+
When I run jekyll build
|
212
212
|
Then the _site directory should exist
|
213
213
|
And I should see ".DS_Store" in "_site/.gitignore"
|
214
214
|
And the "_site/.htaccess" file should not exist
|
@@ -228,7 +228,7 @@ Feature: Site configuration
|
|
228
228
|
| title | date | layout | content |
|
229
229
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
230
230
|
| entry2 | 2020-01-31 | post | content for entry2. |
|
231
|
-
When I run jekyll
|
231
|
+
When I run jekyll build
|
232
232
|
Then the _site directory should exist
|
233
233
|
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
|
234
234
|
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
@@ -237,7 +237,7 @@ Feature: Site configuration
|
|
237
237
|
Scenario: Add a gem-based plugin
|
238
238
|
Given I have an "index.html" file that contains "Whatever"
|
239
239
|
And I have a configuration file with "gems" set to "[jekyll_test_plugin]"
|
240
|
-
When I run jekyll
|
240
|
+
When I run jekyll build
|
241
241
|
Then the _site directory should exist
|
242
242
|
And I should see "Whatever" in "_site/index.html"
|
243
243
|
And I should see "this is a test" in "_site/test.txt"
|
@@ -248,7 +248,7 @@ Feature: Site configuration
|
|
248
248
|
| key | value |
|
249
249
|
| gems | [jekyll_test_plugin] |
|
250
250
|
| whitelist | [] |
|
251
|
-
When I run jekyll
|
251
|
+
When I run jekyll build --safe
|
252
252
|
Then the _site directory should exist
|
253
253
|
And I should see "Whatever" in "_site/index.html"
|
254
254
|
And the "_site/test.txt" file should not exist
|
@@ -259,7 +259,7 @@ Feature: Site configuration
|
|
259
259
|
| key | value |
|
260
260
|
| gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] |
|
261
261
|
| whitelist | [jekyll_test_plugin] |
|
262
|
-
When I run jekyll
|
262
|
+
When I run jekyll build --safe
|
263
263
|
Then the _site directory should exist
|
264
264
|
And I should see "Whatever" in "_site/index.html"
|
265
265
|
And the "_site/test.txt" file should exist
|