File tree 3 files changed +170
-125
lines changed
3 files changed +170
-125
lines changed Original file line number Diff line number Diff line change 1
- /* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.1 2001/09/14 20:37:55 petere Exp $ */
1
+ /* $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.css,v 1.2 2001/09/15 00:48:59 petere Exp $ */
2
2
3
3
/* color scheme similar to www.postgresql.org */
4
4
@@ -38,6 +38,7 @@ DIV.example {
38
38
border-width : 0px ;
39
39
border-left-width : 2px ;
40
40
border-color : black;
41
+ margin : 0.5ex ;
41
42
}
42
43
43
44
/* less dense spacing of TOC */
Original file line number Diff line number Diff line change 1
- <!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1 .9 2001/09/14 20:37:55 petere Exp $ -->
1
+ <!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1 .10 2001/09/15 00 :48:59 petere Exp $ -->
2
2
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
3
3
4
4
<!-- must turn on one of these with -i on the jade command line -->
68
68
69
69
(define html-index #t)
70
70
71
+ ;; Block elements are allowed in PARA in DocBook, but not in P in
72
+ ;; HTML. With %fix-para-wrappers% turned on, the stylesheets attempt
73
+ ;; to avoid putting block elements in HTML P tags by outputting
74
+ ;; additional end/begin P pairs around them.
75
+ (define %fix-para-wrappers% #t)
76
+
77
+ ;; ...but we need to do some extra work to make the above apply to PRE
78
+ ;; as well. (mostly pasted from dbverb.dsl)
79
+ (define ($verbatim-display$ indent line-numbers?)
80
+ (let ((content (make element gi: "PRE"
81
+ attributes: (list
82
+ (list "CLASS" (gi)))
83
+ (if (or indent line-numbers?)
84
+ ($verbatim-line-by-line$ indent line-numbers?)
85
+ (process-children)))))
86
+ (if %shade-verbatim%
87
+ (make element gi: "TABLE"
88
+ attributes: ($shade-verbatim-attr$)
89
+ (make element gi: "TR"
90
+ (make element gi: "TD"
91
+ content)))
92
+ (make sequence
93
+ (para-check)
94
+ content
95
+ (para-check 'restart)))))
96
+
97
+ ;; ...and for notes.
98
+ (element note
99
+ (make sequence
100
+ (para-check)
101
+ ($admonition$)
102
+ (para-check 'restart)))
103
+
104
+ ;;; XXX The above is very ugly. It might be better to run 'tidy' on
105
+ ;;; the resulting *.html files.
106
+
71
107
]]> <!-- %output-html -->
72
108
73
109
<![ %output-print; [
You can’t perform that action at this time.
0 commit comments