-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpelicanconf.py
More file actions
82 lines (65 loc) · 2.25 KB
/
pelicanconf.py
File metadata and controls
82 lines (65 loc) · 2.25 KB
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
AUTHOR = 'Pimoroni Ltd.'
SITENAME = "32Blit Tutorials"
SITESUBTITLE = 'Lua and C++ Tutorials for the 32Blit handheld.'
SITEURL = 'https://32blit.github.io/32blit-tutorials/'
TIMEZONE = "Europe/London"
# These are not automatically prefixed with the SITEURL for some reason
SITELOGO = SITEURL + 'static/logo.png'
FAVICON = SITEURL + 'static/favicon.png'
CUSTOM_CSS = 'static/custom.css'
THEME = 'Flex'
THEME_COLOR = 'light'
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
THEME_COLOR_ENABLE_USER_OVERRIDE = True
PYGMENTS_STYLE = 'vs'
PYGMENTS_STYLE_DARK = 'monokai'
MAIN_MENU = True
RELATIVE_URLS = False
GITHUB_URL = 'http://github.com/32blit/'
DISQUS_SITENAME = ''
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"
DEFAULT_PAGINATION = 4
DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
FEED_ALL_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
LINKS = (('Pimoroni', 'https://shop.pimoroni.com'),
('32Blit', "https://32bilt.com"),)
SOCIAL = (('twitter', 'http://twitter.com/32blit'),
('github', 'http://github.com/32blit'),)
MENUITEMS = (
("Lua Tutorials", "/32blit-tutorials/category/lua.html"),
("C++ Tutorials", "/32blit-tutorials/category/c.html"),
("Case Studies", "/32blit-tutorials/category/case-studies.html"),
)
# global metadata to all the contents
DEFAULT_METADATA = {'32blit': 'tutorial'}
# path-specific metadata
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
}
# static paths will be copied without parsing their contents
STATIC_PATHS = ['static']
ARTICLE_PATHS = [
'case-studies',
'lua',
'c++'
]
USE_FOLDER_AS_CATEGORY = True
# custom page generated with a jinja2 template
# TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
# there is no other HTML content
READERS = {'html': None}
# code blocks with line numbers
PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
MARKDOWN = {
'tab_length': 2, # Fix nested lists with only two spaces
'extension_configs': {
'markdown.extensions.toc': {}, # Add "id" attributes to header tags
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.sane_lists': {}, # Does... something... maybe
}
}
#