Changeset 3236


Ignore:
Timestamp:
Apr 11, 2007, 11:31:55 AM (16 years ago)
Author:
Martin Svensson
Message:

References #521. A pdf document is generated together with the html documentation.
The file's name is 'base_{baseversion}.pdf' and it will be placed in doc/docbook
Layout needs to be improved a bit.

Location:
trunk
Files:
70 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3232 r3236  
    5050    Documentation:
    5151    doc:          Build documentation for local use
    52     docbook:      Build html from docbook (to be included in 'ant doc')
     52    docbook:      Build html and pdf from docbook (to be included in 'ant doc')
    5353    helptext:     Generate help text import file from the docbook documentation
    5454
     
    10351035      <property name="base.version" value="${base.version}"/>
    10361036    </ant>
     1037   
     1038    <!-- Generate a pdf file from the documentation source -->
     1039    <echo>Generate pdf file</echo>
     1040    <ant antfile="${lib}/docbook/ant-build-docbook.xml" inheritall="false" target="pdf.fop">
     1041      <property name="ant.docbook.styler.dir" location="${lib}/docbook" />
     1042      <property name="docbook.xml.dir" location="${docbook.src}" />
     1043      <property name="docbook.resources.dir" location="${docbook.src}/figures" />
     1044      <property name="distribution.dir" location="${doc}/docbook" />
     1045      <property name="build.dir" location="${build}/docbook" />
     1046      <property name="base.version" value="${base.version}"/>
     1047    </ant>
    10371048  </target>
    10381049 
  • trunk/lib/docbook/ant-build-docbook.xml

    r3207 r3236  
    2727  <!-- Start file for Docbook processing. -->
    2828  <property name="index.name"              value="${manual.name}" />
     29 
     30  <!-- Ouput file name for the docbook pdf file-->
     31  <property name="pdf.name"         value="base"/>
    2932 
    3033  <property name="docbook.style"           value="plain" />
     
    308311  <target name="pdf.fop.internal" depends="disable.resources.copy,docbook.consolidate" if="module.fop.present">
    309312
     313    <copy file="${module.fop.basedir}/conf/config.xml"
     314      tofile="${build.dir}/config.xml"
     315      overwrite="true"
     316    >
     317        <filterset refid="filterset.fileuris" />
     318    </copy>
     319   
    310320    <copy file="${docbook.styles}/${docbook.style}/xsl/customized.pdf-fop.xsl"
    311321          tofile="${build.dir}/customized.pdf-fop.xsl.tmp"
     
    334344    <fop format     = "application/pdf"
    335345         fofile     = "${build.dir}/fop-ready.fo"
    336          outfile    = "${distribution.dir}/${manual.name}.pdf"
     346         outfile    = "${distribution.dir}/${pdf.name}_${base.version}.pdf"
    337347         messagelevel = "info"
    338          userconfig = "${module.fop.basedir}/conf/config.xml"
     348         userconfig = "${build.dir}/config.xml"
     349       basedir="${build.dir}"
    339350        />
    340351
  • trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.pdf-fop.xsl

    r3153 r3236  
    1111<!-- should be 200a, but fop does not support it. -->
    1212<xsl:param name="ulink.hyphenate">&#x200b;</xsl:param>
    13  
     13
     14<!-- Base specific templates -->
     15<xsl:param name="paper.type" select="'A4'" />
     16
     17<xsl:template match="helptext">
     18  <xsl:apply-templates />
     19</xsl:template>
     20
    1421</xsl:stylesheet>
    1522
Note: See TracChangeset for help on using the changeset viewer.