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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/assets/docs/food.html +0 -0
  4. data/assets/docs/index.html +0 -0
  5. data/lib/octopress-ink.rb +80 -27
  6. data/lib/octopress-ink/assets.rb +6 -1
  7. data/lib/octopress-ink/assets/asset.rb +54 -36
  8. data/lib/octopress-ink/assets/config.rb +10 -11
  9. data/lib/octopress-ink/assets/doc_page.rb +53 -0
  10. data/lib/octopress-ink/assets/file.rb +37 -0
  11. data/lib/octopress-ink/assets/javascript.rb +5 -1
  12. data/lib/octopress-ink/assets/layout.rb +8 -5
  13. data/lib/octopress-ink/assets/local_asset.rb +47 -0
  14. data/lib/octopress-ink/assets/local_javascript.rb +12 -0
  15. data/lib/octopress-ink/assets/local_sass.rb +30 -0
  16. data/lib/octopress-ink/assets/local_stylesheet.rb +33 -0
  17. data/lib/octopress-ink/assets/page.rb +19 -9
  18. data/lib/octopress-ink/assets/sass.rb +24 -19
  19. data/lib/octopress-ink/assets/stylesheet.rb +12 -6
  20. data/lib/octopress-ink/commands.rb +5 -2
  21. data/lib/octopress-ink/commands/copy.rb +29 -0
  22. data/lib/octopress-ink/commands/helpers.rb +12 -10
  23. data/lib/octopress-ink/commands/info.rb +5 -3
  24. data/lib/octopress-ink/configuration.rb +21 -0
  25. data/lib/octopress-ink/filters.rb +1 -1
  26. data/lib/octopress-ink/generators/plugin_assets.rb +2 -3
  27. data/lib/octopress-ink/jekyll/page.rb +15 -11
  28. data/lib/octopress-ink/plugin.rb +214 -109
  29. data/lib/octopress-ink/plugins.rb +74 -113
  30. data/lib/octopress-ink/plugins/asset_pipeline.rb +93 -0
  31. data/lib/octopress-ink/plugins/ink.rb +15 -0
  32. data/lib/octopress-ink/version.rb +1 -1
  33. data/octopress-ink.gemspec +1 -0
  34. data/test/Gemfile +0 -2
  35. data/test/_concat_false.yml +2 -0
  36. data/test/_sass_compact.yml +2 -3
  37. data/test/_sass_expanded.yml +2 -3
  38. data/test/concat_css_false/{awesome-sauce/stylesheets → stylesheets/awesome-sauce}/plugin-media-test.css +0 -0
  39. data/test/concat_css_false/{awesome-sauce/stylesheets → stylesheets/awesome-sauce}/plugin-test.css +0 -0
  40. data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-media-test.css +0 -0
  41. data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-test.css +0 -0
  42. data/test/concat_css_false/{theme/stylesheets → stylesheets/theme}/theme-test2.css +0 -0
  43. data/test/concat_js/javascripts/all-d41d8cd98f00b204e9800998ecf8427e.js +3 -0
  44. data/test/concat_js_false/javascripts/site.js +1 -0
  45. data/test/concat_js_false/javascripts/theme/bar.js +1 -0
  46. data/test/concat_js_false/javascripts/theme/foo.js +1 -0
  47. data/test/copy_layouts_pages/_copy/layouts/default.html +12 -0
  48. data/test/copy_layouts_pages/_copy/layouts/test.html +4 -0
  49. data/test/copy_layouts_pages/_copy/pages/disable-test.html +3 -0
  50. data/test/copy_layouts_pages/_copy/pages/one.xml +4 -0
  51. data/test/copy_layouts_pages/_copy/pages/three.md +5 -0
  52. data/test/copy_layouts_pages/_copy/pages/two.md +6 -0
  53. data/test/copy_test/_copy/files/disabled-file.txt +2 -0
  54. data/test/copy_test/_copy/files/favicon.ico +1 -0
  55. data/test/copy_test/_copy/files/favicon.png +1 -0
  56. data/test/copy_test/_copy/fonts/font-one.otf +1 -0
  57. data/test/copy_test/_copy/fonts/font-two.ttf +1 -0
  58. data/test/copy_test/_copy/includes/bar.html +2 -0
  59. data/test/copy_test/_copy/includes/greet.html +1 -0
  60. data/test/copy_test/_copy/javascripts/bar.js +1 -0
  61. data/test/copy_test/_copy/javascripts/disable-this.js +1 -0
  62. data/test/copy_test/_copy/javascripts/foo.js +1 -0
  63. data/test/copy_test/_copy/layouts/default.html +12 -0
  64. data/test/copy_test/_copy/layouts/test.html +4 -0
  65. data/test/copy_test/_copy/pages/disable-test.html +3 -0
  66. data/test/copy_test/_copy/pages/one.xml +4 -0
  67. data/test/copy_test/_copy/pages/three.md +5 -0
  68. data/test/copy_test/_copy/pages/two.md +6 -0
  69. data/test/copy_test/_copy/stylesheets/disable-this.css +1 -0
  70. data/test/copy_test/_copy/stylesheets/disable.sass +1 -0
  71. data/test/copy_test/_copy/stylesheets/main.scss +2 -0
  72. data/test/copy_test/_copy/stylesheets/theme-media-test@print.css +1 -0
  73. data/test/copy_test/_copy/stylesheets/theme-test.css +4 -0
  74. data/test/copy_test/_copy/stylesheets/theme-test2.css +3 -0
  75. data/test/plugins/awesome-sauce/docs/index.html +0 -0
  76. data/test/plugins/awesome-sauce/pages/test_pages/one.html +1 -1
  77. data/test/plugins/awesome-sauce/pages/test_pages/two.html +1 -1
  78. data/test/plugins/awesome-sauce/plugin.rb +2 -3
  79. data/test/plugins/test-theme/config.yml +1 -1
  80. data/test/plugins/test-theme/files/disabled-file.txt +2 -0
  81. data/test/plugins/test-theme/fonts/font-one.otf +1 -0
  82. data/test/plugins/test-theme/fonts/font-two.ttf +1 -0
  83. data/test/plugins/test-theme/javascripts/disable-this.js +1 -0
  84. data/test/plugins/test-theme/pages/disable-test.html +3 -0
  85. data/test/plugins/test-theme/pages/test_pages/disable-test.html +3 -0
  86. data/test/plugins/test-theme/pages/test_pages/two.md +1 -1
  87. data/test/plugins/test-theme/plugin.rb +4 -4
  88. data/test/plugins/test-theme/stylesheets/disable-this.css +1 -0
  89. data/test/plugins/test-theme/stylesheets/disable.sass +1 -0
  90. data/test/sass_compact/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +1 -1
  91. data/test/sass_expanded/stylesheets/all-e10f647557c9d610df6df40a458bc823.css +1 -1
  92. data/test/source/_javascripts/site.js +1 -0
  93. data/test/source/_plugins/awesome-sauce/config.yml +5 -1
  94. data/test/source/_plugins/theme/config.yml +11 -1
  95. data/test/source/{stylesheets → _stylesheets}/_foo.scss +0 -0
  96. data/test/source/{stylesheets → _stylesheets}/site.sass +0 -0
  97. data/test/source/{stylesheets → _stylesheets}/test.css +0 -0
  98. data/test/test.rb +87 -37
  99. metadata +130 -23
  100. data/lib/octopress-ink/assets/include.rb +0 -18
  101. data/lib/octopress-ink/assets/root.rb +0 -29
  102. data/lib/octopress-ink/plugins/stylesheets.rb +0 -56
  103. 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.33
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-02-21 00:00:00.000000000 Z
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/include.rb
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/stylesheets.rb
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/_concat_css_false.yml
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/stylesheets/plugin-media-test.css
150
- - test/concat_css_false/awesome-sauce/stylesheets/plugin-test.css
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/theme/stylesheets/theme-media-test.css
154
- - test/concat_css_false/theme/stylesheets/theme-test.css
155
- - test/concat_css_false/theme/stylesheets/theme-test2.css
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/_concat_css_false.yml
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/stylesheets/plugin-media-test.css
285
- - test/concat_css_false/awesome-sauce/stylesheets/plugin-test.css
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/theme/stylesheets/theme-media-test.css
289
- - test/concat_css_false/theme/stylesheets/theme-test.css
290
- - test/concat_css_false/theme/stylesheets/theme-test2.css
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
-
@@ -1,3 +0,0 @@
1
- # Sass configurations
2
- octopress:
3
- concat_css: false