doc: adjust layout.html template for compatibility with sphinx 0.6 stable
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 06 Dec 2012 10:54:47 +0100
branchstable
changeset 697 49f26305dc3c
parent 696 d63a46b12432
child 700 b73f4e91b8ea
doc: adjust layout.html template for compatibility with sphinx 0.6 sphinx 0.6 switched templates to jinja2, which has an incompatible syntax for macros. 2009, here we come! Closes #113086.
doc/.templates/layout.html
--- a/doc/.templates/layout.html	Wed Aug 22 12:32:43 2012 +0200
+++ b/doc/.templates/layout.html	Thu Dec 06 10:54:47 2012 +0100
@@ -4,7 +4,7 @@
 {%- endblock %}
 {%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
 {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
-{%- macro relbar %}
+{%- macro relbar() %}
     <div class="related">
       <h3>Navigation</h3>
       <ul>
@@ -24,7 +24,7 @@
       </ul>
     </div>
 {%- endmacro %}
-{%- macro sidebar %}
+{%- macro sidebar() %}
       {%- if builder != 'htmlhelp' %}
       <div class="sphinxsidebar">
         <div class="sphinxsidebarwrapper">