pad prefix
[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                 'js/wiki/xml-tools.js',
53
54                 # base UI
55                 'js/wiki/base.js',
56                 'js/wiki/toolbar.js',
57
58                 # dialogs
59                 'js/wiki/dialog_save.js',
60                 'js/wiki/dialog_revert.js',
61                 'js/wiki/dialog_pubmark.js',
62
63                 # views
64                 'js/wiki/view_history.js',
65                 'js/wiki/view_summary.js',
66                 'js/wiki/view_editor_source.js',
67                 'js/wiki/view_editor_wysiwyg.js',
68                 'js/wiki/view_gallery.js',
69                 'js/wiki/view_annotations.js',
70                 'js/wiki/view_search.js',
71                 'js/wiki/view_column_diff.js',
72         ),
73         'output_filename': 'compressed/detail_scripts_?.js',
74      },
75     'catalogue': {
76         'source_filenames': (
77                 'js/catalogue/catalogue.js',
78                 'js/slugify.js',
79                 'email_mangler/email_mangler.js',
80         ),
81         'output_filename': 'compressed/catalogue_scripts_?.js',
82      },
83      'book': {
84         'source_filenames': (
85             'js/book_text/jquery.eventdelegation.js',
86             'js/book_text/jquery.scrollto.js',
87             'js/book_text/jquery.highlightfade.js',
88             'js/book_text/book.js',
89         ),
90         'output_filename': 'compressed/book_?.js',
91          },
92     'book_list': {
93         'source_filenames': (
94             'contextmenu/jquery.ui.position.js',
95             'contextmenu/jquery.contextMenu.js',
96             'js/catalogue/book_list.js',
97         ),
98         'output_filename': 'compressed/book_list_?.js',
99     }
100 }
101
102 COMPRESS = True
103 COMPRESS_CSS_FILTERS = None
104 COMPRESS_JS_FILTERS = None
105 COMPRESS_AUTO = True
106 COMPRESS_VERSION = True
107 COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'