2021-03-23 23:11:57 +03:00
|
|
|
class Config(object):
|
|
|
|
DEBUG = False
|
2021-03-28 13:21:31 +03:00
|
|
|
SECRET_KEY = None
|
2021-03-23 23:11:57 +03:00
|
|
|
PASSWORD_FILE = '.pw'
|
|
|
|
SIGN_IN = False # Enable or disable authentication
|
|
|
|
MARKDOWN_ROOT = 'docs/' # Path to your .md files
|
|
|
|
MARKDOWN_DOWLOADS = True
|
2021-03-28 13:21:31 +03:00
|
|
|
MARKDOWN_EXTRAS = [
|
|
|
|
'admonition',
|
|
|
|
'attr_list',
|
|
|
|
'codehilite',
|
|
|
|
'def_list',
|
|
|
|
'fenced_code',
|
|
|
|
'md_in_html',
|
|
|
|
'markdown_alerts',
|
|
|
|
'markdown_del_ins',
|
|
|
|
'tables',
|
|
|
|
'toc'
|
|
|
|
]
|
|
|
|
MARKDOWN_EXTRAS_CONFIGS = {
|
|
|
|
'markdown_alerts': {
|
|
|
|
'info': 'alert alert-info',
|
|
|
|
'note': 'alert alert-primary',
|
|
|
|
'tip': 'alert alert-success',
|
|
|
|
'success': 'alert alert-success',
|
|
|
|
'warning': 'alert alert-warning',
|
|
|
|
'danger': 'alert alert-danger'
|
|
|
|
},
|
|
|
|
'toc': {
|
|
|
|
'toc_depth': '2-5'
|
|
|
|
}
|
|
|
|
}
|