Files added:

db2html.dsl (DSSSL stylesheet)
    manpage.css (HTML stylesheet)
Updated Makefile to let docbook2html use db2html.dsl.
This commit is contained in:
Nikolaus Schulz 2007-11-04 22:13:59 +00:00
parent f582fd75c9
commit 3fd26dcb45
3 changed files with 58 additions and 2 deletions

View File

@ -49,6 +49,6 @@ archivemail.1: archivemail.sgml
docbook2man archivemail.sgml
chmod 644 archivemail.1
archivemail.html: archivemail.sgml
docbook2html -u archivemail.sgml
archivemail.html: archivemail.sgml db2html.dsl
docbook2html --dsl db2html.dsl -u archivemail.sgml
chmod 644 archivemail.html

25
db2html.dsl Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY dbstyle SYSTEM "/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl" CDATA DSSSL>
]>
<style-sheet>
<style-specification use="docbook">
<style-specification-body>
(define %css-decoration%
; Enable html element decoration with 'style=...' css?
#t)
(define %stylesheet%
; Needed if we want to use a css file
"manpage.css")
(define %shade-verbatim%
;; Should verbatim environments be shaded?
#t)
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="dbstyle">
</style-sheet>

31
manpage.css Normal file
View File

@ -0,0 +1,31 @@
body {
font-family: "Times New Roman", serif;
font-size: 12pt;
padding: 2%;
line-height: 130%;
margin: 0;
/*color: #036;*/
}
h1 {
font-size: 220%;
font-weight: bold;
/*text-align: center;*/
padding: 0 0 0.4em 0.1em;
margin: 0 0 0.5em 0;
border-bottom: 2px solid black;
}
h2 {
margin: 1em 0 0.8em 0;
padding: 0;
font-variant: small-caps;
font-size: 170%;
}
pre, tt, kbd, code, pre samp {
font-family: "Courier 10 Pitch", Courier, "Courier New", monospace;
}
.INFORMALEXAMPLE {
margin-bottom: 1.2em;
}
div.INFORMALEXAMPLE .SCREEN {
margin-left: 2ex;
}