37:5f59998fb5eb
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Apr 2020 15:20:29 +0800
kit: use CSS counters to render line numbers where possible Affects changeset, file view, file diff and file annotate pages. Doesn't affect file comparison page (aka side-by-side file diff). Page size, regular file view (mercurial/commands.py): - 987963 B before - 596244 B after Page size, changeset (4441705b7111): - 1319976 B before - 923672 B after

previous change 28:47e49c49c7c7

README.rst

Permissions: -rw-r--r--

Other formats: Feeds:
kit
---
A simple UIkit_-based theme for hgweb.
Compatibility
=============
This theme is designed to work with `Mercurial 4.6`_\+ (primarily because it
relies on {labels} being iterable in templates).
Installation
============
The recommended way is to create 2 symlinks to templates/kit/ and
templates/static/style-kit.css in templates directory of your hgweb
installation in such way::
$ ls -l mercurial/templates/
...
gitweb
json
kit -> kit-repo/templates/kit/
kit-repo
monoblue
...
$ ls -l mercurial/templates/static/
...
style-gitweb.css
style-kit.css -> ../kit-repo/templates/static/style-kit.css
style-monoblue.css
...
(Since this theme doesn't bundle all the needed static files, you can't just do
web.templates = kit/templates/.)
After that, the theme can be selected as any other::
[web]
style = kit
License
=======
GNU GPLv2+, since it is technically based on gitweb, a theme bundled_ with
Mercurial.
Screenshot
==========
.. image:: https://bitbucket.org/av6/hgweb-kit-theme/raw/tip/screenshot.png
:width: 610px
.. _UIkit: https://getuikit.com/v2/
.. _Mercurial 4.6: https://www.mercurial-scm.org/wiki/Release4.6
.. _bundled: https://www.mercurial-scm.org/wiki/AvailableThemes#Bundled_with_Mercurial