[Goodies-commits] r5738 - in xfce4-power-manager/trunk: . doc doc/C doc/C/images

Ali Abdallah aliov at xfce.org
Tue Oct 21 21:46:33 CEST 2008


Author: aliov
Date: 2008-10-21 19:46:33 +0000 (Tue, 21 Oct 2008)
New Revision: 5738

Added:
   xfce4-power-manager/trunk/doc/
   xfce4-power-manager/trunk/doc/C/
   xfce4-power-manager/trunk/doc/C/Makefile.am
   xfce4-power-manager/trunk/doc/C/images/
   xfce4-power-manager/trunk/doc/C/images/Makefile.am
   xfce4-power-manager/trunk/doc/C/xfce4-power-manager.html
   xfce4-power-manager/trunk/doc/C/xfce4-power-manager.xml
   xfce4-power-manager/trunk/doc/Makefile.am
   xfce4-power-manager/trunk/doc/xfce-nochunk.xsl
Modified:
   xfce4-power-manager/trunk/Makefile.am
   xfce4-power-manager/trunk/configure.ac.in
Log:
Added empty doc directory

Modified: xfce4-power-manager/trunk/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/Makefile.am	2008-10-21 19:44:59 UTC (rev 5737)
+++ xfce4-power-manager/trunk/Makefile.am	2008-10-21 19:46:33 UTC (rev 5738)
@@ -1,4 +1,4 @@
-SUBDIRS = src data po
+SUBDIRS = src data po doc
 
 EXTRA_DIST = \
 	intltool-extract.in \
@@ -9,3 +9,29 @@
 	intltool-extract \
 	intltool-merge \
 	intltool-update
+
+distclean-local:
+	rm -rf *.cache
+
+rpm: dist
+	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
+	@rm -f $(PACKAGE)-$(VERSION).tar.gz
+
+html: Makefile
+	make -C doc html
+
+dist-bz2: dist
+	zcat $(PACKAGE)-$(VERSION).tar.gz | \
+	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
+
+distcheck-bz2: distcheck
+	zcat $(PACKAGE)-$(VERSION).tar.gz | \
+	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
+         
+snapshot: dist
+	mv $(PACKAGE)-$(VERSION).tar.gz \
+	$(PACKAGE)-$(VERSION)-r at REVISION@.tar.gz
+
+snapshot-bz2: dist-bz2
+	mv $(PACKAGE)-$(VERSION).tar.bz2 \
+	$(PACKAGE)-$(VERSION)-r at REVISION@.tar.bz2         
\ No newline at end of file

Modified: xfce4-power-manager/trunk/configure.ac.in
===================================================================
--- xfce4-power-manager/trunk/configure.ac.in	2008-10-21 19:44:59 UTC (rev 5737)
+++ xfce4-power-manager/trunk/configure.ac.in	2008-10-21 19:46:33 UTC (rev 5738)
@@ -94,6 +94,9 @@
 data/icons/scalable/apps/Makefile
 data/icons/scalable/status/Makefile
 data/icons/scalable/actions/Makefile
+doc/Makefile
+doc/C/Makefile
+doc/C/images/Makefile
 po/Makefile.in
 ])
 

Added: xfce4-power-manager/trunk/doc/C/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/doc/C/Makefile.am	                        (rev 0)
+++ xfce4-power-manager/trunk/doc/C/Makefile.am	2008-10-21 19:46:33 UTC (rev 5738)
@@ -0,0 +1,16 @@
+SUBDIRS = \
+  	 images
+
+noinst_DATA = \
+	xfce4-power-manager.xml
+
+docdir=$(datadir)/xfce4/doc/C
+
+doc_DATA= \
+	xfce4-power-manager.html
+
+EXTRA_DIST = $(noinst_DATA) $(doc_DATA)
+
+html: $(srcdir)/xfce4-power-manager.xml
+	xsltproc $(top_srcdir)/doc/xfce-nochunk.xsl \
+		$(srcdir)/xfce4-power-manager.xml

Added: xfce4-power-manager/trunk/doc/C/images/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/doc/C/images/Makefile.am	                        (rev 0)
+++ xfce4-power-manager/trunk/doc/C/images/Makefile.am	2008-10-21 19:46:33 UTC (rev 5738)
@@ -0,0 +1,7 @@
+imagesdir = $(datadir)/xfce4/doc/C/images
+
+images_DATA = 
+
+EXTRA_DIST = $(images_DATA)
+
+

Added: xfce4-power-manager/trunk/doc/C/xfce4-power-manager.html
===================================================================

Added: xfce4-power-manager/trunk/doc/C/xfce4-power-manager.xml
===================================================================

