Re: meson documentation build open issues

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: meson documentation build open issues
Date: 2023-03-24 07:26:19
Message-ID: 20230324072619.ogniy2iai2pydnfg@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2023-03-22 11:59:17 -0700, Andres Freund wrote:
> Unless somebody sees a reason to wait, I am planning to commit:
> meson: add install-{quiet, world} targets
> meson: add install-{docs,doc-html,doc-man} targets
> meson: make install_test_files more generic, rename to install_files

I've done that now.

> For the .css: docbook-xsl actually has support for writing the .css: [1] - but
> it requires the .css file be valid xml. I wonder if the cleanest approch would
> be to have a build step to create .css.xml - then the non-chunked build's
> generate.css.header would do the right thing.

We don't even need to do that! The attached patch just creates a wrapper
css.xml that loads the .css via an entity reference.

I think this looks reasonably complicated, given that it gives us a working
stylesheet for the non-chunked output?

I don't know if my hack of putting the paramters in stylesheet-common.xsl is
reasonable. Perhaps we should just include stylesheet-html-common.xsl in
stylesheet-hh.xsl, then this uglyness wouldn't be required.

Greetings,

Andres Freund

Attachment Content-Type Size
v3-0001-docs-html-copy-images-to-output-as-part-of-xslt-b.patch text/x-diff 3.3 KB
v3-0002-docs-load-stylesheet-via-custom.css.source.patch text/x-diff 6.8 KB
v3-0003-docs-speed-up-docs-build-by-special-casing-the-ge.patch text/x-diff 3.6 KB
v3-0004-VERY-WIP-parallel-doc-generation.patch text/x-diff 4.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2023-03-24 07:31:04 Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL
Previous Message Jeff Davis 2023-03-24 07:17:14 Re: Non-superuser subscription owners