Re: [AD] chapters for devhelp documentation

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, 2004-09-06 at 10:53 +0200, Elias Pschernig wrote:
> On Mon, 2004-09-06 at 08:26 +0100, Grzegorz Adam Hankiewicz wrote:
> >  docs/makedoc -texi docs/texi/allegro.texi docs/src/allegro._tx
> >  reading docs/src/allegro._tx
> >  writing docs/texi/allegro.texi
> >  /usr/bin/makeinfo --no-split -o docs/info/allegro.info docs/texi/allegro.texi
> >  ./docs/texi/allegro.texi:136: Node `Using' lacks menu item for `install_allegro' despite being its Up target.
> >  ./docs/texi/allegro.texi:136: Node `Using' lacks menu item for `allegro_init' despite being its Up target.
> >  blah blah blah
> > 
> 
> Hmm. I'll look at that, seems using 0,0,0 as parameters to add_toc_line
> makes texi still use the toc entry, or something :|
> 

Ok, the attached one-line change to maketexi.c seems to fix it. I don't
know what ->otherfile is for, and why the ->texinfoable was ignored..
but I shortly looked at it with info (is there any non-console browser
for info docs?) and at the PDF docs, and they looks ok now.

-- 
Elias Pschernig
Index: docs/src/makedoc/maketexi.c
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/makedoc/maketexi.c,v
retrieving revision 1.10
diff -u -p -r1.10 maketexi.c
--- docs/src/makedoc/maketexi.c	21 May 2004 08:17:04 -0000	1.10
+++ docs/src/makedoc/maketexi.c	6 Sep 2004 09:35:44 -0000
@@ -478,7 +478,7 @@ static void _output_texinfo_toc(FILE *f,
 	 section_number = 0;
 
 	 while ((toc) && (section_number < part)) {
-	    if ((toc->root) && (!toc->otherfile))
+	    if ((toc->root) && (!toc->otherfile) && (toc->texinfoable))
 	       section_number++;
 	    toc = toc->next;
 	 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/