-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpelicanconf.py
94 lines (70 loc) · 2.04 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
# make sure to end all internal links with '/' so that mod_rewrite .htaccess works
# with subdirectories
# SITEURL = 'http://cyrille.rossant.net'
# SITEURL = '' # FOR LOCAL DEV ONLY
AUTHOR = 'Cyrille Rossant'
SITENAME = "IPython Books"
DISQUS_SITENAME = 'ipython-books'
LOCALE = 'en_US.utf8'
PATH = 'content'
THEME = 'themes/pure'
STATIC_PATHS = ['images']
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
DEFAULT_DATE = 'fs'
FILENAME_METADATA = '(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)'
MD_EXTENSIONS = ['codehilite(css_class=highlight,guess_lang=False,linenums=False)',
'headerid',
'extra']
PAGE_EXCLUDES = ['.ipynb_checkpoints']
ARTICLE_EXCLUDES = ['.ipynb_checkpoints']
DEFAULT_PAGINATION = 5
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
PLUGIN_PATHS = ['../pelican-plugins']
PLUGINS = [
'pelican_plugin-render_math',
'summary',
'neighbors',
'ipynb',
]
# OUTPUT_PATH = '../rossant.github.io'
DEFAULT_CATEGORY = ''
DIRECT_TEMPLATES = ('index',)
ARCHIVES_SAVE_AS = ''
ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
TAGS_SAVE_AS = ''
AUTHOR_URL = ''
AUTHOR_SAVE_AS = ''
CATEGORY_URL = ''
CATEGORY_SAVE_AS = ''
TWITTER_USERNAME = 'cyrillerossant'
MENUITEMS = [('Home', '/'),
('Minibook', '/minibook/'),
('Cookbook', '/cookbook/'),
('Author', 'http://cyrille.rossant.net'),
]
DATE_FORMATS = {
'en': '%Y-%m-%d',
}
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
# FEED_ATOM = 'feeds/atom.xml'
# FEED_RSS = 'feeds/rss.xml'
FEED_ALL_ATOM = 'feeds/atom.xml'
FEED_ALL_RSS = 'feeds/rss.xml'
FEED_DOMAIN = SITEURL
CATEGORY_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
TAG_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None