Commits

Georg Brandl committed 00d846f

#129: Wrap toctrees in a div tag with class ``toctree-wrapper`` in HTML output.

Comments (0)

Files changed (2)

 Release 1.0 (in development)
 ============================
 
+* #129: Wrap toctrees in a div tag with class ``toctree-wrapper``
+  in HTML output.
+
 * #280: Autodoc can now document instance attributes assigned in
   ``__init__`` methods.
 

sphinx/directives/other.py

         subnode['hidden'] = 'hidden' in self.options
         subnode['numbered'] = 'numbered' in self.options
         subnode['titlesonly'] = 'titlesonly' in self.options
-        ret.append(subnode)
+        wrappernode = nodes.compound(classes=['toctree-wrapper'])
+        wrappernode.append(subnode)
+        ret.append(wrappernode)
         return ret