summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-06-05 22:31:44 +0200
committerLudovic Courtès <ludo@gnu.org>2025-06-16 17:17:02 +0200
commit4ea1538dd7bd2dd7ae518e1eb52a6510cc94ce8d (patch)
tree0e5e2c17799174c8bb6a8647783a57e3ffcdab8e
parent10527dac08bd129ecff6f963aec47f43ee632b6a (diff)
doc: Use CSS from guix.gnu.org.
This is a followup to commit 7bbc00ccf0315a68509cacd6a85e1ae8ae7f5e5d of guix/artwork.git. * doc/build.scm (%manual-css-url): New variable. (%makeinfo-html-options): Use it instead of www.gnu.org/…/manual.css. (stylized-html): Likewise for the default #:manual-css-url. Change-Id: I20bd3866383f8cbb4984993c15dbab483a17f6c9
-rw-r--r--doc/build.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/build.scm b/doc/build.scm
index 7238c17a684..b1ef278508c 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2019-2024 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2019-2025 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de> 3;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
4;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> 4;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
5;;; 5;;;
@@ -295,9 +295,13 @@ as well as images, OS examples, and translations."
295 (or (getenv "GUIX_WEB_SITE_URL") 295 (or (getenv "GUIX_WEB_SITE_URL")
296 "/software/guix/")) 296 "/software/guix/"))
297 297
298(define %manual-css-url
299 ;; URL of the main CSS file.
300 "/themes/initial/css/manual.css")
301
298(define %makeinfo-html-options 302(define %makeinfo-html-options
299 ;; Options passed to 'makeinfo --html'. 303 ;; Options passed to 'makeinfo --html'.
300 '("--css-ref=https://www.gnu.org/software/gnulib/manual.css" 304 `(,(string-append "--css-ref=" %manual-css-url)
301 "-c" "EXTRA_HEAD=<meta name=\"viewport\" \ 305 "-c" "EXTRA_HEAD=<meta name=\"viewport\" \
302content=\"width=device-width, initial-scale=1\" />")) 306content=\"width=device-width, initial-scale=1\" />"))
303 307
@@ -733,7 +737,7 @@ its <pre class=\"lisp\"> blocks (as produced by 'makeinfo --html')."
733 #:key 737 #:key
734 (languages %languages) 738 (languages %languages)
735 (manual %manual) 739 (manual %manual)
736 (manual-css-url "/static/base/css/manual.css")) 740 (manual-css-url %manual-css-url))
737 "Process all the HTML files in INPUT; add them MANUAL-CSS-URL as a <style> 741 "Process all the HTML files in INPUT; add them MANUAL-CSS-URL as a <style>
738link, and add a menu to choose among LANGUAGES. Use the Guix PO files found 742link, and add a menu to choose among LANGUAGES. Use the Guix PO files found
739in SOURCE." 743in SOURCE."