Sample JSON project files
DITA-OT includes sample project files in JSON format that can be used to define a publication project. Like the XML project samples, the sample JSON files illustrate how deliverables can be described for use in publication projects. The JSON samples are functionally equivalent to their XML and YAML counterparts, with minor adaptations to JSON 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.json 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.json
file, which includes the input map file and the DITAVAL file used to filter the output.