-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpelicanconf.py
84 lines (69 loc) · 2.35 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'University of Alberta'
SITENAME = 'CMPUT 404'
SITESUBTITLE = 'Web Applications and Architecture'
SITEURL = ''
PATH = 'content'
THEME = 'templates/cmput404'
TIMEZONE = 'America/Edmonton'
DEFAULT_LANG = 'en'
# Feed generation is ufally not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
# LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
LINKS = ()
# Social widget
# SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
SOCIAL = ()
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {
'toc_depth': '3-7',
'baselevel': '3'
},
'markdown.extensions.tables': {},
'markdown.extensions.md_in_html': {},
},
'output_format': 'html5',
}
DATE_FORMATS = {
'en': '%a, %d %b %Y at %H:%M %Z',
}
STATIC_PATHS=[PATH]
PATH_METADATA = r'(?P<path_no_ext>.*)\..*'
SLUGIFY_SOURCE = "basename"
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
STATIC_URL = STATIC_SAVE_AS = '{path}'
DISPLAY_CATEGORIES_ON_MENU=False
DISPLAY_PAGES_ON_MENU=False
INDEX_SAVE_AS="all.html"
MENUITEMS=[
("Outline", "/general/outline.html"),
("eClass & Grades", "/#eclass"),
("Schedule", "/#schedule"),
("Labs", "/general/labs.html"),
("Project", "/general/project.html"),
("Participation", "/general/individual.html"),
("Resources", "/general/resources.html"),
("Discussion Forum", "/general/help.html#discussion-forum"),
("News & Notices", "/#news-notices"),
("Lecture Zoom", "/#lecture-zoom"),
("Slides", "https://uofa-cmput404.github.io/slides-xt/"),
("Help", "/general/help.html"),
]