Skip to content

Commit

Permalink
Merge pull request #34 from QuantEcon/add-preview
Browse files Browse the repository at this point in the history
ENH: Added check for makefile
  • Loading branch information
mmcky committed Aug 2, 2019
2 parents ece4e97 + 760ed2f commit ef7094e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupinx/cmd/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def handle_make_preview(arg_dict):
Handle preview targeting from options specified through CLI
TODO: Support individual lecture targeting
"""
print(arg_dict['view'])
if check_directory_makefile(arg_dict) is False:
exit()
target = str(arg_dict['view']).lower()
if target == "website":
cmd = ['make', 'preview', 'target=website', 'PORT=8900']
Expand Down

0 comments on commit ef7094e

Please sign in to comment.