Merge pull request #13 from Icinga/icingadb-for-container-extra-sausage

Sort "For Container" install section to bottom
This commit is contained in:
Blerim Sheqa 2025-06-17 15:09:57 +02:00 committed by GitHub
commit 9df878c274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,14 +127,17 @@ def build_page_index(full_docs_dir, project_docs_dir, package = "", product = ""
subdirectory.push(header => subfile_path) if header
end
# Sort the "From Source" installation guide explicitly to the end
# Sort the "For Container" and "From Source" installation sections
# explicitly to the end. "For Container" precedes "From Source".
["For Container", "From Source"].each do |section_name|
subdirectory.each_with_index do |subdirectory_element, index|
if subdirectory_element.key?("From Source")
if subdirectory_element.key?(section_name)
subdirectory.append(subdirectory_element)
subdirectory.delete_at(index)
break
end
end
end
if(is_template_dir)
template_path = filepath.gsub(/\.d$/, '')