From b61ea1bd7b0849af0df8d4c7c52b6954b8ceaa88 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 29 Jun 2020 19:21:11 -0500 Subject: Updated hgweb config --- mercurial/web/tasks/main.yaml | 1 + mercurial/web/templates/hgweb.config.j2 | 5 +++++ mercurial/web/templates/hgweb.wsgi.j2 | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'mercurial') diff --git a/mercurial/web/tasks/main.yaml b/mercurial/web/tasks/main.yaml index 088a8fb..ba3c27c 100644 --- a/mercurial/web/tasks/main.yaml +++ b/mercurial/web/tasks/main.yaml @@ -10,6 +10,7 @@ loop: - "uwsgi" - "uwsgi-plugin-python3" + - "python3-pygments" notify: restart uwsgi - name: configure hgweb diff --git a/mercurial/web/templates/hgweb.config.j2 b/mercurial/web/templates/hgweb.config.j2 index 881f8e4..10d9e53 100644 --- a/mercurial/web/templates/hgweb.config.j2 +++ b/mercurial/web/templates/hgweb.config.j2 @@ -4,3 +4,8 @@ [web] deny_push = * allow_archive = gz bz2 zip +encoding = UTF-8 +style = gitweb + +[extensions] +hgext.highlight = diff --git a/mercurial/web/templates/hgweb.wsgi.j2 b/mercurial/web/templates/hgweb.wsgi.j2 index 16cc9fa..4f11d81 100644 --- a/mercurial/web/templates/hgweb.wsgi.j2 +++ b/mercurial/web/templates/hgweb.wsgi.j2 @@ -9,7 +9,7 @@ config = "{{mercurial_uwsgi_root}}/hgweb.config" #import sys; sys.path.insert(0, "/path/to/python/lib") # Uncomment to send python tracebacks to the browser if an error occurs: -import cgitb; cgitb.enable() +#import cgitb; cgitb.enable() # enable demandloading to reduce startup time from mercurial import demandimport; demandimport.enable() -- cgit v1.2.3