add appyourschool links
[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             'css/base.css',
33             'datepicker/css/datepicker.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     'catalogue': {
90         'source_filenames': (
91                 'js/catalogue/catalogue.js',
92                 'js/slugify.js',
93                 'email_mangler/email_mangler.js',
94                 'datepicker/js/bootstrap-datepicker.js',
95         ),
96         'output_filename': 'compressed/catalogue_scripts.js',
97      },
98      'book': {
99         'source_filenames': (
100             'js/book_text/jquery.eventdelegation.js',
101             'js/book_text/jquery.scrollto.js',
102             'js/book_text/jquery.highlightfade.js',
103             'js/book_text/book.js',
104         ),
105         'output_filename': 'compressed/book.js',
106          },
107     'book_list': {
108         'source_filenames': (
109             'contextmenu/jquery.ui.position.js',
110             'contextmenu/jquery.contextMenu.js',
111             'js/catalogue/book_list.js',
112         ),
113         'output_filename': 'compressed/book_list.js',
114     }
115 }