code: def enum_doc(name, enum, header_level, source_location):
      
  
      lines = [f"{'#'*header_level} Enum **{name}**\n\n"]
      lines.append(f"```python\n{name}\n```\n")
      lines.append(get_source_link(enum, source_location))
      try:
          doc = NumpyDocString(inspect.getdoc(thing))._parsed_data
          lines += summary(doc)
      except:
          pass
      lines.append(f"{'#'*(header_level + 1)} Members\n\n")
      lines += [f"- `{str(v).split('.').pop()}`: `{v.value}` \n\n" for v in enum]
      return lines
docs: Generate markdown for an enum
  
      Parameters
      ----------
      name : str
          Name of the thing being documented
      enum : EnumMeta
          Enum to document
      header_level : int
          Heading level
      source_location : str
          URL of repo containing source code