-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpelicanconf.py
More file actions
66 lines (54 loc) · 1.74 KB
/
pelicanconf.py
File metadata and controls
66 lines (54 loc) · 1.74 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
# Copyright (C) 2017 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the MIT license
SITENAME = 'Expat XML parser'
SITEURL = 'https://libexpat.github.io'
GITHUB_URL = 'https://github.com/libexpat/libexpat'
def _github(path=''):
return GITHUB_URL + path
_DOC_MASTER = 'doc'
PAGE_URL = '%s/{slug}/' % _DOC_MASTER
PAGE_SAVE_AS = '%s/{slug}/index.html' % _DOC_MASTER
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (
('Changelog', _github('/blob/master/expat/Changes')),
('Download', 'https://github.com/libexpat/libexpat/releases'),
('Documentation', SITEURL + '/%s/' % _DOC_MASTER),
('API', SITEURL + '/%s/api/latest/' % _DOC_MASTER),
('Git Repository', _github()),
('Users', SITEURL + '/' + PAGE_URL.format(slug='users')),
('Report a Bug', _github('/issues')),
)
TIMEZONE = 'UTC'
RELATIVE_URLS = True
THEME = './pelican-chameleon-5e2d5ab49fc551b6becec539b211bfe872ebe836'
if 'pelican-chameleon' in THEME:
_BS3_THEME_NAME = (
# 'cerulean'
# 'cosmo'
# 'cyborg'
# 'darkly'
# 'flatly'
# 'journal'
# 'lumen'
'paper'
# 'readable'
# 'sandstone'
# 'simplex'
# 'slate'
# 'solar'
# 'spacelab'
# 'superhero'
# 'united'
# 'yeti'
)
if _BS3_THEME_NAME:
BS3_THEME = ('/3rdparty/bootswatch/%s/bootstrap.min.css'
% _BS3_THEME_NAME)
BS3_JS = '/3rdparty/bootstrap/3.0.0/js/bootstrap.min.js'
BS3_URL = '/3rdparty/bootstrap/3.0.0/css/bootstrap.min.css'
JQUERY_JS = '/3rdparty/jquery/jquery-3.6.4.min.js'
JQUERY_MIGRATE_JS = '/3rdparty/jquery/jquery-migrate-3.4.1.min.js'
FEED_ALL_ATOM = None
FEED_ALL_RSS = None
FEED_DOMAIN = None
DIRECT_TEMPLATES = ['index']