~sircmpwn/sr.ht-docs

77f11f2a1ea077c1846fdba08864d5e8f4a347bf — Drew DeVault 3 years ago 1c4fcff
Add note about highlighting for cgit
1 files changed, 4 insertions(+), 1 deletions(-)

M git.sr.ht/installation.md
M git.sr.ht/installation.md => git.sr.ht/installation.md +4 -1
@@ 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 {