fix doc TOC after latest round of key changes
svn: r10174
This commit is contained in:
parent
af1c17353b
commit
31bb298e67
|
@ -30,10 +30,11 @@
|
||||||
(if sep? (cons (mk-sep lbl) l) l))]))))
|
(if sep? (cons (mk-sep lbl) l) l))]))))
|
||||||
|
|
||||||
(define (make-start-page all?)
|
(define (make-start-page all?)
|
||||||
(let* ([dirs (find-relevant-directories '(scribblings))]
|
(let* ([recs (find-relevant-directory-records '(scribblings))]
|
||||||
[infos (map get-info/full dirs)]
|
[infos (map get-info/full (map directory-record-path recs))]
|
||||||
[docs (append-map
|
[docs (append-map
|
||||||
(lambda (i dir)
|
(lambda (i rec)
|
||||||
|
(define dir (directory-record-path rec))
|
||||||
(define s (and (or all? (in-main-collects? dir))
|
(define s (and (or all? (in-main-collects? dir))
|
||||||
(i 'scribblings)))
|
(i 'scribblings)))
|
||||||
(if (not s)
|
(if (not s)
|
||||||
|
@ -66,16 +67,25 @@
|
||||||
;; Priority label (not used):
|
;; Priority label (not used):
|
||||||
""
|
""
|
||||||
;; Path
|
;; Path
|
||||||
(build-path dir (if (pair? d) (car d) "???"))))))
|
(build-path dir (if (pair? d) (car d) "???"))
|
||||||
|
;; Spec
|
||||||
|
(let ([spec (directory-record-spec rec)])
|
||||||
|
(list* (car spec)
|
||||||
|
(if (pair? d) (car d) "UNKNOWN")
|
||||||
|
(if (eq? 'planet (car spec))
|
||||||
|
(list (append (cdr spec)
|
||||||
|
(list (directory-record-maj rec)
|
||||||
|
(list '= (directory-record-min rec)))))
|
||||||
|
(cdr spec))))))))
|
||||||
s)))
|
s)))
|
||||||
infos
|
infos
|
||||||
dirs)]
|
recs)]
|
||||||
[plain-line
|
[plain-line
|
||||||
(lambda content
|
(lambda content
|
||||||
(list (make-flow (list (make-paragraph content)))))]
|
(list (make-flow (list (make-paragraph content)))))]
|
||||||
[line
|
[line
|
||||||
(lambda (doc)
|
(lambda (spec)
|
||||||
(plain-line (hspace 2) (other-manual doc #:underline? #f)))])
|
(plain-line (hspace 2) (other-manual spec #:underline? #f)))])
|
||||||
(define (contents renderer part resolve-info)
|
(define (contents renderer part resolve-info)
|
||||||
(make-table
|
(make-table
|
||||||
#f
|
#f
|
||||||
|
@ -94,7 +104,7 @@
|
||||||
(make-element (if (string=? str "") "sepspace" "septitle")
|
(make-element (if (string=? str "") "sepspace" "septitle")
|
||||||
(list 'nbsp str))))
|
(list 'nbsp str))))
|
||||||
(sort (map (lambda (doc)
|
(sort (map (lambda (doc)
|
||||||
(list (cadr doc) (line (cadddr doc)) (caddr doc)))
|
(list (cadr doc) (line (cadddr (cdr doc))) (caddr doc)))
|
||||||
docs)
|
docs)
|
||||||
(lambda (ad bd)
|
(lambda (ad bd)
|
||||||
(if (= (car ad) (car bd))
|
(if (= (car ad) (car bd))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user