mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
e32c098f5d
commit
1691a4458c
1 changed files with 3 additions and 2 deletions
|
@ -293,11 +293,12 @@ as well as images, OS examples, and translations."
|
||||||
(define %web-site-url
|
(define %web-site-url
|
||||||
;; URL of the web site home page.
|
;; URL of the web site home page.
|
||||||
(or (getenv "GUIX_WEB_SITE_URL")
|
(or (getenv "GUIX_WEB_SITE_URL")
|
||||||
"/software/guix/"))
|
"/"))
|
||||||
|
|
||||||
(define %manual-css-url
|
(define %manual-css-url
|
||||||
;; URL of the main CSS file.
|
;; 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
|
(define %makeinfo-html-options
|
||||||
;; Options passed to 'makeinfo --html'.
|
;; Options passed to 'makeinfo --html'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue