grim/hgkeeper-theme

Update the diff and file templates to use css counters for line numbers instead of injecting html elements. Also change the color for added lines to blue to help those with red-green colorblindness.
# vi:et:ts=4 sw=4 sts=4
#
# hgkeeper-theme - An hgweb theme
# Copyright (c) 2020 Gary Kramlich <grim@reaperworld.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with hgwebplus. If not, see <https://www.gnu.org/licenses/>.
from setuptools import setup
setup(
name='hgkeeper-theme',
version='0.1.0',
author='Gary Kramlich',
author_email='grim@reaperworld.com',
url='https://keep.imfreedom.org/grim/hgkeeper-theme',
description='The default hgkeeper theme for hgweb',
packages=['mercurial.templates'],
package_dir={
'mercurial.templates': 'templates',
},
package_data={
'mercurial.templates': [
'hgkeeper/*',
'hgkeeper/*/*',
'static/hgk/*/*',
]
},
install_requires=[
'hgwebplus>=0.4.0',
# skip mercurial because it might be installed on the system
# 'mercurial',
],
license='GPLv2',
classifiers=[
'Environment :: Plugins',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Topic :: Software Development :: Version Control',
],
)