diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-01-31 18:58:13 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-01 19:47:41 -0500 |
commit | ae6f1592d4e423abc749e8d9f9a27191bcb1b85b (patch) | |
tree | 44386f59673709fbeb07d7fb5f9d0c9157c7f892 /giscanner/doctemplates | |
parent | 44dea29977be349304a905e01b3ec89f7bdc6168 (diff) | |
download | gobject-introspection-ae6f1592d4e423abc749e8d9f9a27191bcb1b85b.tar.gz |
doctool: Use a base template for all node kinds that make sense
Diffstat (limited to 'giscanner/doctemplates')
-rw-r--r-- | giscanner/doctemplates/C/class.tmpl | 38 | ||||
-rw-r--r-- | giscanner/doctemplates/C/namespace.tmpl | 18 | ||||
-rw-r--r-- | giscanner/doctemplates/Python/class.tmpl | 40 | ||||
-rw-r--r-- | giscanner/doctemplates/Python/namespace.tmpl | 17 | ||||
-rw-r--r-- | giscanner/doctemplates/class.tmpl | 40 | ||||
-rw-r--r-- | giscanner/doctemplates/namespace.tmpl | 17 |
6 files changed, 61 insertions, 109 deletions
diff --git a/giscanner/doctemplates/C/class.tmpl b/giscanner/doctemplates/C/class.tmpl index 22a086cc..3f18b021 100644 --- a/giscanner/doctemplates/C/class.tmpl +++ b/giscanner/doctemplates/C/class.tmpl @@ -1,38 +1,2 @@ <%! page_type="guide" %>\ -<%inherit file="/base.tmpl"/> -<%block name="synopsis"> - <synopsis ui:expanded="no"> - <title>Hierarchy</title> - <tree> - <item> - <code>GObjectObject</code> - </item> - </tree> - </synopsis> -</%block> -<%block name="links"> - <links type="topic" ui:expanded="yes" - api:type="function" api:mime="text/x-csrc" - groups="constructor" style="linklist"> - <title>Constructors</title> - </links> - <links type="topic" ui:expanded="yes" - api:type="function" api:mime="text/x-csrc" - groups="method" style="linklist"> - <title>Methods</title> - </links> - <links type="topic" ui:expanded="yes" - api:type="function" api:mime="text/x-csrc" - groups="function" style="linklist"> - <title>Functions</title> - </links> - <links type="topic" ui:expanded="yes" groups="property" style="linklist"> - <title>Properties</title> - </links> - <links type="topic" ui:expanded="yes" groups="signal" style="linklist"> - <title>Signals</title> - </links> - <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> - <title>Other</title> - </links> -</%block> +<%inherit file="/class.tmpl"/> diff --git a/giscanner/doctemplates/C/namespace.tmpl b/giscanner/doctemplates/C/namespace.tmpl index 10745fae..cb8195da 100644 --- a/giscanner/doctemplates/C/namespace.tmpl +++ b/giscanner/doctemplates/C/namespace.tmpl @@ -1,17 +1 @@ -<%! page_type="guide" %>\ -<%inherit file="/base.tmpl"/> -<%block name="doc"> -</%block> -<%block name="links"> - <links type="topic" ui:expanded="yes" groups="class" style="linklist"> - <title>Classes</title> - </links> - <links type="topic" ui:expanded="yes" groups="function" style="linklist"> - <title>Functions</title> - </links> - <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> - <title>Other</title> - </links> -</%block> -<%block name="since_version"> -</%block> +<%inherit file="/namespace.tmpl"/> diff --git a/giscanner/doctemplates/Python/class.tmpl b/giscanner/doctemplates/Python/class.tmpl index 41e6e499..3991ff31 100644 --- a/giscanner/doctemplates/Python/class.tmpl +++ b/giscanner/doctemplates/Python/class.tmpl @@ -1,4 +1,4 @@ -<%inherit file="/base.tmpl"/> +<%inherit file="/class.tmpl"/> <%block name="synopsis"> <synopsis><code> from gi.repository import ${namespace.name} @@ -15,41 +15,3 @@ ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}( )\ </code></synopsis> </%block> -<%block name="details"> - <synopsis> - <title>Hierarchy</title> - <tree> -% for class_ in formatter.get_class_hierarchy(node): - <item> - <code>${class_.namespace.name}.${class_.name}</code> -% endfor -% for class_ in formatter.get_class_hierarchy(node): - </item> -% endfor - </tree> - </synopsis> -</%block> -<%block name="links"> - <links type="topic" ui:expanded="yes" - api:type="function" api:mime="text/x-python" - groups="method" style="linklist"> - <title>Methods</title> - </links> - <links type="topic" ui:expanded="yes" - api:type="function" api:mime="text/x-python" - groups="function" style="linklist"> - <title>Functions</title> - </links> - <links type="topic" ui:expanded="yes" groups="property" style="linklist"> - <title>Properties</title> - </links> - <links type="topic" ui:expanded="yes" groups="signal" style="linklist"> - <title>Signals</title> - </links> - <links type="topic" ui:expanded="yes" groups="vfunc" style="linklist"> - <title>Virtual functions</title> - </links> - <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> - <title>Other</title> - </links> -</%block> diff --git a/giscanner/doctemplates/Python/namespace.tmpl b/giscanner/doctemplates/Python/namespace.tmpl index 10745fae..4d80c2a5 100644 --- a/giscanner/doctemplates/Python/namespace.tmpl +++ b/giscanner/doctemplates/Python/namespace.tmpl @@ -1,17 +1,2 @@ <%! page_type="guide" %>\ -<%inherit file="/base.tmpl"/> -<%block name="doc"> -</%block> -<%block name="links"> - <links type="topic" ui:expanded="yes" groups="class" style="linklist"> - <title>Classes</title> - </links> - <links type="topic" ui:expanded="yes" groups="function" style="linklist"> - <title>Functions</title> - </links> - <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> - <title>Other</title> - </links> -</%block> -<%block name="since_version"> -</%block> +<%inherit file="/namespace.tmpl"/> diff --git a/giscanner/doctemplates/class.tmpl b/giscanner/doctemplates/class.tmpl new file mode 100644 index 00000000..f264bc2d --- /dev/null +++ b/giscanner/doctemplates/class.tmpl @@ -0,0 +1,40 @@ +<%! page_type="guide" %>\ +<%inherit file="/base.tmpl"/> +<%block name="details"> + <synopsis> + <title>Hierarchy</title> + <tree> +% for class_ in formatter.get_class_hierarchy(node): + <item> + <code>${class_.namespace.name}.${class_.name}</code> +% endfor +% for class_ in formatter.get_class_hierarchy(node): + </item> +% endfor + </tree> + </synopsis> +</%block> +<%block name="links"> + <links type="topic" ui:expanded="yes" + api:type="function" api:mime="${formatter.mime_type}" + groups="method" style="linklist"> + <title>Methods</title> + </links> + <links type="topic" ui:expanded="yes" + api:type="function" api:mime="${formatter.mime_type}" + groups="function" style="linklist"> + <title>Functions</title> + </links> + <links type="topic" ui:expanded="yes" groups="property" style="linklist"> + <title>Properties</title> + </links> + <links type="topic" ui:expanded="yes" groups="signal" style="linklist"> + <title>Signals</title> + </links> + <links type="topic" ui:expanded="yes" groups="vfunc" style="linklist"> + <title>Virtual functions</title> + </links> + <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> + <title>Other</title> + </links> +</%block> diff --git a/giscanner/doctemplates/namespace.tmpl b/giscanner/doctemplates/namespace.tmpl new file mode 100644 index 00000000..10745fae --- /dev/null +++ b/giscanner/doctemplates/namespace.tmpl @@ -0,0 +1,17 @@ +<%! page_type="guide" %>\ +<%inherit file="/base.tmpl"/> +<%block name="doc"> +</%block> +<%block name="links"> + <links type="topic" ui:expanded="yes" groups="class" style="linklist"> + <title>Classes</title> + </links> + <links type="topic" ui:expanded="yes" groups="function" style="linklist"> + <title>Functions</title> + </links> + <links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist"> + <title>Other</title> + </links> +</%block> +<%block name="since_version"> +</%block> |