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