octopress-ink 1.0.0.alpha.33 → 1.0.0.alpha.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/assets/docs/food.html +0 -0
- data/assets/docs/index.html +0 -0
- data/lib/octopress-ink.rb +80 -27
- data/lib/octopress-ink/assets.rb +6 -1
- data/lib/octopress-ink/assets/asset.rb +54 -36
- data/lib/octopress-ink/assets/config.rb +10 -11
- data/lib/octopress-ink/assets/doc_page.rb +53 -0
- data/lib/octopress-ink/assets/file.rb +37 -0
- data/lib/octopress-ink/assets/javascript.rb +5 -1
- data/lib/octopress-ink/assets/layout.rb +8 -5
- data/lib/octopress-ink/assets/local_asset.rb +47 -0
- data/lib/octopress-ink/assets/local_javascript.rb +12 -0
- data/lib/octopress-ink/assets/local_sass.rb +30 -0
- data/lib/octopress-ink/assets/local_stylesheet.rb +33 -0
- data/lib/octopress-ink/assets/page.rb +19 -9
- data/lib/octopress-ink/assets/sass.rb +24 -19
- data/lib/octopress-ink/assets/stylesheet.rb +12 -6
- data/lib/octopress-ink/commands.rb +5 -2
- data/lib/octopress-ink/commands/copy.rb +29 -0
- data/lib/octopress-ink/commands/helpers.rb +12 -10
- data/lib/octopress-ink/commands/info.rb +5 -3
- data/lib/octopress-ink/configuration.rb +21 -0
- data/lib/octopress-ink/filters.rb +1 -1
- data/lib/octopress-ink/generators/plugin_assets.rb +2 -3
- data/lib/octopress-ink/jekyll/page.rb +15 -11
- data/lib/octopress-ink/plugin.rb +214 -109
- data/lib/octopress-ink/plugins.rb +74 -113
- data/lib/octopress-ink/plugins/asset_pipeline.rb +93 -0
- data/lib/octopress-ink/plugins/ink.rb +15 -0
- data/lib/octopress-ink/version.rb +1 -1
- data/octopress-ink.gemspec +1 -0
- data/test/Gemfile +0 -2
- data/test/_concat_false.yml +2 -0
- data/test/_sass_compact.yml +2 -3
- data/test/_sass_expanded.yml +2 -3
- data/test/concat_css_false/{awesome-sauce/stylesheets → stylesheets/awesome-sauce}/plugin-media-test.css +0 -0
- data/test/concat_css_false/{awesome-sauce/stylesheets → stylesheets/awesome-sauce}/plugin-test.css +0 -0
- data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-media-test.css +0 -0
- data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-test.css +0 -0
- data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-test2.css +0 -0
- data/test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +3 -0
- data/test/concat_js_false/javascripts/site.js +1 -0
- data/test/concat_js_false/javascripts/theme/bar.js +1 -0
- data/test/concat_js_false/javascripts/theme/foo.js +1 -0
- data/test/copy_layouts_pages/_copy/layouts/default.html +12 -0
- data/test/copy_layouts_pages/_copy/layouts/test.html +4 -0
- data/test/copy_layouts_pages/_copy/pages/disable-test.html +3 -0
- data/test/copy_layouts_pages/_copy/pages/one.xml +4 -0
- data/test/copy_layouts_pages/_copy/pages/three.md +5 -0
- data/test/copy_layouts_pages/_copy/pages/two.md +6 -0
- data/test/copy_test/_copy/files/disabled-file.txt +2 -0
- data/test/copy_test/_copy/files/favicon.ico +1 -0
- data/test/copy_test/_copy/files/favicon.png +1 -0
- data/test/copy_test/_copy/fonts/font-one.otf +1 -0
- data/test/copy_test/_copy/fonts/font-two.ttf +1 -0
- data/test/copy_test/_copy/includes/bar.html +2 -0
- data/test/copy_test/_copy/includes/greet.html +1 -0
- data/test/copy_test/_copy/javascripts/bar.js +1 -0
- data/test/copy_test/_copy/javascripts/disable-this.js +1 -0
- data/test/copy_test/_copy/javascripts/foo.js +1 -0
- data/test/copy_test/_copy/layouts/default.html +12 -0
- data/test/copy_test/_copy/layouts/test.html +4 -0
- data/test/copy_test/_copy/pages/disable-test.html +3 -0
- data/test/copy_test/_copy/pages/one.xml +4 -0
- data/test/copy_test/_copy/pages/three.md +5 -0
- data/test/copy_test/_copy/pages/two.md +6 -0
- data/test/copy_test/_copy/stylesheets/disable-this.css +1 -0
- data/test/copy_test/_copy/stylesheets/disable.sass +1 -0
- data/test/copy_test/_copy/stylesheets/main.scss +2 -0
- data/test/copy_test/_copy/stylesheets/theme-media-test@print.css +1 -0
- data/test/copy_test/_copy/stylesheets/theme-test.css +4 -0
- data/test/copy_test/_copy/stylesheets/theme-test2.css +3 -0
- data/test/plugins/awesome-sauce/docs/index.html +0 -0
- data/test/plugins/awesome-sauce/pages/test_pages/one.html +1 -1
- data/test/plugins/awesome-sauce/pages/test_pages/two.html +1 -1
- data/test/plugins/awesome-sauce/plugin.rb +2 -3
- data/test/plugins/test-theme/config.yml +1 -1
- data/test/plugins/test-theme/files/disabled-file.txt +2 -0
- data/test/plugins/test-theme/fonts/font-one.otf +1 -0
- data/test/plugins/test-theme/fonts/font-two.ttf +1 -0
- data/test/plugins/test-theme/javascripts/disable-this.js +1 -0
- data/test/plugins/test-theme/pages/disable-test.html +3 -0
- data/test/plugins/test-theme/pages/test_pages/disable-test.html +3 -0
- data/test/plugins/test-theme/pages/test_pages/two.md +1 -1
- data/test/plugins/test-theme/plugin.rb +4 -4
- data/test/plugins/test-theme/stylesheets/disable-this.css +1 -0
- data/test/plugins/test-theme/stylesheets/disable.sass +1 -0
- data/test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +1 -1
- data/test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +1 -1
- data/test/source/_javascripts/site.js +1 -0
- data/test/source/_plugins/awesome-sauce/config.yml +5 -1
- data/test/source/_plugins/theme/config.yml +11 -1
- data/test/source/{stylesheets → _stylesheets}/_foo.scss +0 -0
- data/test/source/{stylesheets → _stylesheets}/site.sass +0 -0
- data/test/source/{stylesheets → _stylesheets}/test.css +0 -0
- data/test/test.rb +87 -37
- metadata +130 -23
- data/lib/octopress-ink/assets/include.rb +0 -18
- data/lib/octopress-ink/assets/root.rb +0 -29
- data/lib/octopress-ink/plugins/stylesheets.rb +0 -56
- data/test/_concat_css_false.yml +0 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: octopress
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0.alpha8
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0.alpha8
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +108,28 @@ files:
|
|
94
108
|
- LICENSE.txt
|
95
109
|
- README.md
|
96
110
|
- Rakefile
|
111
|
+
- assets/docs/food.html
|
112
|
+
- assets/docs/index.html
|
97
113
|
- lib/octopress-ink.rb
|
98
114
|
- lib/octopress-ink/assets.rb
|
99
115
|
- lib/octopress-ink/assets/asset.rb
|
100
116
|
- lib/octopress-ink/assets/config.rb
|
101
|
-
- lib/octopress-ink/assets/
|
117
|
+
- lib/octopress-ink/assets/doc_page.rb
|
118
|
+
- lib/octopress-ink/assets/file.rb
|
102
119
|
- lib/octopress-ink/assets/javascript.rb
|
103
120
|
- lib/octopress-ink/assets/layout.rb
|
121
|
+
- lib/octopress-ink/assets/local_asset.rb
|
122
|
+
- lib/octopress-ink/assets/local_javascript.rb
|
123
|
+
- lib/octopress-ink/assets/local_sass.rb
|
124
|
+
- lib/octopress-ink/assets/local_stylesheet.rb
|
104
125
|
- lib/octopress-ink/assets/page.rb
|
105
|
-
- lib/octopress-ink/assets/root.rb
|
106
126
|
- lib/octopress-ink/assets/sass.rb
|
107
127
|
- lib/octopress-ink/assets/stylesheet.rb
|
108
128
|
- lib/octopress-ink/commands.rb
|
129
|
+
- lib/octopress-ink/commands/copy.rb
|
109
130
|
- lib/octopress-ink/commands/helpers.rb
|
110
131
|
- lib/octopress-ink/commands/info.rb
|
132
|
+
- lib/octopress-ink/configuration.rb
|
111
133
|
- lib/octopress-ink/filters.rb
|
112
134
|
- lib/octopress-ink/generators/plugin_assets.rb
|
113
135
|
- lib/octopress-ink/helpers.rb
|
@@ -122,7 +144,8 @@ files:
|
|
122
144
|
- lib/octopress-ink/jekyll/static_file_content.rb
|
123
145
|
- lib/octopress-ink/plugin.rb
|
124
146
|
- lib/octopress-ink/plugins.rb
|
125
|
-
- lib/octopress-ink/plugins/
|
147
|
+
- lib/octopress-ink/plugins/asset_pipeline.rb
|
148
|
+
- lib/octopress-ink/plugins/ink.rb
|
126
149
|
- lib/octopress-ink/tags.rb
|
127
150
|
- lib/octopress-ink/tags/abort.rb
|
128
151
|
- lib/octopress-ink/tags/assign.rb
|
@@ -140,19 +163,51 @@ files:
|
|
140
163
|
- lib/octopress-ink/version.rb
|
141
164
|
- octopress-ink.gemspec
|
142
165
|
- test/Gemfile
|
143
|
-
- test/
|
166
|
+
- test/_concat_false.yml
|
144
167
|
- test/_config.yml
|
145
168
|
- test/_sass_compact.yml
|
146
169
|
- test/_sass_expanded.yml
|
147
170
|
- test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
|
148
171
|
- test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
149
|
-
- test/concat_css_false/awesome-sauce/
|
150
|
-
- test/concat_css_false/awesome-sauce/
|
172
|
+
- test/concat_css_false/stylesheets/awesome-sauce/plugin-media-test.css
|
173
|
+
- test/concat_css_false/stylesheets/awesome-sauce/plugin-test.css
|
151
174
|
- test/concat_css_false/stylesheets/site.css
|
152
175
|
- test/concat_css_false/stylesheets/test.css
|
153
|
-
- test/concat_css_false/
|
154
|
-
- test/concat_css_false/
|
155
|
-
- test/concat_css_false/
|
176
|
+
- test/concat_css_false/stylesheets/theme/theme-media-test.css
|
177
|
+
- test/concat_css_false/stylesheets/theme/theme-test.css
|
178
|
+
- test/concat_css_false/stylesheets/theme/theme-test2.css
|
179
|
+
- test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
|
180
|
+
- test/concat_js_false/javascripts/site.js
|
181
|
+
- test/concat_js_false/javascripts/theme/bar.js
|
182
|
+
- test/concat_js_false/javascripts/theme/foo.js
|
183
|
+
- test/copy_layouts_pages/_copy/layouts/default.html
|
184
|
+
- test/copy_layouts_pages/_copy/layouts/test.html
|
185
|
+
- test/copy_layouts_pages/_copy/pages/disable-test.html
|
186
|
+
- test/copy_layouts_pages/_copy/pages/one.xml
|
187
|
+
- test/copy_layouts_pages/_copy/pages/three.md
|
188
|
+
- test/copy_layouts_pages/_copy/pages/two.md
|
189
|
+
- test/copy_test/_copy/files/disabled-file.txt
|
190
|
+
- test/copy_test/_copy/files/favicon.ico
|
191
|
+
- test/copy_test/_copy/files/favicon.png
|
192
|
+
- test/copy_test/_copy/fonts/font-one.otf
|
193
|
+
- test/copy_test/_copy/fonts/font-two.ttf
|
194
|
+
- test/copy_test/_copy/includes/bar.html
|
195
|
+
- test/copy_test/_copy/includes/greet.html
|
196
|
+
- test/copy_test/_copy/javascripts/bar.js
|
197
|
+
- test/copy_test/_copy/javascripts/disable-this.js
|
198
|
+
- test/copy_test/_copy/javascripts/foo.js
|
199
|
+
- test/copy_test/_copy/layouts/default.html
|
200
|
+
- test/copy_test/_copy/layouts/test.html
|
201
|
+
- test/copy_test/_copy/pages/disable-test.html
|
202
|
+
- test/copy_test/_copy/pages/one.xml
|
203
|
+
- test/copy_test/_copy/pages/three.md
|
204
|
+
- test/copy_test/_copy/pages/two.md
|
205
|
+
- test/copy_test/_copy/stylesheets/disable-this.css
|
206
|
+
- test/copy_test/_copy/stylesheets/disable.sass
|
207
|
+
- test/copy_test/_copy/stylesheets/main.scss
|
208
|
+
- test/copy_test/_copy/stylesheets/theme-media-test@print.css
|
209
|
+
- test/copy_test/_copy/stylesheets/theme-test.css
|
210
|
+
- test/copy_test/_copy/stylesheets/theme-test2.css
|
156
211
|
- test/expected/2014/02/01/test-post.html
|
157
212
|
- test/expected/favicon.ico
|
158
213
|
- test/expected/favicon.png
|
@@ -178,6 +233,7 @@ files:
|
|
178
233
|
- test/expected/test_tags/render.html
|
179
234
|
- test/expected/test_tags/wrap.html
|
180
235
|
- test/plugins/awesome-sauce/config.yml
|
236
|
+
- test/plugins/awesome-sauce/docs/index.html
|
181
237
|
- test/plugins/awesome-sauce/files/robots.txt
|
182
238
|
- test/plugins/awesome-sauce/includes/some-include.html
|
183
239
|
- test/plugins/awesome-sauce/layouts/test-layout.html
|
@@ -187,20 +243,28 @@ files:
|
|
187
243
|
- test/plugins/awesome-sauce/stylesheets/plugin-media-test.css
|
188
244
|
- test/plugins/awesome-sauce/stylesheets/plugin-test.css
|
189
245
|
- test/plugins/test-theme/config.yml
|
246
|
+
- test/plugins/test-theme/files/disabled-file.txt
|
190
247
|
- test/plugins/test-theme/files/favicon.ico
|
191
248
|
- test/plugins/test-theme/files/favicon.png
|
192
249
|
- test/plugins/test-theme/files/test.html
|
250
|
+
- test/plugins/test-theme/fonts/font-one.otf
|
251
|
+
- test/plugins/test-theme/fonts/font-two.ttf
|
193
252
|
- test/plugins/test-theme/includes/bar.html
|
194
253
|
- test/plugins/test-theme/includes/greet.html
|
195
254
|
- test/plugins/test-theme/javascripts/bar.js
|
255
|
+
- test/plugins/test-theme/javascripts/disable-this.js
|
196
256
|
- test/plugins/test-theme/javascripts/foo.js
|
197
257
|
- test/plugins/test-theme/layouts/default.html
|
198
258
|
- test/plugins/test-theme/layouts/test.html
|
259
|
+
- test/plugins/test-theme/pages/disable-test.html
|
260
|
+
- test/plugins/test-theme/pages/test_pages/disable-test.html
|
199
261
|
- test/plugins/test-theme/pages/test_pages/one.xml
|
200
262
|
- test/plugins/test-theme/pages/test_pages/three.md
|
201
263
|
- test/plugins/test-theme/pages/test_pages/two.md
|
202
264
|
- test/plugins/test-theme/plugin.rb
|
203
265
|
- test/plugins/test-theme/stylesheets/_colors.scss
|
266
|
+
- test/plugins/test-theme/stylesheets/disable-this.css
|
267
|
+
- test/plugins/test-theme/stylesheets/disable.sass
|
204
268
|
- test/plugins/test-theme/stylesheets/main.scss
|
205
269
|
- test/plugins/test-theme/stylesheets/theme-media-test@print.css
|
206
270
|
- test/plugins/test-theme/stylesheets/theme-test.css
|
@@ -211,6 +275,7 @@ files:
|
|
211
275
|
- test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
212
276
|
- test/source/.gitignore
|
213
277
|
- test/source/_includes/foo.html
|
278
|
+
- test/source/_javascripts/site.js
|
214
279
|
- test/source/_layouts/head.html
|
215
280
|
- test/source/_layouts/local.html
|
216
281
|
- test/source/_plugins/awesome-sauce/config.yml
|
@@ -221,11 +286,11 @@ files:
|
|
221
286
|
- test/source/_plugins/theme/stylesheets/_colors.sass
|
222
287
|
- test/source/_plugins/theme/stylesheets/theme-test.css
|
223
288
|
- test/source/_posts/2014-02-01-test-post.md
|
289
|
+
- test/source/_stylesheets/_foo.scss
|
290
|
+
- test/source/_stylesheets/site.sass
|
291
|
+
- test/source/_stylesheets/test.css
|
224
292
|
- test/source/favicon.png
|
225
293
|
- test/source/index.md
|
226
|
-
- test/source/stylesheets/_foo.scss
|
227
|
-
- test/source/stylesheets/site.sass
|
228
|
-
- test/source/stylesheets/test.css
|
229
294
|
- test/source/test_config/plugin_config.html
|
230
295
|
- test/source/test_config/theme_config.html
|
231
296
|
- test/source/test_layouts/local.html
|
@@ -275,19 +340,51 @@ specification_version: 4
|
|
275
340
|
summary: A starting point for creating gem-based Jekyll themes and plugins
|
276
341
|
test_files:
|
277
342
|
- test/Gemfile
|
278
|
-
- test/
|
343
|
+
- test/_concat_false.yml
|
279
344
|
- test/_config.yml
|
280
345
|
- test/_sass_compact.yml
|
281
346
|
- test/_sass_expanded.yml
|
282
347
|
- test/concat_css/stylesheets/all-e10f647557c9d610df6df40a458bc823.css
|
283
348
|
- test/concat_css/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
284
|
-
- test/concat_css_false/awesome-sauce/
|
285
|
-
- test/concat_css_false/awesome-sauce/
|
349
|
+
- test/concat_css_false/stylesheets/awesome-sauce/plugin-media-test.css
|
350
|
+
- test/concat_css_false/stylesheets/awesome-sauce/plugin-test.css
|
286
351
|
- test/concat_css_false/stylesheets/site.css
|
287
352
|
- test/concat_css_false/stylesheets/test.css
|
288
|
-
- test/concat_css_false/
|
289
|
-
- test/concat_css_false/
|
290
|
-
- test/concat_css_false/
|
353
|
+
- test/concat_css_false/stylesheets/theme/theme-media-test.css
|
354
|
+
- test/concat_css_false/stylesheets/theme/theme-test.css
|
355
|
+
- test/concat_css_false/stylesheets/theme/theme-test2.css
|
356
|
+
- test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js
|
357
|
+
- test/concat_js_false/javascripts/site.js
|
358
|
+
- test/concat_js_false/javascripts/theme/bar.js
|
359
|
+
- test/concat_js_false/javascripts/theme/foo.js
|
360
|
+
- test/copy_layouts_pages/_copy/layouts/default.html
|
361
|
+
- test/copy_layouts_pages/_copy/layouts/test.html
|
362
|
+
- test/copy_layouts_pages/_copy/pages/disable-test.html
|
363
|
+
- test/copy_layouts_pages/_copy/pages/one.xml
|
364
|
+
- test/copy_layouts_pages/_copy/pages/three.md
|
365
|
+
- test/copy_layouts_pages/_copy/pages/two.md
|
366
|
+
- test/copy_test/_copy/files/disabled-file.txt
|
367
|
+
- test/copy_test/_copy/files/favicon.ico
|
368
|
+
- test/copy_test/_copy/files/favicon.png
|
369
|
+
- test/copy_test/_copy/fonts/font-one.otf
|
370
|
+
- test/copy_test/_copy/fonts/font-two.ttf
|
371
|
+
- test/copy_test/_copy/includes/bar.html
|
372
|
+
- test/copy_test/_copy/includes/greet.html
|
373
|
+
- test/copy_test/_copy/javascripts/bar.js
|
374
|
+
- test/copy_test/_copy/javascripts/disable-this.js
|
375
|
+
- test/copy_test/_copy/javascripts/foo.js
|
376
|
+
- test/copy_test/_copy/layouts/default.html
|
377
|
+
- test/copy_test/_copy/layouts/test.html
|
378
|
+
- test/copy_test/_copy/pages/disable-test.html
|
379
|
+
- test/copy_test/_copy/pages/one.xml
|
380
|
+
- test/copy_test/_copy/pages/three.md
|
381
|
+
- test/copy_test/_copy/pages/two.md
|
382
|
+
- test/copy_test/_copy/stylesheets/disable-this.css
|
383
|
+
- test/copy_test/_copy/stylesheets/disable.sass
|
384
|
+
- test/copy_test/_copy/stylesheets/main.scss
|
385
|
+
- test/copy_test/_copy/stylesheets/theme-media-test@print.css
|
386
|
+
- test/copy_test/_copy/stylesheets/theme-test.css
|
387
|
+
- test/copy_test/_copy/stylesheets/theme-test2.css
|
291
388
|
- test/expected/2014/02/01/test-post.html
|
292
389
|
- test/expected/favicon.ico
|
293
390
|
- test/expected/favicon.png
|
@@ -313,6 +410,7 @@ test_files:
|
|
313
410
|
- test/expected/test_tags/render.html
|
314
411
|
- test/expected/test_tags/wrap.html
|
315
412
|
- test/plugins/awesome-sauce/config.yml
|
413
|
+
- test/plugins/awesome-sauce/docs/index.html
|
316
414
|
- test/plugins/awesome-sauce/files/robots.txt
|
317
415
|
- test/plugins/awesome-sauce/includes/some-include.html
|
318
416
|
- test/plugins/awesome-sauce/layouts/test-layout.html
|
@@ -322,20 +420,28 @@ test_files:
|
|
322
420
|
- test/plugins/awesome-sauce/stylesheets/plugin-media-test.css
|
323
421
|
- test/plugins/awesome-sauce/stylesheets/plugin-test.css
|
324
422
|
- test/plugins/test-theme/config.yml
|
423
|
+
- test/plugins/test-theme/files/disabled-file.txt
|
325
424
|
- test/plugins/test-theme/files/favicon.ico
|
326
425
|
- test/plugins/test-theme/files/favicon.png
|
327
426
|
- test/plugins/test-theme/files/test.html
|
427
|
+
- test/plugins/test-theme/fonts/font-one.otf
|
428
|
+
- test/plugins/test-theme/fonts/font-two.ttf
|
328
429
|
- test/plugins/test-theme/includes/bar.html
|
329
430
|
- test/plugins/test-theme/includes/greet.html
|
330
431
|
- test/plugins/test-theme/javascripts/bar.js
|
432
|
+
- test/plugins/test-theme/javascripts/disable-this.js
|
331
433
|
- test/plugins/test-theme/javascripts/foo.js
|
332
434
|
- test/plugins/test-theme/layouts/default.html
|
333
435
|
- test/plugins/test-theme/layouts/test.html
|
436
|
+
- test/plugins/test-theme/pages/disable-test.html
|
437
|
+
- test/plugins/test-theme/pages/test_pages/disable-test.html
|
334
438
|
- test/plugins/test-theme/pages/test_pages/one.xml
|
335
439
|
- test/plugins/test-theme/pages/test_pages/three.md
|
336
440
|
- test/plugins/test-theme/pages/test_pages/two.md
|
337
441
|
- test/plugins/test-theme/plugin.rb
|
338
442
|
- test/plugins/test-theme/stylesheets/_colors.scss
|
443
|
+
- test/plugins/test-theme/stylesheets/disable-this.css
|
444
|
+
- test/plugins/test-theme/stylesheets/disable.sass
|
339
445
|
- test/plugins/test-theme/stylesheets/main.scss
|
340
446
|
- test/plugins/test-theme/stylesheets/theme-media-test@print.css
|
341
447
|
- test/plugins/test-theme/stylesheets/theme-test.css
|
@@ -346,6 +452,7 @@ test_files:
|
|
346
452
|
- test/sass_expanded/stylesheets/print-0dc274efb4e3fba0ae71bd22eef6fb38.css
|
347
453
|
- test/source/.gitignore
|
348
454
|
- test/source/_includes/foo.html
|
455
|
+
- test/source/_javascripts/site.js
|
349
456
|
- test/source/_layouts/head.html
|
350
457
|
- test/source/_layouts/local.html
|
351
458
|
- test/source/_plugins/awesome-sauce/config.yml
|
@@ -356,11 +463,11 @@ test_files:
|
|
356
463
|
- test/source/_plugins/theme/stylesheets/_colors.sass
|
357
464
|
- test/source/_plugins/theme/stylesheets/theme-test.css
|
358
465
|
- test/source/_posts/2014-02-01-test-post.md
|
466
|
+
- test/source/_stylesheets/_foo.scss
|
467
|
+
- test/source/_stylesheets/site.sass
|
468
|
+
- test/source/_stylesheets/test.css
|
359
469
|
- test/source/favicon.png
|
360
470
|
- test/source/index.md
|
361
|
-
- test/source/stylesheets/_foo.scss
|
362
|
-
- test/source/stylesheets/site.sass
|
363
|
-
- test/source/stylesheets/test.css
|
364
471
|
- test/source/test_config/plugin_config.html
|
365
472
|
- test/source/test_config/theme_config.html
|
366
473
|
- test/source/test_layouts/local.html
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Octopress
|
2
|
-
module Ink
|
3
|
-
module Assets
|
4
|
-
class Include < Asset
|
5
|
-
|
6
|
-
def initialize(plugin, type)
|
7
|
-
@root = plugin.assets_path
|
8
|
-
@type = type
|
9
|
-
@plugin = plugin
|
10
|
-
@dir = File.join(plugin.slug, type)
|
11
|
-
@no_cache = true
|
12
|
-
@exists = {}
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# These are files which need to be in added to the root of the site directory
|
2
|
-
# Use root assets for files like robots.text or favicon.ico
|
3
|
-
|
4
|
-
module Octopress
|
5
|
-
module Ink
|
6
|
-
module Assets
|
7
|
-
class RootAsset < Asset
|
8
|
-
|
9
|
-
def initialize(plugin, type, file)
|
10
|
-
@root = plugin.assets_path
|
11
|
-
@plugin = plugin
|
12
|
-
@dir = ''
|
13
|
-
@type = type
|
14
|
-
@file = file
|
15
|
-
@exists = {}
|
16
|
-
file_check
|
17
|
-
end
|
18
|
-
|
19
|
-
def copy
|
20
|
-
unless exists? local_plugin_path
|
21
|
-
Plugins.site.static_files << StaticFile.new(plugin_path, destination)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# The CSS assets for this plugin are populated at runtime by the add_static_files method of
|
2
|
-
# the Plugins module.
|
3
|
-
#
|
4
|
-
module Octopress
|
5
|
-
module Ink
|
6
|
-
class StylesheetsPlugin < Octopress::Ink::Plugin
|
7
|
-
def add_files
|
8
|
-
|
9
|
-
add_stylesheets local_stylesheets
|
10
|
-
|
11
|
-
remove_jekyll_assets @sass
|
12
|
-
|
13
|
-
if Plugins.concat_css
|
14
|
-
remove_jekyll_assets @stylesheets
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def add_stylesheets(files)
|
19
|
-
files = [files] unless files.is_a? Array
|
20
|
-
files.each do |file|
|
21
|
-
# accept ['file', 'media_type']
|
22
|
-
if file.is_a? Array
|
23
|
-
if file.first =~ /\.css/
|
24
|
-
add_stylesheet file.first, file.last
|
25
|
-
else
|
26
|
-
add_sass file.first, file.last
|
27
|
-
end
|
28
|
-
# accept 'file'
|
29
|
-
else
|
30
|
-
if file =~ /\.css/
|
31
|
-
add_stylesheet file
|
32
|
-
else
|
33
|
-
add_sass file
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
files
|
38
|
-
end
|
39
|
-
|
40
|
-
def local_stylesheets
|
41
|
-
config = Plugins.site.config
|
42
|
-
source = Plugins.site.source
|
43
|
-
if config['octopress'] && config['octopress']['stylesheets']
|
44
|
-
config['octopress']['stylesheets'] || []
|
45
|
-
else
|
46
|
-
dir = File.join(source, 'stylesheets/')
|
47
|
-
css = Dir.glob(File.join(dir, '**/*.css'))
|
48
|
-
sass = Dir.glob(File.join(dir, '**/*.s[ca]ss')).reject { |f| File.basename(f) =~ /^_.*?s[ac]ss/ }
|
49
|
-
files = css.concat sass
|
50
|
-
files.map { |f| f.split(dir).last }
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
data/test/_concat_css_false.yml
DELETED