From f4aa6c53bd364408e58d1c5c7cfee90b21a066b2 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 25 Dec 2013 14:12:00 -0500 Subject: [PATCH] Format module requirements as notes in Sphinx --- hacking/templates/rst.j2 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hacking/templates/rst.j2 b/hacking/templates/rst.j2 index 8d279676cb..13cdd435c9 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 %}