Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion service/lib/tasks/autoyast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ def generate
lines = ["# AutoYaST compatibility reference"]

top_level = description.elements.select(&:top_level?)
.sort_by(&:short_key)
unsupported, rest = top_level.partition { |e| e.support == :no }

top_level.each do |e|
rest.each do |e|
lines.concat(section(e))
end

lines.join("\n")

lines.concat(unsupported_elements(unsupported))
end

private
Expand Down Expand Up @@ -86,6 +90,20 @@ def elements_table(elements)
lines
end

def unsupported_elements(elements)
lines = []
lines << "## Unsupported sections"
lines << ""
lines << "The following sections are not supported and there are no plans to " \
"support them in the future."
lines << ""
elements.each_with_object(lines) do |e, all|
line = "* `#{e.short_key}`"
line << ": #{e.notes}" if e.notes
all << line
end
end

# Generates the notes for a given element.
#
# @param element [ProfileElement] Profile element to generate the notes for
Expand Down
1 change: 1 addition & 0 deletions service/share/autoyast-compat.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
{ "key": "groups", "support": "no" },
{ "key": "host", "support": "no" },
{ "key": "http-server", "support": "no" },
{ "key": "kdump", "support": "planned" },
{
"key": "keyboard",
"children": [
Expand Down
Loading