~ruther/guix-local

4e1f3d79f03654073aecc9efffbc6de31aefa1cc — Ludovic Courtès a year ago 7af0d64
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
1 files changed, 3 insertions(+), 2 deletions(-)

M doc/build.scm
M doc/build.scm => doc/build.scm +3 -2
@@ 184,11 184,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'.