Here's my solution:
- Copy the CSS file into the resource folder of the DITA open toolkit.
- Edit the ditafm-ant.xml file in the open toolkit root folder.
- Scroll down until you find the HTML target section (<target name="html" ...>).
- Add the following lines to the bottom of the section, just before the </antcall> line:
<param name="args.css" value="${dita.dir}${file.separator}resource${file.separator}myCSS.css""/>
These parameters are:
<param name="args.csspath" value="."/>
<param name="args.copycss" value="yes"/>- args.css. The location of the custom CSS file.
- args.csspath. The path to copy it to, relative to the folder containing generated HTML files
- args.copycss. Whether to copy the file to the output folder.
- Optionally, delete any other CSS files that you don't need from the resource folder.
- Regenerate your files as usual within FrameMaker and you should find your CSS file in the output folder.
No comments:
Post a Comment