From 95862f2b20c81294413824ec2dd00f9b17905994 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 13 Aug 2020 19:21:14 +0200 Subject: initial commit --- etc/cgitrc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 etc/cgitrc (limited to 'etc/cgitrc') diff --git a/etc/cgitrc b/etc/cgitrc new file mode 100644 index 0000000..003d7a2 --- /dev/null +++ b/etc/cgitrc @@ -0,0 +1,29 @@ +# +# cgit config +# see cgitrc(5) for details + +# Depends: cmark highlight + +css=/cgit-feature/feature.css +logo=/cgit-css/cgit.png + +remove-suffix=1 + +clone-url=git://$HTTP_HOST/$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL + +# (ab)use source filter to parse markdown as html, +# with line-numbered + highlighted plaintext only as fallback +# TODO: add anchor to line-numbering: +#
  • 2 +# TODO: hide anchor except in :hover mode: +#
  • ยง +enable-tree-linenumbers=0 +source-filter=/usr/local/share/feature/source-hosting/script/syntax-highlighting.sh + +about-filter=/usr/local/share/feature/source-hosting/script/about-formatting.sh +readme=:README.md + +cache-size=1000 + +# must be last! +scan-path=$DOCUMENT_ROOT -- cgit v1.2.3