me
/
guix
Archived
1
0
Fork 0

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
Ludovic Courtès 2022-04-08 23:58:24 +02:00
parent 0d0e2165ea
commit b38e053513
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 2 deletions

View File

@ -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