By choosing different frame templates, doc2help can create variable styles of document format to meet customer’s individual requirement. Actually the template is some html/js files. So customization of template will need some background of html and js.
Template files are saved in frametemplate folder. Every template is stored in a single sub-folder. There is a default template built in doc2help, as the following figure.
And under the default folder, it has following files and folders:
If users need to customize template, please read the following items. After understanding how doc2help applies template, users with html background can modify the template file by themselves:
1. When doc2help converting documents, it will copy all the files under template folder to output directory of converted file. So files under template folder are the html frame file of created document.
2. When doc2help converting documents, it will create a docfile directory under output path. The converted file will be saved in this folder.
3. When doc2help converting documents, it will create titleInfo.js and searchInfo.js under output directory. titleInfo.js file includes the information of tree menu. And searchInfo.js file includes key words index information for full text index.
4. When doing the copy step as item 1, doc2help will run the following replace operations at the same time. These operations can replace the frame file by edited configure template.
a. Replace DOC-2-HELP-TITLE in index.htm file by page title in configuration.
b. Replace DOC-2-HELP-COPYRIGHT in frame/bottomframe.htm file by bottom information in configuration.
c. If configure as chm format, (MENUTABHIGHT, MENUTABFILE) in frame/menuframe file will be replaced by (25, menutab.htm). Otherwise, it will replaced by (0, '').
Attention: Doc2help created documents are all UTF8 coding. When doing modification of templates, please remain UTF8 format.
When doing customization of template, users can copy the default template file that provided and doing the modification of the default file to generate customized template. And also users can generate new frame template file by themselves. The frame needed information is provided under JS folder. If users need us to modify and customize frame, please contact us by service@younghua.com.
[王瑞1]超链接不对
[王瑞2]图上operation里面几个按钮大小不一致
[王瑞3]三个按钮没对齐