-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpelicanconf.py
More file actions
174 lines (144 loc) · 6.24 KB
/
pelicanconf.py
File metadata and controls
174 lines (144 loc) · 6.24 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
#import os
import datetime
# If `DEVMODE = True`, show a red warning banner at the top
DEVMODE = False # pelicanconf-dev.py will override this
# The Makefile ensures we use `--ignore-cache` for production builds.
CACHE_CONTENT = False
LOAD_CONTENT_CACHE = False
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 = 'TSSC'
SITEURL = ""
SITELOGO_SIZE = 32
SITEURL = "https://heasarc.gsfc.nasa.gov/docs/tess"
FULLURL = "https://heasarc.gsfc.nasa.gov/docs/tess"
DATE_MODIFIED = datetime.datetime.now().strftime("%Y-%m-%d")
PATH = "content"
STATIC_PATHS = ['images','data','docs']
SITELOGO = 'images/logos/NASA_logo_vector_lg.png'
TIMEZONE = 'US/Eastern'
DEFAULT_LANG = 'en'
SITENAME = 'TESS'
HIDE_SITENAME = False
THEME = "themes/pelican-bootstrap3-tess"
#CSS_FILE = "themes/pelican-bootstrap3-tess/static"
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
BOOTSTRAP_THEME = 'cerulean'
BOOTSTRAP_FLUID = False
FAVICON = 'images/logos/favicon.png'
# Enables RSS feeds
FEED_DOMAIN = SITEURL
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
#Value for the front page counter
from datetime import date, datetime
SCIENCE_DAYS = (date.today() - date.fromisoformat('2018-07-18')).days
# Current sector for where is tess button
import pandas as pd
sec_dates = pd.read_csv('content/data/TESS_orbit_times.csv') #https://tess.mit.edu/observations/
for index, row in sec_dates.iterrows():
if ((datetime.today() < datetime.strptime(row['End of Orbit'], "%Y-%m-%d %H:%M:%S")) & (datetime.today() >= datetime.strptime(row['Start of Orbit'], "%Y-%m-%d %H:%M:%S"))):
CURRENT_SECTOR = row['Sector']
PLUGINS = [
# list of plugins I have enabled
'autoloader',
'i18n_subsites',
'jinja2content',
'jinja_filters',
'photos',
'render_math',
'theme_config',
#'search',
'md_include',
]
# Blogroll
LINKS = (
("Pelican", "https://getpelican.com/"),
("Python.org", "https://www.python.org/"),
("Jinja2", "https://palletsprojects.com/p/jinja/"),
("You can modify those links in your config file", "#"),
)
# Social widget
#SOCIAL = (
# ("You can add links in your config file", "#"),
# ("Another social link", "#"),
#)
IGNORE_FILES = [
"README.md","make_static_plots.py", "make-approved-programs.py", "tpub.db"
]
MD_INCLUDE_BASE_PATH = 'htmlcontent'
'''MARKDOWN = {
'extension_configs': {
'markdown.extensions.toc': {},
'md_include': {
'base_path': "htmlcontent",
'allow_local': True,
'allow_remote': True,
'recurs_local': True,
'recurs_remote': True
}
}
}'''
SHOW_ARTICLE_AUTHOR = True
DEFAULT_PAGINATION = 5
RELATIVE_URLS = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
DISPLAY_ARTICLE_INFO_ON_INDEX = True
MENUITEMS = (
('Education Resources', (
('What is TESS?', 'what-is-tess.html'),
('TESS Statistics', 'statistics.html'),
('TESS Publications', 'publications.html'),
('Citizen Science', 'citizenscience.html'),
('Outreach Materials', 'outreach.html'),
)
),
('Science Resources', (
('Telescope Information', 'telescope_information.html'),
('Sector Information', 'sector.html'),
#('TESS Data', 'data-handling.html'),
('Data Products', 'data-products.html'),
('Follow-up Program', 'tfop.html'),
('Users Committee', 'tuc.html'),
('Media Requests', 'mediarequest.html'),
('FAQ', 'faq.html'),
('Documentation Resources', 'documentation.html'),
)
),
('Tools and Tutorials', (
('Tutorials', 'tutorial_landing.html'),
('Data Analysis Tools', 'data-analysis-tools.html'),
#('Proposal Tools', 'proposal-tools.html'),
('TESS-point Web Tool', 'https://heasarc.gsfc.nasa.gov/wsgi-scripts/TESS/TESS-point_Web_Tool/TESS-point_Web_Tool/wtv_v2.0.py'),
('TIC Info Web Tool', 'ticinfo_placeholder.html'),
#'tesspoint.html'),
#('Work with TESS Data online with TiKE', 'new_proposing.html'),
)
),
('Propose for Observations', (
('How to Propose', 'proposing-investigations.html'),
('Previous GI Programs', 'approved-programs.html'),
('Director\'s Discretionary Targets', 'ddt.html')
)
),
)
# Defines the "meetings" box on the front page
#MEETINGS = (
# (
# "<b>4th January - 8th January 2026</b>",
# "AAS 247 - Phoenix, AZ",
# "https://aas.org/meetings/aas247",
# "The TESS Science Support Center will be present at the NASA exhibitor booth from 1-3pm daily during the 247th AAS meeting. In addition, the TESS mission will be holding the special splinter session 'Science from the TESS Extended Mission' on Wednesday, January 7th, 6pm - 9pm in room 301 C at the Phoenix Convention Center - West Building. A copy of the agenda can be found <a href='https://heasarc.gsfc.nasa.gov/docs/tess/data/Science_from_the_TESS_Extended_Mission.pdf'>here.</a><br></br> We look forward to seeing you there.",
# ),
#)