rebuilding-docs.dita 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="rebuilding-docs">
  5. <title>Rebuilding the DITA-OT documentation</title>
  6. <titlealts>
  7. <navtitle>Rebuilding documentation</navtitle>
  8. </titlealts>
  9. <shortdesc>When you add or remove plug-ins, you can rebuild the documentation to update the information on the
  10. extension points, messages, and parameters that are available in your environment.</shortdesc>
  11. <prolog>
  12. <metadata>
  13. <keywords>
  14. <indexterm>macOS
  15. <indexterm>gradle</indexterm>
  16. <indexterm>rebuilding documentation</indexterm></indexterm>
  17. <indexterm>Linux
  18. <indexterm>gradle</indexterm>
  19. <indexterm>rebuilding documentation</indexterm></indexterm>
  20. <indexterm>Windows
  21. <indexterm>gradlew</indexterm>
  22. <indexterm>rebuilding documentation</indexterm></indexterm>
  23. </keywords>
  24. </metadata>
  25. </prolog>
  26. <taskbody>
  27. <context>
  28. <p>DITA-OT ships with a <keyword keyref="gradle"/> build script that enables you to rebuild the toolkit
  29. documentation. The build script reads the toolkit’s plug-in configuration and automatically regenerates topics
  30. and properties file templates based on the extension points, messages, and parameters provided by the installed
  31. plug-ins.</p>
  32. <note type="attention">If you have installed new plug-ins, you may need to add the corresponding generated topics
  33. to the DITA maps to include the new information in the output.</note></context>
  34. <steps>
  35. <step>
  36. <cmd>Change to the <filepath>docsrc/</filepath> subdirectory of the DITA-OT installation.</cmd>
  37. </step>
  38. <step>
  39. <cmd>Run one of the following commands.</cmd>
  40. <choices>
  41. <choice platform="linux mac">On Linux and macOS:
  42. <codeblock>./gradlew <varname>target</varname></codeblock></choice>
  43. <choice platform="windows">On Windows: <codeblock>gradlew.bat <varname>target</varname></codeblock></choice>
  44. </choices>
  45. <info>
  46. <p>The <varname>target</varname> parameter is optional and specifies a transformation type. It takes the
  47. following values:
  48. <ul>
  49. <li><option>html</option></li>
  50. <li><option>htmlhelp</option></li>
  51. <li><option>pdf</option></li>
  52. </ul>
  53. </p>
  54. <p>If you do not specify a target, HTML5 and PDF output is generated.</p>
  55. </info>
  56. </step>
  57. </steps>
  58. </taskbody>
  59. </task>