[tracker: 14/20] docs: Do not add dead links to predefined ontology instances



commit 779652071ce7922f93a53c5debb20119011fb95a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 13 13:44:30 2018 +0200

    docs: Do not add dead links to predefined ontology instances
    
    That is as much as we say about them, gets rid of warnings during docs
    generation.

 docs/tools/ttlresource2sgml.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/docs/tools/ttlresource2sgml.c b/docs/tools/ttlresource2sgml.c
index d641b0631..b2ca3f1e3 100644
--- a/docs/tools/ttlresource2sgml.c
+++ b/docs/tools/ttlresource2sgml.c
@@ -139,13 +139,11 @@ print_predefined_instances (FILE          *f,
 
        for (l = klass->instances; l; l = l->next) {
                shortname = ttl_model_name_to_shortname (ontology, l->data, NULL);
-               id = ttl_model_name_to_shortname (ontology, l->data, "-");
 
                g_fprintf (f, "<listitem><para>");
-               g_fprintf (f, "<link linkend=\"%s\">%s</link>", id, shortname);
+               g_fprintf (f, "<literal>%s</literal>", shortname);
                g_fprintf (f, "</para></listitem>\n");
                g_free (shortname);
-               g_free (id);
        }
 
        g_fprintf (f, "</itemizedlist></para></refsect1>\n");


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