From 37c880b04e13efa36b67832c647255ee80e726bd Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sun, 19 Mar 2023 19:29:41 -0700 Subject: [PATCH v3 4/4] VERY WIP: parallel doc generation --- doc/src/sgml/meson.build | 17 +++++++++++ doc/src/sgml/postgres.sgml | 2 +- doc/src/sgml/stylesheet.xsl | 49 +++++++++++++++++++++++++++++++ doc/src/sgml/xmltools_dep_wrapper | 5 ++++ 4 files changed, 72 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index d9c46224dc9..c6195965a71 100644 --- a/doc/src/sgml/meson.build +++ b/doc/src/sgml/meson.build @@ -121,6 +121,23 @@ if xsltproc_bin.found() ) alldocs += html + parts = ['bookinfo', 'preface', 'tutorial', 'sql', 'admin', 'client-interfaces', 'server-programming', 'reference', 'internals', 'appendixes', 'biblio', 'bookindex'] + html_parts = [] + foreach part : parts + html_parts += custom_target('html-@0@'.format(part), + input: ['stylesheet.xsl', postgres_full_xml], + output: 'html-stamp-@0@'.format(part), + depfile: 'html.d', + depends: doc_generated, + command: [ + xmltools_wrapper, '--tool', xsltproc_bin, '--stamp', '@OUTPUT0@', '--', + '-o', '@OUTDIR@/', xsltproc_flags, '--stringparam', 'rootid', part, '@INPUT@', + ], + build_by_default: false, + ) + endforeach + alias_target('html-parts', html_parts) + install_doc_html = custom_target('install-html', output: 'install-html', command: [ diff --git a/doc/src/sgml/postgres.sgml b/doc/src/sgml/postgres.sgml index 2e271862fc1..a169fd6f30a 100644 --- a/doc/src/sgml/postgres.sgml +++ b/doc/src/sgml/postgres.sgml @@ -23,7 +23,7 @@ break is not needed in a wider output rendering. PostgreSQL &version; Documentation - + The PostgreSQL Global Development Group PostgreSQL &version; diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index 65606ca3dbe..f9986d17f4a 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -28,6 +28,55 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + +