Commit e36ddab1 authored by Peter Eisentraut's avatar Peter Eisentraut

Build HTML documentation using XSLT stylesheets by default

The old DSSSL build is still available for a while using the make target
"oldhtml".
parent 4ecd1974
...@@ -106,9 +106,9 @@ draft: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl ...@@ -106,9 +106,9 @@ draft: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
$(JADE.html.call) -V draft-mode $< $(JADE.html.call) -V draft-mode $<
cp $(srcdir)/stylesheet.css html/ cp $(srcdir)/stylesheet.css html/
html: html-stamp oldhtml: oldhtml-stamp
html-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl oldhtml-stamp: postgres.sgml $(ALLSGML) stylesheet.dsl
$(MAKE) check-tabs $(MAKE) check-tabs
$(MKDIR_P) html $(MKDIR_P) html
$(JADE.html.call) -i include-index $< $(JADE.html.call) -i include-index $<
...@@ -258,9 +258,9 @@ ifeq ($(STYLE),website) ...@@ -258,9 +258,9 @@ ifeq ($(STYLE),website)
XSLTPROC_HTML_FLAGS += --param website.stylesheet 1 XSLTPROC_HTML_FLAGS += --param website.stylesheet 1
endif endif
xslthtml: xslthtml-stamp html: html-stamp
xslthtml-stamp: stylesheet.xsl postgres.xml html-stamp: stylesheet.xsl postgres.xml
$(XMLLINT) --noout --valid postgres.xml $(XMLLINT) --noout --valid postgres.xml
$(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^ $(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $^
cp $(srcdir)/stylesheet.css html/ cp $(srcdir)/stylesheet.css html/
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
/* color scheme similar to www.postgresql.org */ /* color scheme similar to www.postgresql.org */
BODY { body {
color: #000000; color: #000000;
background: #FFFFFF; background: #FFFFFF;
font-family: verdana, sans-serif; font-family: verdana, sans-serif;
} }
A:link { color:#0066A2; } a:link { color:#0066A2; }
A:visited { color:#004E66; } a:visited { color:#004E66; }
A:active { color:#0066A2; } a:active { color:#0066A2; }
A:hover { color:#000000; } a:hover { color:#000000; }
H1 { h1 {
font-size: 1.4em; font-size: 1.4em;
font-weight: bold; font-weight: bold;
margin-top: 0em; margin-top: 0em;
...@@ -21,34 +21,34 @@ H1 { ...@@ -21,34 +21,34 @@ H1 {
color: #EC5800; color: #EC5800;
} }
H2 { h2 {
font-size: 1.2em; font-size: 1.2em;
margin: 1.2em 0em 1.2em 0em; margin: 1.2em 0em 1.2em 0em;
font-weight: bold; font-weight: bold;
color: #666; color: #EC5800;
} }
H3 { h3 {
font-size: 1.1em; font-size: 1.1em;
margin: 1.2em 0em 1.2em 0em; margin: 1.2em 0em 1.2em 0em;
font-weight: bold; font-weight: bold;
color: #666; color: #666;
} }
H4 { h4 {
font-size: 0.95em; font-size: 0.95em;
margin: 1.2em 0em 1.2em 0em; margin: 1.2em 0em 1.2em 0em;
font-weight: normal; font-weight: normal;
color: #666; color: #666;
} }
H5 { h5 {
font-size: 0.9em; font-size: 0.9em;
margin: 1.2em 0em 1.2em 0em; margin: 1.2em 0em 1.2em 0em;
font-weight: normal; font-weight: normal;
} }
H6 { h6 {
font-size: 0.85em; font-size: 0.85em;
margin: 1.2em 0em 1.2em 0em; margin: 1.2em 0em 1.2em 0em;
font-weight: normal; font-weight: normal;
...@@ -56,13 +56,13 @@ H6 { ...@@ -56,13 +56,13 @@ H6 {
/* center some titles */ /* center some titles */
.BOOK .TITLE, .BOOK .CORPAUTHOR, .BOOK .COPYRIGHT { .book .title, .book .corpauthor, .book .copyright {
text-align: center; text-align: center;
} }
/* decoration for formal examples */ /* decoration for formal examples */
DIV.EXAMPLE { div.example {
padding-left: 15px; padding-left: 15px;
border-style: solid; border-style: solid;
border-width: 0px; border-width: 0px;
...@@ -71,28 +71,16 @@ DIV.EXAMPLE { ...@@ -71,28 +71,16 @@ DIV.EXAMPLE {
margin: 0.5ex; margin: 0.5ex;
} }
/* less dense spacing of TOC */
.BOOK .TOC DL DT {
padding-top: 1.5ex;
padding-bottom: 1.5ex;
}
.BOOK .TOC DL DL DT {
padding-top: 0ex;
padding-bottom: 0ex;
}
/* miscellaneous */ /* miscellaneous */
PRE.LITERALLAYOUT, .SCREEN, .SYNOPSIS, .PROGRAMLISTING { pre.literallayout, .screen, .synopsis, .programlisting {
margin-left: 4ex; margin-left: 4ex;
} }
.COMMENT { color: red; } .comment { color: red; }
VAR { font-family: monospace; font-style: italic; } var { font-family: monospace; font-style: italic; }
/* Konqueror's standard style for ACRONYM is italic. */ /* Konqueror's standard style for ACRONYM is italic. */
ACRONYM { font-style: inherit; } acronym { font-style: inherit; }
.OPTION { white-space: nowrap; } .option { white-space: nowrap; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment