Updating toolbar/fixtures/initial_data.yaml
[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/dialogs.css',
26         ),
27         'output_filename': 'compressed/detail_styles.css',
28     },
29     'catalogue': {
30         'source_filenames': (
31             'css/filelist.css',
32         ),
33         'output_filename': 'compressed/catalogue_styles.css',
34      },
35      'book': {
36         'source_filenames': (
37             'css/book.css',
38         ),
39         'output_filename': 'compressed/book.css',
40     },
41     'book_list': {
42         'source_filenames': (
43             'contextmenu/jquery.contextMenu.css',
44             'css/book_list.css',
45         ),
46         'output_filename': 'compressed/book_list.css',
47     },
48 }
49
50 PIPELINE_JS = {
51     # everything except codemirror
52     'detail': {
53         'source_filenames': (
54                 # libraries
55                 'js/lib/jquery/jquery.autocomplete.js',
56                 'js/lib/jquery/jquery.blockui.js',
57                 'js/lib/jquery/jquery.elastic.js',
58                 'js/lib/jquery/jquery.xmlns.js',
59                 'js/button_scripts.js',
60                 'js/slugify.js',
61
62                 # wiki scripts
63                 'js/wiki/wikiapi.js',
64                 'js/wiki/xslt.js',
65
66                 # base UI
67                 'js/wiki/base.js',
68                 'js/wiki/toolbar.js',
69
70                 # dialogs
71                 'js/wiki/dialog_save.js',
72                 'js/wiki/dialog_revert.js',
73                 'js/wiki/dialog_pubmark.js',
74
75                 # views
76                 'js/wiki/view_history.js',
77                 'js/wiki/view_summary.js',
78                 'js/wiki/view_editor_source.js',
79                 'js/wiki/view_editor_wysiwyg.js',
80                 'js/wiki/view_gallery.js',
81                 'js/wiki/view_annotations.js',
82                 'js/wiki/view_search.js',
83                 'js/wiki/view_column_diff.js',
84         ),
85         'output_filename': 'compressed/detail_scripts.js',
86      },
87     'catalogue': {
88         'source_filenames': (
89                 'js/catalogue/catalogue.js',
90                 'js/slugify.js',
91                 'email_mangler/email_mangler.js',
92         ),
93         'output_filename': 'compressed/catalogue_scripts.js',
94      },
95      'book': {
96         'source_filenames': (
97             'js/book_text/jquery.eventdelegation.js',
98             'js/book_text/jquery.scrollto.js',
99             'js/book_text/jquery.highlightfade.js',
100             'js/book_text/book.js',
101         ),
102         'output_filename': 'compressed/book.js',
103          },
104     'book_list': {
105         'source_filenames': (
106             'contextmenu/jquery.ui.position.js',
107             'contextmenu/jquery.contextMenu.js',
108             'js/catalogue/book_list.js',
109         ),
110         'output_filename': 'compressed/book_list.js',
111     }
112 }