[tracker] docs: Ensure ontology properties can be looked up through devhelp
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] docs: Ensure ontology properties can be looked up through devhelp
- Date: Sat, 4 Jul 2015 12:25:38 +0000 (UTC)
commit 9a26a64e2565f1cbe5565e0f378ffd1aaa4b8daa
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 4 14:18:24 2015 +0200
docs: Ensure ontology properties can be looked up through devhelp
The devhelp index generation relies on specific roles set in the
docbook XML, we were setting none for ontology properties though.
docs/tools/ttlresource2sgml.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/docs/tools/ttlresource2sgml.c b/docs/tools/ttlresource2sgml.c
index 38386b1..7d51c31 100644
--- a/docs/tools/ttlresource2sgml.c
+++ b/docs/tools/ttlresource2sgml.c
@@ -636,7 +636,9 @@ print_properties (FILE *f,
type_name = name_to_shortname (ontology, prop->range->data, NULL);
type_class_id = name_to_shortname (ontology, prop->range->data, "-");
- g_fprintf (f, "<refsect2 id='%s.%s'>", id, prop_id);
+ g_fprintf (f, "<refsect2 id='%s.%s' role='property'>", id, prop_id);
+ g_fprintf (f, "<indexterm zone='%s.%s'><primary sortas='%s'>%s</primary></indexterm>",
+ id, prop_id, shortname, shortname);
g_fprintf (f, "<title>The <literal>ā%sā</literal> property</title>", shortname);
g_fprintf (f, "<programlisting>ā%sā"
" <link linkend=\"%s\">%s</link>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]