all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>, Alex Kost <alezost@gmail.com>
Subject: Re: Extracting a reachability path out of a (package) DAG
Date: Sun, 22 Jul 2018 21:18:48 +0200	[thread overview]
Message-ID: <20180722211848.74aaf3fd@alma-ubu> (raw)
In-Reply-To: <8736wbt7ue.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]

On Sun, 22 Jul 2018 20:59:21 +0200
Pierre Neidhardt <ambrevar@gmail.com> wrote:

> Here is the output I get:
> 
> --8<---------------cut here---------------start------------->8---
> <!DOCTYPE html>
> <html>
>   <head>
>     <meta charset="utf-8">
>     <style>
> text {
>   font: 10px sans-serif;
>   pointer-events: none;
> }
>     </style>
>     <script type="text/javascript" src="#f"></script>
>   </head>
>   <body>
[..]
> src="#f"></script></body></html> --8<---------------cut
> here---------------end--------------->8---
> 
> My terrible web-programming skills tell me it looks very suspicious...


I was going to say "works for me too" and was in the process of
creating an example with a guix container and icecat/guix in it. But
exactly there it fails.

Yes, src="#f" is wrong, I sometimes (always in the container) can
reproduce this. In the good case, that first one in the
head should be "d3.v3.js". That can be found in the checked out guix
source.

The last one is "graph.js", also in the guix source. Here's the commit:

commit 4d93f312f084c34a70cf7da3abe5f92a74d76861
Author: Ricardo Wurmus <rekado@elephly.net>
Date:   Sat Oct 22 00:02:19 2016 +0200

    graph: Add d3js backend.
    
    * d3.v3.js, graph.js: New files.
    * Makefile.am (EXTRA_DIST): List them.
    * guix/graph.scm (%d3js-backend): New variable.
    (emit-d3js-prologue, emit-d3js-epilogue, emit-d3js-node,
    emit-d3js-edge): New procedures.
    (%graph-backends): Add %d3js-backend.

I think if you copy both to your directory and adapt your html, then it
should work.

But maybe we should adapt the output html such that the js is fully
included and is portable?

Björn



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2018-07-22 19:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-17  8:10 Extracting a reachability path out of a (package) DAG Björn Höfling
2018-07-17  8:22 ` Pierre Neidhardt
2018-07-17 10:29   ` Björn Höfling
2018-07-17  8:24 ` Nils Gillmann
2018-07-17 10:32   ` Björn Höfling
2018-07-17 15:09     ` Gábor Boskovits
2018-07-21 21:55       ` Pierre Neidhardt
2018-07-22 18:53         ` Alex Kost
2018-07-22 18:59           ` Pierre Neidhardt
2018-07-22 19:18             ` Björn Höfling [this message]
2018-07-23 13:09 ` Ludovic Courtès
2018-08-04  3:54 ` Chris Marusich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180722211848.74aaf3fd@alma-ubu \
    --to=bjoern.hoefling@bjoernhoefling.de \
    --cc=alezost@gmail.com \
    --cc=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.