summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/devdocs/Gjs/namespace.tmpl
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2015-11-15 21:46:12 -0500
committerrockon999 <rockon999@users.noreply.github.com>2018-08-06 02:53:45 -0500
commit7f67146d8254464f396b289ed41c8954d61fe03d (patch)
treeee37ec817a11baf293664d36086c6d010177e409 /giscanner/doctemplates/devdocs/Gjs/namespace.tmpl
parent19c03a46b14f379cfd4ad93e34133312b754efea (diff)
downloadgobject-introspection-7f67146d8254464f396b289ed41c8954d61fe03d.tar.gz
doctool: Output formatter for DevDocs
In order to generate HTML output that DevDocs can easily scrape and display, we add a new output format to g-ir-doc-tool (--format=devdocs). It works similarly to the Mallard output format, but generates very simple HTML instead. We add a new set of Mako templates to generate this output.
Diffstat (limited to 'giscanner/doctemplates/devdocs/Gjs/namespace.tmpl')
-rw-r--r--giscanner/doctemplates/devdocs/Gjs/namespace.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/giscanner/doctemplates/devdocs/Gjs/namespace.tmpl b/giscanner/doctemplates/devdocs/Gjs/namespace.tmpl
new file mode 100644
index 00000000..5a90634a
--- /dev/null
+++ b/giscanner/doctemplates/devdocs/Gjs/namespace.tmpl
@@ -0,0 +1,14 @@
+<html>
+<body>
+ <section>
+ <h1 class="namespace">${node.name}</h1>
+ </section>
+ <ul>
+ % for n in node.values():
+ % if formatter.should_render_node(n):
+ <li>${formatter.format_inline(n, formatter.format_xref(n))}</li>
+ % endif
+ % endfor
+ </ul>
+</body>
+</html>