-
Notifications
You must be signed in to change notification settings - Fork 26
/
pelicanconf.py
executable file
·112 lines (88 loc) · 2.8 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import datetime, date
from checksumdir import dirhash
AUTHOR = 'Solr Developers'
SITENAME = 'Apache Solr'
SITESUBTITLE = ''
SITEURL = ''
CURRENTYEAR = date.today().year
SOLR_LATEST_RELEASE = '9.7.0'
SOLR_LATEST_RELEASE_DATE = datetime(2024, 9, 9)
SOLR_PREVIOUS_MAJOR_RELEASE = '8.11.4'
SOLR_OPERATOR_LATEST_RELEASE = 'v0.8.1'
SOLR_OPERATOR_LATEST_RELEASE_DATE = datetime(2024, 4, 12)
SOLR_OPERATOR_PREVIOUS_MAJOR_RELEASE = 'v0.7.1'
# This string will be appended to all unversioned css and js resources to prevent caching surprises on edits.
# The theme's htaccess file also sets a cache-control header with longer lifetime, if the v=XXXX query string is added.
STATIC_RESOURCE_SUFFIX = "?v=%s" % dirhash('themes/solr/static', 'sha1')[-8:]
PATH = 'content'
THEME = 'themes/solr'
TIMEZONE = 'UTC'
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%-d %B %Y'
DATE_FORMATS = {
'en': '%-d %B %Y',
}
USE_FOLDER_AS_CATEGORY = False
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
INDEX_SAVE_AS = ''
ARTICLE_SAVE_AS = ''
ARTICLE_LANG_SAVE_AS = ''
DRAFT_SAVE_AS = ''
DRAFT_LANG_SAVE_AS = ''
PAGE_SAVE_AS = ''
PAGE_LANG_SAVE_AS = ''
TAGS_SAVE_AS = ''
TAG_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
ARCHIVES_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
SLUG_REGEX_SUBSTITUTIONS = [
(r'[^\w\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
(r'(?u)\A\s*', ''), # strip leading whitespace
(r'(?u)\s*\Z', ''), # strip trailing whitespace
(r'[-\s]+', '-'), # reduce multiple whitespace or '-' to single '-'
]
CATEGORY_REGEX_SUBSTITUTIONS = []
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
# GOOGLE_ANALYTICS_TRACKING_ID = 'G-QKSF79B9Y1'
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
EXTRA_PATH_METADATA = {}
STATIC_PATHS = ['.']
TEMPLATE_PAGES = {'htaccess.template': '.htaccess'}
PLUGIN_PATHS = ['./plugins']
PLUGINS = [
'extract_toc',
'jinja2content',
'regex_replace',
'age_days_lt',
'vex'
# 'md_inline_extension',
]
MARKDOWN = {
'extension_configs': {
'toc': {},
'markdown.extensions.codehilite': {'css_class': 'codehilite'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}