diff options
author | Yigit Sever | 2021-10-29 08:04:30 +0000 |
---|---|---|
committer | Yigit Sever | 2021-10-29 11:15:04 +0300 |
commit | b00972235a9e2250610bb6f861a6e88d30d5a126 (patch) | |
tree | 8c8a0f8dbc769f83fbd878a133bc721f51c14066 | |
parent | 5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff) | |
download | cgit-b00972235a9e2250610bb6f861a6e88d30d5a126.tar.gz cgit-b00972235a9e2250610bb6f861a6e88d30d5a126.tar.bz2 cgit-b00972235a9e2250610bb6f861a6e88d30d5a126.zip |
Initial customizations
favicon, cgit.png and installation path
-rw-r--r-- | cgit.conf | 6 | ||||
-rw-r--r-- | cgit.png | bin | 1366 -> 4035 bytes | |||
-rw-r--r-- | favicon.ico | bin | 1078 -> 1150 bytes | |||
-rwxr-xr-x | filters/syntax-highlighting.py | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/cgit.conf b/cgit.conf new file mode 100644 index 0000000..acf8dfa --- /dev/null +++ b/cgit.conf | |||
@@ -0,0 +1,6 @@ | |||
1 | CGIT_SCRIPT_PATH = /var/www/cgit/cgi | ||
2 | CGIT_CONFIG = /var/www/cgit/cgitrc | ||
3 | CACHE_ROOT = /var/www/cgit/cache | ||
4 | prefix = /var/www/cgit | ||
5 | libdir = $(prefix) | ||
6 | filterdir = $(libdir)/filters | ||
Binary files differ | |||
diff --git a/favicon.ico b/favicon.ico index 56ff593..b77822f 100644 --- a/favicon.ico +++ b/favicon.ico | |||
Binary files 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 | |||
34 | sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') | 34 | sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') |
35 | data = sys.stdin.read() | 35 | data = sys.stdin.read() |
36 | filename = sys.argv[1] | 36 | filename = sys.argv[1] |
37 | formatter = HtmlFormatter(style='pastie', nobackground=True) | 37 | formatter = HtmlFormatter(style='stata-light', nobackground=True) |
38 | 38 | ||
39 | try: | 39 | try: |
40 | lexer = guess_lexer_for_filename(filename, data) | 40 | lexer = guess_lexer_for_filename(filename, data) |