-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Info for the dita command, properties files, migrating ant builds
- Loading branch information
1 parent
c464d74
commit 454303b
Showing
20 changed files
with
448 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?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> | ||
<dita-cmd input="../sequence.ditamap" format="htmlhelp" propertyfile="../properties/chm.properties"/> | ||
<dita-cmd input="../taskbook.ditamap" format="pdf" propertyfile="../properties/pdf.properties"/> | ||
</target> | ||
|
||
<target name="post"> | ||
<description>Postprocessing steps</description> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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"/> | ||
<property name="args.breadcrumbs" 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
<exec executable="${dita.dir}/bin/dita"> | ||
<arg line="-i @{input} -f @{format} -propertyfile @{propertyfile}"/> | ||
</exec> | ||
</sequential> | ||
</macrodef> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output.dir = out/chm | ||
args.gen.task.lbl = YES | ||
args.breadcrumbs = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output.dir = out/pdf | ||
args.gen.task.lbl = YES | ||
args.rellinks = nofamily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
args.gen.task.lbl = NO | ||
args.cssroot = ${args.input.dir}/css/ | ||
args.css = style.css | ||
args.copycss = yes | ||
args.csspath = branding | ||
nav-toc = full | ||
args.xhtml.toc = toc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.