If you reference external files in your plain HTML code you are entirely responsible for making sure that the files are included in your output. Help+Manual does not parse or check the code and it will not do this for you. There are two ways to make sure that referenced files are included in your project:
Method 1: Adding the files to the Baggage Files
This is the simplest solution. The Baggage Files function provides a quick and easy way to integrate external files in your project and make sure that they are available to the compiler and included in your output.
•See Using Baggage Files for details on using this function.
•See Graphics references for more details on referencing graphics files. Since graphics files are often large it is not always a good idea to add them to the Baggage.
Method 2: Integrating the files in your output manually
This is not really necessary since it is much easier to add any referenced files to your Baggage. The following instructions are just included for the sake of completeness.
•In WebHelp you must manually copy the files to your output directory if you have not added them to the Baggage Files (see above).
•In HTML Help you need to tell the HTML Help compiler to add the files to the .chm file. Proceed as follows:
1.Copy the external file(s) to your project folder (the folder containing your .hmxz or .hmxp project file).
2.In the Project Explorer open .
3.In the editing box add the following entries, replacing the dummy filenames in the examples with your own files (one file per line):
[FILES]
..\donald.js
..\mickey.asp
Don't add a second [FILES] header if one already exists. Enter each external filename on its own line below the [FILES] header and precede it with the ..\ relative path reference.
This example assumes the files are stored in your project directory. (This is necessary because the project is published from a temporary subdirectory in the project directory, so files in the project directory are one level up.) If your files are located anywhere else you need to adjust the ..\ relative path reference accordingly.
|