diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2 index f56c57b86d..f67e05339b 100644 --- a/hacking/templates/rst.j2 +++ b/hacking/templates/rst.j2 @@ -46,8 +46,17 @@ {% for example in examples %} {% if example['description'] %}

@{ example['description'] | html_ify }@

{% endif %}

-    @{ example['code'] }@

+ @{ example['code'] }@ +

{% endfor %}
+{% if notes %} +.. raw:: html + +

Notes

+ {% for note in notes %} +

@{ note | html_ify }@

+ {% endfor %} +{% endif %}