def htmlhelp():
 html(buildername='htmlhelp')
 with open('build/htmlhelp/index.html', 'r+') as fh:
  content = fh.read()
  fh.seek(0)
  content = re.sub('<script>.*?</script>', '', content, flags=(re.MULTILINE | re.DOTALL))
  fh.write(content)
  fh.truncate()

def htmlhelp ( ) : html ( buildername = 'htmlhelp' ) with open ( 'build/htmlhelp/index.html' , 'r+' ) as fh : content = fh . read ( ) fh . seek ( 0 ) content = re . sub ( '<script>.*?</script>' , '' , content , flags = ( re . MULTILINE | re . DOTALL ) ) fh . write ( content ) fh . truncate ( )
build sphinx htmlhelp target .