Skip to content

Commit

Permalink
fix: Fix docstring admonitions rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 1, 2022
1 parent 83cf39a commit a24ae2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
{% elif section.kind.value == "examples" %}
{% include "docstring/examples.html" with context %}
{% elif section.kind.value == "admonition" %}
<details class="{{ section.value.kind }}">
{{ section.title|convert_markdown(heading_level, html_id) }}
{{ section.value.contents|convert_markdown(heading_level, html_id) }}
</details>
{% include "docstring/admonition.html" with context %}
{% endif %}
{% endfor %}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "_base/docstring/admonition.html" %}

0 comments on commit a24ae2e

Please sign in to comment.