Peter Eisentraut wrote: > On l?r, 2010-06-12 at 09:10 -0400, Tom Lane wrote: > > Peter Eisentraut <peter_e@xxxxxxx> writes: > > > On l?r, 2010-06-12 at 11:18 +0200, John Gage wrote: > > >> A one file html version would be a godsend. > > > > > I've committed a build target for that now. Use 'make postgres.html' in > > > doc/src/sgml/. > > > > Huh, is that actually worth anything? How many browsers will open it > > without crashing, or will navigate the page with decent performance > > if they do manage to open it? > > Text output is generated by going through HTML. I haven't figured out > the best way to do the second step yet. We use lynx for INSTALL and > HISTORY, but the results for this big file aren't very clean. > > Browsers seem to handle the file OK, btw. Well, I tried lynx and the output looked fine to me, so I applied the attached patch to allow single-page text output. You can see the HTML and text file results here: http://momjian.us/expire/ The new rule name is postgres.txt. The file size are: 7,789,730 postgres.html 5,155,672 postgres.txt -- Bruce Momjian <bruce@xxxxxxxxxx> http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +
Index: doc/src/sgml/Makefile =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v retrieving revision 1.145 diff -c -c -r1.145 Makefile *** doc/src/sgml/Makefile 12 Jun 2010 15:42:44 -0000 1.145 --- doc/src/sgml/Makefile 12 Jun 2010 15:57:31 -0000 *************** *** 108,113 **** --- 108,117 ---- postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl $(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $< + # single-page text + postgres.txt: postgres.html + $(LYNX) -force_html -dump -nolist -stdin $< > $@ + HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl @$(MKDIR_P) html $(JADE.html.call) -V html-index $<
-- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general