summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-07-16 10:37:12 +0200
committerLudovic Courtès <ludo@gnu.org>2019-07-16 10:38:16 +0200
commitf309441b4962c6ced0ba7e201c3f8ca90825ccec (patch)
tree4d4b06c07d7b6a3d6cec2fd6bec3fc1ac182ae23
parent0c04bdb948717775f6143f5b0e93fcc5c41b169b (diff)
doc: Add 'images' directory next to HTML pages.
* doc/build.scm (html-manual): Add images/ symlinks.
-rw-r--r--doc/build.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/build.scm b/doc/build.scm
index a2f353a090b..7ba9f57bc97 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -177,6 +177,9 @@ makeinfo OPTIONS."
177 #:languages languages 177 #:languages languages
178 #:date date)) 178 #:date date))
179 179
180 (define images
181 (texinfo-manual-images source))
182
180 (define build 183 (define build
181 (with-imported-modules '((guix build utils)) 184 (with-imported-modules '((guix build utils))
182 #~(begin 185 #~(begin
@@ -228,7 +231,15 @@ makeinfo OPTIONS."
228 "" 231 ""
229 (string-append "." language)) 232 (string-append "." language))
230 ".html") 233 ".html")
231 opts))) 234 opts)
235
236 ;; Make sure images are available.
237 (symlink #$images
238 (string-append #$output "/" (normalize language)
239 "/images"))
240 (symlink #$images
241 (string-append #$output "/" (normalize language)
242 "/html_node/images"))))
232 '#$languages)))) 243 '#$languages))))
233 244
234 (computed-file (string-append manual "-html-manual") build)) 245 (computed-file (string-append manual "-html-manual") build))