module ForemanThemeSatellite::Documentation
Constants
- DOCS_GUIDES_LINKS
- PLUGINS_DOCUMENTATION
- USER_GUIDE_DICTIONARY
Public Class Methods
flat_docs_guides_links()
click to toggle source
# File lib/foreman_theme_satellite/documentation.rb, line 90 def self.flat_docs_guides_links nested_to_flat_k_v(nil, DOCS_GUIDES_LINKS).to_h end
Private Class Methods
nested_to_flat_k_v(prefix, source)
click to toggle source
# File lib/foreman_theme_satellite/documentation.rb, line 94 def self.nested_to_flat_k_v(prefix, source) key_values = [] source.map do |k, v| key = "#{prefix}/#{k}" if v.is_a?(Hash) key_values.concat(nested_to_flat_k_v(key, v)) else key_values.concat([[key, v]]) end end key_values end