How to Copy Additional Resources to Output DirectoryEdit online
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.resourcesparameter 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 for the DITA Open Toolkit or a DocBook XSL Distribution.
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.resourcesparameter. - Execute the transformation script.
Result: All files from the new directory will be copied to the root of the WebHelp output directory.
For example:
- Windows:
dita.bat -i c:\mySample.ditamap -f webhelp-responsive -Dwebhelp.custom.resources=c:\resources - Mac OS X/ Linux:
dita -i /mySample.ditamap -f webhelp-responsive -Dwebhelp.custom.resources=/resources