feat(web/cgit-taz): Use cheddar's about filter for about pages

Following this change, Markdown files in the tree view will be
rendered as highlighted Markdown sources.
This commit is contained in:
Vincent Ambo 2020-01-19 23:53:28 +00:00
parent d752cbecc0
commit 0447ef57ba

View file

@ -9,12 +9,15 @@
with pkgs.third_party;
let
sourceFilter = writeShellScriptBin "cheddar-about" ''
exec ${pkgs.tools.cheddar}/bin/cheddar --about-filter $@
'';
cgitConfig = writeText "cgitrc" ''
# Global configuration
virtual-root=/
enable-http-clone=1
readme=:README.md
about-filter=${pkgs.tools.cheddar}/bin/cheddar
about-filter=${sourceFilter}/bin/cheddar-about
source-filter=${pkgs.tools.cheddar}/bin/cheddar
enable-log-filecount=1
enable-log-linecount=1