librarian update
[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/imgareaselect-default.css', #img!
13             'css/dialogs.css',
14         ),
15         'output_filename': 'compressed/detail_styles_?.css',
16     },
17     'catalogue': {
18         'source_filenames': (
19             'css/filelist.css',
20         ),
21         'output_filename': 'compressed/catalogue_styles_?.css',
22      }
23 }
24
25 COMPRESS_JS = {
26     # everything except codemirror
27     'detail': {
28         'source_filenames': (
29                 # libraries
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     'wiki_img': {
63         'source_filenames': (
64                 # libraries
65                 'js/lib/jquery-1.4.2.min.js',
66                 'js/lib/jquery/jquery.autocomplete.js',
67                 'js/lib/jquery/jquery.blockui.js',
68                 'js/lib/jquery/jquery.elastic.js',
69                 'js/lib/jquery/jquery.imgareaselect.js',
70                 'js/button_scripts.js',
71                 'js/slugify.js',
72
73                 # wiki scripts
74                 'js/wiki_img/wikiapi.js',
75
76                 # base UI
77                 'js/wiki_img/base.js',
78                 'js/wiki/toolbar.js',
79
80                 # dialogs
81                 'js/wiki/dialog_save.js',
82                 'js/wiki/dialog_revert.js',
83                 'js/wiki/dialog_pubmark.js',
84
85                 # views
86                 'js/wiki_img/view_editor_objects.js',
87                 'js/wiki_img/view_editor_motifs.js',
88                 'js/wiki/view_editor_source.js',
89                 'js/wiki/view_history.js',
90                 'js/wiki/view_column_diff.js',
91         ),
92         'output_filename': 'compressed/detail_img_scripts_?.js',
93      },
94     'catalogue': {
95         'source_filenames': (
96                 'js/catalogue/catalogue.js',
97                 'js/slugify.js',
98                 'email_mangler/email_mangler.js',
99         ),
100         'output_filename': 'compressed/catalogue_scripts_?.js',
101      }
102 }
103
104 COMPRESS = True
105 COMPRESS_CSS_FILTERS = None
106 COMPRESS_JS_FILTERS = None
107 COMPRESS_AUTO = True
108 COMPRESS_VERSION = True
109 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'