-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelican_conf.py
227 lines (183 loc) · 6.22 KB
/
pelican_conf.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
SITENAME = "ISMIR 2018"
SITEURL = 'http://ismir2018.ircam.fr'
# AUTHOR = 'Guillaume Pellerin'
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
doLocal = False
if doLocal:
#THEME = '/Users/peeters/Dropbox/_work/_develop/_python/_pelican/pelican-themes/flex2'
THEME = '/Users/peeters/Dropbox/_work/_develop/_python/_pelican/pelican-themes/pelican-chameleon-master'
else:
#THEME = '/srv/lib/pelican-themes/flex'
THEME = '/srv/lib/pelican-themes/pelican-chameleon'
#BOOTSTRAP_THEME = 'united'
BOOTSTRAP_THEME = 'yeti'
BS3_THEME = 'http://bootswatch.com/cosmo/bootstrap.min.css'
LOAD_CONTENT_CACHE = False
MAIN_MENU = True
LINKS = (('Portfolio', '//alexandrevicenzi.com'),)
SOCIAL = (('linkedin', 'https://br.linkedin.com/in/test'),
('github', 'https://github.com/test'),
('google', 'https://google.com/+Test'),
('rss', '//www.example.com/feeds/all.atom.xml'))
#MENUITEMS = (('Archives', '/archives.html'),
# ('Categories', '/categories.html'),
# ('Tags', '/tags.html'),)
#USE_LESS = True
#SITELOGO = '/images/ismir2018logo_black_short_L200.png'
#SITELOGOLONG = '/images/ismir2018logo_black_long.png'
BANNER = '/images/ismir2018logo_black_long_empty.png'
BANNER_SUBTITLE = 'September 23-27, Paris, France'
BANNER_ALL_PAGES = True
HIDE_SIDEBAR = False
DISPLAY_PAGES_ON_MENU = True
BOOTSTRAP_NAVBAR_INVERSE = False
DISPLAY_ARTICLE_INFO_ON_INDEX = False
USE_FOLDER_AS_CATEGORY = True
DISPLAY_CATEGORIES_ON_MENU = True
DISPLAY_RECENT_POSTS_ON_SIDEBAR = True
# CUSTOM_CSS = 'themes/bootswatch/slate/slate/bootstrap.css'
if doLocal:
PATH = '/Users/peeters/Dropbox/_work/_develop/_python/_pelican/var/in'
OUTPUT_PATH = '/Users/peeters/Dropbox/_work/_develop/_python/_pelican/output/'
else:
PATH = '/var/in'
OUTPUT_PATH = '/var/out'
if not os.path.exists(PATH) and not os.path.exists(OUTPUT_PATH):
PATH = '/var/in'
OUTPUT_PATH = '/var/out'
STATIC_PATHS = ['doc', 'images', 'extra']
TIMEZONE = 'Europe/Paris'
#
DEFAULT_LANG = 'en'
DEFAULT_DATE = 'fs'
SUMMARY_MAX_LENGTH = 127
SLUGIFY_SOURCE = 'title'
# DEFAULT_PAGINATION = 5
# Feed generation is usually not desired when developing
# FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
MENUITEMS = [
('Home', '/'),
('Dates', '/pages/important-dates.html'),
('Call', [
('Call for Papers', '/pages/call-papers.html'),
('Call for Tutorials', '/pages/call-tutorials.html'),
('Call for Late Breaking / Demo', '/pages/call-lbd.html'),
('Guidelines for Reviewers', '/pages/call-guidelines-reviewers.html'),
('Information for Presenters', '/pages/call-information-presenters.html'),
('Submission', '/pages/call-submission.html'),
]),
('Participants', [
('Registration', '/pages/participants-registration.html'),
('Venue', '/pages/participants-venue.html'),
('Travel', '/pages/participants-travel.html'),
('Financial Supports (Grants)', '/pages/participants-financial-supports.html'),
('Accomodations', '/pages/participants-accomodations.html'),
]),
('Events-Main', [
('All events at a glance', '/pages/events-at-a-glance.html'),
('Call for Participation', '/pages/events-call.html'),
]),
('Events-Satelitte', [
]),
('Partners', [
('Become an Industry Partner', '/pages/partners-call.html'),
]),
('About', [
('About ISMIR', '/pages/about-ismir.html'),
('Organizing Committee', '/pages/about-organizing-committee.html'),
]),
('Links', [('Télécom ParisTech', 'https://www.telecom-paristech.fr/'),
('IRCAM', 'http://www.ircam.fr'),
('ismir.net', 'http://www.ismir.net/'),
('Women in MIR', 'https://wimir.wordpress.com/'),
]),
]
FAVICON_TYPE = 'png'
FAVICON = '/images/ismir2018logo_black_long.png'
# Blogroll
LINKS = (('Télécom ParisTech', 'https://www.telecom-paristech.fr/'),
('Ircam', 'http://www.ircam.fr'),
('ismir.net', 'http://www.ismir.net/'),
('WiMIR', 'https://wimir.wordpress.com/'),
)
# Social widget
SOCIAL = (('Twitter', 'https://twitter.com/Ircam/'),
('GitHub', 'https://github.com/Ircam-RnD/'),
)
#SOCIAL = ()
#DISQUS_SITENAME='ismir2018'
GITHUB_USER = 'ismir2018'
TWITTER_CARDS = False
TWITTER_USERNAME = 'ismir2018'
TWITTER_WIDGET_ID = '516222825451888640'
if doLocal:
PLUGIN_PATHS = ['/Users/peeters/Dropbox/_work/_develop/_python/_pelican/pelican-plugins']
else:
PLUGIN_PATHS = ['/srv/lib/pelican-plugins']
PLUGINS = ['assets', 'jinja2content', 'sitemap', 'gallery',
'i18n_subsites',
'render_math',
'neighbors',
# 'liquid_tags.img', 'liquid_tags.video',
# 'liquid_tags.youtube', 'liquid_tags.vimeo',
# 'liquid_tags.include_code',
# 'liquid_tags.notebook',
]
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
}
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
# Content licensing: CC-BY
CC_LICENSE = "CC-BY"
GOOGLE_ANALYTICS = 'UA-96122525-3'
GALLERY_PATH = '/var/in/img/gallery/'
PELICANGIT_SOURCE_REPO=PATH
PELICANGIT_SOURCE_REMOTE="origin"
PELICANGIT_SOURCE_BRANCH="master"
PELICANGIT_DEPLOY_REPO=OUTPUT_PATH
PELICANGIT_DEPLOY_REMOTE="origin"
PELICANGIT_DEPLOY_BRANCH="master"
PELICANGIT_DEPLOY_IS_LOCAL_DIR = True
PELICANGIT_USER = "root"
PELICANGIT_WHITELISTED_FILES = [
"README.md"
]
PELICANGIT_PORT=8888
MARKDOWN = {'extensions': ['markdown.extensions.meta',]}
MARKDOWN = {
'extension_configs': {
'markdown.extensions.tables':{},
}
}
# JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n',]}
# I18N_SUBSITES = {
# 'fr': {
# 'SITENAME': 'Musique et hacking',
# }
# }
# Tell Pelican to change the path to 'static/custom.css' in the output dir
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/css/custom.css'},
'extra/custom.js': {'path': 'static/js/custom.js'}
}
SHOW_DATE_MODIFIED = False
FAVICON = '/images/ismir2018logo_black_long.png'