diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2 index 8d279676cb9..13cdd435c9b 100644 --- a/hacking/templates/rst.j2 +++ b/hacking/templates/rst.j2 @@ -47,15 +47,11 @@ {% endif %} {% if requirements %} -.. raw:: html +{% for req in requirements %} -

- Requirements: - {% for req in requirements %} - @{ req | html_ify }@ - {% endfor %} -

+.. note:: Requires @{ req | html_ify }@ +{% endfor %} {% endif %} {% if not plainexamples %}