cgit-config

My cgit configuration.
git clone https://git.sr.ht/~jbauer/cgit-config
Log | Files | Refs | LICENSE

commit 337f67743e87531f7e9ccb1bab72063698e0167c
parent be9fc481c154e32029efd0cbb0d9bbd1c5da390a
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon,  6 Jul 2020 03:54:16 -0400

Enable about pages and cache

Diffstat:
Mcgitrc | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/cgitrc b/cgitrc @@ -7,6 +7,7 @@ logo=/cgit.png favicon=/favicon.png root-readme=/usr/share/cgit/about.md +cache-size=1000 enable-http-clone=1 enable-commit-graph=1 enable-log-filecount=1 @@ -17,8 +18,13 @@ max-stats=quarter repository-sort=age remove-suffix=1 -# Use markdown READMEs and about page -about-filter=markdown +# Search the following paths for a repo's about page +readme=:README.md +readme=:README.txt +readme=:README + +# Use the appropriate tool for rendering about pages +about-filter=/usr/lib/cgit/filters/about-formatting.sh # Specify the title/description of the root page root-title=git.paritybit.ca @@ -36,11 +42,10 @@ snapshots=tar.gz tar.bz2 zip # Use python-pygments for syntax highlighting source-filter=/usr/lib/cgit/filters/syntax-highlighting.py -# Use the folder name above the git repo folder as a section name +# Get section names from subdirectories section-from-path=1 - # Auto-discover repos from this directory -scan-path=/srv/git +scan-path=/srv/git/ # Generate URLs relative to cgit's root virtual-root=/