doc: Build an empty index if the manual is missing.
That way, the "sk" index for 'guix-manual' is empty, because 'guix-manual' lacks an "sk" translation. * doc/build.scm (html-manual-identifier-index)[build](html-files): Gracefully handle 'scandir' returning #f.master
parent
0d0e2165ea
commit
b38e053513
|
@ -309,8 +309,9 @@ actual file name."
|
|||
(define (html-files directory)
|
||||
;; Return the list of HTML files under DIRECTORY.
|
||||
(map (cut string-append directory "/" <>)
|
||||
(scandir #$manual (lambda (file)
|
||||
(string-suffix? ".html" file)))))
|
||||
(or (scandir #$manual (lambda (file)
|
||||
(string-suffix? ".html" file)))
|
||||
'())))
|
||||
|
||||
(define anchors
|
||||
(sort (concatenate
|
||||
|
|
Reference in New Issue