]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: use less-compiler and optipng from nixpkgs
authorVincent Bernat <vincent@bernat.ch>
Sat, 15 Apr 2023 09:48:26 +0000 (11:48 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 15 Apr 2023 09:54:51 +0000 (11:54 +0200)
content/media/css/common.less
flake.nix
site.yaml

index 1fd89dd71552d2d72a2d5465337992fcd98ad546..d42e7fb2512f8087f4ff963db109af60f6c32e15 100644 (file)
@@ -28,5 +28,5 @@
 
 .font-size (@factor: 1) {
     font-size: @factor * 1em;
-    line-height: round(ceil(@factor/@line-height)*@line-height/@factor, 3);
+    line-height: round((ceil((@factor/@line-height))*@line-height/@factor), 3);
 }
index b554177c3ad31445318a16599b2b54f90cfc9f40..441c23ad2b4d6a9bb0c78da58e509a1d439f2e62 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -31,6 +31,8 @@
             pkgs.git-annex
             pkgs.openssl
             pkgs.python3Packages.invoke
+            pkgs.lessc
+            pkgs.optipng
           ];
           shellHook = "";
         });
index 4373832056a2826abce50824e0d43407339d62c5..293d2292d6fd4644b4d7539ed308c33e62c6bade 100644 (file)
--- a/site.yaml
+++ b/site.yaml
@@ -21,11 +21,11 @@ meta:
   extends: base.j2
   default_block: article
 less:
-  app: /usr/bin/lessc
+  app: lessc
   args:
     compress: ""
 optipng:
-  app: /usr/bin/optipng
+  app: optipng
   args:
     quiet: ""
 markdown: