pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
'make draft' and HTML.index
2+ messages / 2 participants
[nested] [flat]

* 'make draft' and HTML.index
@ 2008-01-09 05:41  Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Alvaro Herrera @ 2008-01-09 05:41 UTC (permalink / raw)
  To: pgsql-docs

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:

inline patch 1: docbook.dsl (+3/-3 lines) download inline-1.patch*** 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. ^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: 'make draft' and HTML.index
@ 2008-01-09 05:55  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2008-01-09 05:55 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: pgsql-docs

Alvaro Herrera <alvherre@commandprompt.com> writes:
> 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.

There's another problem with the current technology for that, which is
that it not infrequently takes *three* iterations to converge, meaning
it's faster to "make clean all" than to try to use the existing state.
I have not looked into why, but certainly this isn't very satisfactory.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2008-01-09 05:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 05:41 'make draft' and HTML.index Alvaro Herrera <alvherre@commandprompt.com>
2008-01-09 05:55 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox