-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpelicanconf.py
executable file
·43 lines (31 loc) · 1.13 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*- #
AUTHOR = 'CON team'
SITENAME = 'CON'
SITEURL = ''
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
DIRECT_TEMPLATES = ['index']
STATIC_PATHS = [ 'img', 'CNAME' ]
THEME = 'theme'
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
# TODO(asmacdo) I assumed we had to declare fix_code_blocks here, but it doesn't make a change.
# I also tried deleting the mdext code assuming it wasn't getting used,
# but that led to the left bar of the /projects page to render incorrectly. I suppose we just leave it.
# 'markdown.extensions.extra': 'mdext.fix_code_blocks',
}
}
import os, sys
sys.path.append(os.path.join(os.getcwd(), "jinjaext"))
from table_of_contents import TableOfContents as TOC
JINJA_FILTERS = {
'extract_toc_info' : TOC.extractTableOfContentsInfo,
'create_toc' : TOC.createTableOfContents,
'add_toc_hooks' : TOC.addTableOfContentsHooks
}
# GOOGLE_ANALYTICS = "TODO"
PLUGINS = []
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True