From a4a2ab4a3304ad79743644b23ed8858c1c7f7146 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 17 Nov 2024 14:31:15 +0100 Subject: [PATCH] Fix Docs.aliases --- lib/docs.rb | 2 +- lib/docs/core/manifest.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/docs.rb b/lib/docs.rb index 6607bc6d..f8ab6a03 100644 --- a/lib/docs.rb +++ b/lib/docs.rb @@ -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 diff --git a/lib/docs/core/manifest.rb b/lib/docs/core/manifest.rb index 7d90e1f8..ac3162ca 100644 --- a/lib/docs/core/manifest.rb +++ b/lib/docs/core/manifest.rb @@ -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