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',
37 'css/import/gelasio.css',
38 'scss/book_text.scss',
41 'annoy/book_text.scss',
42 '2022/styles/reader_player.scss',
44 'css/master.picture.css',
46 'output_filename': 'css/compressed/book_text.css',
49 'source_filenames': ('scss/widget.scss',),
50 'output_filename': 'css/compressed/widget.css',
56 '2022/scripts/vendor.js',
57 'contrib/jquery-ui-1.13.1.custom/jquery-ui.js',
61 '2022/book/filter.js',
63 '2022/scripts/modernizr.js',
64 '2021/scripts/main.js',
66 'js/contrib/jquery.cycle2.min.js',
67 'sponsors/js/sponsors.js',
69 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
70 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
71 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
72 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
73 'pdcounter/pdcounter.js',
76 'output_filename': 'js/2022.min.js'
80 'js/contrib/jplayer/jquery.jplayer.min.js',
81 'js/contrib/jplayer/jplayer.playlist.min.js',
82 'player/2022_player.js',
84 'output_filename': 'js/2022_player.min.js',
88 'js/contrib/jquery.form.js',
89 'js/contrib/jquery.jqmodal.js',
90 'js/book_text/info.js',
91 'js/book_text/menu.js',
92 'js/book_text/note.js',
93 'js/book_text/references.js',
94 'js/book_text/settings.js',
95 'js/book_text/toc.js',
100 'js/contrib/jquery.highlightfade.js',
101 'js/contrib/raphael-min.js',
102 'js/contrib/progressSpin.min.js',
105 'output_filename': 'js/book_text.js',
108 'source_filenames': (
109 'js/contrib/jquery.js',
110 'js/contrib/jquery-ui-1.8.16.custom.min.js',
114 'output_filename': 'js/widget.min.js',
117 'CSS_COMPRESSOR': None,
118 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
120 'libsasscompiler.LibSassCompiler',
124 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage'
126 # PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
127 # PIPELINE_PYSCSS_ARGUMENTS = ''
130 STATICFILES_FINDERS = [
131 'django.contrib.staticfiles.finders.FileSystemFinder',
132 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
133 'pipeline.finders.CachedFileFinder',
134 'pipeline.finders.PipelineFinder',