e4b5b085810d01bbc0cf32967e58f4ba2ccbf274
[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     'catalogue': {
17         'source_filenames': (
18             'css/filelist.css',
19         ),
20         'output_filename': 'compressed/catalogue_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/lib/jquery/jquery.xmlns.js',
34                 'js/button_scripts.js',
35                 'js/slugify.js',
36
37                 # wiki scripts
38                 'js/wiki/wikiapi.js',
39                 'js/wiki/xslt.js',
40
41                 # base UI
42                 'js/wiki/base.js',
43                 'js/wiki/toolbar.js',
44
45                 # dialogs
46                 'js/wiki/dialog_save.js',
47                 'js/wiki/dialog_revert.js',
48                 'js/wiki/dialog_pubmark.js',
49
50                 # views
51                 'js/wiki/view_history.js',
52                 'js/wiki/view_summary.js',
53                 'js/wiki/view_editor_source.js',
54                 'js/wiki/view_editor_wysiwyg.js',
55                 'js/wiki/view_gallery.js',
56                 'js/wiki/view_annotations.js',
57                 'js/wiki/view_search.js',
58                 'js/wiki/view_column_diff.js',
59         ),
60         'output_filename': 'compressed/detail_scripts_?.js',
61      },
62     'catalogue': {
63         'source_filenames': (
64                 'js/catalogue.js',
65                 'js/slugify.js',
66         ),
67         'output_filename': 'compressed/catalogue_scripts_?.js',
68      }
69 }
70
71 COMPRESS = True
72 COMPRESS_CSS_FILTERS = None
73 COMPRESS_JS_FILTERS = None
74 COMPRESS_AUTO = True
75 COMPRESS_VERSION = True
76 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'