<!DOCTYPE DLHelpSource> <DLHelpSource> <BrowseSequence Name="Auto"/> <TopicBook Title="My Library Help"> <TopicEx> <Title>Topic 1</Title> <Body> </Body> </TopicEx> ... <TopicEx> <Title>Topic n</Title> <Body> </Body> </TopicEx> <TopicBook Title="TopicBook 1"> <!-- More topics and topicbooks here--> </TopicBook> ... <TopicBook Title="TopicBook m"> <!-- More topics and topicbooks here--> </TopicBook> </TopicBook> </DLHelpSource>
For more information on building contents files and master topic files, see Build a Contents file.
If the name of your help file is MyLibrary.hlp, copy the file MyLibrary.cnt to MyLibrary.toc.
Open MyLibrary.cnt in e.g. Notepad, and then delete the lines that start with a number. Then add an :Index and :Include directive in the exact order as shown below:
:Base MyLibrary.hlp>main :Title My Library Documentation :Index My Library Documentation=MyLibrary.hlp :Include MyLibrary.toc
Save and close MyLibrary.cnt, open MyLibrary.toc (in Notepad or similar). Insert a ';' below the :Title directive as shown below:
:Base MyLibrary.hlp>main :Title My Library Documentation ; 1 My Library Help 2 xxx ...
Save and close MyLibrary.toc. The help file should now be ready to integrate into the Delphi IDE with OpenHelp