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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 647bcbdbcf354195f3990d5a63ad12b63b52b9cd
4
- data.tar.gz: 86d6463658166fc12f5ef709144d0b247911a5d2
3
+ metadata.gz: 4d9c983309c30c9bdbb11e3aad0c741c3e5e208b
4
+ data.tar.gz: 6a32fe0f8b9f79e99c87837cf86dedcccab8966a
5
5
  SHA512:
6
- metadata.gz: 7280f35abb690a97429b47c58a4b62fad146b2cd8a2de8a8903003cf7fcf424c433e6f26f0f9f05ee64f692ade152d6be887f28b22d891105d80152923baba09
7
- data.tar.gz: d12f8f562636a17c2ee61c52bbd74b870a2d2f0c43595bedc941a67aee624a8c0c2161f47f89c070705bbcb7a71de03cc7eccc26be2503dac18d76dcedec23ba
6
+ metadata.gz: c18ebf8a676ed40773ff4f45f0a54499e6786ea1e42bd394b9809f9ebc3b495e7ddecfba660273326c437b3964b09bbc177634b9c66ecae22fa75ba0ad654850
7
+ data.tar.gz: 003132b76e43c9530ce99c785692675e6d0d50c33faa02da55a3959ae682cdfb225e926d262cd5edfe793f1b968f872b85653c069c0db74299d0e952633901bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.0 RC23 - 2015-01-02
4
+
5
+ - Reworked integration with Octopress Docs
6
+
3
7
  ### 1.0.0 RC22 - 2015-01-01
4
8
 
5
9
  - Moved Asset pipeline configuration under `asset_pipline` key in _config.yml
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
  })
@@ -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, :docs_url
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 ENV['OCTOPRESS_DOCS']
51
+ if Octopress::Docs.enabled?
53
52
  add_docs
54
- else
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
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.22"
3
+ VERSION = "1.0.0.rc.23"
4
4
  end
5
5
  end
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.22
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