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