IDE: main help page: default base is now $(LazarusDir)/docs

git-svn-id: trunk@22526 -
This commit is contained in:
mattias 2009-11-11 10:19:28 +00:00
parent e82ba209ae
commit 41c81e64f5

View File

@ -677,12 +677,12 @@ procedure TIDEHelpManager.RegisterIDEHelpDatabases;
FMainHelpDB:=HelpDatabases.CreateHelpDatabase(lihcStartPage,
THTMLHelpDatabase,true);
HTMLHelp:=FMainHelpDB as THTMLHelpDatabase;
FMainHelpDBPath:=THelpBasePathObject.Create('$(LazarusDir)');
FMainHelpDBPath:=THelpBasePathObject.Create('$(LazarusDir)/docs');
HTMLHelp.BasePathObject:=FMainHelpDBPath;
// HTML nodes for the IDE
StartNode:=THelpNode.CreateURLID(HTMLHelp,'Lazarus',
'file://docs/index.html',lihcStartPage);
'file://index.html',lihcStartPage);
HTMLHelp.TOCNode:=THelpNode.Create(HTMLHelp,StartNode);// once as TOC
HTMLHelp.RegisterItemWithNode(StartNode);// and once as normal page
end;