[gtk-doc] stable-ids: try to get stable ids in the generated docbook



commit db660bc3597ebaf42bacf527819dcaf364536fae
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Feb 28 22:31:12 2013 +0100

    stable-ids: try to get stable ids in the generated docbook
    
    Use a new options from docbook-xsl and add a todo for where we shoudl try to
    generate an id.

 gtk-doc.xsl    |    1 +
 gtkdoc-mkdb.in |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 36b6453..9ff614b 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -38,6 +38,7 @@
   <xsl:param name="default.encoding" select="'UTF-8'"/>
   <xsl:param name="chapter.autolabel" select="0"/>
   <xsl:param name="use.id.as.filename" select="1"/>
+  <xsl:param name="generate.consistent.ids" select="1"/>
   <xsl:param name="html.ext" select="'.html'"/>
   <xsl:param name="refentry.generate.name" select="0"/>
   <xsl:param name="refentry.generate.title" select="1"/>
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index b796dfa..b08c0b7 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4583,6 +4583,8 @@ sub ConvertMarkDownCallback {
         $end_of_section= "$end_of_section</refsect2>";
     }
 
+    # TODO(ensonic): it would be nice to add id parameters to the refsect2 elements
+
     # Setext-style headers:
     #          Header 1
     #          ========


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