1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from .paths import VAR_DIR
7 # Absolute path to the directory that holds media.
8 # Example: "/home/media/media.lawrence.com/"
9 MEDIA_ROOT = path.join(VAR_DIR, 'media/')
10 STATIC_ROOT = path.join(VAR_DIR, 'static/')
12 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
13 # trailing slash if there is a path component (optional in other cases).
14 # Examples: "http://media.lawrence.com", "http://example.com/media/"
16 STATIC_URL = '/static/'
18 IMAGE_DIR = 'book/pictures/'
20 # CSS and JavaScript file groups
26 'contrib/jquery-ui-1.13.1.custom/jquery-ui.css',
27 'css/jquery.countdown.css',
29 '2022/styles/main.scss',
33 'output_filename': 'css/compressed/2022.css',
36 # styles both for mobile and for big screen
38 'css/import/gelasio.css',
40 'css/jquery.countdown.css',
41 'jplayer/jplayer.blue.monday.css',
43 'sponsors/css/sponsors.css',
47 'css/ui-lightness/jquery-ui-1.8.16.custom.css',
54 'output_filename': 'css/compressed/main.css',
58 'css/import/gelasio.css',
59 'css/master.book.css',
61 'output_filename': 'css/compressed/book.css',
65 'css/import/gelasio.css',
66 'scss/book_text.scss',
69 'annoy/book_text.scss',
70 '2022/styles/reader_player.scss',
72 'css/master.picture.css',
74 'output_filename': 'css/compressed/book_text.css',
80 'output_filename': 'css/compressed/compressed/forum.css',
84 'css/import/gelasio.css',
85 'css/master.book.css',
86 'css/master.picture.css',
88 'output_filename': 'css/compressed/picture.css',
92 'jplayer/jplayer.blue.monday.css',
95 'output_filename': 'css/compressed/player.css',
98 'source_filenames': ('css/simple.css',),
99 'output_filename': 'css/compressed/simple.css',
102 'source_filenames': ('scss/widget.scss',),
103 'output_filename': 'css/compressed/widget.css',
108 'source_filenames': (
109 'js/contrib/jquery.cycle2.min.js',
110 'js/contrib/jquery.jqmodal.js',
111 'js/contrib/jquery.form.js',
112 'js/contrib/jquery.paging.min.js',
113 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
114 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
115 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
116 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
117 'js/contrib/jquery.shorten.js',
119 'js/contrib/jquery-ui-1.8.16.custom.min.js',
121 'js/contrib/tlite.min.js',
123 'jplayer/jquery.jplayer.min.js',
124 'jplayer/jplayer.playlist.min.js',
130 'pdcounter/pdcounter.js',
131 'sponsors/js/sponsors.js',
132 'player/openplayer.js',
134 'funding/funding.js',
139 'output_filename': 'js/base.min.js',
142 'source_filenames': [
143 '2022/scripts/vendor.js',
144 'contrib/jquery-ui-1.13.1.custom/jquery-ui.js',
148 '2022/book/filter.js',
150 '2022/scripts/modernizr.js',
151 '2021/scripts/main.js',
153 'js/contrib/jquery.cycle2.min.js',
154 'sponsors/js/sponsors.js',
156 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
157 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
158 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
159 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
160 'pdcounter/pdcounter.js',
163 'output_filename': 'js/2022.min.js'
166 'source_filenames': [
167 'jplayer/jquery.jplayer.min.js',
168 'jplayer/jplayer.playlist.min.js',
171 'output_filename': 'js/player.min.js',
174 'source_filenames': [
175 'js/contrib/jplayer/jquery.jplayer.min.js',
176 'js/contrib/jplayer/jplayer.playlist.min.js',
177 'player/2022_player.js',
179 'output_filename': 'js/2022_player.min.js',
182 'source_filenames': [
183 'js/contrib/jquery.eventdelegation.js',
184 'js/contrib/jquery.scrollto.js',
185 'js/contrib/jquery.highlightfade.js',
186 'js/book_text/other.js',
189 'js/contrib/raphael-min.js',
190 'js/contrib/progressSpin.min.js',
193 'output_filename': 'js/book.min.js',
196 'source_filenames': [
197 'js/contrib/jquery.cycle2.min.js',
198 'js/contrib/jquery.form.js',
199 'js/contrib/jquery.jqmodal.js',
200 'js/book_text/info.js',
201 'js/book_text/menu.js',
202 'js/book_text/note.js',
203 'js/book_text/references.js',
204 'js/book_text/settings.js',
205 'js/book_text/toc.js',
208 'annoy/book_text.js',
210 'js/contrib/jquery.highlightfade.js',
211 'js/contrib/raphael-min.js',
212 'player/openplayer.js',
213 'js/contrib/progressSpin.min.js',
216 'output_filename': 'js/book_text.js',
219 'source_filenames': [
222 'output_filename': 'js/picture.min.js',
225 'source_filenames': ('js/contrib/ierange-m2.js',),
226 'output_filename': 'js/book_ie.min.js',
229 'source_filenames': (
230 'js/contrib/jquery.js',
231 'js/contrib/jquery-ui-1.8.16.custom.min.js',
235 'output_filename': 'js/widget.min.js',
238 'CSS_COMPRESSOR': None,
239 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
241 'libsasscompiler.LibSassCompiler',
245 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage'
247 # PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
248 # PIPELINE_PYSCSS_ARGUMENTS = ''
251 STATICFILES_FINDERS = [
252 'django.contrib.staticfiles.finders.FileSystemFinder',
253 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
254 'pipeline.finders.CachedFileFinder',
255 'pipeline.finders.PipelineFinder',