mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
graph: Install JavaScript files.
Until now, 'guix graph --backend=d3js' wouldn't work outside the build tree. * d3.v3.js: Move to... * guix/d3.v3.js: ... here. * graph.js: Move to... * guix/graph.js: ... here. * Makefile.am (nobase_dist_guilemodule_DATA): Add them. (EXTRA_DIST): Remove them. * guix/graph.scm (emit-d3js-prologue, emit-d3js-epilogue): Adjust 'search-path' argument accordingly. * guix/self.scm (compiled-guix)[*extra-modules*]: Pass them via #:extra-files.
This commit is contained in:
parent
fa42774742
commit
10612d6154
5 changed files with 12 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015, 2016, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015, 2016, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
|
@ -274,11 +274,11 @@ text {
|
|||
var nodes = {},
|
||||
nodeArray = [],
|
||||
links = [];
|
||||
" (search-path %load-path "d3.v3.js")))
|
||||
" (search-path %load-path "guix/d3.v3.js")))
|
||||
|
||||
(define (emit-d3js-epilogue port)
|
||||
(format port "</script><script type=\"text/javascript\" src=\"~a\"></script></body></html>"
|
||||
(search-path %load-path "graph.js")))
|
||||
(search-path %load-path "guix/graph.js")))
|
||||
|
||||
(define (emit-d3js-node id label port)
|
||||
(format port "\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue