[Lazarus] Building help files: the nitty-gritty

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jul 16 18:47:13 CEST 2012


On Mon, 16 Jul 2012 15:16:33 +0000
Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:

> Mattias Gaertner wrote:
> > On Mon, 16 Jul 2012 14:41:12 +0000
> > Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:
> > 
> >> Mattias Gaertner wrote:
> >> [...]
> >> 42 {$R *.res}
> >> 43
> >> 44 begin
> >> 45   Application.Initialize;
> >>
> >> Hitting F1 on 'Application' console shows:
> >>
> >> TIDEHelpManager.ShowHelpForSourcePosition A 
> >> Filename=/usr/local/src/heavywethers/trunk/HeavyWethers.lpr  x=6,y=45
> >> TIDEHelpManager.ShowHelpForSourcePosition B Success 1
> >> TIDEHelpManager.ShowHelpForSourcePosition C 
> >> /usr/local/share/lazarus-trunk/lcl/forms.pp X=3 Y=1706
> >> TIDEHelpManager.ShowHelpForSourcePosition D PascalHelpContextLists.Count=1
> >> THelpDatabase.GetNodesForPascalContexts C 
> >> FileItem.ClassName=THelpDBISourceDirectory 
> >> Filename=/usr/local/share/lazarus-trunk/lcl/forms.pp 1
> >> TFPDocHTMLHelpDatabase.ShowHelp A Unitname=forms NewNode.HelpType=1 
> >> NewNode.Title=LCL - Lazarus Component Library Units 
> >> NewNode.URL=file://index.html
> >> TFPDocHTMLHelpDatabase.ShowHelp Filename="application." UnitName="forms"
> >> TFPDocHTMLHelpDatabase.ShowHelp BaseURL of Node.URL=""
> >> TFPDocHTMLHelpDatabase.ShowHelp GetEffectiveBaseURL="lcl.chm://"
> >> THTMLHelpDatabase.ShowURL B URL=lcl.chm://forms/application.html 
> >> URLType=lcl.chm URLPath=forms/application.html URLParams=
> >> TChmHelpViewer.ShowNode Filename="lcl.chm" 
> >> SearchPath="/usr/local/share/lazarus-trunk/docs/html/lcl" 

On a second thought: not good.
It should be

SearchPath="/usr/local/share/lazarus-trunk/docs/html;/usr/local/share/lazarus-trunk/docs/html/lcl;/usr/local/share/lazarus-trunk/docs/chm"

Please check Tools / Options / Help / Help Options / Viewers / CHM Help
Viewer / HelpFilesPath.
It should be empty to use the default or contain $(LazarusDir)/docs/chm.

Mattias




More information about the Lazarus mailing list