moving this allows for per-instance customizations later, but that won't be practical until serving styles from the instance dir is also allowed. but, this sets the ground work and does allow for removing some styles (e.g. if someone wanted to only allow 'plain'). also I still need to add the ability to present the themes list dynamically
64 lines
1.5 KiB
Python
64 lines
1.5 KiB
Python
"""Default configuration."""
|
|
|
|
|
|
class Config(object):
|
|
"""Represent the default configuration.
|
|
|
|
Reminder: this should be overwritten in the instance config.py, not here!
|
|
"""
|
|
|
|
DEBUG = False
|
|
TESTING = False
|
|
|
|
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'],
|
|
},
|
|
},
|
|
}
|
|
|
|
MARKDOWN_EXTENSIONS = ['extra', 'incorporealcms.mdx.figures', 'sane_lists', 'smarty', 'toc']
|
|
MARKDOWN_EXTENSION_CONFIGS = {
|
|
'extra': {
|
|
'footnotes': {
|
|
'UNIQUE_IDS': True,
|
|
},
|
|
},
|
|
'smarty': {
|
|
'smart_dashes': True,
|
|
'smart_quotes': False,
|
|
'smart_angled_quotes': False,
|
|
'smart_ellipses': True,
|
|
},
|
|
}
|
|
|
|
MEDIA_DIR = 'media'
|
|
|
|
# customizations
|
|
PAGE_STYLES = {
|
|
'dark': 'css/dark.css',
|
|
'light': 'css/light.css',
|
|
'plain': 'css/plain.css',
|
|
}
|
|
|
|
DEFAULT_PAGE_STYLE = 'light'
|
|
TITLE_SUFFIX = 'example.com'
|
|
CONTACT_EMAIL = 'admin@example.com'
|
|
|
|
# specify FAVICON in your instance config.py to override the provided icon
|