-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelicanconf.py
155 lines (121 loc) · 3.73 KB
/
pelicanconf.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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
SITENAME = "Improtech"
SITEURL = 'https://improtech.ircam.fr'
# AUTHOR = 'ikPP'
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
THEME = '/srv/lib/pelican-themes/pelican-bootstrap3'
INPUT_PATH = '/var/in'
OUTPUT_PATH = '/var/out'
STATIC_PATHS = ['doc', 'images']
#BOOTSTRAP_THEME = 'united'
#BOOTSTRAP_THEME = 'yeti'
BOOTSTRAP_THEME = 'readable'
# CUSTOM_CSS = 'themes/bootswatch/slate/slate/bootstrap.css'
BANNER = '/images/IKPoster_Banner.jpg'
BANNER_SUBTITLE = ''
BANNER_ALL_PAGES = True
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
DEFAULT_DATE = 'fs'
SUMMARY_MAX_LENGTH = 127
SLUGIFY_SOURCE = 'title'
# DEFAULT_PAGINATION = 5
LOAD_CONTENT_CACHE = False
# Feed generation is usually not desired when developing
# FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
# Blogroll
LINKS = (('Ircam', 'http://www.ircam.fr'),
)
# Social widget
SOCIAL = (
# ('Twitter', 'https://twitter.com/Ircam/'),
# ('GitHub', 'https://github.com/Ircam-RnD/'),
# ('FaceBook', 'https://www.facebook.com/iIRCAM/'),
# ('Youtube', 'https://www.youtube.com/user/Ircam75'),
# ('DailyMotion', 'https://www.dailymotion.com/RepMus'),
# ('Vimeo', 'https://vimeo.com/user15042869'),
)
#DISQUS_SITENAME='ismir2018'
GITHUB_USER = ''
TWITTER_CARDS = False
TWITTER_USERNAME = 'ircam'
TWITTER_WIDGET_ID = '516222825451888640'
PLUGIN_PATHS = ['/srv/lib/pelican-plugins']
PLUGINS = ['assets', 'i18n_subsites', 'jinja2content', 'sitemap', 'gallery',
# 'neighbors',
# 'liquid_tags.img', 'liquid_tags.video',
# 'liquid_tags.youtube', 'liquid_tags.vimeo',
# 'liquid_tags.include_code',
# 'liquid_tags.notebook',
]
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-6573030-16'
GALLERY_PATH = '/var/in/img/gallery/'
PELICANGIT_SOURCE_REPO=INPUT_PATH
PELICANGIT_SOURCE_REMOTE="origin"
PELICANGIT_SOURCE_BRANCH="master"
PELICANGIT_SOURCE_BRANCHES=["master", "ikparisphilly",
"ikparisathina", "ikmarseille",
"ikuzeste", "ikparistokyo",]
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 = {
'extensions': ['markdown.extensions.meta',],
'extension_configs': {
'markdown.extensions.codehilite': {
'css_class': 'highlight',
},
'markdown.extensions.extra': {},
'markdown.extensions.toc': {},
# optionally, more extensions,
# e.g. markdown.extensions.meta
},
'output_format': 'html5',
}
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n',]}
I18N_SUBSITES = {
'en': {
'SITENAME': 'Improtech 2022',
}
}
DISPLAY_PAGES_ON_MENU = True
# 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
HIDE_SIDEBAR = True
BOOTSTRAP_NAVBAR_INVERSE = False
DISPLAY_ARTICLE_INFO_ON_INDEX = False
DISPLAY_CATEGORIES_ON_MENU = False
LOAD_CONTENT_CACHE = False
ABOUT_ME = ''
AVATAR = ''