Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 09FE52E343C for ; Wed, 9 Jan 2008 01:42:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 43272-07 for ; Wed, 9 Jan 2008 01:41:59 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id AF1EB2E342A for ; Wed, 9 Jan 2008 01:42:01 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-101-79.bk7-dsl.surnet.cl [200.126.101.79]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m095g3tZ014264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Jan 2008 21:42:06 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A562E47B9B; Wed, 9 Jan 2008 02:41:55 -0300 (CLST) Date: Wed, 9 Jan 2008 02:41:55 -0300 From: Alvaro Herrera To: pgsql-docs@postgresql.org Subject: 'make draft' and HTML.index Message-ID: <20080109054155.GG20913@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Tue, 08 Jan 2008 21:42:06 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/9 X-Sequence-Number: 4738 I just noticed that I can very quickly generate an up-to-date HTML.index by commenting out normal HTML generation, i.e. patching html/docbook.dsl thusly: *** docbook.dsl.orig 2008-01-09 02:35:53.000000000 -0300 --- docbook.dsl 2008-01-09 02:35:12.000000000 -0300 *************** *** 102,110 **** ;(define (docelem node) ; (node-propety 'document-element ; (node-property 'grove-root node))) ! (process-children) ! (with-mode manifest ! (process-children)) (if html-index (with-mode htmlindex (process-children)) --- 102,110 ---- ;(define (docelem node) ; (node-propety 'document-element ; (node-property 'grove-root node))) ! ; (process-children) ! ; (with-mode manifest ! ; (process-children)) (if html-index (with-mode htmlindex (process-children)) (Of course, this suppresses normal HTML output). Currently, we generate HTML.index by running openjade in normal mode, and then rerunning if we detect that the HTML.index file changed. This is a waste -- with patched docbook.dsl, it takes 8 seconds to generate the index file on my system, whereas the regular openjade run takes 1:30. So on a clean start it takes 3 minutes to generate the docs. This could be reduced to 1:38 if we were to generate the HTML.index file with a hack similar to the above, and then run openjade only once. However, I have no idea if we can ship a .dsl file and convince openjade to run with that instead of the normal docbook.dsl. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.