| 1 |
{{ log.debug("Rendering examples section") }} |
| 2 |
|
| 3 |
{% import "language.html.jinja" as lang with context %} |
| 4 |
|
| 5 |
<details class="example" open> |
| 6 |
<summary>{{ "Examples" | convert_markdown(heading_level +1, html_id, strip_paragraph=True) }}</summary> |
| 7 |
{% for section_type, sub_section in section.value %} |
| 8 |
{% if section_type.value == "text" %} |
| 9 |
{{ sub_section|convert_markdown(heading_level, html_id) }} |
| 10 |
{% elif section_type.value == "examples" %} |
| 11 |
{{ sub_section|highlight(language="pycon", linenums=False) }} |
| 12 |
{% endif %} |
| 13 |
{% endfor %} |
| 14 |
</details> |