-
Notifications
You must be signed in to change notification settings - Fork 5
/
pelicanconf.py
78 lines (60 loc) · 1.86 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import datetime
import pelican.themes.webosbrew
from pelican.plugins import webassets
from webassets.cache import MemoryCache
AUTHOR = 'webosbrew.org'
SITENAME = 'webOS Homebrew Project'
SITEURL = 'https://www.webosbrew.org/pages'
SOURCEURL = 'https://github.com/webosbrew/webosbrew.github.io/blob/main/content'
THEME = 'webosbrew'
THEME_STATIC_PATHS = [pelican.themes.webosbrew.static_dir()]
WEBASSETS_SOURCE_PATHS = [pelican.themes.webosbrew.scss_dir()]
PLUGINS = [webassets]
WEBASSETS_CONFIG = [
("CACHE", MemoryCache(1024)),
("PYSCSS_LOAD_PATHS", [pelican.themes.webosbrew.scss_dir()]),
]
PATH = 'content'
STATIC_PATHS = ['extra/CNAME']
PAGE_PATHS = ['pages']
DISPLAY_PAGES_ON_MENU = False
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
}
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {
'permalink': True,
},
},
'output_format': 'html5',
}
TIMEZONE = 'Asia/Tokyo'
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
MENUITEMS = (
('Applications', 'https://repo.webosbrew.org'),
('Develop', '/develop'),
)
LINKS = (
('Github Organization', 'https://github.com/webosbrew/'),
('Join us on Discord', 'https://discord.gg/xWqRVEm'),
('RootMy.TV', 'https://rootmy.tv/'),
('openlgtv', 'https://openlgtv.github.io/'),
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
COPYRIGHT_YEAR = datetime.date.today().year
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'