summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/doctemplates/devdocs/Gjs/base.tmpl4
-rw-r--r--giscanner/doctemplates/devdocs/Gjs/default.tmpl8
2 files changed, 11 insertions, 1 deletions
diff --git a/giscanner/doctemplates/devdocs/Gjs/base.tmpl b/giscanner/doctemplates/devdocs/Gjs/base.tmpl
index 3ca46a3e..913fa0cc 100644
--- a/giscanner/doctemplates/devdocs/Gjs/base.tmpl
+++ b/giscanner/doctemplates/devdocs/Gjs/base.tmpl
@@ -2,7 +2,7 @@
<html>
<body>
<section>
- <h1 class="${page_kind} ${doc.deprecated_class(node)}">
+ <h1 class="${page_kind} ${doc.deprecated_class(node)} ${self.extra_class()}">
${formatter.format_page_name(node)}
</h1>
<%include file="_index.tmpl"/>
@@ -17,3 +17,5 @@
</section>
</body>
</html>
+
+<%def name="extra_class()"/>
diff --git a/giscanner/doctemplates/devdocs/Gjs/default.tmpl b/giscanner/doctemplates/devdocs/Gjs/default.tmpl
index 0c0fdf6c..2341ef4d 100644
--- a/giscanner/doctemplates/devdocs/Gjs/default.tmpl
+++ b/giscanner/doctemplates/devdocs/Gjs/default.tmpl
@@ -8,3 +8,11 @@
</dd>
</dl>
% endif
+
+## This should belong in get_node_kind(), but we don't want to change the way
+## all the other templates work.
+<%def name="extra_class()">
+ % if isinstance(node, ast.Constant):
+ constant
+ % endif
+</%def>