integrate.xml 2.3 KB

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