code: def do_add(argdict):
      '''Add a new page to the site.'''
      site = make_site_obj(argdict)
      if not site.tree_ready:
          print "Cannot add page. You are not within a simplystatic \
  tree and you didn't specify a directory."
          sys.exit()
      title = argdict['title']
      try: 
          new_page = site.add_page(title)
          new_page.write()
          print "Added page '"+ title + "'"
      except ValueError as e: # pragma: no cover
          print "Attempted to create a page which already exists."
          sys.exit(f do_add(argdict):
      '''Add a new page to the site.'''
      site = make_site_obj(argdict)
      if not site.tree_ready:
          print "Cannot add page. You are not within a simplystatic \
  tree and you didn't specify a directory."
          sys.exit()
      title = argdict['title']
      try: 
          new_page = site.add_page(title)
          new_page.write()
          print "Added page '"+ title + "'"
      except ValueError as e: # pragma: no cover
          print "Attempted to create a page which already exists."
          sys.exit()
docs: Add a new page to the site.