Chapter IDs instead of chapter numbers

View: New views
2 Messages — Rating Filter:   Alert me  

Chapter IDs instead of chapter numbers

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How can we make gtk-doc use a (DocBook?) specified chapter id (or one
based on the title) instead of a generated chapter number, so that the
URL stays the same even if a chapter is added in the middle:

For instance:
http://library.gnome.org/devel/libgda/unstable/ch18.html

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list

Re: Chapter IDs instead of chapter numbers

by David Nečas (Yeti)-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jul 19, 2009 at 10:42:02AM +0200, Murray Cumming wrote:
> How can we make gtk-doc use a (DocBook?) specified chapter id (or one
> based on the title) instead of a generated chapter number, so that the
> URL stays the same even if a chapter is added in the middle:

If you give it an id in the DocBook source, e.g.

<refentry id="...">
<chapter id="...">

it should be used because gtk-doc.xsl does

<xsl:param name="use.id.as.filename" select="1"/>

It works for me.

Yeti

_______________________________________________
gtk-doc-list mailing list
gtk-doc-list@...
http://mail.gnome.org/mailman/listinfo/gtk-doc-list