sdbus++: generate markdown for enumerations
Change-Id: I8b62aea7094e6e8e12d39e1341ebd07fc547b12b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/sdbusplus/templates/interface.mako.md b/tools/sdbusplus/templates/interface.mako.md
index f11c9e9..f754b26 100644
--- a/tools/sdbusplus/templates/interface.mako.md
+++ b/tools/sdbusplus/templates/interface.mako.md
@@ -18,15 +18,32 @@
% for p in interface.properties:
| ${p.markdown(loader)} |
% endfor
-%else:
+% else:
No properties.
-%endif
+% endif
${"##"} Signals
% if len(interface.signals):
% for s in interface.signals:
${s.markdown(loader)}
%endfor
-%else:
+% else:
No signals.
-%endif
+% endif
+
+${"##"} Enumerations
+% if len(interface.enums):
+ % for e in interface.enums:
+${"###"} ${e.name}
+
+${e.description}
+
+| name | description |
+|------|-------------|
+ % for v in e.values:
+| **${v.name}** | ${ v.description.strip() } |
+ % endfor
+ % endfor
+% else:
+No enumerations.
+% endif