octopress-docs 0.0.7 → 0.0.8

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: b0921dd044bc13c6539ed6404487e77f30e4028b
4
- data.tar.gz: c621a9a1310977f125151c53de4387473424857e
3
+ metadata.gz: 0878e319fb7db83f2aac9b31a74237537f938079
4
+ data.tar.gz: 681bec4bb92b553a2f37fb790a29fb8d01e8e150
5
5
  SHA512:
6
- metadata.gz: 9faddaf8893d30cb682a9546f717bb75a9779a53020934196661a0f25d1c39c37d232e79c298679bec61c9c62bdcf8758e377c438c87042209fd51e09ca2072b
7
- data.tar.gz: 569904425cb860fa9473b84451b5141e0c7eeb3072668826c0fa8f51d72f6fe34ca90770c9c7315649e7dbe86a54c4e05e2c3b08df6dd698065b5c34d2444032
6
+ metadata.gz: 76ff3ea327d241f8608f97c2396f3d23cf7b60a2db9945bed6b27cf34fb38e1c509cc92ba440ca58716eafa5a5656e0c21b3d3edcb986662f133e0b589356178
7
+ data.tar.gz: 25c729ff14d795020c18f6c3459500818bc146e502df8dfedaa50b0cacd0e5db4367a293ce74903df0e1d6c6154dae97de61647485f808161ce7fba97a5c9d72
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Docs
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -57,14 +57,8 @@ module Octopress
57
57
  end
58
58
 
59
59
  def self.add_plugin_docs(plugin)
60
- plugin_doc_pages = []
61
60
  options = plugin_options(plugin)
62
- find_doc_pages(options).each do |doc|
63
- unless doc =~ /^_/
64
- opts = options.merge({file: doc, dir: options[:docs_path]})
65
- plugin_doc_pages << add_doc_page(opts)
66
- end
67
- end
61
+ plugin_doc_pages = add_asset_docs(options)
68
62
 
69
63
  # If there is no docs index page, set the reame as the index page
70
64
  has_index = !plugin_doc_pages.select {|d| d.file =~ /^index/ }.empty?
@@ -112,6 +106,7 @@ module Octopress
112
106
  options[:docs_path] ||= File.join(options[:dir], 'assets', 'docs')
113
107
  docs = []
114
108
  docs.concat add_root_docs(options)
109
+ docs.concat add_asset_docs(options)
115
110
  docs.compact!
116
111
  end
117
112
 
@@ -148,6 +143,17 @@ module Octopress
148
143
 
149
144
  private
150
145
 
146
+ def self.add_asset_docs(options)
147
+ docs = []
148
+ find_doc_pages(options).each do |doc|
149
+ unless doc =~ /^_/
150
+ opts = options.merge({file: doc, dir: options[:docs_path]})
151
+ docs << add_doc_page(opts)
152
+ end
153
+ end
154
+ docs
155
+ end
156
+
151
157
  def self.find_doc_pages(options)
152
158
  full_dir = options[:docs_path]
153
159
  glob_assets(full_dir).map do |file|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis