octopress-ink 1.0.0.rc.11 → 1.0.0.rc.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +12 -3
- data/assets/docs/creating-a-plugin.markdown +85 -23
- data/assets/docs/plugin-reference.markdown +1 -1
- data/assets/docs/working-with-plugins.markdown +188 -0
- data/lib/octopress-ink.rb +40 -93
- data/lib/octopress-ink/assets/asset.rb +8 -10
- data/lib/octopress-ink/assets/doc_page.rb +3 -6
- data/lib/octopress-ink/assets/file.rb +2 -2
- data/lib/octopress-ink/assets/layout.rb +1 -1
- data/lib/octopress-ink/assets/page.rb +17 -4
- data/lib/octopress-ink/assets/sass.rb +1 -1
- data/lib/octopress-ink/commands/helpers.rb +1 -1
- data/lib/octopress-ink/commands/list.rb +1 -1
- data/lib/octopress-ink/commands/new.rb +1 -4
- data/lib/octopress-ink/configuration.rb +10 -27
- data/lib/octopress-ink/jekyll/hooks.rb +23 -149
- data/lib/octopress-ink/jekyll/page.rb +12 -0
- data/lib/octopress-ink/plugin.rb +1 -1
- data/lib/octopress-ink/plugin_asset_pipeline.rb +4 -5
- data/lib/octopress-ink/plugins.rb +5 -5
- data/lib/octopress-ink/tags.rb +0 -11
- data/lib/octopress-ink/version.rb +1 -1
- data/octopress-ink.gemspec +7 -5
- data/test/.clash.yml +46 -0
- data/test/Gemfile +1 -3
- data/test/_config.yml +7 -6
- data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/awesome-sauce/plugin-media-test.css +0 -0
- data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/awesome-sauce/plugin-test.css +0 -0
- data/test/_expected/combine_css_false/theme/main.css +2 -0
- data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-media-test.css +0 -0
- data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test.css +0 -0
- data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test2.css +0 -0
- data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/bar.js +0 -0
- data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/blah.js +0 -0
- data/test/{combine_js_false/javascripts → _expected/combine_js_false}/theme/foo.js +0 -0
- data/test/{compress_false → _expected/compress_false}/javascripts/all-.js +0 -0
- data/test/{compress_false → _expected/compress_false}/stylesheets/all-.css +1 -1
- data/test/{compress_false → _expected/compress_false}/stylesheets/print-.css +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/layouts/default.html +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/layouts/test.html +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/disable-test.html +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/four.xml +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/one.xml +0 -0
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/three.md +1 -1
- data/test/{copy_layouts_pages/_copy → _expected/copy_layouts_pages}/pages/two.md +0 -0
- data/test/{plugins/test-theme → _expected/copy_test}/config.yml +3 -0
- data/test/{copy_test/_copy → _expected/copy_test}/files/disabled-file.txt +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/files/favicon.ico +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/files/favicon.png +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/files/test.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/fonts/font-one.otf +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/fonts/font-two.ttf +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/includes/bar.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/includes/greet.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/javascripts/bar.js +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/javascripts/blah.coffee +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/javascripts/disable-this.js +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/javascripts/foo.js +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/layouts/default.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/layouts/test.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/pages/disable-test.html +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/pages/four.xml +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/pages/one.xml +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/pages/three.md +1 -1
- data/test/{copy_test/_copy → _expected/copy_test}/pages/two.md +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/_colors.scss +0 -0
- data/test/_expected/copy_test/stylesheets/disable-this.css +1 -0
- data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/disable.sass +0 -0
- data/test/_expected/copy_test/stylesheets/main.scss +5 -0
- data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-media-test@print.css +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-test.css +0 -0
- data/test/{copy_test/_copy → _expected/copy_test}/stylesheets/theme-test2.css +0 -0
- data/test/{expected → _expected/site}/2014/02/01/test-post.html +0 -0
- data/test/{expected → _expected/site}/2014/02/02/test-post-2.html +0 -0
- data/test/{expected → _expected/site}/favicon.ico +0 -0
- data/test/{expected → _expected/site}/favicon.png +0 -0
- data/test/{expected → _expected/site}/four/index.xml +0 -0
- data/test/_expected/site/index.html +15 -0
- data/test/{expected → _expected/site}/javascripts/all-.js +0 -0
- data/test/{expected → _expected/site}/robots.txt +0 -0
- data/test/_expected/site/stylesheets/all-.css +1 -0
- data/test/{expected → _expected/site}/stylesheets/print-.css +0 -0
- data/test/{expected → _expected/site}/test.html +0 -0
- data/test/{expected → _expected/site}/test_config/plugin_config.html +0 -0
- data/test/{expected → _expected/site}/test_config/theme_config.html +0 -0
- data/test/{expected → _expected/site}/test_layouts/local.html +0 -0
- data/test/{expected → _expected/site}/test_layouts/plugin_layout.html +0 -0
- data/test/{expected → _expected/site}/test_layouts/test_markdown.html +0 -0
- data/test/{expected → _expected/site}/test_layouts/theme.html +0 -0
- data/test/{expected → _expected/site}/test_layouts/theme_override.html +0 -0
- data/test/{expected → _expected/site}/test_pages/feed/index.xml +0 -0
- data/test/{expected → _expected/site}/test_pages/plugin_page.html +0 -0
- data/test/{expected → _expected/site}/test_pages/plugin_page_override.html +0 -0
- data/test/{expected → _expected/site}/test_pages/theme_page.html +0 -0
- data/test/_expected/site/test_pages/three.html +13 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/.gitignore +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/Gemfile +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/LICENSE.txt +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/README.md +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/Rakefile +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/assets/config.yml +0 -0
- data/test/_expected/test-plugin-expected/demo/Gemfile +3 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/demo/_config.yml +0 -0
- data/test/{plugins/awesome-sauce/docs → _expected/test-plugin-expected/demo}/index.html +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/lib/test-plugin.rb +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/lib/test-plugin/version.rb +0 -0
- data/test/{test-plugin-expected → _expected/test-plugin-expected}/test-plugin.gemspec +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/.gitignore +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/Gemfile +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/LICENSE.txt +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/README.md +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/Rakefile +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/assets/config.yml +0 -0
- data/test/_expected/test-theme-expected/demo/Gemfile +3 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/demo/_config.yml +0 -0
- data/test/{test-plugin-expected → _expected/test-theme-expected}/demo/index.html +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/lib/test-theme.rb +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/lib/test-theme/version.rb +0 -0
- data/test/{test-theme-expected → _expected/test-theme-expected}/test-theme.gemspec +0 -0
- data/test/{uglify_js_false/javascripts → _expected/uglify_js_false}/all-.js +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/config.yml +0 -0
- data/test/{test-theme-expected/demo → _ink_plugins/awesome-sauce/docs}/index.html +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/files/robots.txt +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/includes/some-include.html +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/layouts/test-layout.html +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/pages/a.html +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/pages/b.html +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/plugin.rb +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/stylesheets/plugin-media-test@print.css +0 -0
- data/test/{plugins → _ink_plugins}/awesome-sauce/stylesheets/plugin-test.css +0 -0
- data/test/{copy_test/_copy → _ink_plugins/test-theme}/config.yml +3 -0
- data/test/{plugins → _ink_plugins}/test-theme/files/disabled-file.txt +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/files/favicon.ico +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/files/favicon.png +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/files/test.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/fonts/font-one.otf +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/fonts/font-two.ttf +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/includes/bar.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/includes/greet.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/javascripts/bar.js +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/javascripts/blah.coffee +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/javascripts/disable-this.js +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/javascripts/foo.js +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/layouts/default.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/layouts/test.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/pages/disable-test.html +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/pages/four.xml +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/pages/one.xml +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/pages/three.md +1 -1
- data/test/{plugins → _ink_plugins}/test-theme/pages/two.md +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/plugin.rb +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/stylesheets/_colors.scss +0 -0
- data/test/_ink_plugins/test-theme/stylesheets/disable-this.css +1 -0
- data/test/{plugins → _ink_plugins}/test-theme/stylesheets/disable.sass +0 -0
- data/test/_ink_plugins/test-theme/stylesheets/main.scss +5 -0
- data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-media-test@print.css +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-test.css +0 -0
- data/test/{plugins → _ink_plugins}/test-theme/stylesheets/theme-test2.css +0 -0
- data/test/_templates/page +4 -0
- data/test/_templates/post +5 -0
- data/test/source/_layouts/local.html +2 -0
- data/test/source/_plugins/loader.rb +2 -2
- data/test/source/_plugins/theme/stylesheets/_colors.sass +1 -1
- data/test/source/index.html +3 -15
- metadata +309 -351
- data/lib/octopress-ink/filters.rb +0 -111
- data/lib/octopress-ink/generators/plugin_assets.rb +0 -13
- data/lib/octopress-ink/helpers.rb +0 -10
- data/lib/octopress-ink/helpers/conditional.rb +0 -24
- data/lib/octopress-ink/helpers/content_for.rb +0 -32
- data/lib/octopress-ink/helpers/path.rb +0 -74
- data/lib/octopress-ink/helpers/var.rb +0 -105
- data/lib/octopress-ink/tags/abort.rb +0 -22
- data/lib/octopress-ink/tags/assign.rb +0 -33
- data/lib/octopress-ink/tags/capture.rb +0 -38
- data/lib/octopress-ink/tags/content_for.rb +0 -24
- data/lib/octopress-ink/tags/filter.rb +0 -24
- data/lib/octopress-ink/tags/include.rb +0 -53
- data/lib/octopress-ink/tags/line_comment.rb +0 -10
- data/lib/octopress-ink/tags/render.rb +0 -85
- data/lib/octopress-ink/tags/return.rb +0 -19
- data/lib/octopress-ink/tags/wrap.rb +0 -81
- data/lib/octopress-ink/tags/yield.rb +0 -36
- data/lib/octopress-ink/utils.rb +0 -42
- data/test/combine_css_false/stylesheets/theme/main.css +0 -2
- data/test/copy_test/_copy/stylesheets/disable-this.css +0 -1
- data/test/copy_test/_copy/stylesheets/main.scss +0 -5
- data/test/expected/index.html +0 -71
- data/test/expected/stylesheets/all-.css +0 -1
- data/test/expected/test_pages/three.html +0 -1
- data/test/expected/test_tags/abort_false.html +0 -1
- data/test/expected/test_tags/assign.html +0 -23
- data/test/expected/test_tags/capture.html +0 -21
- data/test/expected/test_tags/content_for.html +0 -1
- data/test/expected/test_tags/filter.html +0 -4
- data/test/expected/test_tags/include.html +0 -33
- data/test/expected/test_tags/render.html +0 -34
- data/test/expected/test_tags/return.html +0 -23
- data/test/expected/test_tags/wrap.html +0 -29
- data/test/plugins/test-theme/stylesheets/disable-this.css +0 -1
- data/test/plugins/test-theme/stylesheets/main.scss +0 -5
- data/test/source/.gitignore +0 -1
- data/test/source/test_render/_f.html +0 -1
- data/test/source/test_render/_var.html +0 -1
- data/test/source/test_tags/_test_render.md +0 -4
- data/test/source/test_tags/abort_false.html +0 -5
- data/test/source/test_tags/abort_posts.html +0 -5
- data/test/source/test_tags/abort_true.html +0 -5
- data/test/source/test_tags/assign.html +0 -26
- data/test/source/test_tags/capture.html +0 -31
- data/test/source/test_tags/content_for.html +0 -7
- data/test/source/test_tags/filter.html +0 -6
- data/test/source/test_tags/include.html +0 -36
- data/test/source/test_tags/render.html +0 -36
- data/test/source/test_tags/return.html +0 -30
- data/test/source/test_tags/wrap.html +0 -32
- data/test/test-plugin-expected/demo/Gemfile +0 -6
- data/test/test-theme-expected/demo/Gemfile +0 -6
- data/test/test.rb +0 -110
- data/test/test_suite.rb +0 -161
data/lib/octopress-ink/plugin.rb
CHANGED
@@ -7,7 +7,7 @@ module Octopress
|
|
7
7
|
def self.compile_css(content)
|
8
8
|
configs = sass_converter.sass_configs
|
9
9
|
configs[:syntax] = :scss
|
10
|
-
configs[:style] = :compressed if
|
10
|
+
configs[:style] = :compressed if Octopress.config['compress_css']
|
11
11
|
|
12
12
|
Sass.compile(content, configs)
|
13
13
|
end
|
@@ -36,7 +36,7 @@ module Octopress
|
|
36
36
|
if @sass_converter
|
37
37
|
@sass_converter
|
38
38
|
else
|
39
|
-
|
39
|
+
Octopress.site.converters.each do |c|
|
40
40
|
@sass_converter = c if c.kind_of?(Jekyll::Converters::Sass)
|
41
41
|
end
|
42
42
|
@sass_converter
|
@@ -89,7 +89,6 @@ module Octopress
|
|
89
89
|
css = combine_stylesheets
|
90
90
|
css.keys.each do |media|
|
91
91
|
contents = compile_css(css[media])
|
92
|
-
contents = AutoprefixerRails.process(contents)
|
93
92
|
write_files(contents, combined_stylesheet_path(media))
|
94
93
|
end
|
95
94
|
end
|
@@ -157,8 +156,8 @@ module Octopress
|
|
157
156
|
def self.write_combined_javascript
|
158
157
|
js = combine_javascripts
|
159
158
|
unless js == ''
|
160
|
-
if
|
161
|
-
settings = Jekyll::Utils.symbolize_hash_keys(
|
159
|
+
if Octopress.config['compress_js']
|
160
|
+
settings = Jekyll::Utils.symbolize_hash_keys(Octopress.config['uglifier'])
|
162
161
|
js = Uglifier.new(settings).compile(js)
|
163
162
|
end
|
164
163
|
write_files(js, combined_javascript_path)
|
@@ -128,13 +128,13 @@ module Octopress
|
|
128
128
|
# Read plugin dir from site configs
|
129
129
|
#
|
130
130
|
def self.custom_dir
|
131
|
-
|
131
|
+
Octopress.site.config['plugins']
|
132
132
|
end
|
133
133
|
|
134
134
|
# Copy/Generate Stylesheets
|
135
135
|
#
|
136
136
|
def self.add_stylesheets
|
137
|
-
if
|
137
|
+
if Octopress.config['combine_css']
|
138
138
|
PluginAssetPipeline.write_combined_stylesheet
|
139
139
|
else
|
140
140
|
add_assets(%w{css sass})
|
@@ -144,7 +144,7 @@ module Octopress
|
|
144
144
|
# Copy/Generate Javascripts
|
145
145
|
#
|
146
146
|
def self.add_javascripts
|
147
|
-
if
|
147
|
+
if Octopress.config['combine_js']
|
148
148
|
PluginAssetPipeline.write_combined_javascript
|
149
149
|
else
|
150
150
|
add_assets(%w{js coffee})
|
@@ -152,7 +152,7 @@ module Octopress
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def self.css_tags
|
155
|
-
if
|
155
|
+
if Octopress.config['combine_css']
|
156
156
|
PluginAssetPipeline.combined_stylesheet_tag
|
157
157
|
else
|
158
158
|
@css_tags.join('')
|
@@ -160,7 +160,7 @@ module Octopress
|
|
160
160
|
end
|
161
161
|
|
162
162
|
def self.js_tags
|
163
|
-
if
|
163
|
+
if Octopress.config['combine_js']
|
164
164
|
PluginAssetPipeline.combined_javascript_tag
|
165
165
|
else
|
166
166
|
@js_tags.join('')
|
data/lib/octopress-ink/tags.rb
CHANGED
@@ -1,19 +1,8 @@
|
|
1
1
|
module Octopress
|
2
2
|
module Ink
|
3
3
|
module Tags
|
4
|
-
autoload :IncludeTag, 'octopress-ink/tags/include'
|
5
|
-
autoload :AssignTag, 'octopress-ink/tags/assign'
|
6
|
-
autoload :ReturnTag, 'octopress-ink/tags/return'
|
7
|
-
autoload :FilterTag, 'octopress-ink/tags/filter'
|
8
|
-
autoload :RenderTag, 'octopress-ink/tags/render'
|
9
|
-
autoload :CaptureTag, 'octopress-ink/tags/capture'
|
10
4
|
autoload :JavascriptTag, 'octopress-ink/tags/javascript'
|
11
5
|
autoload :StylesheetTag, 'octopress-ink/tags/stylesheet'
|
12
|
-
autoload :ContentForTag, 'octopress-ink/tags/content_for'
|
13
|
-
autoload :YieldTag, 'octopress-ink/tags/yield'
|
14
|
-
autoload :WrapTag, 'octopress-ink/tags/wrap'
|
15
|
-
autoload :AbortTag, 'octopress-ink/tags/abort'
|
16
|
-
autoload :LineCommentTag, 'octopress-ink/tags/line_comment'
|
17
6
|
autoload :DocUrlTag, 'octopress-ink/tags/doc_url'
|
18
7
|
end
|
19
8
|
end
|
data/octopress-ink.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Octopress::Ink::VERSION
|
9
9
|
spec.authors = ["Brandon Mathis"]
|
10
10
|
spec.email = ["brandon@imathis.com"]
|
11
|
-
spec.description = %q{A
|
12
|
-
spec.summary = %q{A
|
11
|
+
spec.description = %q{A framework creating Jekyll/Octopress themes and plugins}
|
12
|
+
spec.summary = %q{A framework creating Jekyll/Octopress themes and plugins}
|
13
13
|
spec.homepage = "https://github.com/octopress/ink"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -20,11 +20,13 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "jekyll", "~> 2.0"
|
22
22
|
spec.add_runtime_dependency "uglifier", "~> 2.5"
|
23
|
-
spec.add_runtime_dependency "
|
24
|
-
spec.add_runtime_dependency "
|
23
|
+
spec.add_runtime_dependency "octopress-hooks", "~> 2.2"
|
24
|
+
spec.add_runtime_dependency "octopress-include-tag", "~> 1.0"
|
25
|
+
spec.add_runtime_dependency "octopress-filters", "~> 1.1"
|
26
|
+
spec.add_runtime_dependency "octopress"
|
25
27
|
|
26
|
-
spec.add_development_dependency "octopress"
|
27
28
|
spec.add_development_dependency "bundler", "~> 1.3"
|
28
29
|
spec.add_development_dependency "rake"
|
29
30
|
spec.add_development_dependency "pry-debugger"
|
31
|
+
spec.add_development_dependency "clash"
|
30
32
|
end
|
data/test/.clash.yml
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
-
|
2
|
+
name: Simple build
|
3
|
+
build: true
|
4
|
+
-
|
5
|
+
name: Compare build
|
6
|
+
compare: _expected/site _site
|
7
|
+
-
|
8
|
+
name: Should build with separate javascript and stylesheet files
|
9
|
+
build: true
|
10
|
+
config:
|
11
|
+
octopress: _combine_false.yml
|
12
|
+
compare:
|
13
|
+
- _expected/combine_css_false _site/stylesheets
|
14
|
+
- _expected/combine_js_false _site/javascripts
|
15
|
+
-
|
16
|
+
name: Should compress stylesheets and javascripts
|
17
|
+
build: true
|
18
|
+
config:
|
19
|
+
octopress: _compress_false.yml
|
20
|
+
compare:
|
21
|
+
- _expected/compress_false/stylesheets _site/stylesheets
|
22
|
+
- _expected/compress_false/javascripts _site/javascripts
|
23
|
+
-
|
24
|
+
name: Should copy all theme assets
|
25
|
+
before: octopress ink copy theme --path _copy --force
|
26
|
+
compare: _expected/copy_test _copy
|
27
|
+
after: rm -rf _copy
|
28
|
+
-
|
29
|
+
name: Should copy only pages and layouts
|
30
|
+
before: octopress ink copy theme --layouts --pages --path _copy --force
|
31
|
+
compare: _expected/copy_layouts_pages _copy
|
32
|
+
after: rm -rf _copy
|
33
|
+
-
|
34
|
+
name: Should create a plugins scaffold
|
35
|
+
before:
|
36
|
+
- 'git config user.name > .git-config-user-name'
|
37
|
+
- 'git config user.email > .git-config-user-email'
|
38
|
+
- 'git config user.name ""'
|
39
|
+
- 'git config user.email ""'
|
40
|
+
- 'octopress ink new test-theme --theme'
|
41
|
+
- 'rm -rf test-theme/.git'
|
42
|
+
compare: _expected/test-theme-expected test-theme
|
43
|
+
after:
|
44
|
+
- 'cat .git-config-user-name | tr -d "\n" | xargs -0 git config user.name'
|
45
|
+
- 'cat .git-config-user-email | tr -d "\n" | xargs -0 git config user.email'
|
46
|
+
- 'rm -rf test-theme .git-config-user-name .git-config-user-email'
|
data/test/Gemfile
CHANGED
data/test/_config.yml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
name: Your New Jekyll Site
|
2
|
-
markdown: redcarpet
|
3
|
-
highlighter: pygments
|
4
|
-
source: source
|
5
|
-
destination: site
|
6
1
|
include_test: foo.html
|
7
|
-
|
2
|
+
exclude:
|
3
|
+
- Gemfile*
|
4
|
+
|
5
|
+
url: http://octopress.org
|
8
6
|
timezone: America/Chicago
|
7
|
+
markdown: redcarpet
|
8
|
+
name: Your New Jekyll Site
|
9
|
+
source: source
|
File without changes
|
File without changes
|
data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-media-test.css
RENAMED
File without changes
|
data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test.css
RENAMED
File without changes
|
data/test/{combine_css_false/stylesheets → _expected/combine_css_false}/theme/theme-test2.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
.do-not-exist { background: #bcbcbc; }
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<title>Your New Jekyll Site</title>
|
7
|
+
<meta name="viewport" content="width=device-width">
|
8
|
+
</head>
|
9
|
+
<body class=" ">
|
10
|
+
<div class='local-override'>
|
11
|
+
one <span class='separator'></b> two <span class='separator'></b> three <span class='separator'></b> four five
|
12
|
+
</div>
|
13
|
+
|
14
|
+
</body>
|
15
|
+
</html>
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
body{margin:2px;padding:2px}.main{color:#444}body{background:#bcbcbc}.plugin-widget{background:red;color:#fff}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<title></title>
|
7
|
+
<meta name="viewport" content="width=device-width">
|
8
|
+
</head>
|
9
|
+
<body class=" ">
|
10
|
+
<p>SUB BABY</p>
|
11
|
+
|
12
|
+
</body>
|
13
|
+
</html>
|