basefiles.xml 1.7 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project hosted on
  4. Sourceforge.net. See the accompanying license.txt file for
  5. applicable licenses.
  6. (C) Copyright Shawn McKenzie, 2007. All Rights Reserved.
  7. *-->
  8. <?xml-stylesheet href="../../../../xsl/ditaview_shell.xsl" type="text/xsl"?>
  9. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
  10. "../../../../dtd/concept.dtd">
  11. <concept id="tocjs_basefiles" xml:lang="en-us">
  12. <title>The <filepath>basefiles</filepath> directories</title>
  13. <conbody>
  14. <p>When you set up a project to build tocjs output, you will likely want to pull source files from
  15. two separate locations. The tocjs plugin has a <filepath>basefiles</filepath> directory that
  16. includes HTML, JavaScript, image and CSS files necessary for the tocjs plugin to work. The tocjs
  17. transtype itself generates a JavaScript file (<filepath>toctree.js</filepath>) that is used in
  18. conjunction with the files in this <filepath>basefiles</filepath> directory. As you can see in
  19. the sample ant tasks in <filepath>demo/tocjs/buildsample.xml</filepath>.</p>
  20. <p>You will likely want to maintain another <filepath>basefiles</filepath> directory along with
  21. your DITA source files and copy these into your output as well. If you look in the
  22. tocjs <filepath>sample</filepath> project there is a different <filepath>basefiles</filepath>
  23. directory. This contains the CSS file related to the DITA content and the
  24. <filepath>frameset.html</filepath> file. These are specific to the project, while the files in
  25. <filepath>demo/tocjs/basefiles</filepath> are for any project using the tocjs plugin.</p>
  26. </conbody>
  27. </concept>