From b00972235a9e2250610bb6f861a6e88d30d5a126 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 08:04:30 +0000 Subject: Initial customizations favicon, cgit.png and installation path --- cgit.conf | 6 ++++++ cgit.png | Bin 1366 -> 4035 bytes favicon.ico | Bin 1078 -> 1150 bytes filters/syntax-highlighting.py | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 cgit.conf diff --git a/cgit.conf b/cgit.conf new file mode 100644 index 0000000..acf8dfa --- /dev/null +++ b/cgit.conf @@ -0,0 +1,6 @@ +CGIT_SCRIPT_PATH = /var/www/cgit/cgi +CGIT_CONFIG = /var/www/cgit/cgitrc +CACHE_ROOT = /var/www/cgit/cache +prefix = /var/www/cgit +libdir = $(prefix) +filterdir = $(libdir)/filters diff --git a/cgit.png b/cgit.png index 425528e..c100ff6 100644 Binary files a/cgit.png and b/cgit.png differ diff --git a/favicon.ico b/favicon.ico index 56ff593..b77822f 100644 Binary files a/favicon.ico and b/favicon.ico differ diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py index e912594..b877644 100755 --- a/filters/syntax-highlighting.py +++ b/filters/syntax-highlighting.py @@ -34,7 +34,7 @@ sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8', errors='replace sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') data = sys.stdin.read() filename = sys.argv[1] -formatter = HtmlFormatter(style='pastie', nobackground=True) +formatter = HtmlFormatter(style='stata-light', nobackground=True) try: lexer = guess_lexer_for_filename(filename, data) -- cgit v1.2.3-70-g09d2