-
Notifications
You must be signed in to change notification settings - Fork 11
/
pelicanconf.py
72 lines (56 loc) · 1.96 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
#!/usr/bin/env python
AUTHOR = 'poliastro developer team'
SITENAME = 'poliastro'
SITESUBTITLE = u'poliastro website'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Madrid'
DEFAULT_LANG = 'en'
LOCALE = 'en_US.UTF-8'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = 'feeds/{slug}.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.rss.xml'
# Set the article URL
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
INDEX_SAVE_AS = "blog/index.html"
DEFAULT_PAGINATION = 10
#SUMMARY_USE_FIRST_PARAGRAPH = True
SUMMARY_MAX_LENGTH = 140
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
#MARKUP = ('md', 'ipynb')
#PLUGINS = ['ipynb.markup']
MARKUP = ['md']
PLUGINS = [
'summary', # auto-summarizing articles
'pelican.plugins.liquid_tags',
]
IGNORE_FILES = ['.ipynb_checkpoints']
# for liquid tags
CODE_DIR = 'downloads/code'
NOTEBOOK_DIR = 'downloads/notebooks'
# THEME SETTINGS
THEME = './theme/'
# HEAD MENU PAGES
DOCS_PAGE = 'https://docs.poliastro.space/en/latest/'
COMMUNITY_PAGE = 'http://chat.poliastro.space/'
TUTORIALS_PAGE = 'https://beta.mybinder.org/v2/gh/poliastro/poliastro/main?filepath=index.ipynb'
BLOG_PAGE = 'blog/index.html'
CODE_PAGE = 'https://github.com/poliastro/poliastro'
ARCHIVES_PAGE = 'archives.html'
ABOUT_PAGE = 'pages/about-poliastro.html'
TWITTER_USERNAME = 'poliastro_py'
GITHUB_USERNAME = 'poliastro'
SHOW_ARCHIVES = True
SHOW_FEED = False # Need to address large feeds
ISSO_HOST = 'localhost:1234'
ENABLE_MATHJAX = True
STATIC_PATHS = ['images', 'figures', 'videos', 'downloads', 'favicon.ico', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},}
# Footer info
LICENSE_URL = "https://github.com/poliastro/poliastro.github.io/blob/sources/LICENSE"
LICENSE = "CC-BY for content and MIT for code"