Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8c059df

Browse files
committed
doc: Clarify documentation page header customization code
The customization overrode the fast-forward code with its custom Up link. So this is no longer really the fast-forward feature, so we might as well turn that off and override the non-ff template instead, thus removing one mental indirection. Fix the wrong column span declaration. Clarify and update the documentation.
1 parent 8f09ca4 commit 8c059df

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/stylesheet.dsl

+7-5
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@
193193
(define %use-id-as-filename% #t)
194194
(define %stylesheet% (if website-stylesheet "http://www.postgresql.org/media/css/docs.css" "stylesheet.css"))
195195
(define %graphic-default-extension% "gif")
196-
(define %gentext-nav-use-ff% #t)
197196
(define %body-attr% '())
198197
(define ($generate-book-lot-list$) '())
199198
(define use-output-dir #t)
@@ -283,14 +282,17 @@
283282
(empty-sosofo))))
284283

285284

286-
;; Customization of header, add title attributes (overrides
287-
;; dbcommon.dsl)
288-
(define (default-header-nav-tbl-ff elemnode prev next prevsib nextsib)
285+
;; Customization of header
286+
;; - make title a link to the home page
287+
;; - add tool tips to Prev/Next links
288+
;; - add Up link
289+
;; (overrides dbnavig.dsl)
290+
(define (default-header-nav-tbl-noff elemnode prev next prevsib nextsib)
289291
(let* ((r1? (nav-banner? elemnode))
290292
(r1-sosofo (make element gi: "TR"
291293
(make element gi: "TH"
292294
attributes: (list
293-
(list "COLSPAN" "5")
295+
(list "COLSPAN" "4")
294296
(list "ALIGN" "center")
295297
(list "VALIGN" "bottom"))
296298
(make element gi: "A"

0 commit comments

Comments
 (0)