buildsample.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_buildsample" xml:lang="en-us">
  11. <title>Build TOCJS sample output</title>
  12. <taskbody>
  13. <context>
  14. <p>This task will walk you through building the tocjs sample documentation. First, be
  15. sure you have installed and integrated the tocjs plugin.</p>
  16. </context>
  17. <steps>
  18. <step>
  19. <cmd>Change directories to the <filepath>sample</filepath> directory of the tocjs
  20. plugin.</cmd><info>This should be in the <menucascade>
  21. <uicontrol>demo</uicontrol>
  22. <uicontrol>tocjs</uicontrol>
  23. <uicontrol>sample</uicontrol>
  24. </menucascade> directory
  25. </info>
  26. </step>
  27. <step>
  28. <cmd>Type <userinput>ant -f buildtocjs.xml sample2html</userinput></cmd>
  29. <info>The <codeph>sample2html</codeph> task generates XHTML, and tocjs output and copies
  30. related JavaScript and a <filepath>frameset.html</filepath> file into <menucascade>
  31. <uicontrol>out</uicontrol>
  32. <uicontrol>tocjs</uicontrol>
  33. </menucascade> in your base DITA directory.
  34. </info>
  35. </step>
  36. <step>
  37. <cmd>From your base DITA directory, open <menucascade>
  38. <uicontrol>out</uicontrol>
  39. <uicontrol>tocjs</uicontrol>
  40. <uicontrol>frameset.html</uicontrol>
  41. </menucascade> in a JavaScript-enabled browser.
  42. </cmd>
  43. </step>
  44. </steps>
  45. </taskbody>
  46. </task>