Those are the variables that we defined earlier in the template editorĪnd voilà! HelpNDoc’s generated HTML documentation now includes a table of contents and this template can be reused to any number of documentation projects created in HelpNDoc. In the “Template settings” tab, make sure that both the “Generate Table of Contents” and “Table of Contents width” are correctly set up. ![]() Click “Customize” if the “Template settings” tab is not already visible.On the right, click the “Default HTML Template” link and select the newly created template in the list.Select the HTML build in the list on the left and make sure that it is checked for generation.From HelpNDoc’s “Home” ribbon tab, in the “Project” group, click the top part of the “Generate help” button to show the “Generate documentation” window.Open a documentation project in HelpNDoc or create a new one.To use our template, we’ll need to assign it to an HTML build: Right after the tag, we can add the following code which will iterate through every topic in the project: We can now add the code which will produce the HTML table of contents. Scripts include a mix of HTML and Pascal programming languages to control how the final documentation is generated. Script files control the behavior of the template. Edit the template’s script to add the table of contents Can be pixels, percent…”īoth variables are now created and accessible from both the template’s code for execution, and HelpNDoc’s build dialog for customization. Description: “Width of the table of contents.Specify the following properties to create a string variable which will control the size of the table of contents:.Description: “If checked, a table of contents will be generated”.Specify the following properties to create a boolean variable which will control the visibility of the table of contents:.In the template editor, make sure that the newly created template is selected in the “Template” list.Let’s create two variables to control the visibility of the table of contents and its width: HelpNDoc lists all available variables for a specific template in the build window, providing an easy to use interface to customize the template. Zoom the topic editor, print and export analyzer reports to PDF and Excel with HelpNDoc 6.Template authors can define variables and use their value to control how the template will behave based on user feedback.Brand new faster DocX Importer, PDF Generator, Script Engine and more in HelpNDoc 7.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |