octopress-ink 1.0.0.rc.19 → 1.0.0.rc.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/assets/docs/creating-a-plugin.markdown +8 -4
- data/assets/docs/index.markdown +2 -2
- data/assets/docs/plugin-reference.markdown +8 -5
- data/lib/octopress-ink.rb +3 -11
- data/lib/octopress-ink/commands/new.rb +4 -3
- data/lib/octopress-ink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed486bb3213b7ddd8920731ab620c538a140e1bb
|
4
|
+
data.tar.gz: 573c19ef7bccc8713c6464055af7cd320d5fcb4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63cae56453a4f71770fb506e3bc7a7b0f708b8bc734ac2835052af17a1027e2cc74e5a105b55e20878f701e1371be1384940118a008f002dbe43930ae4b4af37
|
7
|
+
data.tar.gz: 1eb8d270480c0fba04b9c6093cec06e8e94ebc8e4bf2cff1b4e9997d8cbfa444b3d0d362de56d308f9c16d670e5ca90c67e9d46419555d5eac9d6a11a75ceb14
|
data/CHANGELOG.md
CHANGED
@@ -17,11 +17,14 @@ require "octopress-ink"
|
|
17
17
|
Octopress::Ink.add_plugin({
|
18
18
|
name: "My Plugin",
|
19
19
|
slug: "my-plugin",
|
20
|
-
|
20
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
21
21
|
type: "plugin",
|
22
|
+
|
23
|
+
# Metadata which is displayed with plugin info
|
22
24
|
version: MyPlugin::VERSION,
|
23
|
-
description: "",
|
24
|
-
|
25
|
+
description: "My plugin does awesome stuff",
|
26
|
+
source_url: "https://github.com/user/project",
|
27
|
+
website: ""
|
25
28
|
})
|
26
29
|
```
|
27
30
|
|
@@ -36,6 +39,7 @@ The configuration options are as follows.
|
|
36
39
|
| version | Optional: Version will be displayed with plugin info |
|
37
40
|
| description | Optional: Description will be displayed with plugin info |
|
38
41
|
| website | Optional: Website will be displayed with plugin info |
|
42
|
+
| source_url | Optional: Direct people to the GitHub project (or elsewhere) |
|
39
43
|
|
40
44
|
Note: For themes, the slug will be set to `theme`. This makes it easy for users to work with any theme with a consistent slug name.
|
41
45
|
|
@@ -141,7 +145,7 @@ Note: Assets are copied at build time and assets will not overwrite an existing
|
|
141
145
|
| images | `cat.gif` is copied to `_site/images/plugin_slug/cat.gif`. |
|
142
146
|
| javascripts | `boom.js` is combined with all plugin javascripts into a single fingerprinted file. |
|
143
147
|
| stylesheets | `theme.scss` and `print.css` are combined with all plugin stylesheets into a single fingerprinted file. |
|
144
|
-
| docs | Add documentation files for your plugin here. Users will be able to read it by running `octopress docs`.
|
148
|
+
| docs | Add documentation files for your plugin here. Users will be able to read it by running `octopress docs`. |
|
145
149
|
|
146
150
|
|
147
151
|
### Layouts
|
data/assets/docs/index.markdown
CHANGED
@@ -11,7 +11,7 @@ Octopress Ink helps developers create plugins and themes which integrate seamles
|
|
11
11
|
- Customization is simple and consistent.
|
12
12
|
- Easily view documentation for your unique setup, even offline.
|
13
13
|
|
14
|
-
[Using Octopress Ink plugins →](
|
14
|
+
[Using Octopress Ink plugins →](#add-a-link)
|
15
15
|
|
16
16
|
#### Benefits For Developers
|
17
17
|
|
@@ -19,7 +19,7 @@ Octopress Ink helps developers create plugins and themes which integrate seamles
|
|
19
19
|
- Easily convert plugins you've already written.
|
20
20
|
- Plugins automatically integrate with the Octopress CLI.
|
21
21
|
|
22
|
-
[Developing with Octopress Ink →](
|
22
|
+
[Developing with Octopress Ink →](#add-a-link)
|
23
23
|
|
24
24
|
#### Shipping assets
|
25
25
|
- Asset pipeline
|
@@ -3,7 +3,7 @@ title: "Octopress Ink Plugin Reference"
|
|
3
3
|
permalink: /plugin-reference/
|
4
4
|
---
|
5
5
|
|
6
|
-
Octopress Ink plugins should be distributed as Ruby gems.
|
6
|
+
Octopress Ink plugins should be distributed as Ruby gems.
|
7
7
|
|
8
8
|
### Plugin Template
|
9
9
|
|
@@ -14,12 +14,15 @@ require "octopress-ink"
|
|
14
14
|
|
15
15
|
Octopress::Ink.add_plugin({
|
16
16
|
name: "My Plugin",
|
17
|
-
slug: "my-plugin",
|
18
|
-
|
17
|
+
slug: "my-plugin", # optional (derived from name if not present)
|
18
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
19
19
|
type: "plugin",
|
20
|
+
|
21
|
+
# Optional (but awesome) metadata
|
20
22
|
version: MyPlugin::VERSION,
|
21
|
-
description: "",
|
22
|
-
|
23
|
+
description: "My plugin does awesome stuff",
|
24
|
+
source_url: "https://github.com/user/project",
|
25
|
+
website: ""
|
23
26
|
})
|
24
27
|
```
|
25
28
|
|
data/lib/octopress-ink.rb
CHANGED
@@ -12,16 +12,6 @@ require 'octopress-ink/configuration'
|
|
12
12
|
require 'octopress-ink/jekyll/hooks'
|
13
13
|
|
14
14
|
module Octopress
|
15
|
-
def self.site=(site)
|
16
|
-
# Octopress historically used site.title
|
17
|
-
# This allows theme developers to expect site.name
|
18
|
-
# in consistancy with Jekyll's scaffold config
|
19
|
-
|
20
|
-
site.config['name'] ||= site.config['title']
|
21
|
-
|
22
|
-
@site = site
|
23
|
-
end
|
24
|
-
|
25
15
|
module Ink
|
26
16
|
|
27
17
|
autoload :Assets, 'octopress-ink/assets'
|
@@ -223,7 +213,9 @@ Liquid::Template.register_tag('js_asset_tag', Octopress::Ink::Tags::JavascriptTa
|
|
223
213
|
|
224
214
|
Octopress::Docs.add({
|
225
215
|
name: "Octopress Ink",
|
216
|
+
description: "A framework for creating Jekyll quality themes and plugins",
|
226
217
|
slug: "ink",
|
227
|
-
|
218
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
219
|
+
source_url: "https://github.com/octopress/ink",
|
228
220
|
base_url: "docs/ink"
|
229
221
|
})
|
@@ -168,7 +168,7 @@ _site
|
|
168
168
|
def self.add_simple_plugin(mod)
|
169
169
|
mod = "#{@settings[:require_version]}\n"
|
170
170
|
mod += "require 'octopress-ink'\n"
|
171
|
-
mod += "\nOctopress::Ink.add_plugin({\n#{indent(plugin_config)}\n})"
|
171
|
+
mod += "\nOctopress::Ink.add_plugin({\n#{indent(plugin_config)}\n})\n"
|
172
172
|
end
|
173
173
|
|
174
174
|
|
@@ -184,8 +184,9 @@ slug: "#{@settings[:type] == 'theme' ? 'theme' : @settings[:name]}",
|
|
184
184
|
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
185
185
|
type: "#{@settings[:type]}",
|
186
186
|
version: #{@settings[:version]},
|
187
|
-
description: "",
|
188
|
-
|
187
|
+
description: "", # What does your theme/plugin do?
|
188
|
+
source_url: "https://github.com/user/project", # <- Update info
|
189
|
+
website: "" # Optional project website
|
189
190
|
HERE
|
190
191
|
config.rstrip
|
191
192
|
end
|
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.rc.
|
4
|
+
version: 1.0.0.rc.20
|
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-12-
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|