This keeps the Sphinx build files in place, so incremental builds are a *lot* faster. To force a full rebuild, use: paver clean_docs html
@@ -16,12 +16,11 @@ def clean_docs(options):
@task
-@needs("clean_docs", "paver.doctools.html")
+@needs("paver.doctools.html")
def html(options):
destdir = path("Documentation")
- destdir.rmtree()
builtdocs = sphinx_builddir(options)
- builtdocs.move(destdir)
+ sh("rsync -az %s/ %s" % (builtdocs, destdir))