diff options
author | tv <tv@krebsco.de> | 2018-09-28 16:20:48 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-09-28 16:20:48 +0200 |
commit | cb2f57c2556a01a42f9409e65f536a4f9a0c4b85 (patch) | |
tree | e91e77a49c9c9ab441a91066ce878712256396b9 /tv | |
parent | 434f5b44276f46cc3672606d7471ee799ce2f3f2 (diff) |
tv gitrepos cgit: use README.md for about pages
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/gitrepos.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index e7104be..a8cbe0f 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -9,8 +9,19 @@ let { enable = true; cgit = { settings = { - root-title = "repositories at ${config.krebs.build.host.name}"; + about-filter = pkgs.exec "krebs.cgit.about-filter" rec { + filename = "${pkgs.pythonPackages.markdown2}/bin/markdown2"; + argv = [ + filename + "--extras=fenced-code-blocks" + ]; + envp = {}; + }; + readme = [ + ":README.md" + ]; root-desc = "mostly krebs"; + root-title = "repositories at ${config.krebs.build.host.name}"; }; }; repos = repos; |