-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
175 lines (151 loc) · 5.74 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
import os
here = lambda *x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x)
#Directories
LAYOUT_DIR = here('layout')
CONTENT_DIR = here('content')
MEDIA_DIR = here('media')
DEPLOY_DIR = here('deploy')
TMP_DIR = here('deploy_tmp')
BACKUPS_DIR = here('backups')
BACKUP = False
SITE_ROOT = "/"
SITE_WWW_URL = "http://www.umbrant.com"
SITE_NAME = "umbrant"
SITE_AUTHOR = "Andrew Wang"
#URL Configuration
GENERATE_ABSOLUTE_FS_URLS = False
# Clean urls causes Hyde to generate urls without extensions. Examples:
# http://example.com/section/page.html becomes
# http://example.com/section/page/, and the listing for that section becomes
# http://example.com/section/
# The built-in CherryPy webserver is capable of serving pages with clean urls
# without any additional configuration, but Apache will need to use Mod_Rewrite
# to map the clean urls to the actual html files. The HtaccessGenerator site
# post processor is capable of automatically generating the necessary
# RewriteRules for use with Apache.
GENERATE_CLEAN_URLS = False
# A list of filenames (without extensions) that will be considered listing
# pages for their enclosing folders.
# LISTING_PAGE_NAMES = ['index']
LISTING_PAGE_NAMES = ['listing', 'index', 'default']
# Determines whether or not to append a trailing slash to generated urls when
# clean urls are enabled.
APPEND_SLASH = False
# {folder : extension : (processors)}
# The processors are run in the given order and are chained.
# Only a lone * is supported as an indicator for folders. Path
# should be specified. No wildcard card support yet.
# Starting under the media folder. For example, if you have media/css under
# your site root,you should specify just css. If you have media/css/ie you
# should specify css/ie for the folder name. css/* is not supported (yet).
# Extensions do not support wildcards.
MEDIA_PROCESSORS = {
'*':{
'.css':('hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.CSSmin',),
'.ccss':('hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.CleverCSS',
'hydeengine.media_processors.CSSmin',),
'.sass':('hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.SASS',
'hydeengine.media_processors.CSSmin',),
'.less':('hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.LessCSS',
'hydeengine.media_processors.CSSmin',),
'.styl':('hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.Stylus',
'hydeengine.media_processors.CSSmin',),
'.hss':(
'hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.HSS',
'hydeengine.media_processors.CSSmin',),
'.js':(
'hydeengine.media_processors.TemplateProcessor',),
#'hydeengine.media_processors.JSmin',),
'.coffee':(
'hydeengine.media_processors.TemplateProcessor',
'hydeengine.media_processors.CoffeeScript',
'hydeengine.media_processors.JSmin',),
'.png':(
'hydeengine.content_processors.PassthroughProcessor',),
'.jpg':(
'hydeengine.content_processors.PassthroughProcessor',),
},
}
CONTENT_PROCESSORS = {
'*':{
'.ico':(
'hydeengine.content_processors.PassthroughProcessor',),
'.png':(
'hydeengine.content_processors.PassthroughProcessor',),
'.jpg':(
'hydeengine.content_processors.PassthroughProcessor',),
},
'prerendered/': {
'*.*' :
('hydeengine.content_processors.PassthroughProcessor',)
},
'papers/': {
'*.*' :
('hydeengine.content_processors.PassthroughProcessor',)
},
'presentations/': {
'*.*' :
('hydeengine.content_processors.PassthroughProcessor',)
}
}
SITE_POST_PROCESSORS = {
# 'media/js': {
# 'hydeengine.site_post_processors.FolderFlattener' : {
# 'remove_processed_folders': True,
# 'pattern':"*.js"
# }
# }
}
CONTEXT = {
'GENERATE_CLEAN_URLS': GENERATE_CLEAN_URLS,
'nav_links' : {
'home': '/',
'about': '/about.html',
'research' : '/research.html',
'contact' : '/contact.html',
'bucket_list': '/bucket.html',
'atom': 'http://feeds.feedburner.com/UmbrantBlog',
'external_sort': '/blog/2011/external_sorting.html',
'external_sort': '/blog/2014/bucket_list_fish.html',
},
'links' : {
'twitter_umbrant': 'http://twitter.com/umbrant',
}
}
FILTER = {
'include': (".htaccess",),
'exclude': (".*","*~")
}
#Processor Configuration
#
# Set this to the output of `which growlnotify`. If `which` returns emtpy,
# install growlnotify from the Extras package that comes with the Growl disk image.
#
#
GROWL = None
# path for YUICompressor, or None if you don't
# want to compress JS/CSS. Project homepage:
# http://developer.yahoo.com/yui/compressor/
YUI_COMPRESSOR = "./lib/yuicompressor-2.4.2.jar"
#YUI_COMPRESSOR = None
# path for Closure Compiler, or None if you don't
# want to compress JS/CSS. Project homepage:
# http://closure-compiler.googlecode.com/
#CLOSURE_COMPILER = "./lib/compiler.jar"
CLOSURE_COMPRILER = None
# path for HSS, which is a preprocessor for CSS-like files (*.hss)
# project page at http://ncannasse.fr/projects/hss
#HSS_PATH = "./lib/hss-1.0-osx"
HSS_PATH = None # if you don't want to use HSS
#Django settings
TEMPLATE_DIRS = (LAYOUT_DIR, CONTENT_DIR, TMP_DIR, MEDIA_DIR)
INSTALLED_APPS = (
'hydeengine',
'django.contrib.webdesign',
)