diff options
Diffstat (limited to 'mercurial')
| -rw-r--r-- | mercurial/web/tasks/main.yaml | 1 | ||||
| -rw-r--r-- | mercurial/web/templates/hgweb.config.j2 | 5 | ||||
| -rw-r--r-- | mercurial/web/templates/hgweb.wsgi.j2 | 2 |
3 files changed, 7 insertions, 1 deletions
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() |
