integrate.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
  3. "../../../../dtd/task.dtd">
  4. <!--
  5. This file is part of the DITA Open Toolkit project hosted on
  6. Sourceforge.net. See the accompanying license.txt file for
  7. applicable licenses.
  8. (C) Copyright Shawn McKenzie, 2007. All Rights Reserved.
  9. *-->
  10. <?xml-stylesheet href="../../../../xsl/ditaview_shell.xsl" type="text/xsl"?>
  11. <task id="tocjs_integrate" xml:lang="en-us">
  12. <title>Integrate and test</title>
  13. <taskbody>
  14. <context>
  15. <p>Once you have obtained the latest tocjs plugin, you need to install and integrate it
  16. into the DITA Open Toolkit. Note that if you are using DITA-OT 1.5 or later, you can
  17. skip directly to step #3, because the tocjs plugin is already part of your install.</p>
  18. </context>
  19. <steps>
  20. <step>
  21. <cmd>Obtain the latest version of the tocjs plugin.</cmd>
  22. </step>
  23. <step>
  24. <cmd>Unzip the plugin in your demo directory.</cmd>
  25. <stepresult>This should give you a <filepath>tocjs</filepath>
  26. directory.</stepresult>
  27. </step>
  28. <step>
  29. <cmd>From your base DITA directory, type:<userinput>ant -f
  30. integrator.xml</userinput>.</cmd>
  31. <stepresult>You should see output similar to the following message:
  32. <screen>
  33. Buildfile: integrator.xml
  34. BUILD SUCCESSFUL
  35. Total time: 1 seconds
  36. </screen>
  37. The tocjs transtype should be registered with the Open Toolkit.</stepresult>
  38. </step>
  39. <step>
  40. <cmd>Type: <userinput>ant -f demo/tocjs/buildsample.xml sample2tocjs</userinput>.</cmd>
  41. <stepresult>The end of the message output should say:
  42. <screen>
  43. dita2tocjs:
  44. BUILD SUCCESSFUL
  45. Total time: 6 seconds
  46. </screen></stepresult>
  47. </step>
  48. <step>
  49. <cmd>Open <filepath>demo/tocjs/out/sample/frameset.html</filepath> in a browser.</cmd>
  50. <stepresult>This documentation should be displayed in a frameset that includes a
  51. JavaScript TOC in the left pane.</stepresult>
  52. </step>
  53. </steps>
  54. </taskbody>
  55. </task>