lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.alpha.42 vs lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.alpha.43
- old
+ new
@@ -95,19 +95,19 @@
# Docs pages for each plugin
#
# returns: Array of plugin doc pages
#
def self.doc_pages
- plugins.clone.map { |p|
+ plugin_docs = {}
+ plugins.clone.map do |p|
if pages = p.doc_pages
- {
+ plugin_docs[p.slug] = {
"name" => p.name,
"pages" => pages
}
- else
- nil
end
- }.compact
+ end
+ plugin_docs
end
def self.include(name, file)
p = plugin(name)
p.include(file)