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

This commit is contained in:
Georg Brandl
2010-01-03 15:29:41 +01:00
parent 09147448d4
commit f3f4146312
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
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.

View File

@@ -100,7 +100,9 @@ class TocTree(Directive):
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