|
|
@ -4,10 +4,9 @@ module Docs
|
|
|
|
class Manifest
|
|
|
|
class Manifest
|
|
|
|
FILENAME = 'docs.json'
|
|
|
|
FILENAME = 'docs.json'
|
|
|
|
|
|
|
|
|
|
|
|
def initialize(store, docs, aliases)
|
|
|
|
def initialize(store, docs)
|
|
|
|
@store = store
|
|
|
|
@store = store
|
|
|
|
@docs = docs
|
|
|
|
@docs = docs
|
|
|
|
@aliases = aliases
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def store
|
|
|
|
def store
|
|
|
@ -21,7 +20,7 @@ module Docs
|
|
|
|
if doc.options[:attribution].is_a?(String)
|
|
|
|
if doc.options[:attribution].is_a?(String)
|
|
|
|
json[:attribution] = doc.options[:attribution].strip
|
|
|
|
json[:attribution] = doc.options[:attribution].strip
|
|
|
|
end
|
|
|
|
end
|
|
|
|
json[:alias] = @aliases[doc.slug]
|
|
|
|
json[:alias] = Docs.aliases[doc.slug]
|
|
|
|
result << json
|
|
|
|
result << json
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|