1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. 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',
35 'output_filename': 'css/compressed/main.css',
39 'css/import/gelasio.css',
41 'scss/book_text.scss',
44 'annoy/banner.scss', # ?
45 'annoy/book_text.scss', # ?
46 '2022/styles/reader_player.scss', # ?
48 'css/master.picture.css',
50 'output_filename': 'css/compressed/book_text.css',
53 'source_filenames': ('scss/widget.scss',),
54 'output_filename': 'css/compressed/widget.css',
60 '2022/scripts/vendor.js',
61 'contrib/jquery-ui-1.13.1.custom/jquery-ui.js',
67 '2022/scripts/modernizr.js',
70 'js/contrib/jquery.cycle2.min.js',
71 'sponsors/js/sponsors.js',
73 'js/book_text/info.js',
74 'js/book_text/menu.js',
75 'js/book_text/note.js',
76 'js/book_text/references.js',
77 'js/book_text/settings.js',
78 'js/book_text/toc.js',
79 'js/book_text/progress.js',
81 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js',
82 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js',
83 'js/contrib/jquery.countdown-es.js', 'js/contrib/jquery.countdown-lt.js',
84 'js/contrib/jquery.countdown-ru.js', 'js/contrib/jquery.countdown-fr.js',
85 'pdcounter/pdcounter.js',
88 'output_filename': 'js/compressed/main.min.js'
92 'js/contrib/jplayer/jquery.jplayer.min.js',
93 'js/contrib/jplayer/jplayer.playlist.min.js',
96 'output_filename': 'js/compressed/player.min.js',
100 'js/contrib/jquery.form.js',
101 'js/contrib/jquery.jqmodal.js',
102 'js/book_text/info.js',
103 'js/book_text/menu.js',
104 'js/book_text/note.js',
105 'js/book_text/references.js',
106 'js/book_text/settings.js',
107 'js/book_text/toc.js',
110 'annoy/book_text.js',
112 'js/contrib/jquery.highlightfade.js',
113 'js/contrib/raphael-min.js',
114 'js/contrib/progressSpin.min.js',
117 'output_filename': 'js/book_text.js',
120 'source_filenames': (
121 'js/contrib/jquery.js',
122 'js/contrib/jquery-ui-1.8.16.custom.min.js',
126 'output_filename': 'js/widget.min.js',
129 'CSS_COMPRESSOR': None,
130 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor',
132 'libsasscompiler.LibSassCompiler',
136 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineManifestStorage'
138 # PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
139 # PIPELINE_PYSCSS_ARGUMENTS = ''
142 STATICFILES_FINDERS = [
143 'django.contrib.staticfiles.finders.FileSystemFinder',
144 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
145 'pipeline.finders.CachedFileFinder',
146 'pipeline.finders.PipelineFinder',