basefiles.xml 1.6 KB

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