[tracker/wip/carlosg/hotdoc: 26/40] tools: Adapt ontology docgen tool for hotdoc markdown specifics




commit 1549637e4fa880dcdabbfb5c6adbb8b2efc0a057
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Aug 3 11:41:26 2021 +0200

    tools: Adapt ontology docgen tool for hotdoc markdown specifics

 docs/tools/tracker-docgen-md.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/docs/tools/tracker-docgen-md.c b/docs/tools/tracker-docgen-md.c
index 070fc9e59..0f5c27ed6 100644
--- a/docs/tools/tracker-docgen-md.c
+++ b/docs/tools/tracker-docgen-md.c
@@ -197,8 +197,9 @@ print_property_table (FILE                 *f,
                }
 
                /* Description column */
+               g_fprintf (f, "| ");
                if (prop->description) {
-                       g_fprintf (f, "| %s", prop->description);
+                       g_fprintf (f, "%s", prop->description);
                }
                g_fprintf (f, "|\n");
        }
@@ -323,8 +324,11 @@ print_link (FILE *f,
 static void
 print_md_header (FILE *f, TrackerOntologyDescription *desc)
 {
-       g_fprintf (f, "Title: %s\n\n", desc->title);
-       g_fprintf (f, "%s\n\n", desc->description);
+       g_fprintf (f, "---\n");
+       g_fprintf (f, "title: %s\n", desc->title);
+       g_fprintf (f, "short-description: %s\n", desc->description);
+       g_fprintf (f, "...\n\n");
+       g_fprintf (f, "# %s\n\n", desc->title);
 }
 
 static void


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