From: Andres Freund Date: Wed, 5 Apr 2023 04:05:52 +0000 (-0700) Subject: docs: html: copy images to output as part of xslt build X-Git-Tag: REL_16_BETA1~326 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=0012979d989fd1640ed17c32b303ebbd2294a3fc;p=postgresql.git 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 Discussion: https://postgr.es/m/3fc3bb9b-f7f8-d442-35c1-ec82280c564a@enterprisedb.com --- diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 3c4aa6bebe3..11ecdaf717e 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -144,7 +144,6 @@ html: html-stamp html-stamp: stylesheet.xsl postgres-full.xml $(ALL_IMAGES) $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $(wordlist 1,2,$^) - cp $(ALL_IMAGES) html/ cp $(srcdir)/stylesheet.css html/ touch $@ diff --git a/doc/src/sgml/stylesheet-common.xsl b/doc/src/sgml/stylesheet-common.xsl index 761484c7fef..d2928f86eb7 100644 --- a/doc/src/sgml/stylesheet-common.xsl +++ b/doc/src/sgml/stylesheet-common.xsl @@ -101,4 +101,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index b6141303abd..c492dc38e54 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -29,6 +29,12 @@ + + + + + +