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
|
texlive
|
||||||
thttpd
|
thttpd
|
||||||
tree
|
tree
|
||||||
|
writeShellScript
|
||||||
writeShellScriptBin
|
writeShellScriptBin
|
||||||
writeText
|
writeText
|
||||||
writeTextFile
|
writeTextFile
|
||||||
|
|
|
@ -15,13 +15,17 @@ let
|
||||||
patches = old.patches ++ [ ./cgit_depot_url.patch ];
|
patches = old.patches ++ [ ./cgit_depot_url.patch ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cmarkFilter = writeShellScript "pulldown-cmark-filter.sh" ''
|
||||||
|
exec ${pulldown-cmark}/bin/pulldown-cmark -TFSL
|
||||||
|
'';
|
||||||
|
|
||||||
cgitConfig = writeText "cgitrc" ''
|
cgitConfig = writeText "cgitrc" ''
|
||||||
# Global configuration
|
# Global configuration
|
||||||
virtual-root=/
|
virtual-root=/
|
||||||
enable-http-clone=1
|
enable-http-clone=1
|
||||||
readme=:README.md
|
readme=:README.md
|
||||||
about-filter=${monocgit}/lib/cgit/filters/about-formatting.sh
|
about-filter=${cmarkFilter}
|
||||||
source-filter=${monocgit}/lib//cgit/filters/syntax-highlighting.py
|
source-filter=${monocgit}/lib/cgit/filters/syntax-highlighting.py
|
||||||
enable-log-filecount=1
|
enable-log-filecount=1
|
||||||
enable-log-linecount=1
|
enable-log-linecount=1
|
||||||
enable-follow-links=1
|
enable-follow-links=1
|
||||||
|
|
Loading…
Reference in a new issue