{% if github_url %}
{{ github_url | MkLink(title="Show source on GitHub", icon="fa-brands:github") }}
{% endif %}

{{ cls | get_doc(only_summary=True) | MkHeader(level=3) }}

{% if cls | get_doc(only_description=True) %}
{{ cls | get_doc(only_description=True) | MkAdmonition(title="Description") }}
{% endif %}

{% if cls | hasattr("nodefile") and cls.nodefile %}
=== "Examples"
{% for k, v in cls.nodefile.get_examples(node).items() %}
    {{ ("Example: " ~ k | md_style(bold=True)) | MkHeader(level=3) | string  | indent }}
    {{ v.pop("Jinja") | MkAdmonition(title="Jinja", typ="jinja") | string  | indent  }}
    {{ v.pop("Repr") | MkAdmonition(title="Python", typ="python") | string  | indent  }}
    {{ v | MkTabbed | string  | indent }}
{% endfor %}

=== "DocStrings"
{{ cls | MkDocStrings(show_docstring_description=False) | string | indent(first=True) }}

{% if subclasses %}
=== "Sub classes"
{{ subclasses | MkClassTable | string | indent(first=True) }}
{% endif %}

{% if cls.mro() | length > 2 %}
=== "Base classes"
{{ cls.__bases__ | MkClassTable | string | indent(first=True) }}
=== "⋔ Inheritance diagram"
{{ cls | MkClassDiagram(mode="baseclasses") | string | indent(first=True) }}
{% endif %}
{% endif %}
{% if cls | hasattr("nodefile") and cls.nodefile %}
=== "NodeFile"
    {{ cls.nodefile.path | load_file | MkCode(language="toml", title=cls.nodefile.path) | string | indent  }}
=== "Code"
    {{ _mk.MkCode.for_object(cls) | string | indent  }}
{% endif %}
