-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelicanconf.py
133 lines (121 loc) · 2.84 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- coding: utf-8 -*-
"""Pelican setings for CDS-101 (Spring 2018) website."""
from __future__ import unicode_literals
# GENERAL
AUTHOR = "Dr. Glasbrenner"
SITENAME = "CDS-101: Introduction to Computational and Data Sciences"
SITEURL = ""
SLACK_URL = "http://masoncds101.slack.com"
GITHUB_URL = "https://github.com/mason-su18-cds-101-A01/website"
UNIVERSITYURL = "https://gmu.edu"
TIMEZONE = "America/New_York"
DEFAULT_LANG = "en"
# PROCESSING
CACHE_CONTENT = False
READERS = {
"html": None,
"yaml": None,
}
# THEME
THEME = "theme"
THEME_STATIC_PATHS = ["static"]
FRONT_PAGE_STYLE = "schedule"
TYPOGRIFY = True
HIGHLIGHT_JS_STYLE = "default"
# 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
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# Define paths and urls
PATH = "content"
IMAGES_PATH = "img"
STATIC_PATHS = [
"doc",
"files",
IMAGES_PATH,
]
PAGE_PATHS = ["pages"]
PAGE_URL = "{slug}/"
PAGE_SAVE_AS = "{slug}/index.html"
ARTICLE_URL = ""
ARTICLE_SAVE_AS = ""
AUTHOR_URL = ""
AUTHOR_SAVE_AS = ""
DRAFT_URL = ""
DRAFT_SAVE_AS = ""
CATEGORY_URL = ""
CATEGORY_SAVE_AS = ""
TAG_URL = ""
TAG_SAVE_AS = ""
ARCHIVES_SAVE_AS = ""
CATEGORIES_SAVE_AS = ""
TAGS_SAVE_AS = ""
INDEX_SAVE_AS = "index.html"
DIRECT_TEMPLATES = [
"index",
"materials",
"assignments",
]
PAGINATED_DIRECT_TEMPLATES = []
TEMPLATE_PAGES = {
"syllabus.html": "syllabus.html",
"datasets.html": "datasets.html",
}
SUMMARY_MAX_LENGTH = 50
# Menu items
MENUITEMS = [
(False, "Syllabus", "syllabus.html"),
(False, "Materials", "materials.html"),
(False, "Assignments", "assignments.html"),
(False, "Datasets", "datasets.html"),
]
# Plugins
PLUGIN_PATHS = ["plugins"]
PLUGINS = [
"custom_article_urls",
"pandoc_reader",
"rmd_reader",
# "pelican-plugin-tidy-html",
]
# Plugin: Custom Article URLs
CUSTOM_ARTICLE_URLS = {
'Assignments': {
'URL': 'assignments/{slug}/',
'SAVE_AS': ('assignments/{slug}/index.html'),
},
'Materials': {
'URL': 'materials/{slug}/',
'SAVE_AS': ('materials/{slug}/index.html'),
},
}
# Plugin: RMD Reader
RMD_READER_CLEANUP = True
RMD_READER_RENAME_PLOT = "directory"
RMD_READER_KNITR_QUIET = True
RMD_READER_KNITR_ENCODING = "UTF-8"
RMD_READER_KNITR_OPTS_CHUNK = {
"fig.path": IMAGES_PATH,
}
RMD_READER_KNITR_OPTS_KNIT = None
# Plugin: Pandoc Reader
PANDOC_ARGS = [
"--no-highlight",
"--filter",
"pandoc-citeproc",
"--mathjax",
"--variable",
"\"mathjax-url:#\"",
]
PANDOC_EXTENSIONS = [
"+autolink_bare_uris",
"+ascii_identifiers",
"-tex_math_single_backslash",
"-implicit_figures",
"+multiline_tables",
"+tex_math_double_backslash",
"+smart",
]