From d1868eb518736c10473ec1c6db92784ce47e1c67 Mon Sep 17 00:00:00 2001 From: Shim Shtein Date: Thu, 8 Aug 2024 12:21:44 -0400 Subject: [PATCH] Fix documentation hash generation --- lib/foreman_theme_satellite/documentation.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/foreman_theme_satellite/documentation.rb b/lib/foreman_theme_satellite/documentation.rb index 60753df..dfb8171 100644 --- a/lib/foreman_theme_satellite/documentation.rb +++ b/lib/foreman_theme_satellite/documentation.rb @@ -95,11 +95,12 @@ def self.flat_docs_guides_links source.map do |k, v| key = "#{prefix}/#{k}" if v.is_a?(Hash) - key_values.append(*nested_to_flat_k_v(key, v)) + key_values.concat(nested_to_flat_k_v(key, v)) else - key_values.append([key, v]) + key_values.concat([[key, v]]) end end + key_values end end end