Merge branch 'production' of github.com:fnp/redakcja into production
[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     'book_list': {
29         'source_filenames': (
30             'contextmenu/jquery.contextMenu.css',
31             'css/book_list.css',
32         ),
33         'output_filename': 'compressed/book_list_?.css',
34     },
35 }
36
37 COMPRESS_JS = {
38     # everything except codemirror
39     'detail': {
40         'source_filenames': (
41                 # libraries
42                 'js/lib/jquery/jquery.autocomplete.js',
43                 'js/lib/jquery/jquery.blockui.js',
44                 'js/lib/jquery/jquery.elastic.js',
45                 'js/lib/jquery/jquery.xmlns.js',
46                 'js/button_scripts.js',
47                 'js/slugify.js',
48
49                 # wiki scripts
50                 'js/wiki/wikiapi.js',
51                 'js/wiki/xslt.js',
52
53                 # base UI
54                 'js/wiki/base.js',
55                 'js/wiki/toolbar.js',
56
57                 # dialogs
58                 'js/wiki/dialog_save.js',
59                 'js/wiki/dialog_revert.js',
60                 'js/wiki/dialog_pubmark.js',
61
62                 # views
63                 'js/wiki/view_history.js',
64                 'js/wiki/view_summary.js',
65                 'js/wiki/view_editor_source.js',
66                 'js/wiki/view_editor_wysiwyg.js',
67                 'js/wiki/view_gallery.js',
68                 'js/wiki/view_annotations.js',
69                 'js/wiki/view_search.js',
70                 'js/wiki/view_column_diff.js',
71         ),
72         'output_filename': 'compressed/detail_scripts_?.js',
73      },
74     'catalogue': {
75         'source_filenames': (
76                 'js/catalogue/catalogue.js',
77                 'js/slugify.js',
78                 'email_mangler/email_mangler.js',
79         ),
80         'output_filename': 'compressed/catalogue_scripts_?.js',
81      },
82      'book': {
83         'source_filenames': (
84             'js/book_text/jquery.eventdelegation.js',
85             'js/book_text/jquery.scrollto.js',
86             'js/book_text/jquery.highlightfade.js',
87             'js/book_text/book.js',
88         ),
89         'output_filename': 'compressed/book_?.js',
90          },
91     'book_list': {
92         'source_filenames': (
93             'contextmenu/jquery.ui.position.js',
94             'contextmenu/jquery.contextMenu.js',
95             'js/catalogue/book_list.js',
96         ),
97         'output_filename': 'compressed/book_list_?.js',
98     }
99 }
100
101 COMPRESS = True
102 COMPRESS_CSS_FILTERS = None
103 COMPRESS_JS_FILTERS = None
104 COMPRESS_AUTO = True
105 COMPRESS_VERSION = True
106 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'