Publishing DITA content
You can use the dita command, Ant, or the Java API to publish DITA content to other
formats, or build output from a containerized environment such as Docker or GitHub Actions.
Publishing with the dita command You can publish output using the dita command-line tool. Build parameters can be specified on the command line, with .properties files, or in project files that define multiple deliverables.Running the dita command from a Docker image Docker is a platform used to build, share, and run portable application containers. As of version 3.4, the DITA-OT project provides an official Docker container image that includes everything you need to run the toolkit and publish DITA content from a containerized environment. Running the dita command from a GitHub Action GitHub Actions are a CI/CD workflow mechanism attached to GitHub. Each action is an individual unit of functionality that can be combined with other GitHub Actions to create workflows, which are triggered in response to certain GitHub events. As of version 3.6.1, the DITA-OT project provides an official dita-ot-action that can be used as a step within a GitHub workflow to publish documentation as part of your CI/CD pipeline. Building output using Ant You can use Ant to run DITA Open Toolkit and generate output. You can use the complete set of parameters that the toolkit supports.Using the Java API DITA Open Toolkit includes a Java Application Programming Interface to allow developers to embed the toolkit more easily into other Java programs.