[tracker/wip/carlosg/domain-ontologies: 19/76] docs: Remove "see also" section from ontology class documentation



commit 0ebd5b5f1292e4337a94d2b76fdc3a0a81577822
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 15 21:51:11 2017 +0200

    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.

 docs/tools/ttlresource2sgml.c |   40 ----------------------------------------
 1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/docs/tools/ttlresource2sgml.c b/docs/tools/ttlresource2sgml.c
index 1ab85c2..3f16fc9 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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]