Fix Docs.aliases

pull/2361/head
Simon Legner 2 months ago
parent 5d8d12c133
commit a4a2ab4a33

@ -101,7 +101,7 @@ module Docs
end
def self.generate_manifest
Manifest.new(store, all_versions, aliases).store
Manifest.new(store, all_versions).store
end
def self.store

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

Loading…
Cancel
Save