buildsample.xml 2.1 KB

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