]> gitweb.ps.run Git - flake_server/commitdiff
add markdown to cgit
authorPatrick <patrick.schoenberger@posteo.de>
Mon, 14 Apr 2025 14:30:14 +0000 (16:30 +0200)
committerPatrick <patrick.schoenberger@posteo.de>
Mon, 14 Apr 2025 14:30:14 +0000 (16:30 +0200)
configuration.nix

index e7e0af5fce7701ae127cd394f699c00bc5975a0b..08c1921c2b35f0a46b5bb73ccd7a5f82132d971f 100644 (file)
     btop htop
     systemctl-tui
     tmux
+    md4c
 
     pkg-config
   ];
       configText = ''
         scan-path=/srv/git
         robots=noindex, nofollow
+        readme=:readme.md
+        about-filter=${pkgs.writeShellScript "markdown" ''
+          ${pkgs.md4c}/bin/md2html --github --ftables
+        ''}
       '';
     };
     gitweb.enable = true;