Commit d85ee048 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Update copy_reveal + and enforce dependencies

parent 2acaf0bf
......@@ -193,6 +193,11 @@ class NbCourse:
'actions': [(update_material, (src_path, dst_path))],
'clean': [(clean_tree, (dst_path,))],
return {
'uptodate': [True],
'actions': []
def execute_notebook(self, notebook: Path, executed_notebook: Path):
"""Execute notebook and write result to executed_notebook file"""
......@@ -218,6 +223,7 @@ class NbCourse:
yield {
'name': executed_notebook,
'file_dep': [notebook],
'task_dep': ['copy_material'],
'targets': [executed_notebook],
'clean': True,
'actions': [(self.execute_notebook, (notebook,
......@@ -272,7 +278,7 @@ class NbCourse:
def task_zip_chapters(self):
"""Build one zip archive per chapter"""
"""Build zip archives for single chapter downloads"""
for notebook in self.notebooks:
zip_file = self.get_executed_notebook(notebook).with_suffix('.zip')
......@@ -292,6 +298,7 @@ class NbCourse:
"""Build html pages"""
return {
'file_dep': self.md_pages + self.theme_files,
'task_dep': ['copy_material'],
'targets': self.html_pages,
'clean': True,
'actions': [self.build_pages],
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment