Commits

Anonymous committed d46c829

Fix for #335.

  • Participants
  • Parent commits a41d053

Comments (0)

Files changed (3)

docs/book/build.sh

 rm -rf ./html
 mkdir html
 mkdir html/css
+mkdir html/images
+cp xml/*.gif html/images/
 cp css/*.css html/css/
 untarDocbook
+cd xml
 xsltproc \
     --timing \
     --xinclude \
-    --output html/index.html \
-    xsl/html.xsl \
-    xml/cherrypy.xml 
- 
+    --output ../html/index.html \
+    ../xsl/html.xsl \
+    cherrypy.xml 
+cd .. 
 #
 # Let's chunk the doc in different files
 #
 rm -rf ./chunk
 mkdir chunk
 mkdir chunk/css
+mkdir chunk/images
 cp css/*.css chunk/css/
+cp xml/*.gif chunk/images/
 untarDocbook
+cd xml
 xsltproc \
     --timing \
     --xinclude \
-    --output chunk/index.html \
-    xsl/chunked.xsl \
-    xml/cherrypy.xml 
-
+    --output ../chunk/index.html \
+    ../xsl/chunked.xsl \
+    cherrypy.xml 
+cd ..
 exit

docs/book/xsl/chunked.xsl

   <xsl:param name="css.decoration" select="0" />
   <xsl:param name="chunk.section.depth" select="1"/>
   <xsl:param name="local.l10n.xml" select="document(&apos;&apos;)"/>
+  <xsl:param name="img.src.path">./images/</xsl:param>
   <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
     <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">
       <l:context name="xref">

docs/book/xsl/html.xsl

   <xsl:param name="css.decoration" select="0" />
   <xsl:param name="chunk.section.depth" select="1"/>
   <xsl:param name="local.l10n.xml" select="document(&apos;&apos;)"/>
+  <xsl:param name="img.src.path">./images/</xsl:param>
   <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
     <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">
       <l:context name="xref">