summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/devdocs/Gjs/enum.tmpl
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-08-14 07:03:14 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2018-08-14 07:03:14 +0000
commitf2be65b417b7179f5490c0735d053bd466f7f317 (patch)
tree8618529e44de000b363e4b2a93359c00d4bfae40 /giscanner/doctemplates/devdocs/Gjs/enum.tmpl
parent1f5c81048d762f4866137e1e3221d85b9b611d8b (diff)
parent48d348ac822234d898119d8a2118c2bb07145dd1 (diff)
downloadgobject-introspection-f2be65b417b7179f5490c0735d053bd466f7f317.tar.gz
Merge branch 'devdocs-format-rebase-v2' into 'master'
Add DevDocs formatting for GJS See merge request GNOME/gobject-introspection!57
Diffstat (limited to 'giscanner/doctemplates/devdocs/Gjs/enum.tmpl')
-rw-r--r--giscanner/doctemplates/devdocs/Gjs/enum.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/giscanner/doctemplates/devdocs/Gjs/enum.tmpl b/giscanner/doctemplates/devdocs/Gjs/enum.tmpl
new file mode 100644
index 00000000..a66cbefa
--- /dev/null
+++ b/giscanner/doctemplates/devdocs/Gjs/enum.tmpl
@@ -0,0 +1,16 @@
+<%inherit file="base.tmpl"/>
+<ul>
+% for m in node.members:
+ <li>
+ <code>
+ <span class="entry" id="${formatter.make_anchor(m)}">
+ ${m.name.upper()}
+ </span>
+ = ${m.value}
+ </code>
+ % if m.doc:
+ &mdash; ${formatter.format_inline(node, m.doc)}
+ % endif
+ </li>
+% endfor
+</ul>