Download HelpNDoc User Manual
Transcript
HelpNDoc User Manual HndGeneratorInfo.CurrentFile := ExtractFileName(HndGeneratorInfo.OutputFile); To alter this behavior, just comment or remove the line from the template. Now HelpNDoc will generate an index.html file automatically. Fix the topics redirections in topics.pas.html When a topic is called directly by its URL, it has a built-in mechanism to redirect to the index file so that the table of contents is shown. As we have renamed the index file, we need to change the behavior of the topics.pas.html file and change the following line: top.location.href = "<% print(ExtractFileName(HndGeneratorInfo.OutputFile)); %>?" + sTopicId to: top.location.href = "index.html?" + sTopicId That's all. Now HelpNDoc will generate an HTML documentation which will automatically use the index.html file as the default index file. Usage from the command line HelpNDoc handles various command line parameters to be able to update and generate documentation without user interface. This is useful to integrate the documentation generation process with an automated build process for example. HelpNDoc's command line options use the syntax "hnd4.exe [FileName] [Parameters]" where [FileName] is the optional HND file to be processed and the parameters are described bellow. When run using the command line parameters bellow, HelpNDoc won't show any user interface except for a DOS prompt window. Command line help At any time, use the "hnd4.exe /?" command line to get help on the various command line syntax and parameters. Command line parameters · /g - Generate the HelpNDoc "FileName" using project's settings · /b=[value] - Override the list of build to generate from the project (Semi-colon separated list of built) · /v[name]=[value] - Set the [value] of variable [name] or create a new variable named [name] · /silent - Silent mode: no user input required. Useful for automated build processes to avoid user interaction · /l=[value] - Output the generation log to the specified file Command line examples 63 / 90