mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Custom DSSSL stylesheet. Style changes included here:
HTML: * make .html the default extension * allow use of CSS stylesheet ("stylesheet.css", not included) * make <set> TOC two levels deep * put time of creation into meta header Print: * make print output justified by default * footnotes at bottom of each page * allow TeX to hyphenate
This commit is contained in:
61
doc/src/sgml/stylesheet.dsl
Normal file
61
doc/src/sgml/stylesheet.dsl
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1.1 2001/02/13 21:27:05 petere Exp $ -->
|
||||
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
|
||||
|
||||
<!-- must turn on one of these with -i on the jade command line -->
|
||||
<!ENTITY % output-html "IGNORE">
|
||||
<!ENTITY % output-print "IGNORE">
|
||||
|
||||
<![ %output-html; [
|
||||
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
|
||||
]]>
|
||||
|
||||
<![ %output-print; [
|
||||
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
|
||||
]]>
|
||||
|
||||
]>
|
||||
|
||||
<style-sheet>
|
||||
<style-specification use="docbook">
|
||||
<style-specification-body>
|
||||
|
||||
(define pgsql-docs-list "pgsql-docs@postgresql.org")
|
||||
|
||||
(define %refentry-xref-manvolnum% #f)
|
||||
|
||||
<![ %output-html; [
|
||||
;; customize the html stylesheet
|
||||
|
||||
(define %generate-legalnotice-link% #t)
|
||||
(define %html-ext% ".html")
|
||||
(define %link-mailto-url% (string-append "mailto:" pgsql-docs-list))
|
||||
(define %use-id-as-filename% #t)
|
||||
(define %stylesheet% "stylesheet.css")
|
||||
|
||||
;; Returns the depth of auto TOC that should be made at the nd-level
|
||||
(define (toc-depth nd)
|
||||
(cond ((string=? (gi nd) (normalize "book")) 3)
|
||||
((string=? (gi nd) (normalize "set")) 2)
|
||||
(else 1)))
|
||||
|
||||
;; Put date of creation into header
|
||||
(define %html-header-tags%
|
||||
(list (list "META" '("NAME" "creation") (list "CONTENT" (time->string (time) #t)))))
|
||||
|
||||
]]> <!-- %output-html -->
|
||||
|
||||
<![ %output-print; [
|
||||
;; customize the print stylesheet
|
||||
|
||||
(define %default-quadding% 'justify)
|
||||
(define bop-footnotes #t)
|
||||
(if tex-backend
|
||||
(define %hyphenation% #t))
|
||||
|
||||
]]> <!-- %output-print -->
|
||||
|
||||
</style-specification-body>
|
||||
</style-specification>
|
||||
|
||||
<external-specification id="docbook" document="dbstyle">
|
||||
</style-sheet>
|
Reference in New Issue
Block a user