diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2015-11-15 21:46:12 -0500 |
---|---|---|
committer | rockon999 <rockon999@users.noreply.github.com> | 2018-08-06 02:53:45 -0500 |
commit | 7f67146d8254464f396b289ed41c8954d61fe03d (patch) | |
tree | ee37ec817a11baf293664d36086c6d010177e409 /giscanner/doctemplates/devdocs/Gjs/default.tmpl | |
parent | 19c03a46b14f379cfd4ad93e34133312b754efea (diff) | |
download | gobject-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/default.tmpl')
-rw-r--r-- | giscanner/doctemplates/devdocs/Gjs/default.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/giscanner/doctemplates/devdocs/Gjs/default.tmpl b/giscanner/doctemplates/devdocs/Gjs/default.tmpl new file mode 100644 index 00000000..5130fadc --- /dev/null +++ b/giscanner/doctemplates/devdocs/Gjs/default.tmpl @@ -0,0 +1,6 @@ +<%inherit file="base.tmpl"/> +% if isinstance(node, ast.Constant): + <code> + const ${formatter.format_page_name(node)} = ${node.value}; + </code> +% endif |