Reorganize SCSS files, RWD-ize funding.
[wolnelektury.git] / wolnelektury / settings / static.py
1 from os import path
2 from .paths import PROJECT_DIR
3
4 # Absolute path to the directory that holds media.
5 # Example: "/home/media/media.lawrence.com/"
6 MEDIA_ROOT = path.join(PROJECT_DIR, '../media/')
7 STATIC_ROOT = path.join(PROJECT_DIR, '../static/')
8 SEARCH_INDEX = path.join(PROJECT_DIR, '../search_index/')
9
10 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
11 # trailing slash if there is a path component (optional in other cases).
12 # Examples: "http://media.lawrence.com", "http://example.com/media/"
13 MEDIA_URL = '/media/'
14 STATIC_URL = '/static/'
15
16 # CSS and JavaScript file groups
17
18
19 PIPELINE_CSS = {
20     'main': {
21         # styles both for mobile and for big screen
22         'source_filenames': [
23             'css/jquery.countdown.css', 
24
25             'sponsors/css/sponsors.css',
26             'css/social/shelf_tags.css',
27
28             'uni_form/uni-form.css',
29             'uni_form/default.uni-form.css',
30
31             'css/ui-lightness/jquery-ui-1.8.16.custom.css',
32
33             'scss/all.scss',
34         ],
35         'output_filename': 'css/compressed/main.css',
36     },
37     'book': {
38         'source_filenames': [
39             'css/master.book.css',
40         ],
41         'output_filename': 'css/compressed/book.css',
42     },
43     'player': {
44         'source_filenames': [
45             'jplayer/jplayer.blue.monday.css', 
46             'player/player.css', 
47         ],
48         'output_filename': 'css/compressed/player.css',
49     },
50     'simple': {
51         'source_filenames': ('css/simple.css',),
52         'output_filename': 'css/compressed/simple.css',
53     },
54 }
55
56 PIPELINE_JS = {
57     'base': {
58         'source_filenames': (
59             'js/jquery.cycle.min.js',
60             'js/jquery.jqmodal.js',
61             'js/jquery.form.js',
62             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
63             'js/jquery.countdown-de.js', 'js/jquery.countdown-uk.js',
64             'js/jquery.countdown-es.js', 'js/jquery.countdown-lt.js',
65             'js/jquery.countdown-ru.js', 'js/jquery.countdown-fr.js',
66
67             'js/jquery-ui-1.8.16.custom.min.js',
68
69             'js/locale.js',
70             'js/dialogs.js',
71             'js/base.js',
72             'pdcounter/pdcounter.js',
73             'sponsors/js/sponsors.js',
74             'player/openplayer.js',
75             'js/search.js',
76             'funding/funding.js',
77             
78             'uni_form/uni-form.js',
79             ),
80         'output_filename': 'js/base.min.js',
81     },
82     'player': {
83         'source_filenames': [
84             'jplayer/jquery.jplayer.min.js', 
85             'jplayer/jplayer.playlist.min.js', 
86             'player/player.js', 
87         ],
88         'output_filename': 'js/player.min.js',
89     },
90     'book': {
91         'source_filenames': [
92             'js/jquery.eventdelegation.js',
93             'js/jquery.scrollto.js',
94             'js/jquery.highlightfade.js',
95             'js/book.js',
96             'player/openplayer.js',
97         ],
98         'output_filename': 'js/book.min.js',
99     },
100     'book_ie': {
101         'source_filenames': ('js/ierange-m2.js',),
102         'output_filename': 'js/book_ie.min.js',
103     }
104
105 }
106
107 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
108 PIPELINE_CSS_COMPRESSOR = None
109 PIPELINE_JS_COMPRESSOR = None
110
111 PIPELINE_COMPILERS = (
112     'pyscss_compiler.PySCSSCompiler',
113 )
114 PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
115 PIPELINE_PYSCSS_ARGUMENTS = ''