cvs: php-gtk-doc / gen_manual.sh live.php liveGen.php /images/reference/gtk gtkiconview.constructor.png gtkmessagedialog.png /manual global.ent
/manual/en/reference/gtk gtkiconview.xml gtkmessagedialog.xml /stylesheets/html class.xsl graphics.xsl

From: Date: Tue, 02 Aug 2005 10:48:34 +0000
Subject: cvs: php-gtk-doc / gen_manual.sh live.php liveGen.php /images/reference/gtk gtkiconview.constructor.png gtkmessagedialog.png /manual global.ent
/manual/en/reference/gtk gtkiconview.xml gtkmessagedialog.xml /stylesheets/html class.xsl graphics.xsl
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1501@lists.php.net to get a copy of this message
cweiske Tue Aug 2 06:48:34 2005 EDT Added files: /php-gtk-doc/images/reference/gtk gtkiconview.constructor.png gtkmessagedialog.png Modified files: /php-gtk-doc/stylesheets/html graphics.xsl class.xsl /php-gtk-doc liveGen.php live.php gen_manual.sh /php-gtk-doc/manual/en/reference/gtk gtkiconview.xml gtkmessagedialog.xml /php-gtk-doc/manual global.ent Log: Support for class images. Usage: <classimage fileref="&directory.images;/reference/gtk/gtkiconview.constructor.png"/> in the <classmeta> section. By default, a black border of size 1 is printed as we don't have window borders in the screenshots. To deactivate it, use the attribute frame="no". To include an image with its own paragraph: <graphic fileref="..."/> and an inline image which flows in the text: <inlinegraphic fileref=".."/> http://cvs.php.net/diff.php/php-gtk-doc/stylesheets/html/graphics.xsl?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/stylesheets/html/graphics.xsl diff -u php-gtk-doc/stylesheets/html/graphics.xsl:1.4 php-gtk-doc/stylesheets/html/graphics.xsl:1.5 --- php-gtk-doc/stylesheets/html/graphics.xsl:1.4 Mon Apr 11 17:54:44 2005 +++ php-gtk-doc/stylesheets/html/graphics.xsl Tue Aug 2 06:48:31 2005 @@ -9,7 +9,7 @@ version='1.0'> <!-- ******************************************************************** - $Id: graphics.xsl,v 1.4 2005/04/11 21:54:44 cweiske Exp $ + $Id: graphics.xsl,v 1.5 2005/08/02 10:48:31 cweiske Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -76,7 +76,8 @@ <xsl:variable name="filename"> <xsl:choose> <xsl:when test="local-name(.) = 'graphic' - or local-name(.) = 'inlinegraphic'"> + or local-name(.) = 'inlinegraphic' + or local-name(.) = 'classimage'"> <xsl:choose> <xsl:when test="@fileref"> <xsl:value-of select="@fileref"/> http://cvs.php.net/diff.php/php-gtk-doc/stylesheets/html/class.xsl?r1=1.17&r2=1.18&ty=u Index: php-gtk-doc/stylesheets/html/class.xsl diff -u php-gtk-doc/stylesheets/html/class.xsl:1.17 php-gtk-doc/stylesheets/html/class.xsl:1.18 --- php-gtk-doc/stylesheets/html/class.xsl:1.17 Fri Apr 22 15:03:16 2005 +++ php-gtk-doc/stylesheets/html/class.xsl Tue Aug 2 06:48:31 2005 @@ -90,6 +90,15 @@ <xsl:template match="proptype"> <xsl:apply-templates /> </xsl:template> + + <xsl:template match="classimage"> + <div style="float:right; border:1px solid #000;"> + <xsl:if test="@frame='no'"> + <xsl:attribute name="style">float:right;</xsl:attribute> + </xsl:if> + <xsl:call-template name="process.image"/> + </div> + </xsl:template> <!--========================================================================--> @@ -296,6 +305,7 @@ <h2 class="title"> <xsl:apply-templates select="./classmeta/classtitle"/> </h2> + <xsl:apply-templates select="./classmeta/classimage"/> <p> <blockquote> <xsl:apply-templates select="./classmeta/shortdesc"/> http://cvs.php.net/diff.php/php-gtk-doc/liveGen.php?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/liveGen.php diff -u php-gtk-doc/liveGen.php:1.3 php-gtk-doc/liveGen.php:1.4 --- php-gtk-doc/liveGen.php:1.3 Mon Jul 25 15:22:19 2005 +++ php-gtk-doc/liveGen.php Tue Aug 2 06:48:32 2005 @@ -417,7 +417,7 @@ } //We can't remove all the empty lines because the programlisting examples wouldn't have empty lines then //but they won't have more than 3 empty lines in a row, I hope - if ($nEmptyLines < 3) { + if ($nEmptyLines < 3 && substr($strLine, 0, 5) != '<?xml') { $strStrippedContents .= $strLine; } } http://cvs.php.net/diff.php/php-gtk-doc/live.php?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/live.php diff -u php-gtk-doc/live.php:1.2 php-gtk-doc/live.php:1.3 --- php-gtk-doc/live.php:1.2 Mon Jul 25 14:54:55 2005 +++ php-gtk-doc/live.php Tue Aug 2 06:48:32 2005 @@ -56,7 +56,7 @@ pclose($hdl);*/ $retval = shell_exec('./gen_manual.sh en test ' . $id . ' 2>&1'); if (isset($_GET['debug'])) { - var_dump($retval); + var_dump(nl2br($retval)); } return true; }//function genManual($id) http://cvs.php.net/diff.php/php-gtk-doc/gen_manual.sh?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/gen_manual.sh diff -u php-gtk-doc/gen_manual.sh:1.3 php-gtk-doc/gen_manual.sh:1.4 --- php-gtk-doc/gen_manual.sh:1.3 Tue Aug 2 01:51:50 2005 +++ php-gtk-doc/gen_manual.sh Tue Aug 2 06:48:32 2005 @@ -72,6 +72,13 @@ xsltproc --param base.dir "'./$build_dir/'" --xinclude $xslfile manual/$language/$manualfile +#copy images +# I want to copy the linked images only. But how do I accomplish this +# without losing directory structure? +#cp --target-directory=build/en/test/images/ grep -oh 'src="[^"]*"' build/en/test/* | sed s/src=\"//g | sed s/\"//g +# this one doesn't keep the directories +cp -R images build/en/test/ + if [ $type == "html" ] && [ $test == "0" ]; then $php -q distribute_html.php $language fi http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml?r1=1.7&r2=1.8&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.7 php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.8 --- php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml:1.7 Tue Aug 2 01:51:52 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkiconview.xml Tue Aug 2 06:48:33 2005 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkIconView</classtitle> <classparent>GtkContainer</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkiconview.constructor.png"/> <shortdesc> Displays a list of icons in a grid. </shortdesc> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml:1.3 Tue Aug 2 01:51:52 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkmessagedialog.xml Tue Aug 2 06:48:33 2005 @@ -1,7 +1,9 @@ +<?xml version="1.0" encoding="utf-8" ?> <classentry id="gtk.gtkmessagedialog"> <classmeta> <classtitle>GtkMessageDialog</classtitle> <classparent>GtkDialog</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkmessagedialog.png" frame="no"/> <shortdesc> A convenient message window </shortdesc> http://cvs.php.net/diff.php/php-gtk-doc/manual/global.ent?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/global.ent diff -u php-gtk-doc/manual/global.ent:1.2 php-gtk-doc/manual/global.ent:1.3 --- php-gtk-doc/manual/global.ent:1.2 Tue Aug 2 01:51:52 2005 +++ php-gtk-doc/manual/global.ent Tue Aug 2 06:48:33 2005 @@ -1,5 +1,5 @@ <!-- - $Id: global.ent,v 1.2 2005/08/02 05:51:52 cweiske Exp $ + $Id: global.ent,v 1.3 2005/08/02 10:48:33 cweiske Exp $ Contains global "macros" for all the XML documents. All URLS and emails should be placed in here then referenced in the text as, for example &url.gtk --> @@ -61,3 +61,4 @@ <!-- for xincludes: the directory --> <!ENTITY directory.examples "../../examples"> +<!ENTITY directory.images "images">

« previous php.gtk.doc (#1501) next »