parameters: (dir, pkgpath='')
return_statement: return
docstring: Write out HTML documentation for all modules in a directory tree.
docstring_summary: Write out HTML documentation for all modules in a directory tree.
docstring_tokens: Write out HTML documentation for all modules in a directory tree .
function: def writedocs(dir, pkgpath=''):
      """Write out HTML documentation for all modules in a directory tree."""
      for importer, modname, ispkg in pkgutil.walk_packages([dir], pkgpath):
      		# Ignore all debug modules
      		if modname[-2:] != '_d':
          		pydoc.writedoc(modname)
      return
function_tokens: def writedocs ( dir , pkgpath = '' ) : for importer , modname , ispkg in pkgutil . walk_packages ( [ dir ] , pkgpath ) : # Ignore all debug modules if modname [ - 2 : ] != '_d' : pydoc . writedoc ( modname ) return