test fix
[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      'book': {
23         'source_filenames': (
24             'css/book.css',
25         ),
26         'output_filename': 'compressed/book_?.css',         
27      }
28 }
29
30 COMPRESS_JS = {
31     # everything except codemirror
32     'detail': {
33         'source_filenames': (
34                 # libraries
35                 'js/lib/jquery/jquery.autocomplete.js',
36                 'js/lib/jquery/jquery.blockui.js',
37                 'js/lib/jquery/jquery.elastic.js',
38                 'js/lib/jquery/jquery.xmlns.js',
39                 'js/button_scripts.js',
40                 'js/slugify.js',
41
42                 # wiki scripts
43                 'js/wiki/wikiapi.js',
44                 'js/wiki/xslt.js',
45
46                 # base UI
47                 'js/wiki/base.js',
48                 'js/wiki/toolbar.js',
49
50                 # dialogs
51                 'js/wiki/dialog_save.js',
52                 'js/wiki/dialog_revert.js',
53                 'js/wiki/dialog_pubmark.js',
54
55                 # views
56                 'js/wiki/view_history.js',
57                 'js/wiki/view_summary.js',
58                 'js/wiki/view_editor_source.js',
59                 'js/wiki/view_editor_wysiwyg.js',
60                 'js/wiki/view_gallery.js',
61                 'js/wiki/view_annotations.js',
62                 'js/wiki/view_search.js',
63                 'js/wiki/view_column_diff.js',
64         ),
65         'output_filename': 'compressed/detail_scripts_?.js',
66      },
67     'catalogue': {
68         'source_filenames': (
69                 'js/catalogue/catalogue.js',
70                 'js/slugify.js',
71                 'email_mangler/email_mangler.js',
72         ),
73         'output_filename': 'compressed/catalogue_scripts_?.js',
74      },
75      'book': {
76         'source_filenames': (
77             'js/book_text/jquery.eventdelegation.js',
78             'js/book_text/jquery.scrollto.js',
79             'js/book_text/jquery.highlightfade.js',
80             'js/book_text/book.js',
81         ),
82         'output_filename': 'compressed/book_?.js',
83          }
84 }
85
86 COMPRESS = True
87 COMPRESS_CSS_FILTERS = None
88 COMPRESS_JS_FILTERS = None
89 COMPRESS_AUTO = True
90 COMPRESS_VERSION = True
91 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'