[gtk/doc-links: 2/6] docs: Tell pandoc we need Docbook4




commit 70b0bdd5e362725954d1a19bab027edaacbd9cdd
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 3 16:53:44 2020 -0400

    docs: Tell pandoc we need Docbook4
    
    gtk-doc assumes Docbook4, with <ulink> and so on.
    Without this, all the links in markdown are converted
    to <link xlink:href=...> and then lost in the docbook->html
    conversion.

 docs/reference/gtk/gtk-markdown-to-docbook | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/docs/reference/gtk/gtk-markdown-to-docbook b/docs/reference/gtk/gtk-markdown-to-docbook
index a278b8b583..d25e6d52ea 100755
--- a/docs/reference/gtk/gtk-markdown-to-docbook
+++ b/docs/reference/gtk/gtk-markdown-to-docbook
@@ -180,7 +180,7 @@ def ConvertToDocbook(infile, outfile):
     else:
         division='chapter'
     input_format = "markdown" + "".join(MarkdownExtensions)
-    output_format = "docbook"
+    output_format = "docbook4"
     subprocess.check_call(["pandoc", infile, "-o", outfile,
                            "--from=" + input_format,
                            "--to=" + output_format,


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