mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 13:36:36 +01:00
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.
This commit is contained in:
parent
0d0e2165ea
commit
b38e053513
1 changed files with 3 additions and 2 deletions
|
@ -309,8 +309,9 @@ (define (worthy-entry? lst)
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue