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:
parent
d752cbecc0
commit
0447ef57ba
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue