Skip to content

Commit df93c21

Browse files
committedAug 29, 2016
Fix build_site.py
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 9750393 commit df93c21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎scripts/build_site.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def build_site():
4444

4545
def get_data(theme):
4646
data = {}
47-
data['chain'] = utils.get_theme_chain(theme, DIR)
47+
data['chain'] = utils.get_theme_chain(theme, [DIR, 'themes'])
4848
data['name'] = theme
49-
readme = utils.get_asset_path('README.md', data['chain'], _themes_dir=DIR)
50-
conf_sample = utils.get_asset_path('conf.py.sample', data['chain'], _themes_dir=DIR)
49+
readme = utils.get_asset_path('README.md', data['chain'])
50+
conf_sample = utils.get_asset_path('conf.py.sample', data['chain'])
5151
if readme:
5252
data['readme'] = io.open(readme, 'r', encoding='utf-8').read()
5353
else:
@@ -65,7 +65,7 @@ def get_data(theme):
6565
'bootstrap3-jinja' in data['chain'] or
6666
'bootstrap3' in data['chain']) and \
6767
'bootstrap3-gradients' not in data['chain']
68-
data['engine'] = utils.get_template_engine(data['chain'], DIR)
68+
data['engine'] = utils.get_template_engine(data['chain'])
6969
data['chain'] = data['chain'][::-1]
7070

7171
data['allver'] = []

0 commit comments

Comments
 (0)
Please sign in to comment.