Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Configure tube to rebuild the docs on file changes.

  • Loading branch information...
commit f807bd489b828369b69caed33583f276d527ce45 1 parent f8a731d
@thomasw authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 tube.py
View
10 tube.py
@@ -1,5 +1,13 @@
+import subprocess
from testtube.helpers import pep8_all, pyflakes_all, nosetests_all
+
+def make_docs(changed, **kwargs):
+ print 'Regenerating documentation...\n'
+ subprocess.call(['make', '-C', 'docs/', 'html'])
+
+
PATTERNS = (
- (r'.*\.py', [nosetests_all, pep8_all, pyflakes_all]),
+ (r'.*\.py', [nosetests_all, pep8_all, pyflakes_all, make_docs]),
+ (r'(?P<path>.*)\.rst', [make_docs]),
)
Please sign in to comment.
Something went wrong with that request. Please try again.