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

Commita4cf1ba

Browse files
committed
Add htmlhelp stylesheet and build target.
1 parent28e9b26 commita4cf1ba

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:stylesheetxmlns: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:importhref="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
8+
9+
<!-- Parameters-->
10+
<xsl:paramname="htmlhelp.use.hhk"select="'1'"/>
11+
<xsl:paramname="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:paramname="show.comments">
23+
<xsl:choose>
24+
<xsl:whentest="contains($pg.version, 'devel')">1</xsl:when>
25+
<xsl:otherwise>0</xsl:otherwise>
26+
</xsl:choose>
27+
</xsl:param>
28+
29+
30+
<xsl:paramname="callout.graphics"select="'0'"></xsl:param>
31+
<xsl:paramname="toc.section.depth">2</xsl:param>
32+
<xsl:paramname="linenumbering.extension"select="'0'"></xsl:param>
33+
<xsl:paramname="generate.index"select="1 - $pg.fast"></xsl:param>
34+
<xsl:paramname="preface.autolabel"select="1 - $pg.fast"></xsl:param>
35+
<xsl:paramname="section.autolabel"select="1 - $pg.fast"></xsl:param>
36+
<xsl:paramname="section.label.includes.component.label"select="1 - $pg.fast"></xsl:param>
37+
<xsl:paramname="html.stylesheet"select="'stylesheet.css'"></xsl:param>
38+
<xsl:paramname="use.id.as.filename"select="'1'"></xsl:param>
39+
<xsl:paramname="make.valid.html"select="1"></xsl:param>
40+
<xsl:paramname="generate.id.attributes"select="1"></xsl:param>
41+
<xsl:paramname="generate.legalnotice.link"select="1"></xsl:param>
42+
<xsl:paramname="refentry.xref.manvolnum"select="0"/>
43+
<xsl:paramname="link.mailto.url">pgsql-docs@postgresql.org</xsl:param>
44+
<xsl:paramname="formal.procedures"select="0"></xsl:param>
45+
<xsl:paramname="punct.honorific"select="''"></xsl:param>
46+
<xsl:paramname="chunker.output.indent"select="'yes'"/>
47+
<xsl:paramname="chunk.quietly"select="1"></xsl:param>
48+
49+
50+
<!-- Change display of some elements-->
51+
52+
<xsl:templatematch="command">
53+
<xsl:call-templatename="inline.monoseq"/>
54+
</xsl:template>
55+
56+
<xsl:templatematch="productname">
57+
<xsl:call-templatename="inline.charseq"/>
58+
</xsl:template>
59+
60+
<xsl:templatematch="structfield">
61+
<xsl:call-templatename="inline.monoseq"/>
62+
</xsl:template>
63+
64+
<xsl:templatematch="structname">
65+
<xsl:call-templatename="inline.monoseq"/>
66+
</xsl:template>
67+
68+
<xsl:templatematch="symbol">
69+
<xsl:call-templatename="inline.monoseq"/>
70+
</xsl:template>
71+
72+
<xsl:templatematch="systemitem">
73+
<xsl:call-templatename="inline.charseq"/>
74+
</xsl:template>
75+
76+
<xsl:templatematch="token">
77+
<xsl:call-templatename="inline.monoseq"/>
78+
</xsl:template>
79+
80+
<xsl:templatematch="type">
81+
<xsl:call-templatename="inline.monoseq"/>
82+
</xsl:template>
83+
84+
<xsl:templatematch="programlisting/emphasis">
85+
<xsl:call-templatename="inline.boldseq"/>
86+
</xsl:template>
87+
88+
89+
<!-- Special support for Tcl synopses-->
90+
91+
<xsl:templatematch="optional[@role='tcl']">
92+
?<xsl:call-templatename="inline.charseq"/>?
93+
</xsl:template>
94+
95+
96+
<!--
97+
Format multiple terms in varlistentry vertically, instead
98+
of comma-separated.
99+
-->
100+
101+
<xsl:templatematch="varlistentry/term[position()!=last()]">
102+
<spanclass="term">
103+
<xsl:call-templatename="anchor"/>
104+
<xsl:apply-templates/>
105+
</span><br/>
106+
</xsl:template>
107+
108+
</xsl:stylesheet>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp