-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
91 lines (70 loc) · 2.44 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = 'Taisei Project'
SITENAME = 'Taisei Project'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'en'
THEME = 'theme/taisei-orig'
ARTICLE_PATHS = ['news']
PAGE_PATHS = ['pages']
ARCHIVES_SAVE_AS = 'news/index.html'
CATEGORIES_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
TAGS_SAVE_AS = ''
INDEX_SAVE_AS = '' # disabled
AUTHOR_SAVE_AS = ''
ARTICLE_URL = 'news/{slug}'
ARTICLE_SAVE_AS = 'news/{slug}/index.html'
# 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
PLUGIN_PATHS = ['pelican-plugins']
# change this when a new version is released
TAISEI_VERSION = '1.3.2'
TAISEI_GIT = 'https://github.com/taisei-project/taisei'
TAISEI_RELEASE_URL = '{0}/releases/download/v{1}/Taisei-{1}-'.format(TAISEI_GIT, TAISEI_VERSION)
RELEASE_LINKS = {
'windows-x64-setup': ('setup-x86_64.exe', '64-bit (installer)'),
'windows-x86-setup': ('setup-x86.exe', '32-bit (installer)'),
'windows-x64-zip': ('windows-x86_64.zip', '64-bit (zip)'),
'windows-x86-zip': ('windows-x86.zip', '32-bit (zip)'),
'macos': ('macOS-x86_64.dmg', '64-bit Intel (macOS 10.9 or later required)'),
# 'macos': ('macOS-aarch64.dmg', '64-bit Apple Silicon (macOS 11.0 or later required)'),
'linux': ('linux-x86_64.tar.xz', '64-bit (glibc 2.27 or later)'),
'switch': ('switch-aarch64.zip', '(Homebrew)'),
'source': ('.tar.xz', '')
}
NAVBAR = (
('Home', 'home', SITEURL + '/', ''),
('News', 'news', SITEURL + '/news', ''),
('Media', 'media', SITEURL + '/media', ''),
('GitHub', 'github', TAISEI_GIT, ''),
('Download', 'download', SITEURL + '/download', TAISEI_VERSION),
('Play In Browser', 'play', [
('Stable release', 'stable', SITEURL + '/play', TAISEI_VERSION),
('Development', 'unstable', SITEURL + '/play/unstable', 'master'),
], 'Beta'),
)
# Blogroll
LINKS = (('GameManual', TAISEI_GIT + '/blob/master/doc/GAME.rst'),)
# Social widget
SOCIAL = (('Discord', 'https://discord.gg/JEHCMzW'))
DEFAULT_PAGINATION = 5
ALBUM_PATH = "images/screenshots"
THUMBNAIL_OUTPUT_PATH = "images/screenshots/thumbnails"
ALBUM_URL = "media/"
ALBUM_SAVE_AS = "media/index.html"
THUMBNAIL_DEFAULT_SIZE = "480x360"
PLUGINS = [
"jinja2content",
"pelican_youtube",
"release_links",
"collapsing_blocks",
"pelican_albums",
]
RELATIVE_URLS = True