from code-server
This commit is contained in:
parent
eda5c02fe9
commit
5ef8bdba47
2652 changed files with 528235 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="build-chm-pdf-hybrid" default="all" basedir=".">
|
||||
<description>An Ant build that calls the dita command</description>
|
||||
<include file="dita-cmd.xml"/><!-- defines the <dita-cmd> macro -->
|
||||
<target name="all" depends="pre,main,post"/>
|
||||
<target name="pre">
|
||||
<description>Preprocessing steps</description>
|
||||
</target>
|
||||
<target name="main">
|
||||
<description>Build the CHM and PDF with the dita command</description>
|
||||
<property name="absolute.path.base" location="../"/>
|
||||
<dita-cmd
|
||||
input="${absolute.path.base}/sequence.ditamap"
|
||||
format="htmlhelp"
|
||||
propertyfile="${absolute.path.base}/properties/chm.properties"
|
||||
/>
|
||||
<dita-cmd
|
||||
input="${absolute.path.base}/taskbook.ditamap"
|
||||
format="pdf"
|
||||
propertyfile="${absolute.path.base}/properties/pdf.properties"
|
||||
/>
|
||||
</target>
|
||||
<target name="post">
|
||||
<description>Postprocessing steps</description>
|
||||
</target>
|
||||
</project>
|
||||
22
dita-ot-3.6/docsrc/samples/ant_sample/build-chm-pdf.xml
Normal file
22
dita-ot-3.6/docsrc/samples/ant_sample/build-chm-pdf.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="build-chm-pdf" default="all" basedir=".">
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
<target name="all" description="build CHM and PDF" depends="chm,pdf"/>
|
||||
<target name="chm" description="build CHM">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="../sequence.ditamap"/>
|
||||
<property name="transtype" value="htmlhelp"/>
|
||||
<property name="output.dir" location="../out/chm"/>
|
||||
<property name="args.gen.task.lbl" value="YES"/>
|
||||
</ant>
|
||||
</target>
|
||||
<target name="pdf" description="build PDF">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="../taskbook.ditamap"/>
|
||||
<property name="transtype" value="pdf"/>
|
||||
<property name="output.dir" location="../out/pdf"/>
|
||||
<property name="args.gen.task.lbl" value="YES"/>
|
||||
<property name="args.rellinks" value="nofamily"/>
|
||||
</ant>
|
||||
</target>
|
||||
</project>
|
||||
32
dita-ot-3.6/docsrc/samples/ant_sample/dita-cmd.xml
Normal file
32
dita-ot-3.6/docsrc/samples/ant_sample/dita-cmd.xml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project basedir="." name="dita-cmd">
|
||||
|
||||
<description>Defines a dita-cmd macro you can use in your Ant builds. See build-chm-pdf-hybrid.xml for
|
||||
usage.</description>
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<macrodef name="dita-cmd">
|
||||
<attribute name="input"/>
|
||||
<attribute name="format"/>
|
||||
<attribute name="propertyfile"/>
|
||||
<sequential>
|
||||
<!-- For Unix run the DITA executable-->
|
||||
<exec taskname="dita-cmd" executable="${dita.dir}/bin/dita" osfamily="unix" failonerror="true">
|
||||
<arg value="--input"/>
|
||||
<arg value="@{input}"/>
|
||||
<arg value="--format"/>
|
||||
<arg value="@{format}"/>
|
||||
<arg value="--propertyfile"/>
|
||||
<arg value="@{propertyfile}"/>
|
||||
</exec>
|
||||
<!-- For Windows run DITA from a DOS command -->
|
||||
<exec taskname="dita-cmd" dir="${dita.dir}/bin" executable="cmd" osfamily="windows" failonerror="true">
|
||||
<arg value="/C"/>
|
||||
<arg value="dita --input @{input} --format @{format} --propertyfile=@{propertyfile}"/>
|
||||
</exec>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
</project>
|
||||
27
dita-ot-3.6/docsrc/samples/ant_sample/sample_all.xml
Normal file
27
dita-ot-3.6/docsrc/samples/ant_sample/sample_all.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_all" default="all" basedir=".">
|
||||
|
||||
<import file="sample_html5.xml"/>
|
||||
<import file="sample_xhtml_plus_css.xml"/>
|
||||
<import file="sample_eclipsehelp.xml"/>
|
||||
<import file="sample_htmlhelp.xml"/>
|
||||
<import file="sample_pdf.xml"/>
|
||||
|
||||
<target name="all" depends="samples"/>
|
||||
|
||||
<target
|
||||
name="samples"
|
||||
description="build the sample output"
|
||||
depends="samples.html5, samples.xhtml_plus_css, samples.eclipse, samples.htmlhelp, samples.pdf"
|
||||
/>
|
||||
|
||||
<target
|
||||
name="clean.samples"
|
||||
description="remove the sample output"
|
||||
depends="clean.samples.html5, clean.samples.xhtml_plus_css, clean.samples.eclipse, clean.samples.htmlhelp, clean.samples.pdf"
|
||||
>
|
||||
<delete dir="${dita.dir}/out/samples"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_eclipsehelp.xml
Normal file
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_eclipsehelp.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_eclipsehelp" default="samples.eclipse" basedir=".">
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<target name="samples.eclipse" description="build the samples for Eclipse" depends="clean.samples.eclipse">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="${dita.dir}/docsrc/samples/hierarchy.ditamap"/>
|
||||
<property name="output.dir" location="${dita.dir}/out/samples/org.dita.sample.doc"/>
|
||||
<property name="transtype" value="eclipsehelp"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="clean.samples.eclipse" description="remove the sample Eclipse output">
|
||||
<delete dir="${dita.dir}/out/samples/org.dita.sample.doc"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
20
dita-ot-3.6/docsrc/samples/ant_sample/sample_html5.xml
Normal file
20
dita-ot-3.6/docsrc/samples/ant_sample/sample_html5.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_html5" default="samples.html5" basedir=".">
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<target name="samples.html5" description="build the HTML5 samples" depends="clean.samples.html5">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="${dita.dir}/docsrc/samples/hierarchy.ditamap"/>
|
||||
<property name="output.dir" location="${dita.dir}/out/samples/html5"/>
|
||||
<property name="args.html5.toc" value="toc"/>
|
||||
<property name="transtype" value="html5"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="clean.samples.html5" description="remove the sample html5 output">
|
||||
<delete dir="${dita.dir}/out/samples/html5"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_htmlhelp.xml
Normal file
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_htmlhelp.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_htmlhelp" default="samples.htmlhelp" basedir=".">
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<target name="samples.htmlhelp" description="build the samples for HTMLHelp" depends="clean.samples.htmlhelp">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="${dita.dir}/docsrc/samples/hierarchy.ditamap"/>
|
||||
<property name="output.dir" location="${dita.dir}/out/samples/htmlhelp"/>
|
||||
<property name="transtype" value="htmlhelp"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="clean.samples.htmlhelp" description="remove the sample HTMLHelp output">
|
||||
<delete dir="${dita.dir}/out/samples/htmlhelp"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_pdf.xml
Normal file
19
dita-ot-3.6/docsrc/samples/ant_sample/sample_pdf.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_pdf" default="samples.pdf" basedir=".">
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<target name="samples.pdf" description="build the samples as PDF" depends="clean.samples.pdf">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="${dita.dir}/docsrc/samples/sequence.ditamap"/>
|
||||
<property name="output.dir" location="${dita.dir}/out/samples/pdf"/>
|
||||
<property name="transtype" value="pdf"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="clean.samples.pdf" description="remove the sample PDF output">
|
||||
<delete dir="${dita.dir}/out/samples/pdf"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<project name="sample_xhtml_plus_css" default="samples.xhtml_plus_css" basedir=".">
|
||||
|
||||
<property name="dita.dir" location="${basedir}/../../.."/>
|
||||
|
||||
<property name="sample.output.dir" value="${dita.dir}/out/samples/xhtml_plus_css"/>
|
||||
<property name="css.source.dir" location="${dita.dir}/docsrc/samples/css"/>
|
||||
|
||||
<target name="samples.xhtml_plus_css" depends="clean.samples.xhtml_plus_css">
|
||||
<ant antfile="${dita.dir}/build.xml">
|
||||
<property name="args.input" location="${dita.dir}/docsrc/samples/hierarchy.ditamap"/>
|
||||
<property name="output.dir" location="${sample.output.dir}"/>
|
||||
<property name="transtype" value="xhtml"/>
|
||||
<property name="args.css" value="style.css"/>
|
||||
<property name="args.csspath" value="css"/>
|
||||
<property name="args.copycss" value="yes"/>
|
||||
<property name="args.cssroot" location="${css.source.dir}"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="clean.samples.xhtml_plus_css" description="remove the sample web output">
|
||||
<delete dir="${sample.output.dir}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<!-- revise @PLACEHOLDER@ names and values-->
|
||||
<!--
|
||||
| basedir can be specified to other places base on your need.
|
||||
|
|
||||
| Note: input, output, and temp directories will base on the basedir if
|
||||
| they are relative paths.
|
||||
* -->
|
||||
<project name="@PROJECT.NAME@_eclipsehelp" default="@DELIVERABLE.NAME@2eclipsehelp" basedir=".">
|
||||
|
||||
<!-- dita.dir should point to the toolkit's root directory -->
|
||||
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}..${file.separator}.."/>
|
||||
|
||||
<target name="@DELIVERABLE.NAME@2eclipsehelp">
|
||||
<ant antfile="${dita.dir}${file.separator}build.xml">
|
||||
<!-- please refer to the toolkit's document for supported parameters, and
|
||||
specify them base on your needs -->
|
||||
<property name="args.input" location="@DITA.INPUT@"/>
|
||||
<property name="output.dir" location="@OUTPUT.DIR@"/>
|
||||
<property name="transtype" value="eclipsehelp"/>
|
||||
</ant>
|
||||
</target>
|
||||
</project>
|
||||
24
dita-ot-3.6/docsrc/samples/ant_sample/template_htmlhelp.xml
Normal file
24
dita-ot-3.6/docsrc/samples/ant_sample/template_htmlhelp.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<!-- revise @PLACEHOLDER@ names and values-->
|
||||
<!--
|
||||
| basedir can be specified to other places base on your need.
|
||||
|
|
||||
| Note: input, output, and temp directories will base on the basedir if
|
||||
| they are relative paths.
|
||||
* -->
|
||||
<project name="@PROJECT.NAME@_htmlhelp" default="@DELIVERABLE.NAME@2htmlhelp" basedir=".">
|
||||
|
||||
<!-- dita.dir should point to the toolkit's root directory -->
|
||||
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}..${file.separator}.."/>
|
||||
|
||||
<target name="@DELIVERABLE.NAME@2htmlhelp">
|
||||
<ant antfile="${dita.dir}${file.separator}build.xml">
|
||||
<!-- please refer to the toolkit's document for supported parameters, and
|
||||
specify them base on your needs -->
|
||||
<property name="args.input" location="@DITA.INPUT@"/>
|
||||
<property name="output.dir" location="@OUTPUT.DIR@"/>
|
||||
<property name="transtype" value="htmlhelp"/>
|
||||
</ant>
|
||||
</target>
|
||||
</project>
|
||||
24
dita-ot-3.6/docsrc/samples/ant_sample/template_pdf.xml
Normal file
24
dita-ot-3.6/docsrc/samples/ant_sample/template_pdf.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
|
||||
<!-- revise @PLACEHOLDER@ names and values-->
|
||||
<!--
|
||||
| basedir can be specified to other places base on your need.
|
||||
|
|
||||
| Note: input, output, and temp directories will base on the basedir if
|
||||
| they are relative paths.
|
||||
* -->
|
||||
<project name="@PROJECT.NAME@_pdf" default="@DELIVERABLE.NAME@2pdf" basedir=".">
|
||||
|
||||
<!-- dita.dir should point to the toolkit's root directory -->
|
||||
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}..${file.separator}.."/>
|
||||
|
||||
<target name="@DELIVERABLE.NAME@2pdf">
|
||||
<ant antfile="${dita.dir}${file.separator}build.xml">
|
||||
<!-- please refer to the toolkit's document for supported parameters, and
|
||||
specify them base on your needs -->
|
||||
<property name="args.input" location="@DITA.INPUT@"/>
|
||||
<property name="output.dir" location="@OUTPUT.DIR@"/>
|
||||
<property name="transtype" value="pdf"/>
|
||||
</ant>
|
||||
</target>
|
||||
</project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue