code: def doc_task(task_name, task_config, project_config=None, org_config=None):
      
      from cumulusci.core.utils import import_class
  
      doc = []
      doc.append("{}\n==========================================\n".format(task_name))
      doc.append("**Description:** {}\n".format(task_config.description))
      doc.append("**Class::** {}\n".format(task_config.class_path))
  
      task_class = import_class(task_config.class_path)
      task_docs = textwrap.dedent(task_class.task_docs.strip("\n"))
      if task_docs:
          doc.append(task_docs + "\n")
      if task_class.task_options:
          doc.append("Options:\n------------------------------------------\n")
          defaults = task_config.options or {}
          for name, option in list(task_class.task_options.items()):
              default = defaults.get(name)
              if default:
                  default = " **Default: {}**".format(default)
              else:
                  default = ""
              if option.get("required"):
                  doc.append(
                      "* **{}** *(required)*: {}{}".format(
                          name, option.get("description"), default
                      )
                  )
              else:
                  doc.append(
                      "* **{}**: {}{}".format(name, option.get("description"), default)
                  )
  
      return "\n".join(doc)
docs: Document a (project specific) task configuration in RST format.