def enum_doc(name, enum, header_level, source_location):
lines = [f"<STR_LIT>"]<EOL>lines.append(f"<STR_LIT>")<EOL>lines.append(get_source_link(enum, source_location))<EOL>try:<EOL><INDENT>doc = NumpyDocString(inspect.getdoc(thing))._parsed_data<EOL>lines += summary(doc)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>lines.append(f"<STR_LIT>")<EOL>lines += [f"<STR_LIT>" for v in enum]<EOL>return lines<EOL>
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