Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build_site.py
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 29, 2016
1 parent 9750393 commit df93c21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/build_site.py
Expand Up @@ -44,10 +44,10 @@ def build_site():

def get_data(theme):
data = {}
data['chain'] = utils.get_theme_chain(theme, DIR)
data['chain'] = utils.get_theme_chain(theme, [DIR, 'themes'])
data['name'] = theme
readme = utils.get_asset_path('README.md', data['chain'], _themes_dir=DIR)
conf_sample = utils.get_asset_path('conf.py.sample', data['chain'], _themes_dir=DIR)
readme = utils.get_asset_path('README.md', data['chain'])
conf_sample = utils.get_asset_path('conf.py.sample', data['chain'])
if readme:
data['readme'] = io.open(readme, 'r', encoding='utf-8').read()
else:
Expand All @@ -65,7 +65,7 @@ def get_data(theme):
'bootstrap3-jinja' in data['chain'] or
'bootstrap3' in data['chain']) and \
'bootstrap3-gradients' not in data['chain']
data['engine'] = utils.get_template_engine(data['chain'], DIR)
data['engine'] = utils.get_template_engine(data['chain'])
data['chain'] = data['chain'][::-1]

data['allver'] = []
Expand Down

0 comments on commit df93c21

Please sign in to comment.