summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-07-05 23:48:46 +0200
committerLudovic Courtès <ludo@gnu.org>2025-07-09 14:17:30 +0200
commit1691a4458cf3f816c9f78c8eb69f1de2b3bb16ab (patch)
treeade9ccbdbe7bcc09c2df36497741393a46d874d3
parente32c098f5d5c3d677f8c88a6f4dadd0da141f51d (diff)
doc: Really honor ‘GUIX_WEB_SITE_URL’.
This is useful when testing changes locally, so that CSS links point to the right place. * doc/build.scm (%web-site-url): Default to /. (%manual-css-url): Honor ‘%web-site-url’. Change-Id: I8d885eba0fb8560dd7da7f21629c716a06c16b1f
-rw-r--r--doc/build.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/build.scm b/doc/build.scm
index 94d7156d93..2bc73f915e 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -293,11 +293,12 @@ as well as images, OS examples, and translations."
(define %web-site-url
;; URL of the web site home page.
(or (getenv "GUIX_WEB_SITE_URL")
- "/software/guix/"))
+ "/"))
(define %manual-css-url
;; URL of the main CSS file.
- "/themes/initial/css/manual.css")
+ (in-vicinity %web-site-url
+ "themes/initial/css/manual.css"))
(define %makeinfo-html-options
;; Options passed to 'makeinfo --html'.