2023-12-18 11:14:13 -06:00
|
|
|
"""Default configuration.
|
|
|
|
|
2023-12-28 15:33:41 -06:00
|
|
|
SPDX-FileCopyrightText: © 2020 Brian S. Stephan <bss@incorporeal.org>
|
2023-12-18 11:14:13 -06:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
"""
|
2020-03-06 17:51:20 -06:00
|
|
|
|
|
|
|
|
|
|
|
class Config(object):
|
|
|
|
"""Represent the default configuration.
|
|
|
|
|
|
|
|
Reminder: this should be overwritten in the instance config.py, not here!
|
|
|
|
"""
|
|
|
|
|
|
|
|
DEBUG = False
|
|
|
|
TESTING = False
|
2020-03-06 19:53:29 -06:00
|
|
|
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'formatters': {
|
|
|
|
'default': {
|
|
|
|
'format': '[%(asctime)s %(levelname)-7s %(name)s] %(message)s',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'handlers': {
|
|
|
|
'console': {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'class': 'logging.StreamHandler',
|
|
|
|
'formatter': 'default',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'': {
|
|
|
|
'level': 'INFO',
|
|
|
|
'handlers': ['console'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2020-03-07 19:43:24 -06:00
|
|
|
|
2022-03-29 22:07:24 -05:00
|
|
|
MARKDOWN_EXTENSIONS = ['extra', 'incorporealcms.mdx.figures', 'sane_lists', 'smarty', 'toc']
|
2021-02-11 18:36:48 -06:00
|
|
|
MARKDOWN_EXTENSION_CONFIGS = {
|
|
|
|
'extra': {
|
|
|
|
'footnotes': {
|
|
|
|
'UNIQUE_IDS': True,
|
|
|
|
},
|
2021-02-11 19:00:36 -06:00
|
|
|
},
|
|
|
|
'smarty': {
|
|
|
|
'smart_dashes': True,
|
|
|
|
'smart_quotes': False,
|
|
|
|
'smart_angled_quotes': False,
|
|
|
|
'smart_ellipses': True,
|
|
|
|
},
|
2021-02-11 18:36:48 -06:00
|
|
|
}
|
2020-10-29 23:43:00 -05:00
|
|
|
|
2021-02-23 13:11:52 -06:00
|
|
|
MEDIA_DIR = 'media'
|
2020-10-30 00:19:19 -05:00
|
|
|
|
2021-02-23 13:11:52 -06:00
|
|
|
# customizations
|
2022-12-31 09:35:51 -06:00
|
|
|
PAGE_STYLES = {
|
2022-12-31 10:16:35 -06:00
|
|
|
'dark': '/static/css/dark.css',
|
|
|
|
'light': '/static/css/light.css',
|
|
|
|
'plain': '/static/css/plain.css',
|
2022-12-31 09:35:51 -06:00
|
|
|
}
|
|
|
|
|
2021-02-23 13:11:52 -06:00
|
|
|
DEFAULT_PAGE_STYLE = 'light'
|
2023-12-30 11:49:41 -06:00
|
|
|
DOMAIN_NAME = 'example.com'
|
|
|
|
TITLE_SUFFIX = DOMAIN_NAME
|
2021-11-01 23:27:00 -05:00
|
|
|
CONTACT_EMAIL = 'admin@example.com'
|
2021-02-27 00:10:03 -06:00
|
|
|
|
2023-12-30 15:25:46 -06:00
|
|
|
# feed settings
|
|
|
|
AUTHOR = {'name': 'Test Name', 'email': 'admin@example.com'}
|
|
|
|
|
2021-11-01 23:27:00 -05:00
|
|
|
# specify FAVICON in your instance config.py to override the provided icon
|