mirror of
https://github.com/Icinga/icinga-docs-tools.git
synced 2025-07-29 16:54:01 +02:00
Merge pull request #13 from Icinga/icingadb-for-container-extra-sausage
Sort "For Container" install section to bottom
This commit is contained in:
commit
9df878c274
@ -127,12 +127,15 @@ def build_page_index(full_docs_dir, project_docs_dir, package = "", product = ""
|
|||||||
subdirectory.push(header => subfile_path) if header
|
subdirectory.push(header => subfile_path) if header
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sort the "From Source" installation guide explicitly to the end
|
# Sort the "For Container" and "From Source" installation sections
|
||||||
subdirectory.each_with_index do |subdirectory_element, index|
|
# explicitly to the end. "For Container" precedes "From Source".
|
||||||
if subdirectory_element.key?("From Source")
|
["For Container", "From Source"].each do |section_name|
|
||||||
subdirectory.append(subdirectory_element)
|
subdirectory.each_with_index do |subdirectory_element, index|
|
||||||
subdirectory.delete_at(index)
|
if subdirectory_element.key?(section_name)
|
||||||
break
|
subdirectory.append(subdirectory_element)
|
||||||
|
subdirectory.delete_at(index)
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user