diff --git a/tasks.py b/tasks.py index 25a54c7..75fda68 100755 --- a/tasks.py +++ b/tasks.py @@ -33,9 +33,7 @@ def write_docs_src(tag): (verdir / "swydd.py").write_text(src_text) -@s.task -def docs(): - """build docs""" +def copy_source(): p = s.Exec("git tag --list", output=True).get() versions = [line for line in p.stdout.splitlines() if line.startswith("v")] for ver in versions: @@ -46,4 +44,10 @@ def docs(): ) +@s.task +def docs(): + """build docs""" + copy_source() + + s.cli()