Building output using the dita command
You can generate output using the dita command-line tool. Build parameters can be specified on the command line or with .properties files.
About this task
Procedure
Example
Run from dita-ot-dir/docsrc/samples, the following command generates HTML5 output for the sequence.ditamap file:
dita --input=sequence.ditamap --format=html5
Example
For example, from dita-ot-dir/docsrc/samples, run:
dita --input=sequence.ditamap --format=html5 \
--output=output/sequence \
--args.input.dir=/absolute/path/to/dita-ot-dir/docsrc/samples \
--propertyfile=properties/sequence-html5.properties
This builds sequence.ditamap to HTML5 output in output/sequence using the following additional parameters specified in the properties/sequence-html5.properties file:
# Directory that contains the custom .css file:
args.cssroot = ${args.input.dir}/css/
# Custom .css file used to style output:
args.css = style.css
# Copy the custom .css file to the output directory:
args.copycss = yes
# Location of the copied .css file relative to the output:
args.csspath = branding
# Generate a full navigation TOC in topic pages:
nav-toc = full
What to do next
Most builds require you to specify more options than are described in this topic.
Usually, you will want to specify a set of reusable build parameters in a .properties file.