parameters: (thing, forceload=0)
docstring: Write HTML documentation to a file in the current directory.
docstring_summary: Write HTML documentation to a file in the current directory.
docstring_tokens: Write HTML documentation to a file in the current directory .
function: def writedoc(thing, forceload=0):
      """Write HTML documentation to a file in the current directory."""
      try:
          object, name = resolve(thing, forceload)
          page = html.page(describe(object), html.document(object, name))
          with open(name + '.html', 'w', encoding='utf-8') as file:
              file.write(page)
          print('wrote', name + '.html')
      except (ImportError, ErrorDuringImport) as value:
          print(value)
function_tokens: def writedoc ( thing , forceload = 0 ) : try : object , name = resolve ( thing , forceload ) page = html . page ( describe ( object ) , html . document ( object , name ) ) with open ( name + '.html' , 'w' , encoding = 'utf-8' ) as file : file . write ( page ) print ( 'wrote' , name + '.html' ) except ( ImportError , ErrorDuringImport ) as value : print ( value )