Imported Upstream version 1.23 80/193880/1 upstream/1.23
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 29 Sep 2017 02:04:52 +0000 (11:04 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 29 Sep 2017 02:04:58 +0000 (11:04 +0900)
Change-Id: I8551c9d89d62c57e6a2d9c4414a7852ca032b1ca
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
35 files changed:
Makefile.am
Makefile.in
NEWS
configure
configure.ac
devhelp2.xsd [new file with mode: 0644]
devhelp2.xsl
gtk-doc.spec
gtk-doc.xsl
gtkdoc-mkdb.in
gtkdoc-mkman.in
help/manual/C/index.docbook
help/manual/bn_IN/index.docbook
help/manual/de/index.docbook
help/manual/el/index.docbook
help/manual/en_GB/index.docbook
help/manual/es/index.docbook
help/manual/fr/index.docbook
help/manual/gl/index.docbook
help/manual/gu/index.docbook
help/manual/pt_BR/index.docbook
help/manual/sl/index.docbook
help/manual/sv/index.docbook
help/manual/ta/index.docbook
help/manual/te/index.docbook
help/manual/zh_CN/index.docbook
tests/Makefile.am
tests/Makefile.in
tests/bugs/docs/tester-sections.txt
tests/bugs/src/tester.c
tests/bugs/src/tester.h
tests/gtkdoctest.sh
tests/sanity.sh
tests/tools.sh
tests/tools.sh.in

index a236d183957737ba7d425efd1be3e7519aa8350f..de22c1975aba52afa85a7c26824c0d9a76aa5770 100644 (file)
@@ -28,6 +28,7 @@ gtkdocdata_DATA = \
        gtk-doc.dcl             \
        gtk-doc.xsl             \
        version-greater-or-equal.xsl \
+       devhelp2.xsd            \
        devhelp2.xsl            \
        gtk-doc.make            \
        gtk-doc.notmpl.make     \
@@ -84,7 +85,8 @@ EXTRA_DIST = \
 
 CLEANFILES = \
   gtk-doc.flat.make \
-  gtk-doc.notmpl-flat.make
+  gtk-doc.notmpl-flat.make \
+  gtkdoc-depscanc
 
 MAINTAINERCLEANFILES = \
   build-aux \
index 81ef2009cc6c212ddc17e8ea13104e84b4ff9eaf..a4d0bf4bfb19e5f77f4d466ed584adbb77c72854 100644 (file)
@@ -413,6 +413,7 @@ gtkdocdata_DATA = \
        gtk-doc.dcl             \
        gtk-doc.xsl             \
        version-greater-or-equal.xsl \
+       devhelp2.xsd            \
        devhelp2.xsl            \
        gtk-doc.make            \
        gtk-doc.notmpl.make     \
@@ -460,7 +461,8 @@ EXTRA_DIST = \
 
 CLEANFILES = \
   gtk-doc.flat.make \
-  gtk-doc.notmpl-flat.make
+  gtk-doc.notmpl-flat.make \
+  gtkdoc-depscanc
 
 MAINTAINERCLEANFILES = \
   build-aux \
diff --git a/NEWS b/NEWS
index 406cb493b2c91303e46f7c31744927c354f46a7d..16fff84a338a75b9f0236489460790b9df4e7daf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,17 @@
-GTK-Doc 1.22    (May 07 2014)
+GTK-Doc 1.23  (May 17 2015)
+==============
+
+ Changes
+
+ o 749142 : Can't build totem-pl-parser from master using gtk-doc 1.22
+ o 749210 : mkman: Use full URL to refer to the docbook manpages stylesheet
+
+ Contributors
+
+ Emanuele Aina
+ Stefan Sauer
+
+GTK-Doc 1.22    (May 07 2015)
 ============
 
  Important notice - starting with the next release these long deprecated
index c24739eebc58b50a98027f01e78dc454fb5bbdef..15cec04e55f026038bab8c92e1c59ad5ead9666e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for gtk-doc 1.22.
+# Generated by GNU Autoconf 2.69 for gtk-doc 1.23.
 #
 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gtk-doc>.
 #
@@ -591,8 +591,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='gtk-doc'
 PACKAGE_TARNAME='gtk-doc'
-PACKAGE_VERSION='1.22'
-PACKAGE_STRING='gtk-doc 1.22'
+PACKAGE_VERSION='1.23'
+PACKAGE_STRING='gtk-doc 1.23'
 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gtk-doc'
 PACKAGE_URL=''
 
@@ -1371,7 +1371,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures gtk-doc 1.22 to adapt to many kinds of systems.
+\`configure' configures gtk-doc 1.23 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1441,7 +1441,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of gtk-doc 1.22:";;
+     short | recursive ) echo "Configuration of gtk-doc 1.23:";;
    esac
   cat <<\_ACEOF
 
@@ -1567,7 +1567,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-gtk-doc configure 1.22
+gtk-doc configure 1.23
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1845,7 +1845,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by gtk-doc $as_me 1.22, which was
+It was created by gtk-doc $as_me 1.23, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2712,7 +2712,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='gtk-doc'
- VERSION='1.22'
+ VERSION='1.23'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -13745,7 +13745,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by gtk-doc $as_me 1.22, which was
+This file was extended by gtk-doc $as_me 1.23, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13802,7 +13802,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-gtk-doc config.status 1.22
+gtk-doc config.status 1.23
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
index ccbc1d0cc363d50598fa621b30b68a1f9db5063e..5620d522b338a692ad9dfc46a7c946d378759136 100644 (file)
@@ -5,7 +5,7 @@ dnl Use a simple 2-digit version number for a while, since our old example
 dnl Makefile can only cope with that, i.e. use 1.1, 1.2, 1.3 ... 9.9.
 dnl FIXME: I can't see anything failing (1.14.1), lets try to use a three digit
 dnl number for the development version
-m4_define(gtk_doc_version, 1.22)
+m4_define(gtk_doc_version, 1.23)
 
 AC_INIT([gtk-doc],[gtk_doc_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=gtk-doc],[gtk-doc])
 
diff --git a/devhelp2.xsd b/devhelp2.xsd
new file mode 100644 (file)
index 0000000..f436087
--- /dev/null
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+get http://xml.fiforms.org/xs3p/ and generate docs
+xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
+-->
+<xsd:schema
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <xsd:annotation>
+    <xsd:documentation>
+      Devhelp2 files are use in the 'devhelp' documentation browser.
+    </xsd:documentation>
+  </xsd:annotation>
+
+  <xsd:simpleType name="keyword-type">
+    <xsd:annotation>
+      <xsd:documentation>
+        Known keyword types.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="constant"/>
+      <xsd:enumeration value="enum"/>
+      <xsd:enumeration value="function"/>
+      <xsd:enumeration value="macro"/>
+      <xsd:enumeration value="property"/>
+      <xsd:enumeration value="signal"/>
+      <xsd:enumeration value="struct"/>
+      <xsd:enumeration value="typedef"/>
+      <xsd:enumeration value="union"/>
+      <xsd:enumeration value="variable"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="language-type">
+    <xsd:annotation>
+      <xsd:documentation>
+        Known programing languages.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="c"/>
+      <xsd:enumeration value="c++"/>
+      <xsd:enumeration value="c#"/>
+      <xsd:enumeration value="java"/>
+      <xsd:enumeration value="javascript"/>
+      <xsd:enumeration value="perl"/>
+      <xsd:enumeration value="python"/>
+      <xsd:enumeration value="vala"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:attribute name="title" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Title of the reference manual.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="link" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Entry point to the manual. Can be given as a relative path to the
+        location of the devhelp2 file..
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="author" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Author of the document. Multiple authors are separated by ','.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="name" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Short name of the manual.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="version" type="xsd:integer">
+    <xsd:annotation>
+      <xsd:documentation>
+        Version of the devhelp xml specification (2).
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="language" type="language-type">
+    <xsd:annotation>
+      <xsd:documentation>
+        Programing language this manual refers to.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+
+  <xsd:attribute name="type" type="keyword-type">
+    <xsd:annotation>
+      <xsd:documentation>
+        Type of the keyword.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="since" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Version since that the keyword is part of the API.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="deprecated" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Marks the keyword as deprecated.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="stability" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Document the stability status.
+      </xsd:documentation>
+    </xsd:annotation>
+  </xsd:attribute>
+
+
+  <xsd:element name="sub">
+    <xsd:annotation>
+      <xsd:documentation>
+        Sub tags for the hierachy of the chapters and parts.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element ref="sub" minOccurs="0" maxOccurs="unbounded"/>
+      </xsd:sequence>
+       <xsd:attribute ref="name" use="required"/>
+       <xsd:attribute ref="link" use="required"/>
+    </xsd:complexType>
+  </xsd:element>
+
+  <xsd:element name="chapters">
+    <xsd:annotation>
+      <xsd:documentation>
+        The chapters tag encloses the structure of the reference manual. Each
+        sub unit is represented by a sub tag.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element ref="sub" minOccurs="0" maxOccurs="unbounded"/>
+      </xsd:sequence>
+    </xsd:complexType>
+  </xsd:element>
+
+  <xsd:element name="keyword">
+    <xsd:annotation>
+      <xsd:documentation>
+        The keyword tag points to the documentation of a api symbol.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:complexType>
+       <xsd:attribute ref="type" use="required"/>
+       <xsd:attribute ref="name" use="required"/>
+       <xsd:attribute ref="link" use="required"/>
+       <xsd:attribute ref="since"/>
+       <xsd:attribute ref="deprecated"/>
+       <xsd:attribute ref="stability"/>
+    </xsd:complexType>
+  </xsd:element>
+
+  <xsd:element name="functions">
+    <xsd:annotation>
+      <xsd:documentation>
+        The functions tag encloses all api symbols of the reference manual. Each
+        sub unit is represented by a keyword tag.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element ref="keyword" minOccurs="0" maxOccurs="unbounded"/>
+      </xsd:sequence>
+    </xsd:complexType>
+  </xsd:element>
+
+  <xsd:element name="book">
+    <xsd:annotation>
+      <xsd:documentation>
+        Toplevel element of a devhelp book. A devhelp book list the structure of
+        a developer manual together with development related metadata.
+      </xsd:documentation>
+    </xsd:annotation>
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element ref="chapters" minOccurs="1" maxOccurs="1"/>
+        <xsd:element ref="functions" minOccurs="1" maxOccurs="1"/>
+      </xsd:sequence>
+      <xsd:attribute ref="title" use="required"/>
+      <xsd:attribute ref="link" use="required"/>
+      <xsd:attribute ref="author" use="required"/>
+      <xsd:attribute ref="name" use="required"/>
+      <xsd:attribute ref="version" use="required"/>
+      <xsd:attribute ref="language" />
+    </xsd:complexType>
+  </xsd:element>
+</xsd:schema>
+
index b441df764660fe60ad28a3c8d5a0e38439dcf621..7854894e9e302e96a9ebc6da5a7cde169d38174c 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0'?> <!--*- mode: xml -*-->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'
-                xmlns="http://www.devhelp.net/book"
+                xmlns=""
                 xmlns:str="http://exslt.org/strings"
                 exclude-result-prefixes="str">
 
@@ -21,6 +21,7 @@
       <xsl:with-param name="method" select="'xml'"/>
       <xsl:with-param name="indent" select="'yes'"/>
       <xsl:with-param name="encoding" select="'utf-8'"/>
+      <xsl:with-param name="doctype-public"/>
       <xsl:with-param name="content">
         <xsl:call-template name="devhelp2"/>
       </xsl:with-param>
@@ -55,7 +56,7 @@
         </chapters>
       </xsl:if>
       <functions>
-        <xsl:apply-templates select="$gtkdoc.refsect2"
+        <xsl:apply-templates select="$gtkdoc.refsect2[@role]"
                              mode="generate.devhelp2.index.mode"/>
         <xsl:apply-templates select="$gtkdoc.refsect2/refsect3[@role='enum_members']/informaltable/tgroup/tbody/row[@role='constant']"
                              mode="generate.devhelp2.index.mode"/>
index 8f15bd8a4fd837e9dfa8e3d57f6e074d70adf9c1..70ccb4304ef3c3f7ec86f01455588dcbd03263a6 100644 (file)
@@ -2,7 +2,7 @@
 
 Summary:       GTK+ DocBook Documentation Generator
 Name:          gtk-doc
-Version:       1.22
+Version:       1.23
 Release:       1
 License:       GPL
 Group:                 Utilities/Text
index 992fd9d16d16a9b1345923c0a24788558bec89d9..f0b6f9d144118d3dca9e2f3c13d2d12cc23a3bd5 100644 (file)
@@ -416,10 +416,10 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
       <hr />
       <xsl:choose>
         <xsl:when test="$gtkdoc.version">
-          Generated by GTK-Doc V<xsl:copy-of select="$gtkdoc.version" />
+          <xsl:text>Generated by GTK-Doc V</xsl:text><xsl:copy-of select="$gtkdoc.version" />
         </xsl:when>
         <xsl:otherwise>
-          Generated by GTK-Doc
+          <xsl:text>Generated by GTK-Doc</xsl:text>
         </xsl:otherwise>
       </xsl:choose>
     </div>
index 6e11e560032e0157f5d8150cc5c55db89f290a48..dc1ba6773c802bb9d856e11e88c4d8ceeaeda6a3 100755 (executable)
@@ -4811,6 +4811,7 @@ sub MarkDownParseBlocks {
           }
         }
         $md_block->{"text"} .= "\n" . $line;
+        @TRACE@("add to markup");
         next OUTER;
       }
     }
@@ -5005,41 +5006,60 @@ sub MarkDownParseBlocks {
       # markup, including <?xml version="1.0"?>
       my $tag = $1;
       my $is_self_closing = defined($2);
-      # FIXME: why do we need to skip https? here, if we generalize this to all
-      # uri schemes we get parsing errors
-      if (! $MD_TEXT_LEVEL_ELEMENTS{$tag} && $tag !~ /^https?/ && !defined($md_block->{"start"})) {
-        push @md_blocks, $md_block;
-
-        if ($is_self_closing) {
-          @TRACE@("self-closing docbook '$tag'");
-          $md_block = { type => "self-closing tag",
-                        text => $deindented_line };
-          $is_self_closing = 0;
-          next OUTER;
-        }
-
-        @TRACE@("new markup '$tag'");
-        $md_block = { type   => "markup",
-                      text   => $deindented_line,
-                      start  => "<" . $tag . ">",
-                      end    => "</" . $tag . ">",
-                      closed => 0,
-                      depth  => 0 };
-        if ($deindented_line =~ /<\/$tag>/) {
-          $md_block->{"closed"} = 1;
-        }
-        next OUTER;
+      
+      # skip link markdown
+      # TODO(ensonic): consider adding more uri schemes (ftp, ...)
+      if ($tag =~ /^https?/) {
+        @TRACE@("skipping link '$tag'");
       } else {
-        @TRACE@("text level docbook '$tag'");
-        if (!defined($md_block->{"start"}) && $MD_TEXT_LEVEL_ELEMENTS{$tag}) {
-          $md_block->{"start"} = "<" . $tag . ">";
-          $md_block->{"end"} = "</" . $tag . ">";
-          $md_block->{"closed"} = 0;
-          @TRACE@("scanning for end of '$tag'");
-        }
-        if (defined($md_block->{"start"}) && $deindented_line =~ /$md_block->{"end"}/) {
-          $md_block->{"closed"} = 1;
-          @TRACE@("found end of '$tag'");
+        # for TEXT_LEVEL_ELEMENTS, we want to keep them as-is in the paragraph
+        # instead of creation a markdown block.
+        my $scanning_for_end_of_text_level_tag = (
+            $md_block->{"type"} eq "paragraph" && 
+            defined($md_block->{"start"}) &&
+            !$md_block->{"closed"}); 
+        @TRACE@("markup found '$tag', scanning $scanning_for_end_of_text_level_tag ?");
+        if (!$MD_TEXT_LEVEL_ELEMENTS{$tag} && !$scanning_for_end_of_text_level_tag) {
+          push @md_blocks, $md_block;
+  
+          if ($is_self_closing) {
+            @TRACE@("self-closing docbook '$tag'");
+            $md_block = { type => "self-closing tag",
+                          text => $deindented_line };
+            $is_self_closing = 0;
+            next OUTER;
+          }
+  
+          @TRACE@("new markup '$tag'");
+          $md_block = { type   => "markup",
+                        text   => $deindented_line,
+                        start  => "<" . $tag . ">",
+                        end    => "</" . $tag . ">",
+                        closed => 0,
+                        depth  => 0 };
+          if ($deindented_line =~ /<\/$tag>/) {
+            $md_block->{"closed"} = 1;
+          }
+          next OUTER;
+        } else {
+          if ($MD_TEXT_LEVEL_ELEMENTS{$tag}) {
+            @TRACE@("text level docbook '$tag' in '".$md_block->{"type"}."' state");
+            # TODO(ensonic): handle nesting
+            if (!$scanning_for_end_of_text_level_tag) {
+              if ($deindented_line !~ /<\/$tag>/) {
+                @TRACE@("new text level markup '$tag'");
+                $md_block->{"start"} = "<" . $tag . ">";
+                $md_block->{"end"} = "</" . $tag . ">";
+                $md_block->{"closed"} = 0;
+                @TRACE@("scanning for end of '$tag'");
+              }
+            } else {
+              if ($deindented_line =~ /$md_block->{"end"}/) {
+                $md_block->{"closed"} = 1;
+                @TRACE@("found end of '$tag'");
+              }
+            }
+          }
         }
       }
     } elsif ($line =~ /^([ ]*)[*+-][ ](.*)/) {
@@ -5064,7 +5084,6 @@ sub MarkDownParseBlocks {
     }
 
     # list item
-
     if ($line =~ /^([ ]{0,4})\d+[.][ ]+(.*)/) {
       push @md_blocks, $md_block;
       my $lines = $2;
@@ -5089,13 +5108,16 @@ sub MarkDownParseBlocks {
         $md_block = { type => "paragraph",
                       interrupted => 0,
                       text => $line };
+        @TRACE@("new paragraph due to interrupted");
       } else {
         $md_block->{"text"} .= "\n" . $line;
+        @TRACE@("add to paragraph");
       }
     } else {
       push @md_blocks, $md_block;
       $md_block = { type => "paragraph",
                     text => $line };
+      @TRACE@("new paragraph due to different block type");
     }
   }
 
@@ -5368,19 +5390,21 @@ sub MarkDownOutputDocBook {
     my $text;
     my $title;
 
+    #$output .= "\n<!-- beg type='" . $block->{"type"} . "'-->\n";
+
     if ($block->{"type"} eq "paragraph") {
       $text = &MarkDownParseSpanElements ($block->{"text"});
       if ($context eq "li" && $output eq "") {
         if ($block->{"interrupted"}) {
-          $output .= "\n"."<para>".$text."</para>"."\n";
+          $output .= "\n<para>$text</para>\n";
         } else {
-          $output .= "<para>".$text."</para>";
+          $output .= "<para>$text</para>";
           if ($#blocks > 0) {
             $output .= "\n";
           }
         }
       } else {
-        $output .= "<para>".$text."</para>"."\n";
+        $output .= "<para>$text</para>\n";
       }
 
     } elsif ($block->{"type"} eq "heading") {
@@ -5396,12 +5420,12 @@ sub MarkDownOutputDocBook {
 
       $text = &MarkDownParseLines ($block->{"lines"}, $symbol, "heading");
       if (defined ($block->{"id"})) {
-        $output .= "<" . $tag . " id=\"" . $block->{"id"} . "\">";
+        $output .= "<$tag id=\"" . $block->{"id"} . "\">";
       } else {
-        $output .= "<" . $tag . ">";
+        $output .= "<$tag>";
       }
 
-      $output .= "<title>" . $title . "</title>" . $text . "</" . $tag . ">\n";
+      $output .= "<title>$title</title>$text</$tag>\n";
     } elsif ($block->{"type"} eq "li") {
       my $tag = "itemizedlist";
 
@@ -5409,7 +5433,7 @@ sub MarkDownOutputDocBook {
         if ($block->{"ordered"}) {
           $tag = "orderedlist";
         }
-        $output .= "<".$tag.">\n";
+        $output .= "<$tag>\n";
       }
 
       if ($block->{"interrupted"}) {
@@ -5422,11 +5446,11 @@ sub MarkDownOutputDocBook {
         if ($block->{"ordered"}) {
           $tag = "orderedlist";
         }
-        $output .= "</".$tag.">\n";
+        $output .= "</$tag>\n";
       }
     } elsif ($block->{"type"} eq "quote") {
       $text = &MarkDownParseLines ($block->{"lines"}, $symbol, "quote");
-      $output .= "<blockquote>\n" . $text . "</blockquote>\n";
+      $output .= "<blockquote>\n$text</blockquote>\n";
     } elsif ($block->{"type"} eq "code") {
       if ($block->{"language"}) {
         $output .= "<informalexample><programlisting language=\"" . $block->{"language"} . "\"><![CDATA[\n";
@@ -5443,6 +5467,7 @@ sub MarkDownOutputDocBook {
     } else {
       $output .= $block->{"text"}."\n";
     }
+    #$output .= "\n<!-- end type='" . $block->{"type"} . "'-->\n";
   }
 
   return $output;
index 15be1b335d832788d3ed19e712436cfde4a74aa1..b6e91a5855dba17d714e6abd96bc46b621916e0a 100644 (file)
@@ -83,7 +83,8 @@ if $is_xml; then
         --stringparam gtkdoc.version "@VERSION@" \
         --stringparam chunk.quietly $quiet \
         --stringparam chunker.output.quiet $quiet \
-        manpages/docbook.xsl $document || exit $?
+        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
+        $document || exit $?
 else
     for i in `cd sgml;ls *.sgml`; do
         j=`echo $i | sed 's/.sgml/.man/'`
index 860e561becf4ea8555868ce55a1aedf15065d840..6ae5449ea5a9511ebc1c9ce4d5d85bcfaa0a7660 100644 (file)
@@ -10,7 +10,7 @@
 <book id="index">
   <bookinfo>
     <title>GTK-Doc Manual</title>
-    <edition>1.20</edition>
+    <edition>1.23</edition>
     <abstract role="description"><para>User manual for developers with instructions of GTK-Doc usage.</para></abstract>
     <authorgroup>
       <author>
     </legalnotice>
 
     <revhistory>
+      <revision>
+        <revnumber>1.23</revnumber>
+        <date>17 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fix</revremark>
+      </revision>
       <revision>
         <revnumber>1.22</revnumber>
         <date>07 May 2015</date>
index a208296df3bb9608528e35fdb4aaf32a30449a96..4543cc10d9f6019ac63a1947c4fd37870556aa0a 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 51d9277d8772574d16b6cc7b450300eff74afa4c..b6d5b389c3e9af651653cd6324ad2b0336a0b202 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index c34cbf9296d43ec4101e26f30cfe425d571fd7e3..df66205dd92f98c96117cfd4b8766d7c41c98124 100644 (file)
     </legalnotice>
 
     <revhistory>
-      <revision><revnumber>1.21.1</revnumber> <date>18 Ιουλ 2014</date> <authorinitials>ss</authorinitials> <revremark>έκδοση ανάπτυξης</revremark></revision>
+      <revision>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>development version</revremark>
+      </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision><revnumber>1.21</revnumber> <date>17 Ιουλ 2013</date> <authorinitials>ss</authorinitials> <revremark>διορθώσεις σφαλμάτων, απόρριψη παρωχημένων λειτουργιών</revremark></revision>
       <revision><revnumber>1.20</revnumber> <date>16 Φεβ 2014</date> <authorinitials>ss</authorinitials> <revremark>διορθώσεις σφαλμάτων, υποστήριξη markdown, και βελτιώσεις στυλ</revremark></revision>
       <revision><revnumber>1.19</revnumber> <date>05 Ιουν 2013</date> <authorinitials>ss</authorinitials> <revremark>διόρθωση σφαλμάτων</revremark></revision>
index c8a1f17fbd436128dca3f13fe5bf059aa27ca7d1..3ccaa7a791f25679d72a06b8faa9ce98e4280ea1 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 9fe9683e0231241e0517105e1affbd9800f4112f..e6238d2a2ace4dc16e7ffcb48f7d9f98e6c09295 100644 (file)
     </legalnotice>
 
     <revhistory>
-      <revision><revnumber>1.21.1</revnumber> <date>18 de julio de 2014</date> <authorinitials>ss</authorinitials> <revremark>versión de desarrollo</revremark></revision>
+      <revision>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>development version</revremark>
+      </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision><revnumber>1.21</revnumber> <date>17 de julio de 2014</date> <authorinitials>ss</authorinitials> <revremark>correcciones de errores, eliminadas funcionalidades obsoletas</revremark></revision>
       <revision><revnumber>1.20</revnumber> <date>16 de febrero de 2014</date> <authorinitials>ss</authorinitials> <revremark>errores corregidos, soporte de marcado, mejoras en los estilos</revremark></revision>
       <revision><revnumber>1.19</revnumber> <date>05 de junio de 2013</date> <authorinitials>ss</authorinitials> <revremark>correcciones de errores</revremark></revision>
index 572d9d5abb90855a65a48a98b571f1bd30deac08..003844442cffb642ffc5ee1346966144493a0dd0 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 0da33570764a3b31b6c7301da26fa4f45440f5d7..07854eef70ccc2f7bf0f051c00b24a2387beaf66 100644 (file)
     </legalnotice>
 
     <revhistory>
-      <revision><revnumber>1.21.1</revnumber> <date>18 de Xullo de 2014</date> <authorinitials>ss</authorinitials> <revremark>versión de desenvolvemento</revremark></revision>
+      <revision>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>development version</revremark>
+      </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision><revnumber>1.21</revnumber> <date>17 de Xullo de 2014</date> <authorinitials>ss</authorinitials> <revremark>arranxos de erros, retirado de características obsoletas</revremark></revision>
       <revision><revnumber>1.20</revnumber> <date>16 de Febreiro de 2014</date> <authorinitials>ss</authorinitials> <revremark>arranxos de erros, compatibilidade de markdown, melloras de estilo</revremark></revision>
       <revision><revnumber>1.19</revnumber> <date>05 de Xuño de 2013</date> <authorinitials>ss</authorinitials> <revremark>arranxos de erros</revremark></revision>
index 0893cb14b9ce31ea977a53133f697b6f52d79192..d4f0e181345a042ac0e9ce64830f32803bab3d1f 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 09b4eecea1eac5b8238cb8b1e59ab6dbaed846c2..1180798323ce0edffd94df91595c67f98a8adf6b 100644 (file)
     </legalnotice>
 
     <revhistory>
-      <revision><revnumber>1.21.1</revnumber> <date>18 Jul 2014</date> <authorinitials>ss</authorinitials> <revremark>versão de desenvolvimento</revremark></revision>
+      <revision>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>development version</revremark>
+      </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision><revnumber>1.21</revnumber> <date>17 Jul 2014</date> <authorinitials>ss</authorinitials> <revremark>correção de erros, desativadas funcionalidades obsoletas</revremark></revision>
       <revision><revnumber>1.20</revnumber> <date>14 Fev 2014</date> <authorinitials>ss</authorinitials> <revremark>correção de erros, suporte a markdown, melhorias no estilo</revremark></revision>
       <revision><revnumber>1.19</revnumber> <date>05 Jun 2013</date> <authorinitials>ss</authorinitials> <revremark>correção de erros</revremark></revision>
index 3726f76cd234af134b80acf90f736767c54bfa9a..753ff77998fb61ca6dea5b6029cded340b01a754 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 02724cf1a99616434f6e21cebcff61dbf9962902..ff5f51da8b1dfe2616e3e201fa390931f600a648 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index ec44daa2addce5ca813222c32cf4b259847a264d..0825b09678351b6b2e933b0bd073157164c24a2d 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 015b8fd56e6620f3ad84ce0fb363d6530f0274d6..06b2d59e6035e2d40e7ad350a87ec235507cd679 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 36467afb76c3217be33e84e9a001a3062e766e1f..abee31ca968329820c9fa196c861896ae60f4c7e 100644 (file)
 
     <revhistory>
       <revision>
-        <revnumber>1.21.1</revnumber>
-        <date>18 Jul 2014</date>
+        <revnumber>1.22.1</revnumber>
+        <date>08 May 2015</date>
         <authorinitials>ss</authorinitials>
         <revremark>development version</revremark>
       </revision>
+      <revision>
+        <revnumber>1.22</revnumber>
+        <date>07 May 2015</date>
+        <authorinitials>ss</authorinitials>
+        <revremark>bug fixes, dropping deprecated features</revremark>
+      </revision>
       <revision>
         <revnumber>1.21</revnumber>
         <date>17 Jul 2014</date>
index 2fb48aec0e743834770a18c59d938584d4e35f38..dc7cacd400730938961ebac70f8a6bf74b9c5d32 100644 (file)
@@ -15,13 +15,26 @@ TESTS_ENVIRONMENT = \
 
 endif
 
-EXTRA_DIST = gtkdoctest.sh tools.sh \
-       gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh
+EXTRA_DIST = gtkdoctest.sh tools.sh sanity.sh \
+       gobject.sh bugs.sh annotations.sh fail.sh empty.sh 
 
 # run any given test by running make <test>.check
 %.check: %
        @$(TESTS_ENVIRONMENT)   \
        ./$*
 
+snapshot:
+       @for dir in $(SUBDIRS); do \
+    rm -rf $$dir/docs/html.ref; \
+         if test -d $$dir/docs/html; then \
+      cp -r $$dir/docs/html $$dir/docs/html.ref; \
+    fi; \
+    rm -rf $$dir/docs/xml.ref; \
+         if test -d $$dir/docs/xml; then \
+      cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
+    fi; \
+       done
+
+.PHONY: snapshot
 
 -include $(top_srcdir)/git.mk
index 1bbbc96b852035ab5803ff8e32257158503a6cfc..845d40c8fe3d494f0c4754ca930c26a9f57765a6 100644 (file)
@@ -535,8 +535,8 @@ SUBDIRS = gobject bugs annotations fail empty .
 @BUILD_TESTS_TRUE@     PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
 @BUILD_TESTS_TRUE@     PERL5LIB=$(abs_top_builddir):$(PERL5LIB)
 
-EXTRA_DIST = gtkdoctest.sh tools.sh \
-       gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh
+EXTRA_DIST = gtkdoctest.sh tools.sh sanity.sh \
+       gobject.sh bugs.sh annotations.sh fail.sh empty.sh 
 
 all: all-recursive
 
@@ -1067,6 +1067,20 @@ uninstall-am:
        @$(TESTS_ENVIRONMENT)   \
        ./$*
 
+snapshot:
+       @for dir in $(SUBDIRS); do \
+    rm -rf $$dir/docs/html.ref; \
+         if test -d $$dir/docs/html; then \
+      cp -r $$dir/docs/html $$dir/docs/html.ref; \
+    fi; \
+    rm -rf $$dir/docs/xml.ref; \
+         if test -d $$dir/docs/xml; then \
+      cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
+    fi; \
+       done
+
+.PHONY: snapshot
+
 -include $(top_srcdir)/git.mk
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
index 64f62d15b2e2febe11112bdb1fc19fc4336bbfca..1d179fb5d97995f0b70f70c615cb0f167e4e3fd5 100644 (file)
@@ -64,6 +64,7 @@ bug_624001c
 bug_624001d
 bug_624001e
 bug_711598
+bug_749142
 deprecation_notice
 bug_741941
 bug_732689
index 817b6fcc2b02a5810a5d48e2440599f1a5640ec0..94235bdc82cefc1a54565bfdc2c1e13d3b71143a 100644 (file)
@@ -448,4 +448,24 @@ void bug_741941(void *object, void *par)
 void
 bug_732689 (const gchar *spec)
 {
-}
\ No newline at end of file
+}
+
+/**
+ * bug_749142:
+ *
+ * The message's structure contains one field:
+ * <itemizedlist>
+ * <listitem><para>int timeout: the timeout.</para></listitem>
+ * </itemizedlist>
+ *
+ * <refsect3>
+ * <title>Example usage</title>
+ * |[
+ * echo "Hello" | foo
+ * ]|
+ * </refsect3>
+ **/
+void
+bug_749142 (void)
+{
+}
index 2b680ae4b9816452e76bdb7904cb1c1c0e571ce0..ecbda08fdc37bfcc1e6c361d9fcd39ab1f5bbd6d 100644 (file)
@@ -504,6 +504,8 @@ void deprecation_notice(void);
 void bug_741941(void *object, void *par) G_GNUC_NONNULL(1) G_GNUC_NONNULL(2);
 
 void bug_732689 (const gchar *spec);
+void bug_749142 (void);
+
 
 /**
  * BUG_731417_DEPRECATED:
index 93f3b36047878464ec0b3f2afb28120e9bcf6e2a..cf52bd99a7df7271ff1228891f267e174cef267e 100755 (executable)
@@ -5,6 +5,3 @@ dir=`dirname $0`
 
 cd $dir/$suite/docs && \
 env BUILDDIR=$BUILDDIR/$suite/docs SRCDIR=$SRCDIR/$suite/docs gtkdoc-check
-
-# xmllint --noout --nonet --schema ../devhelp2.xsd ./bugs/docs/html/tester.devhelp2
-#
index 6ef67bc3a31a5056ac9f4c7f9cb6ff70618a2a8f..6b03bf9ae37cf850c71eb984ed5e593292eb7284 100755 (executable)
@@ -77,6 +77,40 @@ done
 if test $nok -gt 0 ; then failed=`expr $failed + 1`; fi
 tested=`expr $tested + 1`
 
+# check validity of devhelp2 files
+nok=0
+for file in $dir/*/docs*/html/*.devhelp2; do
+  xmllint --noout --nonet --schema $ABS_TOP_SRCDIR/devhelp2.xsd $file
+  if test $? != 0 ; then
+    echo 1>&2 "devhelp2 xml validity check failed for $file"
+    nok=`expr $nok + 1`;
+  fi
+done
+if test $nok -gt 0 ; then failed=`expr $failed + 1`; fi
+tested=`expr $tested + 1`
+
+
+# check stability of generated xml/html
+nok=0
+for path in $dir/*/docs*; do
+  if test -d $path/xml.ref; then
+    diff -u $path/xml.ref $path/xml
+    if test $? = 1 ; then
+      echo 1>&2 "difference in generated xml for $path"
+      nok=`expr $nok + 1`;
+    fi
+  fi
+  if test -d $path/html.ref; then
+    diff -u $path/html.ref $path/html
+    if test $? = 1 ; then
+      echo 1>&2 "difference in generated html for $path"
+      nok=`expr $nok + 1`;
+    fi
+  fi
+done
+if test $nok -gt 0 ; then failed=`expr $failed + 1`; fi
+tested=`expr $tested + 1`
+
 
 # summary
 successes=`expr $tested - $failed`
index 01e2d6c294bb72fab18bd9a3213e0797c6bf6240..570e30809e440204abc1c7561fbf15bdd4927ef8 100755 (executable)
@@ -32,6 +32,13 @@ for file in $ABS_TOP_SRCDIR/*.xsl; do
   tested=`expr $tested + 1`
 done
 
+
+# test python scripts
+/usr/bin/python -m py_compile `which gtkdoc-depscan`
+if test $? != 0 ; then failed=`expr $failed + 1`; fi
+tested=`expr $tested + 1`
+
+
 # summary
 successes=`expr $tested - $failed`
 
index d331f5282a69a09746f21985be9c941ddeb0e2a4..a114a4245cca1e8bbe04f7bd21bef336f97e1de0 100644 (file)
@@ -32,6 +32,13 @@ for file in $ABS_TOP_SRCDIR/*.xsl; do
   tested=`expr $tested + 1`
 done
 
+
+# test python scripts
+@PYTHON@ -m py_compile `which gtkdoc-depscan`
+if test $? != 0 ; then failed=`expr $failed + 1`; fi
+tested=`expr $tested + 1`
+
+
 # summary
 successes=`expr $tested - $failed`