From owner-freebsd-doc Mon Nov 13 1:11:12 2000 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (unknown [194.128.198.234]) by hub.freebsd.org (Postfix) with ESMTP id 891C237B4CF for ; Mon, 13 Nov 2000 01:11:02 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.0/8.11.0) id eACMmRS07290 for doc@freebsd.org; Sun, 12 Nov 2000 22:48:27 GMT (envelope-from nik) Date: Sun, 12 Nov 2000 22:48:27 +0000 From: Nik Clayton To: doc@freebsd.org Subject: Indexing in DocBook Message-ID: <20001112224826.A7270@canyon.nothing-going-on.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Folks, Attached, find a first draft at support for automatic index generation. This is so that people can play around with it, and let me know what breaks. Of course, if it breaks, feel free to fix it :-) The patch touches a number of files: .../fdp-primer/* I needed something to test it on, so I've added a couple of simple index entries to the primer. Note the use of ... and the "significance" attribute that I use once. doc.docbook.mk Introduce the GEN_INDEX variable, and conditionally build the index.sgml file if it's defined. This only works for HTML at the moment, I haven't investigated doing it for PS and PDF. This probably means that PS and PDF generation will be broken -- naturally, I don't intend to commit any of this until that's solved. N -- Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. Telephone line, $24.95 a month. Software, free. USENET transmission, hundreds if not thousands of dollars. Thinking before posting, priceless. Somethings in life you can't buy. For everything else, there's MasterCard. -- Graham Reed, in the Scary Devil Monastery --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff Index: en_US.ISO_8859-1/books/fdp-primer/book.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO_8859-1/books/fdp-primer/book.sgml,v retrieving revision 1.12 diff -u -r1.12 book.sgml --- en_US.ISO_8859-1/books/fdp-primer/book.sgml 2000/07/16 16:36:17 1.12 +++ en_US.ISO_8859-1/books/fdp-primer/book.sgml 2000/11/12 21:55:37 @@ -37,6 +37,7 @@ %chapters; + ]> @@ -282,7 +283,8 @@ &chap.see-also; &app.examples; - + + &index;