1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

docs: html: copy images to output as part of xslt build

Until now the meson built HTML docs had non-working references to images. They
were copied in the make target. Instead of duplicating that for meson, copy
them as part of the xslt stylesheet.

Reported-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/3fc3bb9b-f7f8-d442-35c1-ec82280c564a@enterprisedb.com
This commit is contained in:
Andres Freund
2023-04-04 21:05:52 -07:00
parent ef07d351a1
commit 0012979d98
3 changed files with 28 additions and 1 deletions

View File

@@ -29,6 +29,12 @@
</xsl:param>
<!-- copy images to the output directory, so the output is self contained -->
<xsl:template match="imageobject">
<xsl:call-template name="write-image"/>
<xsl:apply-templates select="imagedata"/>
</xsl:template>
<!-- strip directory name from image filerefs -->
<xsl:template match="imagedata/@fileref">
<xsl:value-of select="substring-after(., '/')"/>