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:
parent
19ced1ac41
commit
bec4eb23d0
2 changed files with 7 additions and 2 deletions
1
third_party/default.nix
vendored
1
third_party/default.nix
vendored
|
@ -84,6 +84,7 @@ let
|
|||
texlive
|
||||
thttpd
|
||||
tree
|
||||
writeShellScript
|
||||
writeShellScriptBin
|
||||
writeText
|
||||
writeTextFile
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue