-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
92 lines (72 loc) · 2.6 KB
/
pelicanconf.py
File metadata and controls
92 lines (72 loc) · 2.6 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
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env python
import pathlib
# ____ _ _ __
# | _ \ ___| (_) ___ __ _ _ __ ___ ___ _ __ / _|
# | |_) / _ \ | |/ __/ _` | '_ \ / __/ _ \| '_ \| |_
# | __/ __/ | | (_| (_| | | | | | (_| (_) | | | | _|
# |_| \___|_|_|\___\__,_|_| |_| \___\___/|_| |_|_|
AUTHOR = "Brooks Kindle"
SITEDESCRIPTION = None
SITENAME = AUTHOR
THEME = str(pathlib.Path.cwd() / "theme")
THEME_STATIC_DIR = "theme"
SITEURL = "http://localhost:8000"
RELATIVE_URLS = True # Use document-relative URLs when developing
PATH = "content"
STATIC_PATHS = [
"styles",
"images",
"talks",
]
# I want to have the ability to have html presentations without having them
# inherit from my site's html layout, so keep content source files (.md, .html,
# .ipynb, etc...) in the static folders they were found in.
STATIC_EXCLUDE_SOURCES = False
EXTRA_PATH_METADATA = {
# The Flex theme doesn't let us customize where to load pygments styles
# from, so make sure our theme is placed where Flex can find it.
"styles/pygments/dracula.css": {
"path": f"{THEME_STATIC_DIR}/pygments/dracula.min.css"
},
"images/favicon.ico": {"path": "favicon.ico"},
}
CUSTOM_CSS = "styles/styles.css"
MARKUP = ["md", "ipynb"]
from pelican_jupyter import markup as nb_markup
PLUGIN_PATHS = ["./plugins"]
PLUGINS = [nb_markup, "revealmd"]
IPYNB_SKIP_CSS = True # Let ipynb posts use site CSS settings
IGNORE_FILES = ['.ipynb_checkpoints']
EXTRA_TEMPLATES_PATHS = [
# Let revealmd use a blank html template for its reveal.js presentations
"plugins/revealmd/templates",
]
DEFAULT_PAGINATION = 10
TIMEZONE = "America/Los_Angeles"
DEFAULT_LANG = "en"
# 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
# _____ _ __
# |_ _| |__ ___ _ __ ___ ___ ___ ___ _ __ / _|
# | | | '_ \ / _ \ '_ ` _ \ / _ \ / __/ _ \| '_ \| |_
# | | | | | | __/ | | | | | __/ | (_| (_) | | | | _|
# |_| |_| |_|\___|_| |_| |_|\___| \___\___/|_| |_|_|
# https://github.com/alexandrevicenzi/Flex/wiki/Custom-Settings
SITETITLE = AUTHOR
SITESUBTITLE = "software engineer"
SITELOGO = "/images/profile.jpg"
MAIN_MENU = True
MENUITEMS = (
("Categories", "/categories.html"),
("Tags", "/tags.html"),
)
SOCIAL = (
("github", "https://github.com/brookskindle"),
("linkedin", "https://www.linkedin.com/in/brookskindle/"),
)
PYGMENTS_STYLE = "dracula" # https://github.com/dracula/dracula-theme/
BROWSER_COLOR = "#2e3047"