Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit384eb1d

Browse files
committed
doc: Allow selecting web site CSS style sheet in XSLT HTML build
1 parent8e18d04 commit384eb1d

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

23+
<xsl:paramname="website.stylesheet"select="0"/>
24+
25+
<xsl:paramname="html.stylesheet">
26+
<xsl:choose>
27+
<xsl:whentest="$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)

[8]ページ先頭

©2009-2025 Movatter.jp