octopress-ink 1.0.0.rc.22 → 1.0.0.rc.23
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/lib/octopress-ink.rb +10 -2
- data/lib/octopress-ink/plugin.rb +5 -16
- data/lib/octopress-ink/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d9c983309c30c9bdbb11e3aad0c741c3e5e208b
|
4
|
+
data.tar.gz: 6a32fe0f8b9f79e99c87837cf86dedcccab8966a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c18ebf8a676ed40773ff4f45f0a54499e6786ea1e42bd394b9809f9ebc3b495e7ddecfba660273326c437b3964b09bbc177634b9c66ecae22fa75ba0ad654850
|
7
|
+
data.tar.gz: 003132b76e43c9530ce99c785692675e6d0d50c33faa02da55a3959ae682cdfb225e926d262cd5edfe793f1b968f872b85653c069c0db74299d0e952633901bf
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-ink.rb
CHANGED
@@ -5,7 +5,6 @@ require 'digest/md5'
|
|
5
5
|
require 'octopress'
|
6
6
|
require 'octopress-hooks'
|
7
7
|
require 'octopress-filters'
|
8
|
-
require 'octopress-docs'
|
9
8
|
|
10
9
|
require 'octopress-ink/version'
|
11
10
|
require 'octopress-ink/configuration'
|
@@ -30,6 +29,8 @@ module Octopress
|
|
30
29
|
require 'octopress-ink/commands'
|
31
30
|
end
|
32
31
|
|
32
|
+
@load_plugin_assets = true
|
33
|
+
|
33
34
|
def self.version
|
34
35
|
version = "Jekyll v#{Jekyll::VERSION}, "
|
35
36
|
if defined? Octopress::VERSION
|
@@ -51,6 +52,14 @@ module Octopress
|
|
51
52
|
ink_payload
|
52
53
|
end
|
53
54
|
|
55
|
+
def self.enabled?
|
56
|
+
@load_plugin_assets
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.load_plugin_assets=(setting)
|
60
|
+
@load_plguin_assets = setting
|
61
|
+
end
|
62
|
+
|
54
63
|
# Register a new plugin
|
55
64
|
#
|
56
65
|
# plugin - A subclass of Plugin
|
@@ -217,5 +226,4 @@ Octopress::Docs.add({
|
|
217
226
|
slug: "ink",
|
218
227
|
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
219
228
|
source_url: "https://github.com/octopress/ink",
|
220
|
-
base_url: "docs/ink"
|
221
229
|
})
|
data/lib/octopress-ink/plugin.rb
CHANGED
@@ -10,7 +10,7 @@ module Octopress
|
|
10
10
|
|
11
11
|
attr_reader :name, :type, :path, :assets_path, :local, :website, :description, :version, :source_url, :website,
|
12
12
|
:layouts_dir, :stylesheets_dir, :javascripts_dir, :files_dir, :includes_dir, :images_dir,
|
13
|
-
:layouts, :includes, :images, :fonts, :files, :pages, :docs
|
13
|
+
:layouts, :includes, :images, :fonts, :files, :pages, :docs
|
14
14
|
|
15
15
|
def initialize(options)
|
16
16
|
options = Jekyll::Utils.symbolize_hash_keys(options || configuration)
|
@@ -39,7 +39,6 @@ module Octopress
|
|
39
39
|
@pages = []
|
40
40
|
@slug ||= @name
|
41
41
|
@assets_path ||= File.join(@path, 'assets')
|
42
|
-
@docs_url ||= docs_url
|
43
42
|
end
|
44
43
|
|
45
44
|
def register
|
@@ -49,9 +48,11 @@ module Octopress
|
|
49
48
|
add_assets
|
50
49
|
add_images
|
51
50
|
|
52
|
-
if
|
51
|
+
if Octopress::Docs.enabled?
|
53
52
|
add_docs
|
54
|
-
|
53
|
+
end
|
54
|
+
|
55
|
+
if Octopress::Ink.enabled?
|
55
56
|
add_includes
|
56
57
|
add_layouts
|
57
58
|
add_javascripts
|
@@ -69,18 +70,6 @@ module Octopress
|
|
69
70
|
Filters.sluggify @type == 'theme' ? 'theme' : @slug
|
70
71
|
end
|
71
72
|
|
72
|
-
# Path where doc pages will be hosted
|
73
|
-
#
|
74
|
-
# - returns: String, eg: docs/plugins/plugin-slug
|
75
|
-
#
|
76
|
-
def docs_url
|
77
|
-
if @type == 'theme'
|
78
|
-
File.join('docs', 'theme')
|
79
|
-
else
|
80
|
-
File.join('docs', 'plugins', slug)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
73
|
# List info about plugin's assets
|
85
74
|
#
|
86
75
|
# returs: String filled with asset info
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 3.0.0.rc
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: octopress-docs
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rake
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|