Added: xfce4-power-manager/trunk/doc/Makefile.am
===================================================================
--- xfce4-power-manager/trunk/doc/Makefile.am	                        (rev 0)
+++ xfce4-power-manager/trunk/doc/Makefile.am	2008-10-21 19:46:33 UTC (rev 5738)
@@ -0,0 +1,10 @@
+SUBDIRS = \
+	C 
+	
+noinst_DATA = \
+	xfce-nochunk.xsl
+
+EXTRA_DIST = $(noinst_DATA)
+
+html: Makefile
+	make -C C html
\ No newline at end of file

Added: xfce4-power-manager/trunk/doc/xfce-nochunk.xsl
===================================================================
--- xfce4-power-manager/trunk/doc/xfce-nochunk.xsl	                        (rev 0)
+++ xfce4-power-manager/trunk/doc/xfce-nochunk.xsl	2008-10-21 19:46:33 UTC (rev 5738)
@@ -0,0 +1,270 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'
+                xmlns="http://www.w3.org/TR/xhtml1/transitional"
+                exclude-result-prefixes="#default">
+
+<!-- Load onechunk.xsl stylesheet 
+     TODO: how can I put a location independent link here?
+This should work. The url can be translated to a local one in the catalog
+file"
+-->
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/onechunk.xsl"/>
+
+<xsl:param name="suppress.navigation">1</xsl:param>
+
+<!-- Use stylesheet -->
+<xsl:param name="html.stylesheet" select="'../xfce.css'"/>
+
+<!-- labels and numbering -->
+<xsl:param name="autotoc.label.separator" select="'. '"/>
+<xsl:param name="chapter.autolabel" select="1"/>
+
+<!-- Don't force the use of index.html as root filename -->
+<xsl:param name="root.filename" select="''"/>
+
+<!--  Use element id (if present) as file name  -->
+<xsl:variable name="use.id.as.filename">1</xsl:variable>
+
+<xsl:template match="releaseinfo" mode="titlepage.mode">
+  <span class="{name(.)}">
+    <xsl:apply-templates mode="titlepage.mode"/>
+    <br/>
+  </span>
+</xsl:template>
+
+<!-- Use graphics in admonitions (note, warning, etc)  -->
+<xsl:variable name="admon.graphics">0</xsl:variable>
+
+<xsl:param name="admon.style">
+	<xsl:text>text-align: left;</xsl:text></xsl:param>
+
+<xsl:variable name="admon.graphics.path">stylesheet-images/</xsl:variable>
+
+<xsl:variable name="admon.graphics.extension">.gif</xsl:variable>
+
+<xsl:param name="table.border.thickness" select="'0.2pt'"/>
+
+<xsl:param name="graphic.default.extension" select="png"/>
+
+<xsl:attribute-set name="shade.verbatim.style">
+	<xsl:attribute name="border">0</xsl:attribute>
+	<xsl:attribute name="bgcolor">#F3F4F8</xsl:attribute>
+	<xsl:attribute name="width">100%</xsl:attribute>
+</xsl:attribute-set>
+
+<!-- Addition by Jasper Huijsmans to be able to set background color -->
+<!-- and cell attributes. -->
+<!-- This requires an adapted template for tgroup (see end of stylesheet) -->
+<xsl:attribute-set name="table.style">
+  	<xsl:attribute name="bgcolor">#F8F9FD</xsl:attribute>
+	<xsl:attribute name="cellspacing">0</xsl:attribute>
+	<xsl:attribute name="cellpadding">4</xsl:attribute> 
+</xsl:attribute-set>
+
+
+<xsl:param name="generate.legalnotice.link" select="0"/>
+
+<xsl:param name="shade.verbatim" select="1"/>
+
+<!-- set font styles for various tags   -->
+<xsl:template match="guibutton">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guiicon">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guilabel">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guimenu">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guimenuitem">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guisubmenu">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="application">
+<xsl:call-template name="inline.boldmonoseq"/>
+</xsl:template>
+
+<xsl:template match="caption">
+<xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<!-- Adapted template for tgroup. The only change is the addition of -->
+<!-- table.style attributes -->
+<xsl:template match="tgroup">
+  <table xsl:use-attribute-sets="table.style">
+    <xsl:choose>
+      <!-- If there's a <?dbhtml table-summary="foo"?> PI, use it for
+           the HTML table summary attribute -->
+      <xsl:when test="processing-instruction('dbhtml')">
+        <xsl:variable name="summary">
+          <xsl:call-template name="dbhtml-attribute">
+            <xsl:with-param name="pis"
+                            select="processing-instruction('dbhtml')[1]"/>
+            <xsl:with-param name="attribute" select="'table-summary'"/>
+          </xsl:call-template>
+        </xsl:variable>
+        <xsl:if test="$summary != ''">
+          <xsl:attribute name="summary">
+            <xsl:value-of select="$summary"/>
+          </xsl:attribute>
+        </xsl:if>
+      </xsl:when>
+      <!-- Otherwise, if there's a title, use that -->
+      <xsl:when test="../title">
+        <xsl:attribute name="summary">
+          <xsl:value-of select="string(../title)"/>
+        </xsl:attribute>
+      </xsl:when>
+      <!-- Otherwise, forget the whole idea -->
+      <xsl:otherwise><!-- nevermind --></xsl:otherwise>
+    </xsl:choose>
+
+    <xsl:if test="../@pgwide=1">
+      <xsl:attribute name="width">100%</xsl:attribute>
+    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="../@frame='none'">
+        <xsl:attribute name="border">0</xsl:attribute>
+      </xsl:when>
+      <xsl:when test="$table.borders.with.css != 0">
+        <xsl:attribute name="border">0</xsl:attribute>
+        <xsl:choose>
+          <xsl:when test="../@frame='topbot' or ../@frame='top'">
+            <xsl:attribute name="style">
+              <xsl:call-template name="border">
+                <xsl:with-param name="side" select="'top'"/>
+              </xsl:call-template>
+            </xsl:attribute>
+          </xsl:when>
+          <xsl:when test="../@frame='sides'">
+            <xsl:attribute name="style">
+              <xsl:call-template name="border">
+                <xsl:with-param name="side" select="'left'"/>
+              </xsl:call-template>
+              <xsl:call-template name="border">
+                <xsl:with-param name="side" select="'right'"/>
+              </xsl:call-template>
+            </xsl:attribute>
+          </xsl:when>
+        </xsl:choose>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="border">1</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
+
+    <xsl:variable name="colgroup">
+      <colgroup>
+        <xsl:call-template name="generate.colgroup">
+          <xsl:with-param name="cols" select="@cols"/>
+        </xsl:call-template>
+      </colgroup>
+    </xsl:variable>
+
+    <xsl:variable name="explicit.table.width">
+      <xsl:call-template name="dbhtml-attribute">
+        <xsl:with-param name="pis"
+                        select="../processing-instruction('dbhtml')[1]"/>
+        <xsl:with-param name="attribute" select="'table-width'"/>
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:variable name="table.width">
+      <xsl:choose>
+        <xsl:when test="$explicit.table.width != ''">
+          <xsl:value-of select="$explicit.table.width"/>
+        </xsl:when>
+        <xsl:when test="$default.table.width = ''">
+          <xsl:text>100%</xsl:text>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="$default.table.width"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+
+    <xsl:if test="$default.table.width != ''
+                  or $explicit.table.width != ''">
+      <xsl:attribute name="width">
+        <xsl:choose>
+          <xsl:when test="contains($table.width, '%')">
+            <xsl:value-of select="$table.width"/>
+          </xsl:when>
+          <xsl:when test="$use.extensions != 0
+                          and $tablecolumns.extension != 0">
+            <xsl:choose>
+              <xsl:when test="function-available('stbl:convertLength')">
+                <xsl:value-of select="stbl:convertLength($table.width)"/>
+              </xsl:when>
+              <xsl:when test="function-available('xtbl:convertLength')">
+                <xsl:value-of select="xtbl:convertLength($table.width)"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:message terminate="yes">
+                  <xsl:text>No convertLength function available.</xsl:text>
+                </xsl:message>
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:value-of select="$table.width"/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:attribute>
+    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$use.extensions != 0
+                      and $tablecolumns.extension != 0">
+        <xsl:choose>
+          <xsl:when test="function-available('stbl:adjustColumnWidths')">
+            <xsl:copy-of select="stbl:adjustColumnWidths($colgroup)"/>
+          </xsl:when>
+          <xsl:when test="function-available('xtbl:adjustColumnWidths')">
+            <xsl:copy-of select="xtbl:adjustColumnWidths($colgroup)"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:message terminate="yes">
+              <xsl:text>No adjustColumnWidths function available.</xsl:text>
+            </xsl:message>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:copy-of select="$colgroup"/>
+      </xsl:otherwise>
+    </xsl:choose>
+
+    <xsl:apply-templates select="thead"/>
+    <xsl:apply-templates select="tbody"/>
+    <xsl:apply-templates select="tfoot"/>
+
+    <xsl:if test=".//footnote">
+      <tbody class="footnotes">
+        <tr>
+          <td colspan="{@cols}">
+            <xsl:apply-templates select=".//footnote" 
+                                 mode="table.footnote.mode"/>
+          </td>
+        </tr>
+      </tbody>
+    </xsl:if>
+  </table>
+</xsl:template>
+
+
+</xsl:stylesheet>
+




More information about the Goodies-commits mailing list