octopress-ink 1.0.0.rc.28 → 1.0.0.rc.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/assets/docs/creating-a-plugin.markdown +3 -1
- data/lib/octopress-ink/assets/sass.rb +5 -2
- data/lib/octopress-ink/assets/stylesheet.rb +6 -2
- data/lib/octopress-ink/plugin.rb +1 -1
- data/lib/octopress-ink/plugin_asset_pipeline.rb +1 -1
- data/lib/octopress-ink/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e38e29560f069cec7661d28c370c84cbd7d75dd8
|
4
|
+
data.tar.gz: 5d1da51d9f5553c320dcadae6a5acbb3721ef915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528bdf642e98127d79a00d808a0f2ae6c424b2994032e09529e3d6a42a6ccc1abeff6f61096596e6a839b95e800e1fdc26d2f0199c17cb6805f8360b23fc920c
|
7
|
+
data.tar.gz: ecc263199a90a9f479e1d28d66ca1ed4b7c3c22ca9362fa057f5803e0f0ba48b03c3936041b5832fce611cd78981656c2aa1826697c47efcfd4c4f9a08fa317a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### 1.0.0
|
3
|
+
### 1.0.0 RC29 - 2015-01-14
|
4
|
+
|
5
|
+
- Fixed path issues when writing stylesheet tags.
|
6
|
+
|
7
|
+
### 1.0.0 RC28 - 2015-01-14
|
4
8
|
|
5
9
|
- Minified javascripts (whatever.min.js) are not re-compressed and are added first in the builds
|
6
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
title: "Create an Octopress Ink Plugin"
|
3
|
-
permalink: /
|
3
|
+
permalink: /ink/creating-a-plugin/
|
4
4
|
---
|
5
5
|
|
6
6
|
*This guide assumes you have already installed Git, and have Ruby 1.9.3 or greater.*
|
@@ -17,6 +17,7 @@ require "octopress-ink"
|
|
17
17
|
Octopress::Ink.add_plugin({
|
18
18
|
name: "My Plugin",
|
19
19
|
slug: "my-plugin",
|
20
|
+
gem: "my-plugin",
|
20
21
|
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
21
22
|
type: "plugin",
|
22
23
|
|
@@ -35,6 +36,7 @@ The configuration options are as follows.
|
|
35
36
|
| name | The display name for your plugin, e.g. "My Plugin" |
|
36
37
|
| path | Path to your plugin's root directory |
|
37
38
|
| slug | Optional: The slug is how users will reference your plugin, (Default: sluggified name) |
|
39
|
+
| gem | Optional: This is displayed in plugin info and on the local docs site. |
|
38
40
|
| type | Optional: "plugin" or "theme" (Default: "plugin") |
|
39
41
|
| version | Optional: Version will be displayed with plugin info |
|
40
42
|
| description | Optional: Description will be displayed with plugin info |
|
@@ -14,7 +14,7 @@ module Octopress
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def tag
|
17
|
-
"<link href='#{Filters.expand_url(File.join(dir,
|
17
|
+
"<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{@media}' rel='stylesheet' type='text/css'>"
|
18
18
|
end
|
19
19
|
|
20
20
|
def add
|
@@ -43,7 +43,7 @@ module Octopress
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def destination
|
46
|
-
File.join(base, plugin.slug,
|
46
|
+
File.join(base, plugin.slug, output_file_name)
|
47
47
|
end
|
48
48
|
|
49
49
|
private
|
@@ -71,6 +71,9 @@ module Octopress
|
|
71
71
|
file.sub(ext, alt_ext)
|
72
72
|
end
|
73
73
|
|
74
|
+
def output_file_name
|
75
|
+
file.sub(/@/,'-').sub(/s.ss/, 'css')
|
76
|
+
end
|
74
77
|
end
|
75
78
|
end
|
76
79
|
end
|
@@ -27,7 +27,7 @@ module Octopress
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def tag
|
30
|
-
"<link href='#{Filters.expand_url(File.join(dir,
|
30
|
+
"<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{media}' rel='stylesheet' type='text/css'>"
|
31
31
|
end
|
32
32
|
|
33
33
|
def add
|
@@ -38,7 +38,11 @@ module Octopress
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def destination
|
41
|
-
File.join(base, plugin.slug,
|
41
|
+
File.join(base, plugin.slug, output_file_name)
|
42
|
+
end
|
43
|
+
|
44
|
+
def output_file_name
|
45
|
+
file.sub(/@/,'-')
|
42
46
|
end
|
43
47
|
end
|
44
48
|
end
|
data/lib/octopress-ink/plugin.rb
CHANGED
@@ -144,7 +144,7 @@ module Octopress
|
|
144
144
|
end
|
145
145
|
|
146
146
|
def self.combine_no_compress_javascripts
|
147
|
-
@combined_no_compress_javascripts ||= combine_js(no_compress_js)
|
147
|
+
@combined_no_compress_javascripts ||= combine_js(no_compress_js) || ''
|
148
148
|
end
|
149
149
|
|
150
150
|
def self.combine_js(files)
|