old_contents: from testtube.helpers import pep8_all, pyflakes_all, nosetests_all
  
  PATTERNS = (
      (r'.*\.py', [nosetests_all, pep8_all, pyflakes_all]),
  )
  
new_contents: 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, make_docs]),
      (r'(?P<path>.*)\.rst', [make_docs]),
  )
  
subject: Configure tube to rebuild the docs on file changes.