summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-10-09 16:19:28 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-10-12 16:26:46 -0500
commit71273297d568f9a61a092bb412b7e628bf347a0f (patch)
tree378c359eb94298825ea6eda3cf73a7c586805e18 /tools
parent922551166427b8f27b07886390cc2c779dc558ed (diff)
downloadsdbusplus-71273297d568f9a61a092bb412b7e628bf347a0f.tar.gz
sdbusplus-71273297d568f9a61a092bb412b7e628bf347a0f.zip
interface: render as markdown document
Change-Id: I885f08dd97f751220e37ea91eeab223298c81b69 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'tools')
-rw-r--r--tools/sdbusplus/interface.py4
-rw-r--r--tools/templates/interface.mako.md3
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/sdbusplus/interface.py b/tools/sdbusplus/interface.py
index 07663e3..7966425 100644
--- a/tools/sdbusplus/interface.py
+++ b/tools/sdbusplus/interface.py
@@ -26,3 +26,7 @@ class Interface(NamedElement, object):
kwargs.pop('signals', []) ]
super(Interface, self).__init__(**kwargs)
+
+ def markdown(self, loader):
+ template = loader.get_template("interface.mako.md")
+ return template.render(interface=self, loader=loader)
diff --git a/tools/templates/interface.mako.md b/tools/templates/interface.mako.md
new file mode 100644
index 0000000..17eb835
--- /dev/null
+++ b/tools/templates/interface.mako.md
@@ -0,0 +1,3 @@
+# ${interface.name}
+
+${interface.description}
OpenPOWER on IntegriCloud