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/')
11 SEARCH_INDEX = path.join(VAR_DIR, 'search_index/')
13 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
14 # trailing slash if there is a path component (optional in other cases).
15 # Examples: "http://media.lawrence.com", "http://example.com/media/"
17 STATIC_URL = '/static/'
19 IMAGE_DIR = 'book/pictures/'
21 # CSS and JavaScript file groups
27 'contrib/jquery-ui-1.13.1.custom/jquery-ui.css',
28 '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',
71 'css/master.picture.css',
73 'output_filename': 'css/compressed/book_text.css',
79 'output_filename': 'css/compressed/compressed/forum.css',
83 'css/import/gelasio.css',
84 'css/master.book.css',
85 'css/master.picture.css',
87 'output_filename': 'css/compressed/picture.css',
91 'jplayer/jplayer.blue.monday.css',
94 'output_filename': 'css/compressed/player.css',
97 'source_filenames': ('css/simple.css',),
98 'output_filename': 'css/compressed/simple.css',
101 'source_filenames': ('scss/widget.scss',),
102 'output_filename': 'css/compressed/widget.css',
107 'source_filenames': (
108 'js/contrib/jquery.cycle2.min.js',
109 'js/contrib/jquery.jqmodal.js',
110 'js/contrib/jquery.form.js',
111 'js/contrib/jquery.paging.min.js',
112 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
113 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
114 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
115 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
116 'js/contrib/jquery.shorten.js',
118 'js/contrib/jquery-ui-1.8.16.custom.min.js',
120 'js/contrib/tlite.min.js',
122 'jplayer/jquery.jplayer.min.js',
123 'jplayer/jplayer.playlist.min.js',
129 'pdcounter/pdcounter.js',
130 'sponsors/js/sponsors.js',
131 'player/openplayer.js',
133 'funding/funding.js',
138 'output_filename': 'js/base.min.js',
141 'source_filenames': [
142 '2022/scripts/vendor.js',
143 'contrib/jquery-ui-1.13.1.custom/jquery-ui.js',
146 '2022/book/filter.js',
148 '2022/scripts/modernizr.js',
149 '2021/scripts/main.js',
151 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
152 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
153 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
154 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
155 'pdcounter/pdcounter.js',
158 'output_filename': 'js/2022.min.js'
161 'source_filenames': [
162 'jplayer/jquery.jplayer.min.js',
163 'jplayer/jplayer.playlist.min.js',
166 'output_filename': 'js/player.min.js',
169 'source_filenames': [
170 'js/contrib/jplayer/jquery.jplayer.min.js',
171 'js/contrib/jplayer/jplayer.playlist.min.js',
172 'player/2022_player.js',
174 'output_filename': 'js/2022_player.min.js',
177 'source_filenames': [
178 'js/contrib/jquery.eventdelegation.js',
179 'js/contrib/jquery.scrollto.js',
180 'js/contrib/jquery.highlightfade.js',
181 'js/book_text/other.js',
184 'js/contrib/raphael-min.js',
185 'js/contrib/progressSpin.min.js',
188 'output_filename': 'js/book.min.js',
191 'source_filenames': [
192 'js/contrib/jquery.cycle2.min.js',
193 'js/contrib/jquery.form.js',
194 'js/contrib/jquery.jqmodal.js',
195 'js/book_text/info.js',
196 'js/book_text/menu.js',
197 'js/book_text/note.js',
198 'js/book_text/references.js',
199 'js/book_text/settings.js',
200 'js/book_text/toc.js',
203 'annoy/book_text.js',
205 'js/contrib/jquery.highlightfade.js',
206 'js/contrib/raphael-min.js',
207 'player/openplayer.js',
208 'js/contrib/progressSpin.min.js',
211 'output_filename': 'js/book_text.js',
214 'source_filenames': [
217 'output_filename': 'js/picture.min.js',
220 'source_filenames': ('js/contrib/ierange-m2.js',),
221 'output_filename': 'js/book_ie.min.js',
224 'source_filenames': (
225 'js/contrib/jquery.js',
226 'js/contrib/jquery-ui-1.8.16.custom.min.js',
230 'output_filename': 'js/widget.min.js',
233 'CSS_COMPRESSOR': None,
234 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
236 'libsasscompiler.LibSassCompiler',
240 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage'
242 # PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
243 # PIPELINE_PYSCSS_ARGUMENTS = ''
246 STATICFILES_FINDERS = [
247 'django.contrib.staticfiles.finders.FileSystemFinder',
248 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
249 'pipeline.finders.CachedFileFinder',
250 'pipeline.finders.PipelineFinder',