summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-06-15 21:51:11 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-06-29 20:49:05 +0200
commit0ebd5b5f1292e4337a94d2b76fdc3a0a81577822 (patch)
tree470fee51cfaf4c8cb1ef58b8a9821d67e37d5a7a /docs
parent650a8b4a7049ec85dcfebf5d3d7b3ac122e2c8f2 (diff)
downloadtracker-0ebd5b5f1292e4337a94d2b76fdc3a0a81577822.tar.gz
docs: Remove "see also" section from ontology class documentation
The link is also included (from the description file, not guessed) in the main ontology overview page. That seems sufficient.
Diffstat (limited to 'docs')
-rw-r--r--docs/tools/ttlresource2sgml.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/docs/tools/ttlresource2sgml.c b/docs/tools/ttlresource2sgml.c
index 1ab85c22f..3f16fc923 100644
--- a/docs/tools/ttlresource2sgml.c
+++ b/docs/tools/ttlresource2sgml.c
@@ -711,45 +711,6 @@ print_properties (FILE *f,
}
static void
-print_see_also (FILE *f,
- OntologyClass *klass,
- Ontology *ontology)
-{
- const gchar *short_prefix;
- gchar *prefix, *id, *upper;
-
- prefix = name_get_prefix (ontology, klass->classname);
-
- if (!prefix)
- return;
-
- if (!g_str_has_prefix (prefix, "http"))
- return;
-
- short_prefix = g_hash_table_lookup (ontology->prefixes, prefix);
-
- if (!short_prefix) {
- g_free (prefix);
- return;
- }
-
- id = name_to_shortname (ontology, klass->classname, "-");
- g_fprintf (f, "<refsect1 id='%s.see-also'>", id);
- g_fprintf (f, "<title>See also</title>");
- g_free (id);
-
- upper = g_ascii_strup (short_prefix, -1);
-
- g_fprintf (f, "<para>The upstream documentation for the <ulink url='%s'>%s ontology</ulink>.</para>",
- prefix, upper);
-
- g_fprintf (f, "</refsect1>\n");
-
- g_free (prefix);
- g_free (upper);
-}
-
-static void
generate_class_docs (OntologyClass *klass,
Ontology *ontology,
FILE *f)
@@ -759,7 +720,6 @@ generate_class_docs (OntologyClass *klass,
print_predefined_instances (f, klass, ontology);
print_fts_properties (f, klass, ontology);
print_properties (f, klass, ontology);
- print_see_also (f, klass, ontology);
print_sgml_footer (f);
}