Skip to content

Commit ceb22c8

Browse files
authored
Merge pull request #973 from galaxyproject/training
Update a training command
2 parents ed7f992 + a86a797 commit ceb22c8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

planemo/training/tutorial.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ def export_workflow_file(self):
410410
"""Copy or extract workflow file and add it to the tutorial directory."""
411411
if not os.path.exists(self.wf_dir):
412412
os.makedirs(self.wf_dir)
413+
if not os.path.exists(os.path.join(self.wf_dir, 'index.md')):
414+
with open(os.path.join(self.wf_dir, 'index.md'), 'w') as handle:
415+
handle.write('---\nlayout: workflow-list\n---\n')
413416
if self.init_wf_fp:
414417
shutil.copy(self.init_wf_fp, self.wf_fp)
415418
elif self.init_wf_id:

0 commit comments

Comments
 (0)