From 77f11f2a1ea077c1846fdba08864d5e8f4a347bf Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 30 Jun 2018 14:06:12 -0400 Subject: Add note about highlighting for cgit --- git.sr.ht/installation.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git.sr.ht/installation.md b/git.sr.ht/installation.md index f72c1ab..5ca6100 100644 --- a/git.sr.ht/installation.md +++ b/git.sr.ht/installation.md @@ -25,13 +25,16 @@ cgitrc file to the following configuration: enable-index-owner=0 embedded=1 noheader=1 - source-filter=/usr/lib/cgit/filters/syntax-highlighting.py + source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh clone-url=__CLONE_URL__ snapshots=tar.xz scan-path=/var/lib/git/ readme=:README readme=:readme +Make sure your syntax highlighting script looks good. You will probably need to +add `--inline-css` or so. + Then configure nginx to serve cgit to localhost with something like this: server { -- cgit