-
Notifications
You must be signed in to change notification settings - Fork 2
/
pelicanconf.py
62 lines (51 loc) · 1.55 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
from pelican_jupyter import markup as nb_markup
AUTHORS = 'John Bachman, Carlos Lopez, Alex Lubbock, Jeremy Muhlich'
SITENAME = 'PySB'
SITESUBTITLE = 'Systems biology modeling in Python'
SITEURL = ''
SITELOGO = '/images/pysb-swirl.png'
PATH = 'content'
TIMEZONE = 'America/Chicago'
DEFAULT_LANG = 'en'
THEME = 'themes/pelican-blueidea'
STATIC_PATHS = ['images', 'extra/']
EXTRA_PATH_METADATA = {}
for f in os.listdir('content/extra/'):
EXTRA_PATH_METADATA['extra/'+f] = {'path':f}
MENUITEMS=[('Home', '/'),
('Download', '/download'),
('News', '/news'),
('Tutorials', '/tutorials'),
('Support', '/support')]
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'
ARTICLE_URL = '{category}/{slug}'
ARTICLE_SAVE_AS = '{category}/{slug}.html'
CATEGORY_URL = '{slug}/'
CATEGORY_SAVE_AS = '{slug}/index.html'
TAG_URL = 'tag/{slug}'
TAG_SAVE_AS = 'tag/{slug}.html'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
DEFAULT_PAGINATION = False
MARKUP = ('md', 'ipynb')
PLUGINS = [nb_markup]
IGNORE_FILES = ['.ipynb_checkpoints']
MARKDOWN = {
'extension_configs': {
'markdown.extensions.fenced_code': {},
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {}
},
'output_format': 'html5'
}