Skip to content

Commit a4cf1ba

Browse files
committed
Add htmlhelp stylesheet and build target.
1 parent 28e9b26 commit a4cf1ba

File tree

2 files changed

+112
-1
lines changed

2 files changed

+112
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.72 2004/03/09 20:10:10 momjian Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.73 2004/11/23 16:27:59 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -215,6 +215,9 @@ postgres.xml: postgres.sgml $(GENERATED_SGML)
215215
testxml: stylesheet.xsl postgres.xml
216216
$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^
217217

218+
htmlhelp: stylesheet-hh.xsl postgres.xml
219+
$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^
220+
218221

219222
##
220223
## Check

doc/src/sgml/stylesheet-hh.xsl

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?xml version='1.0'?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3+
version='1.0'
4+
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5+
exclude-result-prefixes="#default">
6+
7+
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
8+
9+
<!-- Parameters -->
10+
<xsl:param name="htmlhelp.use.hhk" select="'1'"/>
11+
<xsl:param name="pg.fast" select="'0'"/>
12+
13+
<!--
14+
<xsl:param name="draft.mode">
15+
<xsl:choose>
16+
<xsl:when test="contains($pg.version, 'devel')">yes</xsl:when>
17+
<xsl:otherwise>no</xsl:otherwise>
18+
</xsl:choose>
19+
</xsl:param>
20+
-->
21+
22+
<xsl:param name="show.comments">
23+
<xsl:choose>
24+
<xsl:when test="contains($pg.version, 'devel')">1</xsl:when>
25+
<xsl:otherwise>0</xsl:otherwise>
26+
</xsl:choose>
27+
</xsl:param>
28+
29+
30+
<xsl:param name="callout.graphics" select="'0'"></xsl:param>
31+
<xsl:param name="toc.section.depth">2</xsl:param>
32+
<xsl:param name="linenumbering.extension" select="'0'"></xsl:param>
33+
<xsl:param name="generate.index" select="1 - $pg.fast"></xsl:param>
34+
<xsl:param name="preface.autolabel" select="1 - $pg.fast"></xsl:param>
35+
<xsl:param name="section.autolabel" select="1 - $pg.fast"></xsl:param>
36+
<xsl:param name="section.label.includes.component.label" select="1 - $pg.fast"></xsl:param>
37+
<xsl:param name="html.stylesheet" select="'stylesheet.css'"></xsl:param>
38+
<xsl:param name="use.id.as.filename" select="'1'"></xsl:param>
39+
<xsl:param name="make.valid.html" select="1"></xsl:param>
40+
<xsl:param name="generate.id.attributes" select="1"></xsl:param>
41+
<xsl:param name="generate.legalnotice.link" select="1"></xsl:param>
42+
<xsl:param name="refentry.xref.manvolnum" select="0"/>
43+
<xsl:param name="link.mailto.url">pgsql-docs@postgresql.org</xsl:param>
44+
<xsl:param name="formal.procedures" select="0"></xsl:param>
45+
<xsl:param name="punct.honorific" select="''"></xsl:param>
46+
<xsl:param name="chunker.output.indent" select="'yes'"/>
47+
<xsl:param name="chunk.quietly" select="1"></xsl:param>
48+
49+
50+
<!-- Change display of some elements -->
51+
52+
<xsl:template match="command">
53+
<xsl:call-template name="inline.monoseq"/>
54+
</xsl:template>
55+
56+
<xsl:template match="productname">
57+
<xsl:call-template name="inline.charseq"/>
58+
</xsl:template>
59+
60+
<xsl:template match="structfield">
61+
<xsl:call-template name="inline.monoseq"/>
62+
</xsl:template>
63+
64+
<xsl:template match="structname">
65+
<xsl:call-template name="inline.monoseq"/>
66+
</xsl:template>
67+
68+
<xsl:template match="symbol">
69+
<xsl:call-template name="inline.monoseq"/>
70+
</xsl:template>
71+
72+
<xsl:template match="systemitem">
73+
<xsl:call-template name="inline.charseq"/>
74+
</xsl:template>
75+
76+
<xsl:template match="token">
77+
<xsl:call-template name="inline.monoseq"/>
78+
</xsl:template>
79+
80+
<xsl:template match="type">
81+
<xsl:call-template name="inline.monoseq"/>
82+
</xsl:template>
83+
84+
<xsl:template match="programlisting/emphasis">
85+
<xsl:call-template name="inline.boldseq"/>
86+
</xsl:template>
87+
88+
89+
<!-- Special support for Tcl synopses -->
90+
91+
<xsl:template match="optional[@role='tcl']">
92+
?<xsl:call-template name="inline.charseq"/>?
93+
</xsl:template>
94+
95+
96+
<!--
97+
Format multiple terms in varlistentry vertically, instead
98+
of comma-separated.
99+
-->
100+
101+
<xsl:template match="varlistentry/term[position()!=last()]">
102+
<span class="term">
103+
<xsl:call-template name="anchor"/>
104+
<xsl:apply-templates/>
105+
</span><br/>
106+
</xsl:template>
107+
108+
</xsl:stylesheet>

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