Skip to content

Commit

Permalink
add source_dir argument
Browse files Browse the repository at this point in the history
This will fix carpentries#576
  • Loading branch information
zkamvar committed Apr 15, 2021
1 parent 72d2b85 commit 494e2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/lesson_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def main():
check_source_rmd(args.reporter, args.source_dir, args.parser)

args.references = {}
if not using_remote_theme():
if not using_remote_theme(args.source_dir):
args.references = read_references(args.reporter, args.reference_path)

docs = read_all_markdown(args.source_dir, args.parser)
Expand Down Expand Up @@ -170,7 +170,7 @@ def parse_args():

return args

def using_remote_theme():
def using_remote_theme(source_dir):
config_file = os.path.join(source_dir, '_config.yml')
config = load_yaml(config_file)
return 'remote_theme' in config
Expand Down

0 comments on commit 494e2d6

Please sign in to comment.