[qt] install description.css as a example file

closes #209472

closes #210274

This file is an example that may help users to customize the description style (see the descriptionstylepath config entry).

authorAlain Leufroy <alain.leufroy@logilab.fr>
changesetb8aaf6d1bbaa
branchdefault
phasepublic
hiddenno
parent revision#66055b7bdfbc [application] allow to retrieve version using command line option
child revision#f68aa3eeb251 hgview: update the tested with statement, #fe6eccd9bf5a [pkg] prepare version 1.8.1
files modified by this revision
debian/hgview.install
hgviewlib/__pkginfo__.py
hgviewlib/config.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1395250709 -3600
# Wed Mar 19 18:38:29 2014 +0100
# Node ID b8aaf6d1bbaa599fad736030e37ec159006cbab8
# Parent 66055b7bdfbcee8f15120fd820b7c587d5c31177
[qt] install description.css as a example file

closes #209472

closes #210274

This file is an example that may help users to customize the
description style (see the `descriptionstylepath <a25065d46075>`_ config entry).

diff --git a/debian/hgview.install b/debian/hgview.install
@@ -1,2 +1,2 @@
1  usr/lib/python*/*-packages/hgviewlib/qt4
2 -usr/share/hgview
3 +usr/share/doc/hgview
diff --git a/hgviewlib/__pkginfo__.py b/hgviewlib/__pkginfo__.py
@@ -59,8 +59,8 @@
4 
5  debian_handler = 'python-dep-standalone'
6 
7  include_dirs = []
8  data_files = [
9 -    [joinpath('share', 'hgview'),
10 +    [joinpath('share', 'doc', 'hgview', 'examples'),
11       [joinpath('hgviewlib', 'qt4', 'resources', 'description.css')]]
12  ]
diff --git a/hgviewlib/config.py b/hgviewlib/config.py
@@ -92,12 +92,12 @@
13      @cached
14      def getDescriptionStylePath(self, default=None):
15          """
16          descriptionstylepath:
17              stylesheet file path used to format the revision description.
18 -            You should found a copy of the default style sheet in the shared
19 -            files location of your system (ex. /usr/share/hgview).
20 +            You should found a copy of the default style sheet in the documentation
21 +            files location of your system (ex. /usr/share/doc/hgview/examples).
22          """
23          return self._fromconfig('descriptionstylepath', default)
24 
25      @cached
26      def getDotRadius(self, default=8):