How to Copy Additional Resources to Output Directory
You can copy additional resources (such as JavaScript, CSS or other resources) to the output
directory of a WebHelp system by using the webhelp.custom.resources
parameter.
Using Oxygen XML Editor/Author
To copy additional resources to the output directory using a transformation scenario from
within Oxygen XML Editor/Author, follow this procedure:
- Place all your resources in the same directory.
- Edit the WebHelp transformation scenario, then open the Parameters tab.
- Edit the value for the
webhelp.custom.resources
parameter and set it to the absolute path of the directory in step 1. - Click OK to save the changes to the transformation scenario.
- Run the transformation scenario.
Result: All files from the new directory will be copied to the root of the WebHelp output directory.
Using a Script Outside of Oxygen XML Editor/Author
Important: Running WebHelp transformations from a script outside of Oxygen XML
Editor/Author requires an additional license and some additional setup:
- You must have a valid license for the Oxygen XML WebHelp Plugin (https://www.oxygenxml.com/buy_webhelp.html).
- The Oxygen XML WebHelp Plugin must be installed and integrated.
To copy additional resources to the output directory using a script outside of Oxygen XML
Editor/Author, follow this procedure:
- Place all your resources in the same directory.
- Specify the absolute path to that directory using the
webhelp.custom.resources
parameter. - Execute the transformation script.
Result: All files from the new directory will be copied to the root of the WebHelp output directory.