{% if config.show_if_no_docstring or class.has_contents %}
{% if not root or config.show_root_heading %} {% if root %} {% set show_full_path = config.show_root_full_path %} {% else %} {% set show_full_path = config.show_object_full_path %} {% endif %} {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %} {% with properties = class.properties %} {% include "properties.html" with context %} {% endwith %} {% else %} {% set heading_level = heading_level - 1 %} {% if config.show_root_toc_entry %} {% endif %} {% endif %}
{% with docstring_sections = class.docstring_sections %} {% include "docstring.html" with context %} {% endwith %} {% if config.show_source and class.source %}
Source code in {{ class.relative_file_path }} {{ class.source.code|highlight(language="python", line_start=class.source.line_start) }}
{% endif %} {% with obj = class %} {% set root = False %} {% set heading_level = heading_level + 1 %} {% include "children.html" with context %} {% endwith %}
{% endif %}