conref-task.dita 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <task id="ID">
  5. <title>Conref file for tasks</title>
  6. <taskbody>
  7. <context>
  8. <p id="semver-info">DITA-OT releases follow
  9. <xref keyref="semver"/> guidelines. Version numbers use the
  10. <codeph><varname>major</varname>.<varname>minor</varname>.<varname>patch</varname></codeph> syntax, where
  11. <varname>major</varname> versions may include incompatible API changes, <varname>minor</varname> versions add
  12. functionality in a backwards-compatible manner and <varname>patch</varname> versions are maintenance releases
  13. that include backwards-compatible bug fixes.</p>
  14. <p id="semver-plugins">Custom plug-ins developed for a previous <varname>major</varname> version may require
  15. changes to work correctly with recent toolkit versions. Most plug-ins should be compatible with subsequent
  16. <varname>minor</varname> and <varname>patch</varname> versions of the <varname>major</varname> release for
  17. which they were originally developed.</p>
  18. <dl>
  19. <dlentry>
  20. <dt>Standard Path / Directory Names</dt>
  21. <dd><filepath id="ot-dir"><varname>dita-ot-dir</varname></filepath></dd>
  22. <dd><filepath id="dita-cmd"><varname>dita-ot-dir</varname>/bin/<cmdname>dita</cmdname></filepath></dd>
  23. <dd><filepath id="samples-dir"><varname>dita-ot-dir</varname>/docsrc/samples</filepath></dd>
  24. </dlentry>
  25. <dlentry>
  26. <dt>Plug-In Info</dt>
  27. <dd>
  28. <ul>
  29. <li id="plug-in-id"><filepath><varname>plug-in-id</varname></filepath> is the unique ID of the plug-in, as
  30. defined in the plug-in’s configuration file (<filepath>plugin.xml</filepath>).</li>
  31. <li id="plug-in-zip"><filepath><varname>plug-in-zip</varname></filepath> is the
  32. <varname>filename</varname> or <varname>URL</varname> of the plug-in’s distribution ZIP file
  33. (optional).</li>
  34. <li><ph id="plugin-integrate-all">If no <varname>filename</varname> or <varname>URL</varname> argument is
  35. provided, the installation process reloads the current set of plug-ins from the
  36. <filepath>plugins</filepath> directory. This approach can be used to add or remove multiple plug-ins
  37. at once, or any individual plug-ins you have already copied to (or removed from) the
  38. <filepath>plugins</filepath> directory. Any plug-ins added or removed in the process will be listed by
  39. their plug-in ID.</ph></li>
  40. <li><note id="plugin-remove-subdir" type="attention">The <parmname>--uninstall</parmname> option also
  41. removes the corresponding subdirectory from the <filepath>plugins</filepath>
  42. folder.<indexterm>uninstalling</indexterm></note></li>
  43. </ul>
  44. </dd>
  45. </dlentry>
  46. </dl>
  47. </context>
  48. <steps>
  49. <step>
  50. <cmd>
  51. <!-- Used in installation topic & Release Notes -->
  52. <ph id="download-ot">Download the <filepath>dita-ot-<keyword keyref="maintenance-version"/>.zip</filepath>
  53. package from the project website at <xref keyref="download.dita-ot"/>.</ph>
  54. </cmd>
  55. </step>
  56. <step>
  57. <cmd id="open-terminal">Open a command prompt or terminal session, and then change to the directory where DITA
  58. Open Toolkit is installed.</cmd>
  59. <info>
  60. <ul id="basic-variables">
  61. <li id="novice-variables-1"><filepath conref="#ID/ot-dir"/> is the DITA-OT installation directory.</li>
  62. <li id="novice-variables-2"><varname>input-file</varname> is the DITA map or DITA file that you want to
  63. process.</li>
  64. <!-- ↓ excerpt-variables ↓ -->
  65. <li id="novice-variables-last" audience="novice">
  66. <p id="common-format-info">
  67. <varname>format</varname> is the output format (transformation type).
  68. This argument corresponds to the common parameter
  69. <parmname>transtype</parmname>.
  70. Use the same values as for the <parmname>transtype</parmname> build
  71. parameter, for example <option>html5</option> or <option>pdf</option>.
  72. </p>
  73. </li>
  74. <!-- ↑ end-excerpt ↑ -->
  75. <li id="expert-variables-last" audience="expert">
  76. <p conref="#ID/common-format-info"/>
  77. <p id="transtypes">You can create plug-ins to add new output formats; by default, the following values are
  78. available:
  79. <indexterm>transtype<indexterm>list</indexterm></indexterm>
  80. <ul>
  81. <li><option>dita</option></li>
  82. <li><option>eclipsehelp</option></li>
  83. <li><option>html5</option></li>
  84. <li platform="windows"><option>htmlhelp</option></li>
  85. <li><option>markdown</option>, <option>markdown_gitbook</option>, and
  86. <option>markdown_github</option></li>
  87. <li><option>pdf</option></li>
  88. <li><option>tocjs</option></li>
  89. <li><option>troff</option></li>
  90. <li><option>xhtml</option></li>
  91. </ul>
  92. <note type="tip">See <xref keyref="output-formats"/> for sample command line syntax and more information
  93. on each transformation.
  94. </note>
  95. </p>
  96. </li>
  97. <li id="options">[<varname>options</varname>] include the following optional build parameters:
  98. <parml conref="../parameters/dita-command-arguments.dita#dita-command-properties/dita_build_options">
  99. <plentry>
  100. <pt/>
  101. <pd/>
  102. </plentry>
  103. </parml></li>
  104. </ul>
  105. </info>
  106. <stepresult id="running-ditaot-results">
  107. <p>If processing is successful, nothing is printed in the terminal window. The built output is written to the
  108. specified output directory (by default, in the <filepath>out</filepath> subdirectory of the current
  109. directory).</p>
  110. <note id="dita-in-path" type="tip">Add the absolute path for <filepath conref="#ID/ot-dir"
  111. /><filepath>/bin</filepath> to the <varname>PATH</varname> environment variable to run the
  112. <cmdname>dita</cmdname> command from any location on the file system without typing the path.
  113. <indexterm><cmdname>dita</cmdname> command<indexterm>PATH environment variable</indexterm></indexterm>
  114. </note>
  115. </stepresult>
  116. </step>
  117. <step>
  118. <cmd>Extending pre-processing</cmd>
  119. <info>
  120. <note id="tip-extend-before-after-preprocessing" type="tip">For maximum compatibility with future versions of
  121. DITA-OT, most plug-ins should use the extension points that run <b>before</b> or <b>after</b>
  122. pre-processing.</note>
  123. <note id="caution-extend-within-preprocessing" type="caution">The internal order of preprocessing steps is
  124. subject to change between versions of DITA-OT. New versions may remove, reorder, combine, or add steps to
  125. the process, so the extension points <b>within</b> the preprocessing stage should only be used if absolutely
  126. necessary.</note>
  127. </info>
  128. </step>
  129. </steps>
  130. <postreq>
  131. <note type="tip" id="template-properties">Copy <filepath conref="#ID/samples-dir"
  132. /><filepath>/properties/template.properties</filepath>; this template describes each of the properties you can
  133. set.</note>
  134. <note type="tip" id="pass-input-dir">If you are building in different environments where the location of the input
  135. files is not consistent, set <option>args.input.dir</option> with the <cmdname>dita</cmdname> command and
  136. reference its value with <codeph>${args.input.dir}</codeph> in your <filepath>.properties</filepath>
  137. file.
  138. <indexterm><cmdname>dita</cmdname>
  139. command<indexterm><option>args.input.dir</option></indexterm><indexterm>.properties file</indexterm></indexterm>
  140. <indexterm>args.input.dir</indexterm>
  141. </note>
  142. </postreq>
  143. </taskbody>
  144. </task>