guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: doc: Normalize language codes in menu URLs.


From: guix-commits
Subject: 04/04: doc: Normalize language codes in menu URLs.
Date: Wed, 19 Jan 2022 16:15:22 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit a27e47f9d1e22dc32bb250cfeef88cfacb930e23
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Jan 19 22:06:35 2022 +0100

    doc: Normalize language codes in menu URLs.
    
    * doc/build.scm (stylized-html)[build](base-language-url): Add calls to
    'normalize'.
---
 doc/build.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/build.scm b/doc/build.scm
index c2d2d3939f..47cff15985 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]