Upgrate fnpdjango to 0.2.
[redakcja.git] / redakcja / settings / compress.py
1 STATICFILES_FINDERS = (
2     'django.contrib.staticfiles.finders.FileSystemFinder',
3     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
4 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
5 )
6
7
8 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
9 PIPELINE_CSS_COMPRESSOR = None
10 PIPELINE_JS_COMPRESSOR = None
11 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
12
13
14 # CSS and JS files to compress
15 PIPELINE_CSS = {
16     'detail': {
17          'source_filenames': (
18             'css/master.css',
19             'css/toolbar.css',
20             'css/gallery.css',
21             'css/history.css',
22             'css/summary.css',
23             'css/html.css',
24             'css/jquery.autocomplete.css',
25             'css/imgareaselect-default.css', #img!
26             'css/dialogs.css',
27         ),
28         'output_filename': 'compressed/detail_styles.css',
29     },
30     'catalogue': {
31         'source_filenames': (
32             'css/filelist.css',
33         ),
34         'output_filename': 'compressed/catalogue_styles.css',
35      },
36      'book': {
37         'source_filenames': (
38             'css/book.css',
39         ),
40         'output_filename': 'compressed/book.css',
41     },
42     'book_list': {
43         'source_filenames': (
44             'contextmenu/jquery.contextMenu.css',
45             'css/book_list.css',
46         ),
47         'output_filename': 'compressed/book_list.css',
48     },
49 }
50
51 PIPELINE_JS = {
52     # everything except codemirror
53     'detail': {
54         'source_filenames': (
55                 # libraries
56                 'js/lib/jquery/jquery.autocomplete.js',
57                 'js/lib/jquery/jquery.blockui.js',
58                 'js/lib/jquery/jquery.elastic.js',
59                 'js/lib/jquery/jquery.xmlns.js',
60                 'js/button_scripts.js',
61                 'js/slugify.js',
62
63                 # wiki scripts
64                 'js/wiki/wikiapi.js',
65                 'js/wiki/xslt.js',
66
67                 # base UI
68                 'js/wiki/base.js',
69                 'js/wiki/toolbar.js',
70
71                 # dialogs
72                 'js/wiki/dialog_save.js',
73                 'js/wiki/dialog_revert.js',
74                 'js/wiki/dialog_pubmark.js',
75
76                 # views
77                 'js/wiki/view_history.js',
78                 'js/wiki/view_summary.js',
79                 'js/wiki/view_editor_source.js',
80                 'js/wiki/view_editor_wysiwyg.js',
81                 'js/wiki/view_gallery.js',
82                 'js/wiki/view_annotations.js',
83                 'js/wiki/view_search.js',
84                 'js/wiki/view_column_diff.js',
85         ),
86         'output_filename': 'compressed/detail_scripts.js',
87      },
88     'wiki_img': {
89         'source_filenames': (
90                 # libraries
91                 'js/lib/jquery-1.4.2.min.js',
92                 'js/lib/jquery/jquery.autocomplete.js',
93                 'js/lib/jquery/jquery.blockui.js',
94                 'js/lib/jquery/jquery.elastic.js',
95                 'js/lib/jquery/jquery.imgareaselect.js',
96                 'js/button_scripts.js',
97                 'js/slugify.js',
98
99                 # wiki scripts
100                 'js/wiki_img/wikiapi.js',
101
102                 # base UI
103                 'js/wiki_img/base.js',
104                 'js/wiki/toolbar.js',
105
106                 # dialogs
107                 'js/wiki/dialog_save.js',
108                 'js/wiki/dialog_revert.js',
109                 'js/wiki/dialog_pubmark.js',
110
111                 # views
112                 'js/wiki_img/view_editor_objects.js',
113                 'js/wiki_img/view_editor_motifs.js',
114                 'js/wiki/view_editor_source.js',
115                 'js/wiki/view_history.js',
116                 'js/wiki/view_column_diff.js',
117         ),
118         'output_filename': 'compressed/detail_img_scripts.js',
119      },
120     'catalogue': {
121         'source_filenames': (
122                 'js/catalogue/catalogue.js',
123                 'js/slugify.js',
124                 'email_mangler/email_mangler.js',
125         ),
126         'output_filename': 'compressed/catalogue_scripts.js',
127      },
128      'book': {
129         'source_filenames': (
130             'js/book_text/jquery.eventdelegation.js',
131             'js/book_text/jquery.scrollto.js',
132             'js/book_text/jquery.highlightfade.js',
133             'js/book_text/book.js',
134         ),
135         'output_filename': 'compressed/book.js',
136          },
137     'book_list': {
138         'source_filenames': (
139             'contextmenu/jquery.ui.position.js',
140             'contextmenu/jquery.contextMenu.js',
141             'js/catalogue/book_list.js',
142         ),
143         'output_filename': 'compressed/book_list.js',
144     }
145 }