about summary refs log tree commit diff
path: root/web/tvl/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-21T03·03+0100
committerVincent Ambo <tazjin@google.com>2020-04-21T03·03+0100
commit848aca85801d3c2995f61528564b4bb6918bfcb1 (patch)
treee23c2a617859c19d11faabf315a5abd7c63cb58d /web/tvl/default.nix
parent38712efe0e9b64f2d08df27c6b49347f2cd67b71 (diff)
feat(web/tvl): Add clickable homepage links for most people r/656
Diffstat (limited to 'web/tvl/default.nix')
-rw-r--r--web/tvl/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/web/tvl/default.nix b/web/tvl/default.nix
index aa155c4adc2b..16bbddd9c566 100644
--- a/web/tvl/default.nix
+++ b/web/tvl/default.nix
@@ -3,10 +3,10 @@
 let
   inherit (pkgs) graphviz runCommandNoCC writeText;
 
-  tvlGraph = runCommandNoCC "tvl.png" {
+  tvlGraph = runCommandNoCC "tvl.svg" {
     nativeBuildInputs = with pkgs; [ fontconfig freetype cairo jetbrains-mono ];
   } ''
-    ${graphviz}/bin/neato -Tpng ${./tvl.dot} > $out
+    ${graphviz}/bin/neato -Tsvg ${./tvl.dot} > $out
   '';
 
   homepage = writeText "index.html" ''
@@ -55,7 +55,11 @@ let
       <p>
         It's pretty straightforward.
       </p>
-      <img src="/static/tvl.png" alt="Who's who?">
+      <img src="/static/tvl.svg" alt="Who's who?">
+      <br>
+      <span style="text-align:center;font-style:italic;">
+        (Protip: Most of these names are clickable!)
+      </span>
 
       <hr>
       <footer>
@@ -74,7 +78,7 @@ in runCommandNoCC "website" {} ''
   mkdir -p $out/static
   cp ${homepage} $out/index.html
   cp -r ${./static}/* $out/static
-  cp ${tvlGraph} $out/static/tvl.png
+  cp ${tvlGraph} $out/static/tvl.svg
 
   # Some assets are stolen from the blog
   cp ${depot.web.homepage}/static/jetbrains-* $out/static