Publish with DITA Open Toolkit
Any user with publishing permissions can use DITA Open Toolkit (DITA-OT) publishing scenarios. Only users with the Administrator role in Heretto CCMS can create publishing scenarios.
The only required parameter you need to set to publish content with DITA-OT Cloud is the transformation type (transtype
), for example, PDF or HTML. Other parameters are optional and vary based on the publishing scenario configuration.
Heretto CCMS has the Preflight Check validation mechanism built into the publishing interface that automatically performs content checks and informs you about issues in your publication that will prevent successful publishing. We recommend resolving any issues identified by the Preflight Check before publishing your content.
Commonly Used Publishing Parameters
Depending on their configuration, publishing scenarios have different publishing options available. Here are some of the most commonly used ones.
- DITAVAL
- Optional parameter. Enables you to select a DITAVAL file for conditional processing. This parameter may be pre-set and fixed in a publishing scenario.
- Output type
- Required parameter. Enables you to select the output format, for example, PDF or HTML. This parameter may be set to multiple options. In that case, the publishing scenario defaults to the first option on the list. This parameter may also be pre-set and fixed in a publishing scenario.
- Locales
- Optional parameter. Enables you to select a locale (target language) when publishing localized content. If your content is not localized, this parameter defaults to the source language.
- Track changes
-
Optional parameter. Controls whether suggestions added in the Suggesting mode in the Content Editor are included in the PDF output.
-
Publish without track changes included (default) - Generates output that appears as if all suggestions were rejected. Available in PDF Generator and DITA Open Toolkit.
-
Publish with track changes included - Generates output that appears as if all suggestions were accepted. Available in PDF Generator and DITA Open Toolkit.
-
Publish with suggestions included - Generates output with suggestions highlighted as they appear in the Content Editor, where added content is color-coded, and deleted content is color-coded and crossed out. Available in PDF Generator only.
Important:If your PDF Generator scenarios are not based on the default Color or Grey templates, include this import in your scenarios to ensure suggestions are highlighted:
@import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/styling/suggestions.css");
Users with the Administrator role in Heretto CCMS can edit publishing scenarios.
-
- Debug publish
- Optional parameter. Generates additional files that are added in the debug folder to the output ZIP file. You can use those files to troubleshoot publishing issues in your publication. This option is only available in DITA-OT and PDF Generator publishing scenarios for those users with Administrator privileges.
Publish Content with a DITA Open Toolkit Scenario
Heretto CCMS enables you to use DITA Open Toolkit (DITA-OT) to publish entire documents and individual topics to various output formats. Those formats vary based on the DITA-OT version and plugins configured in a publishing scenario. Publishing scenarios are created and managed by Administrators.
Any user with publishing permissions can use DITA-OT publishing scenarios to publish content.
Depending on the state of your content, one of these options happens:
Output is generated successfully, no errors.
Output is generated with errors/warnings: A PDF file and a cr.log file are generated.
This happens when errors/warnings do not prevent output from being generated. For example, your map links to a resource that is not included in the map. Review the cr.log file and resolve issues in content.
-
Publishing job failed and output is not generated.
This happens when errors are severe and prevent output from being generated. Resolve errors reported in the publishing job.
Note:When publishing, users assigned the Administrator role can also select the Debug publish option that generates additional files in the debug folder of the output ZIP file. Those files can also be used to troubleshoot publishing issues.
Republish Content
You can easily republish content without the need to set parameters like you would when starting a new publishing job. It's useful when you troubleshoot publishing issues or want to publish new changes in your content.
When you republish content, Heretto CCMS uses the same publishing parameters that were originally set for the completed publishing job. You can view the details set for any completed publishing job in the Publish window that opens after you click a completed publishing job.
Republishing a publishing job replaces the previous output in the publishing job. The publishing job number remains the same.
All users with publishing permissions can re-publish content they or other users published.
- In the Content Library, click a topic or map, and in the resource drawer select Output.
- Click a publishing job that you want to republish.
- In the top-right corner of the Publish window, click More options
and select Republish.
New output published according to the original parameters is ready to view and download.