conref-task.dita 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.md file for applicable licenses.-->
  4. <task id="ID">
  5. <title>Conref file for tasks</title>
  6. <taskbody>
  7. <context>
  8. <dl>
  9. <dlentry>
  10. <dt>Standard Path / Directory Names</dt>
  11. <dd><filepath id="ot-dir"><varname>dita-ot-dir</varname></filepath></dd>
  12. <dd><filepath id="dita-cmd"><varname>dita-ot-dir</varname>/bin/<cmdname>dita</cmdname></filepath></dd>
  13. <dd><filepath id="samples-dir"><varname>dita-ot-dir</varname>/docsrc/samples</filepath></dd>
  14. </dlentry>
  15. <dlentry>
  16. <dt>Plug-In Info</dt>
  17. <dd>
  18. <ul>
  19. <li id="plug-in-id"><varname>plug-in-id</varname> is the unique ID of the plug-in, as defined in the
  20. plug-in's configuration file (<filepath>plugin.xml</filepath>).</li>
  21. <li id="plug-in-zip"><filepath><varname>plug-in-zip</varname></filepath> is the
  22. <varname>filename</varname> or <varname>URL</varname> of the plug-in's distribution ZIP file
  23. (optional).</li>
  24. <li><ph id="plugin-integrate-all">If no <varname>filename</varname> or <varname>URL</varname> argument is
  25. provided, the installation process reloads plug-ins from the <filepath>plugins</filepath> directory.
  26. This approach can be used to install multiple plug-ins at once, or install any individual plug-ins
  27. you have already copied to the <filepath>plugins</filepath> directory.</ph></li>
  28. </ul>
  29. </dd>
  30. </dlentry>
  31. </dl>
  32. </context>
  33. <steps>
  34. <step>
  35. <cmd id="open-terminal">Open a command prompt or terminal session, and then change to the directory where the
  36. DITA Open Toolkit is installed.</cmd>
  37. <info>
  38. <ul id="basic-variables">
  39. <li id="novice-variables-1"><filepath conref="#ID/ot-dir"/> is the DITA-OT installation directory.</li>
  40. <li><varname>input-file</varname> is the DITA map or DITA file that you want to process.</li>
  41. <li id="novice-variables-last"><varname>format</varname> is the output format (transformation type). Use the
  42. same values available for the <parmname>transtype</parmname> build parameter, for example,
  43. <codeph>html5</codeph> or <codeph>pdf</codeph>.</li>
  44. <li id="options"><varname>options</varname> include the following optional build parameters:<parml
  45. conref="../parameters/dita-command-arguments.dita#dita-command-properties/dita_build_options">
  46. <plentry>
  47. <pt/>
  48. <pd/>
  49. </plentry>
  50. </parml></li>
  51. </ul>
  52. </info>
  53. <stepresult id="running-ditaot-results">
  54. <p>If processing is successful, nothing is printed in the terminal window. The built output is written to the
  55. specified output directory (by default, in the <filepath>out</filepath> subdirectory of the current
  56. directory).</p>
  57. <note id="dita-in-path" type="tip">Add the absolute path for <filepath conref="#ID/ot-dir"
  58. /><filepath>/bin</filepath> to the <varname>PATH</varname> environment variable to run the
  59. <cmdname>dita</cmdname> command from any location on the file system without typing the path.</note>
  60. </stepresult>
  61. </step>
  62. </steps>
  63. <postreq>
  64. <note type="tip" id="template-properties">Copy <filepath conref="#ID/samples-dir"
  65. /><filepath>/properties/template.properties</filepath>; this template describes each of the properties you can
  66. set.</note>
  67. <note type="tip" id="pass-input-dir">If you are building in different environments where the location of the input
  68. files is not consistent, set <option>args.input.dir</option> with the <cmdname>dita</cmdname> command and
  69. reference its value with <codeph>${args.input.dir}</codeph> in your <filepath>.properties</filepath>
  70. file.</note>
  71. </postreq>
  72. </taskbody>
  73. </task>