Skip to content

Commit 384eb1d

Browse files
committed
doc: Allow selecting web site CSS style sheet in XSLT HTML build
1 parent 8e18d04 commit 384eb1d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML)
258258
rm postgres.xmltmp
259259
# ' hello Emacs
260260

261+
ifeq ($(STYLE),website)
262+
XSLTPROC_HTML_FLAGS += --param website.stylesheet 1
263+
endif
264+
261265
xslthtml: xslthtml-stamp
262266

263267
xslthtml-stamp: stylesheet.xsl postgres.xml

doc/src/sgml/stylesheet.xsl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
<!-- Parameters -->
1212
<xsl:param name="base.dir" select="'html/'"></xsl:param>
13-
<xsl:param name="html.stylesheet" select="'stylesheet.css'"></xsl:param>
1413
<xsl:param name="use.id.as.filename" select="'1'"></xsl:param>
1514
<xsl:param name="make.valid.html" select="1"></xsl:param>
1615
<xsl:param name="generate.id.attributes" select="1"></xsl:param>
@@ -21,6 +20,15 @@
2120
<xsl:param name="chunk.quietly" select="1"></xsl:param>
2221
<xsl:param name="toc.max.depth">2</xsl:param>
2322

23+
<xsl:param name="website.stylesheet" select="0"/>
24+
25+
<xsl:param name="html.stylesheet">
26+
<xsl:choose>
27+
<xsl:when test="$website.stylesheet = 0">stylesheet.css</xsl:when>
28+
<xsl:otherwise>http://www.postgresql.org/media/css/docs.css</xsl:otherwise>
29+
</xsl:choose>
30+
</xsl:param>
31+
2432

2533
<!-- Change display of some elements -->
2634

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy