A new initiative from the Oxygen XML Blog introduces a method for automating the publishing process through scripting on the server side. This development utilizes a Gradle build file that can be executed to streamline the creation and publication of WebHelp and PDF outputs derived from blog content.
Automation Features and Functionality
The sample script provided by the Oxygen XML Blog encompasses several key functionalities. It begins by downloading and unzipping the Oxygen Publishing Engine, a tool essential for generating outputs from the DITA content management system. This script also sets up a license key within the publishing engine’s folder, which is derived from an environmental variable identified as LICENSE_KEY.
Subsequent to these initial steps, the script proceeds to run the publishing process on the DITA OT Project file. This project file is crucial as it encapsulates all deliverables, including WebHelp and EPUB formats. The outputs are then produced and stored in a designated site folder located within the project’s base directory. This automation significantly reduces the manual effort previously required for content publishing.
Implementation and Customization
Developers looking to adapt this script for their own needs can start with the example provided by the Oxygen XML Blog. The process is straightforward and involves a few command-line instructions. Users can initiate the build process by navigating to the build directory and executing the command: cd ./build; sh ./gradlewCustom –info –stacktrace. This command will trigger the entire sequence, from downloading the necessary tools to publishing the content.
As organizations increasingly seek efficiency in their publishing workflows, this automated solution presents a valuable opportunity. By implementing such scripts, teams can focus on content creation rather than the complexities of the publishing process, ensuring a more agile and responsive approach to content dissemination.
The Oxygen XML Blog’s initiative illustrates the potential of scripting in modern publishing, paving the way for enhanced productivity and streamlined workflows across various content-driven industries.