generate-copy-outer.dita 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
  3. <!--This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.-->
  4. <concept id="concept_rcv_xbp_xg">
  5. <title><parmname>generate.copy.outer</parmname> parameter</title>
  6. <shortdesc>Elaboration on how the <parmname>generate.copy.outer</parmname> parameter functions.</shortdesc>
  7. <conbody>
  8. <section>
  9. <title>Background</title>
  10. <p>This is an issue in the following situations:<ul>
  11. <li>The DITA map is in a directory that is a peer to directories that contain referenced objects.</li>
  12. <li>The DITA map is in a directory that is below the directories that contain the referenced objects.</li>
  13. </ul></p>
  14. <p>Let's assume that the directory structure for the DITA content looks like the
  15. following:<pre>maps
  16. topics
  17. images</pre>The DITA map is in the <filepath>maps</filepath> directory, the topics
  18. are in the<filepath> topics</filepath> directory, and the images are in the <filepath>images</filepath>
  19. directory.</p></section>
  20. <section>
  21. <title>Setting the <parmname>generate.copy.outer</parmname> parameter to <option>1</option></title>
  22. <p>Let's assume that you run the HTML5 transformation and specify an output directory of
  23. <filepath>C:\A-test</filepath>. By default, The DITA-OT uses the <parmname>generate.copy.outer</parmname>
  24. parameter with a value of <option>1</option>. Output is not built for the topics. You receive only the following
  25. output: <pre>C:\A-test
  26. --- index.html
  27. --- commonltr.css
  28. --- commonrtl.css</pre>The
  29. <filepath>index.html</filepath> file contains the navigation structure, but all the links are broken, since no
  30. HTML5 files were built for the topics.</p>
  31. <p>How do you fix this? By specifying a value of <option>3</option> for the
  32. <parmname>generate.copy.outer</parmname> parameter. </p>
  33. </section>
  34. <section>
  35. <title>Setting the <parmname>generate.copy.outer</parmname> parameter to <option>3</option></title>
  36. <p>Now your output directory structure looks like this: <pre>C:\A-test
  37. --- images\
  38. --- maps\
  39. --- topics\</pre>The
  40. index.html file is in the maps directory, and the CSS and other files are located in the output directory,
  41. <filepath>C:\A-test</filepath>. Copying the output directory is simplified.</p>
  42. </section>
  43. </conbody>
  44. </concept>