Sample YAML project files
DITA-OT includes sample project files in YAML format that can be used to define a publication project. Like the XML project samples, the sample YAML files illustrate how deliverables can be described for use in publication projects. The YAML samples are functionally equivalent to their XML and JSON counterparts, with minor adaptations to YAML file syntax.
Project files can be designed in a modular fashion to create reusable configuration structures that allow you to define settings in one file and refer to them in other projects to publish multiple deliverables at once.
For example, dita-ot-dir/docsrc/samples/project-files/html.yaml defines a single HTML deliverable.
This file can be used to generate the HTML version of the DITA-OT documentation by running the following command from the docsrc folder of the DITA-OT installation directory:
The project file for HTML output imports the common
html context from a shared project context
defined in the dita-ot-dir/docsrc/samples/project-files/common.yaml
file, which includes the input map file and the DITAVAL file used to filter the output.