-
Notifications
You must be signed in to change notification settings - Fork 18
/
pelicanconf.py
159 lines (135 loc) · 4.86 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import datetime
import pelican
# If `DEVMODE = True`, show a red warning banner at the top
DEVMODE = False # pelicanconf-dev.py will override this
# By default, use agressive caching.
# The Makefile ensures we use `--ignore-cache` for production builds.
CACHE_CONTENT = True
LOAD_CONTENT_CACHE = True
CHECK_MODIFIED_METHOD = 'mtime'
CONTENT_CACHING_LAYER = 'generator' # This causes an empty news page
WITH_FUTURE_DATES = False
ANALYTICS = () # pelicanconf-live.py will override this
AUTHOR = u'Geert Barentsen'
SITENAME = "Kepler & K2"
BANNER_SUBTITLE = "Science Center"
SITEURL = "https://keplerscience.arc.nasa.gov"
SITELOGO = 'images/NASA_logo_vector_lg.png'
SITELOGO_SIZE = 32
FAVICON = 'images/favicon.png'
TIMEZONE = 'America/Los_Angeles'
DEFAULT_LANG = u'en'
PATH = 'content'
THEME = "themes/pelican-bootstrap3-kepler"
BOOTSTRAP_THEME = 'flatly'
BOOTSTRAP_FLUID = False
BANNER = "images/kepler-k2-banner.jpg"
HIDE_SITENAME = False
IGNORE_FILES = [
"README.md",
]
# Enable RSS feeds
FEED_DOMAIN = "https://keplerscience.arc.nasa.gov"
FEED_ALL_ATOM = "feeds/all.atom.xml"
FEED_ALL_RSS = "feeds/all.rss.xml"
# We don't need per-author or per-category or per-translation feeds
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
DISPLAY_BREADCRUMBS = False
HIDE_SIDEBAR = True
if pelican.__version__ >= '3.7.0':
MARKDOWN = {
'extension_configs': {
'markdown.extensions.toc': {},
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
}
else:
MD_EXTENSIONS = (['toc'])
# Which static data dirs should be uploaded as part of the website?
STATIC_PATHS = (['images', 'data'])
# Directories that contain html files we want to exclude
# because they are sub-pages included through rst includes
PAGE_EXCLUDES = ['pages/k2-observing/approved-programs']
# The fancy table of contents sidebar requires a plugin
PLUGIN_PATHS = [os.path.join(os.path.dirname(os.path.realpath(__file__)),
"plugins")]
PLUGINS = ['extract_toc']
# Defines the menu items in the top bar
MENUITEMS = (
('News', 'archives.html'),
('The missions', (
('Objectives', 'objectives.html'),
('Telescope', 'the-kepler-space-telescope.html'),
('Science', 'science.html'),
('Publications', 'publications.html'),
('Conferences', 'conferences.html'),
('Users Panel', 'users-panel.html'),
)
),
('K2 observing', (
('Overview', 'k2-observing.html'),
('Campaign fields', 'k2-fields.html'),
('Targets & programs', 'k2-approved-programs.html'),
('Data release notes', 'k2-data-release-notes.html'),
('Proposal preparation', 'k2-proposing-targets.html'),
('C9 Microlensing experiment', 'k2-c9.html'),
('C16 Supernova experiment', 'supernova-experiment'),
)
),
('Data analysis', (
('Data products', 'data-products.html'),
('Pipeline', 'pipeline.html'),
('Software', 'software.html'),
('Community products', 'community-products.html'),
)
),
)
# Defines the "key information" box on the front page
KEY_INFORMATION = (
('K2: Campaign fields', 'k2-fields.html'),
('K2: Observed programs', 'k2-approved-programs.html'),
('Kepler/K2: Data products', 'data-products.html'),
)
# Defines the "important dates" box on the front page
IMPORTANT_DATES = (
)
# Defines the "meetings" box on the front page
MEETINGS = ()
"""
MEETINGS = (
('<b>11-14 Feb 2019</b><br>'
'TESS Data Workshop (Baltimore)',
'http://www.stsci.edu/institute/conference/tess'),
('<b>4-8 Mar 2019</b><br>'
'Kepler & K2 Sci Con V (Glendale)',
'scicon-2019/index.html')
)
"""
# Defines the "related websites" listing in the footer of all pages
RELATEDSITES = (
("Kepler/K2 News and Media Resources",
'http://www.nasa.gov/kepler'),
('Kepler/K2 @ Ball Aerospace',
'http://www.ballaerospace.com/page.jsp?page=72'),
('Kepler Data Archive @ MAST',
'http://archive.stsci.edu/kepler'),
('K2 Data Archive @ MAST',
'http://archive.stsci.edu/k2'),
('NASA Exoplanet Archive @ IPAC',
'http://exoplanetarchive.ipac.caltech.edu'),
)
SHOW_ARTICLE_AUTHOR = True
DEFAULT_PAGINATION = 10
RELATIVE_URLS = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
DATE_MODIFIED = datetime.datetime.now().strftime('%Y-%m-%d')