feat(cgit-taz): Use pulldown-cmark as the about filter

It renders GitHub-flavoured Markdown, which is nice for most
use-cases.
This commit is contained in:
Vincent Ambo 2019-12-21 02:59:12 +00:00
parent 19ced1ac41
commit bec4eb23d0
2 changed files with 7 additions and 2 deletions

View file

@ -84,6 +84,7 @@ let
texlive
thttpd
tree
writeShellScript
writeShellScriptBin
writeText
writeTextFile

View file

@ -15,13 +15,17 @@ let
patches = old.patches ++ [ ./cgit_depot_url.patch ];
});
cmarkFilter = writeShellScript "pulldown-cmark-filter.sh" ''
exec ${pulldown-cmark}/bin/pulldown-cmark -TFSL
'';
cgitConfig = writeText "cgitrc" ''
# Global configuration
virtual-root=/
enable-http-clone=1
readme=:README.md
about-filter=${monocgit}/lib/cgit/filters/about-formatting.sh
source-filter=${monocgit}/lib//cgit/filters/syntax-highlighting.py
about-filter=${cmarkFilter}
source-filter=${monocgit}/lib/cgit/filters/syntax-highlighting.py
enable-log-filecount=1
enable-log-linecount=1
enable-follow-links=1