فهرست منبع

Rename the quick HTML generation to 'qhtml'.

This keeps the old 'paver html' intact.  Quick HTML generation doesn't update
docstrings, nor does it follow symbolic links.
Vincent Driessen 15 سال پیش
والد
کامیت
ca555f0576
1فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 10 1
      pavement.py

+ 10 - 1
pavement.py

@@ -16,8 +16,17 @@ def clean_docs(options):
 
 
 
 
 @task
 @task
-@needs("paver.doctools.html")
+@needs("clean_docs", "paver.doctools.html")
 def html(options):
 def html(options):
+    destdir = path("Documentation")
+    destdir.rmtree()
+    builtdocs = sphinx_builddir(options)
+    builtdocs.move(destdir)
+
+
+@task
+@needs("paver.doctools.html")
+def qhtml(options):
     destdir = path("Documentation")
     destdir = path("Documentation")
     builtdocs = sphinx_builddir(options)
     builtdocs = sphinx_builddir(options)
     sh("rsync -az %s/ %s" % (builtdocs, destdir))
     sh("rsync -az %s/ %s" % (builtdocs, destdir))