update librarian
[redakcja.git] / redakcja / settings / compress.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 STATICFILES_FINDERS = (
7     'django.contrib.staticfiles.finders.FileSystemFinder',
8     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
9     # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
10 )
11
12 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
13
14 PIPELINE = {
15     'PIPELINE_ENABLED': True,
16     'CSS_COMPRESSOR': None,
17     'JS_COMPRESSOR': None,
18     'STYLESHEETS': {
19         'detail': {
20             'source_filenames': (
21                 'css/master.css',
22                 'css/toolbar.css',
23                 'css/gallery.css',
24                 'css/history.css',
25                 'css/summary.css',
26                 'css/html.css',
27                 'css/jquery.autocomplete.css',
28                 'css/dialogs.css',
29             ),
30             'output_filename': 'compressed/detail_styles.css',
31         },
32         'catalogue': {
33             'source_filenames': (
34                 # 'css/filelist.css',
35                 'css/base.css',
36                 'datepicker/css/datepicker.css',
37                 'js/lib/chosen-1.6.2/bootstrap-chosen.css',
38             ),
39             'output_filename': 'compressed/catalogue_styles.css',
40         },
41         'book': {
42             'source_filenames': (
43                 'css/book.css',
44             ),
45             'output_filename': 'compressed/book.css',
46         },
47         'book_list': {
48             'source_filenames': (
49                 'contextmenu/jquery.contextMenu.css',
50                 'css/book_list.css',
51             ),
52             'output_filename': 'compressed/book_list.css',
53         },
54     },
55     'JAVASCRIPT': {
56         # everything except codemirror
57         'detail': {
58             'source_filenames': (
59                 # libraries
60                 'js/lib/jquery/jquery.autocomplete.js',
61                 'js/lib/jquery/jquery.blockui.js',
62                 'js/lib/jquery/jquery.elastic.js',
63                 'js/lib/jquery/jquery.xmlns.js',
64                 'js/button_scripts.js',
65                 'js/slugify.js',
66
67                 # wiki scripts
68                 'js/wiki/wikiapi.js',
69                 'js/wiki/xslt.js',
70
71                 # base UI
72                 'js/wiki/base.js',
73                 'js/wiki/toolbar.js',
74
75                 # dialogs
76                 'js/wiki/dialog_save.js',
77                 'js/wiki/dialog_revert.js',
78                 'js/wiki/dialog_pubmark.js',
79
80                 # views
81                 'js/wiki/view_history.js',
82                 'js/wiki/view_summary.js',
83                 'js/wiki/view_editor_source.js',
84                 'js/wiki/view_editor_wysiwyg.js',
85                 'js/wiki/view_gallery.js',
86                 'js/wiki/view_annotations.js',
87                 'js/wiki/view_search.js',
88                 'js/wiki/view_column_diff.js',
89             ),
90             'output_filename': 'compressed/detail_scripts.js',
91         },
92         'catalogue': {
93             'source_filenames': (
94                 'js/catalogue/catalogue.js',
95                 'js/slugify.js',
96                 'email_mangler/email_mangler.js',
97                 'datepicker/js/bootstrap-datepicker.js',
98                 'js/lib/chosen-1.6.2/chosen.jquery.min.js',
99             ),
100             'output_filename': 'compressed/catalogue_scripts.js',
101         },
102         'book': {
103             'source_filenames': (
104                 'js/book_text/jquery.eventdelegation.js',
105                 'js/book_text/jquery.scrollto.js',
106                 'js/book_text/jquery.highlightfade.js',
107                 'js/book_text/book.js',
108             ),
109             'output_filename': 'compressed/book.js',
110         },
111         'book_list': {
112             'source_filenames': (
113                 'contextmenu/jquery.ui.position.js',
114                 'contextmenu/jquery.contextMenu.js',
115                 'js/catalogue/book_list.js',
116             ),
117             'output_filename': 'compressed/book_list.js',
118         }
119     }
120 }