Merging upstream version 1.3.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5b922100c9
commit
8a6a3342fc
337 changed files with 16571 additions and 4891 deletions
14
docs/templates/python/material/docstring/examples.html.jinja
vendored
Normal file
14
docs/templates/python/material/docstring/examples.html.jinja
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ log.debug("Rendering examples section") }}
|
||||
|
||||
{% import "language.html" as lang with context %}
|
||||
|
||||
<details class="example" open>
|
||||
<summary>{{ "Examples" | convert_markdown(heading_level +1, html_id, strip_paragraph=True) }}</summary>
|
||||
{% for section_type, sub_section in section.value %}
|
||||
{% if section_type.value == "text" %}
|
||||
{{ sub_section|convert_markdown(heading_level, html_id) }}
|
||||
{% elif section_type.value == "examples" %}
|
||||
{{ sub_section|highlight(language="pycon", linenums=False) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</details>
|
Loading…
Add table
Add a link
Reference in a new issue