aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2020-06-21 14:04:34 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2020-06-21 14:04:34 +0200
commit9aacfd86ecf64b3483a485d9bf5debb994af32ee (patch)
tree67a856fd9b5e00c8f1a2cfb62aa717fb740412cb
parentdf2b46c730cb7fee673b0759ffceaa1589ad0d3e (diff)
downloadcgit-docker-9aacfd86ecf64b3483a485d9bf5debb994af32ee.tar.gz
cgit-docker-9aacfd86ecf64b3483a485d9bf5debb994af32ee.tar.bz2
cgit-docker-9aacfd86ecf64b3483a485d9bf5debb994af32ee.zip
feat:add syntax highlighting
-rw-r--r--Dockerfile1
-rw-r--r--cgitrc4
2 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index f68b6ad..39aa40b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,7 @@ FROM archlinux
2MAINTAINER Diederick de Vries <diederick@diederickdevries.net> 2MAINTAINER Diederick de Vries <diederick@diederickdevries.net>
3RUN pacman --noconfirm -Syu 3RUN pacman --noconfirm -Syu
4RUN pacman --noconfirm -S cgit lighttpd 4RUN pacman --noconfirm -S cgit lighttpd
5RUN pacman --noconfirm -S python-pygments
5COPY cgitrc /etc/ 6COPY cgitrc /etc/
6COPY lighttpd.conf /etc/lighttpd/ 7COPY lighttpd.conf /etc/lighttpd/
7CMD /bin/lighttpd -f /etc/lighttpd/lighttpd.conf && tail -f /var/log/lighttpd/error.log 8CMD /bin/lighttpd -f /etc/lighttpd/lighttpd.conf && tail -f /var/log/lighttpd/error.log
diff --git a/cgitrc b/cgitrc
index d7b7a15..a78d9a4 100644
--- a/cgitrc
+++ b/cgitrc
@@ -13,7 +13,9 @@ virtual-root=/
13 13
14root-title=code.diederickdevries.net 14root-title=code.diederickdevries.net
15root-desc= 15root-desc=
16root-readme=/conf/root-readme.md 16
17source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
18about-filter=/usr/lib/cgit/filters/about-formatting.sh
17 19
18clone-url=https://code.diederickdevries.net/$CGIT_REPO_URL 20clone-url=https://code.diederickdevries.net/$CGIT_REPO_URL
19snapshots=tar.gz tar.bz2 zip 21snapshots=tar.gz tar.bz2 zip