Forked from
MetObs / MetObsSite
50 commits behind, 2 commits ahead of the upstream repository.
-
David Hoese authoredDavid Hoese authored
publishconf.py 933 B
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import * # noqa
JS_CONF_VARS = {
'METOBS_API_URL': 'https://metobs.ssec.wisc.edu',
'QUICKLOOKS_FORMAT': 'new',
}
# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://metobs.ssec.wisc.edu'
RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""
# Handle things differently if we are on metobs-test versus metobs
is_test_site = os.environ.get('METOBS_SITE_DEST', 'metobs') == 'metobs-test'
if is_test_site:
JS_CONF_VARS['METOBS_API_URL'] = 'https://metobs-test.ssec.wisc.edu'
SITEURL = 'https://metobs-test.ssec.wisc.edu'
print("Rendering site for base URL: {}".format(SITEURL))