-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
49 lines (41 loc) · 1.32 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import sys
sys.path.append(os.curdir)
PATH = 'content'
# 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
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# Common Settings
MARKUP = ('md', 'ipynb')
IGNORE_FILES = [".ipynb_checkpoints"]
PLUGIN_PATHS = ['./plugins']
PLUGINS = ['ipynb.markup', 'i18n_subsites', 'tipue_search', 'category_custom_order']
# Theme Settings
THEME = "theme"
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
}
DIRECT_TEMPLATES = ('index', 'categories', 'tags', 'search')
PADDED_SINGLE_COLUMN_STYLE=True
IPYNB_USE_METACELL=True
# Site Settings
STATIC_PATHS = os.getenv('STATIC_PATH', '').strip(',').split(',')
AUTHOR = os.getenv('AUTHOR', 'Ming Wan')
SITENAME = os.getenv('SITENAME', 'NB to Web')
SITEURL = os.getenv('SITEURL', '')
TIMEZONE = os.getenv('TIMEZONE', 'UTC')
DEFAULT_LANG = os.getenv('DEFAULT_LANG', 'en')
try:
DEFAULT_PAGINATION = int(os.getenv('DEFAULT_PAGINATION'))
except:
DEFAULT_PAGINATION = False
CATEGORIES_CUSTOM_ORDER = os.getenv('CATEGORIES_CUSTOM_ORDER', '').strip(',').split(',')
from config import *