-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
51 lines (42 loc) · 1.47 KB
/
constants.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
import os
from dotenv import load_dotenv
from os.path import join, dirname
try:
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
except Exception as e:
print "\nMissing .env file\n"
GITHUB_ACCESS_TOKEN = os.environ.get('GITHUB_ACCESS_TOKEN', None)
ORG_NAME = "ct-product-challenge-2017"
YAML_FILE_NAME = "report.yaml"
TEAMS_FILE_NAME = "teams"
TAGS_FILE_NAME = "tags"
SECTIONS_FILE_NAME = "sections.csv"
SECTIONS = ['S1', 'S2', 'S3', 'S4']
PWD = os.path.dirname(os.path.realpath(__file__))
OUTPUT_DIR_NAME = "output"
YAML_DIR_NAME = "yaml"
TEAM_PHOTOS_DIR_NAME = "team_photos"
COMPANY_LOGOS_DIR_NAME = "logos"
INDIVIDUAL_PHOTOS_DIR_NAME = "individual_pictures"
# TODO: deprecate in favor of futuristic version
# CRIT_FILE_NAME = "crit-%s.html"
XLSX_FILE_NAME = "narratives.xlsx"
BOOK_FILE_NAME = "book.xlsx"
# new site design names
DIRECTORY_PAGE_NAME = "index.html"
TEAM_PAGES_DIR_NAME = "team"
STATIC_DIR_NAME = "static"
# directories that need to be created for output
OUTPUT_DIRS = [TEAM_PAGES_DIR_NAME, TEAM_PHOTOS_DIR_NAME,
COMPANY_LOGOS_DIR_NAME,
INDIVIDUAL_PHOTOS_DIR_NAME]
# for generating the site
LOCAL_OUTPUT_DIRS = [YAML_DIR_NAME] + OUTPUT_DIRS
# content that will be served from the site
SITE_OUTPUT_DIRS = [STATIC_DIR_NAME] + OUTPUT_DIRS
# save photo sizes
PHOTO_SIZES = {}
PHOTO_SIZES[INDIVIDUAL_PHOTOS_DIR_NAME] = (300,300)
PHOTO_SIZES[TEAM_PHOTOS_DIR_NAME] = (800,800)
PHOTO_SIZES[COMPANY_LOGOS_DIR_NAME] = (400,400)