- Turn on the use of tables to build navigation headers/footers

- Turn off the shading of verbatim environments. Replace with our
  own scheme which wraps these in <blockquote>, more in keeping
  with other documents.

- Specify the root filename for the HTML version as 'index.html'
This commit is contained in:
Nik Clayton 1998-11-04 22:41:50 +00:00
parent 97d01a3567
commit c8fc15ab23
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3743

View file

@ -10,7 +10,7 @@
(define %gentext-nav-use-tables% (define %gentext-nav-use-tables%
;; Use tables to build the navigation headers and footers? ;; Use tables to build the navigation headers and footers?
#f) #t)
(define %html-ext% (define %html-ext%
;; Default extension for HTML output files ;; Default extension for HTML output files
@ -18,11 +18,15 @@
(define %shade-verbatim% (define %shade-verbatim%
;; Should verbatim environments be shaded? ;; Should verbatim environments be shaded?
#t) #f)
(define %use-id-as-filename% (define %use-id-as-filename%
;; Use ID attributes as name for component HTML files? ;; Use ID attributes as name for component HTML files?
#t) #t)
(define %root-filename%
;; Name for the root HTML document
"index")
<!-- Slightly deeper customisations --> <!-- Slightly deeper customisations -->
@ -64,6 +68,33 @@
<!-- FAQList can wait. I've been drinking, and a brief glance at <!-- FAQList can wait. I've been drinking, and a brief glance at
/usr/local/share/sgml/docbook/dsssl/modular/html/dblist.dsl is /usr/local/share/sgml/docbook/dsssl/modular/html/dblist.dsl is
enough to bring me out in cold, Lisp induced sweats. . . --> enough to bring me out in cold, Lisp induced sweats. . . -->
<!-- This replaces the existing mechanism for showing verbatim
blocks of text (programlistings, screens, and so forth.
Norm's stylesheet renders these in a table, with optional
shading if %shade-verbatim% is set. Previous practice for
the LinuxDoc DTD (and John Fieber's stylesheet) was to
indent them using <blockquote>. Stick with previous practice.
Norm says he will introduce a tweakable knob to affect this
in the future. -->
(define ($verbatim-display$ line-numbers?)
(let ((content (make element gi: "BLOCKQUOTE"
attributes: (list
(list "CLASS" (gi)))
(make element gi: "PRE"
(if line-numbers?
($verbatim-content-with-linenumbers$)
($verbatim-content$))))))
(if %shade-verbatim%
(make element gi: "TABLE"
attributes: ($shade-verbatim-attr$)
(make element gi: "TR"
(make element gi: "TD"
content)))
content)))
</style-specification-body> </style-specification-body>
</style-specification> </style-specification>