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