From df0548082b821e90b783131f37053326e28cfd06 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sun, 19 Mar 2023 19:29:41 -0700 Subject: [PATCH v2 8/8] VERY WIP: parallel doc generation --- doc/src/sgml/meson.build | 17 +++++++++++ doc/src/sgml/postgres.sgml | 2 +- doc/src/sgml/stylesheet.xsl | 51 ++++++++++++++++++++++++++++++- doc/src/sgml/xmltools_dep_wrapper | 5 +++ 4 files changed, 73 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index bbe285b29bb..1adae3f7ee5 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', input: 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 c551b9cd809..32bceba2d54 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -15,7 +15,7 @@ - + @@ -36,6 +36,55 @@ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + +