1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

doc: Normalize language codes in menu URLs.

* doc/build.scm (stylized-html)[build](base-language-url): Add calls to
'normalize'.
This commit is contained in:
Ludovic Courtès
2022-01-19 22:06:35 +01:00
parent ccda88a070
commit a27e47f9d1

View File

@@ -671,8 +671,8 @@ in SOURCE."
#:key split-node?)
;; Return the base URL of MANUAL for language CODE.
(if split-node?
(string-append "../../" code "/html_node")
(string-append "../" code "/" manual
(string-append "../../" (normalize code) "/html_node")
(string-append "../" (normalize code) "/" manual
(if (string=? code "en")
""
(string-append "." code))