fa416c41df932a30eb31a3743cc7c57eaac62b95
[redakcja.git] / redakcja / compress_settings.py
1 # CSS and JS files to compress
2 COMPRESS_CSS = {
3     'detail': {
4          'source_filenames': (
5             'css/master.css',
6             'css/gallery.css',
7             'css/history.css',
8             'css/summary.css',
9             'css/html.css',
10             'css/jquery.autocomplete.css',
11             'css/dialogs.css',
12         ),
13         'output_filename': 'compressed/detail_styles_?.css',
14     },
15     'listing': {
16         'source_filenames': (
17             'css/filelist.css',
18         ),
19         'output_filename': 'compressed/listing_styles_?.css',
20      }
21 }
22
23 COMPRESS_JS = {
24     # everything except codemirror
25     'detail': {
26         'source_filenames': (
27                 # libraries
28                 'js/jquery-1.4.2.min.js',
29                 'js/jquery.autocomplete.js',
30                 'js/jquery.blockui.js',
31                 'js/jquery.elastic.js',
32                 'js/button_scripts.js',
33                 'js/slugify.js',
34
35                 # wiki scripts
36                 'js/wiki/wikiapi.js',
37                 'js/wiki/xslt.js',
38
39                 # base UI
40                 'js/wiki/base.js',
41
42                 # dialogs
43                 'js/wiki/dialog_save.js',
44                 'js/wiki/dialog_addtag.js',
45
46                 # views
47                 'js/wiki/view_history.js',
48                 'js/wiki/view_summary.js',
49                 'js/wiki/view_editor_source.js',
50                 'js/wiki/view_editor_wysiwyg.js',
51                 'js/wiki/view_gallery.js',
52                 'js/wiki/view_column_diff.js',
53         ),
54         'output_filename': 'compressed/detail_scripts_?.js',
55      },
56     'listing': {
57         'source_filenames': (
58                 'js/jquery-1.4.2.min.js',
59                 'js/slugify.js',
60         ),
61         'output_filename': 'compressed/listing_scripts_?.js',
62      }
63 }
64
65 COMPRESS = True
66 COMPRESS_CSS_FILTERS = None
67 COMPRESS_JS_FILTERS = None
68 COMPRESS_AUTO = False
69 COMPRESS_VERSION = True
70 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'