Commit 267f557f authored by Ivan Frade's avatar Ivan Frade

doc: support description and print property page title in the ontologies

After updating the .description files, the index of the documentation will be readable
parent 664ed6ce
......@@ -48,6 +48,7 @@
#define DSC_ONTOLOGY DSC_PREFIX "Ontology"
#define DSC_TITLE DSC_PREFIX "title"
#define DSC_DESCRIPTION DSC_PREFIX "description"
#define DSC_AUTHOR DSC_PREFIX "author"
#define DSC_EDITOR DSC_PREFIX "editor"
#define DSC_CONTRIBUTOR DSC_PREFIX "contributor"
......@@ -298,6 +299,8 @@ load_description (OntologyDescription *desc,
g_assert (!g_strcmp0 (turtle_object, DSC_ONTOLOGY));
} else if (!g_strcmp0 (turtle_predicate, DSC_TITLE)) {
desc->title = g_strdup (turtle_object);
} else if (!g_strcmp0 (turtle_predicate, DSC_DESCRIPTION)) {
desc->description = g_strdup (turtle_object);
} else if (!g_strcmp0 (turtle_predicate, DSC_UPSTREAM)) {
desc->upstream = g_strdup (turtle_object);
} else if (!g_strcmp0 (turtle_predicate, DSC_AUTHOR)) {
......
......@@ -52,6 +52,7 @@ typedef struct {
typedef struct {
gchar *title;
gchar *description;
GList *authors;
GList *editors;
GList *contributors;
......
......@@ -162,7 +162,7 @@ print_sgml_header (FILE *f, OntologyDescription *desc)
g_fprintf (f, "<chapter id='%s-ontology'>\n", desc->localPrefix);
upper_name = g_ascii_strup (desc->localPrefix, -1);
g_fprintf (f, "<title>%s Ontology</title>\n", upper_name);
g_fprintf (f, "<title>%s: %s</title>\n", desc->title, desc->description ? desc->description : "");
g_free (upper_name);
print_people_list (f, "Authors:", desc->authors);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment